@patternfly/patternfly-doc-core 1.13.0 → 1.13.2

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 (368) hide show
  1. package/.astro/content-modules.mjs +24 -24
  2. package/.astro/content.d.ts +43 -0
  3. package/cli/buildPropsData.ts +13 -8
  4. package/cli/cli.ts +44 -33
  5. package/cli/createCollectionContent.ts +109 -9
  6. package/cli/getConfig.ts +1 -0
  7. package/dist/cli/buildPropsData.js +11 -8
  8. package/dist/cli/cli.js +36 -28
  9. package/dist/cli/createCollectionContent.js +70 -9
  10. package/dist/docs/_astro/ClientRouter.astro_astro_type_script_index_0_lang.DZnDNxNb.js +1 -0
  11. package/dist/docs/_worker.js/_@astrojs-ssr-adapter.mjs +1 -1
  12. package/dist/docs/_worker.js/_astro-internal_middleware.mjs +3 -3
  13. package/dist/docs/_worker.js/chunks/{_@astro-renderers_D4IG6Oyo.mjs → _@astro-renderers_B-gIj2th.mjs} +1 -1
  14. package/dist/docs/_worker.js/chunks/{_@astrojs-ssr-adapter_B_x81DBq.mjs → _@astrojs-ssr-adapter_u4VQ4c24.mjs} +23 -15
  15. package/dist/docs/_worker.js/chunks/astro/{server_CVEnF9i1.mjs → server_DXtGNXGl.mjs} +126 -72
  16. package/dist/docs/_worker.js/chunks/{astro-designed-error-pages_CXRddWNa.mjs → astro-designed-error-pages_Cre3i65F.mjs} +2 -2
  17. package/dist/docs/_worker.js/chunks/{index_CYXMeXT4.mjs → index_DkNBuRXQ.mjs} +193 -150
  18. package/dist/docs/_worker.js/chunks/{noop-middleware_DIXVCvyq.mjs → noop-middleware_D7Bh5dKA.mjs} +1 -1
  19. package/dist/docs/_worker.js/chunks/{path_C-ZOwaTP.mjs → path_u5O9njcM.mjs} +8 -2
  20. package/dist/docs/_worker.js/index.js +4 -4
  21. package/dist/docs/_worker.js/manifest_CR827M2P.mjs +100 -0
  22. package/dist/docs/_worker.js/pages/_image.astro.mjs +1 -1
  23. package/dist/docs/_worker.js/pages/props.astro.mjs +24 -6
  24. package/dist/docs/_worker.js/renderers.mjs +1 -1
  25. package/dist/docs/components/about-modal/index.html +1 -1
  26. package/dist/docs/components/about-modal/react/index.html +1 -1
  27. package/dist/docs/components/accordion/index.html +11 -11
  28. package/dist/docs/components/accordion/react/index.html +11 -11
  29. package/dist/docs/components/action-list/index.html +10 -10
  30. package/dist/docs/components/action-list/react/index.html +10 -10
  31. package/dist/docs/components/alert/index.html +84 -84
  32. package/dist/docs/components/alert/react/index.html +84 -84
  33. package/dist/docs/components/avatar/index.html +6 -6
  34. package/dist/docs/components/avatar/react/index.html +6 -6
  35. package/dist/docs/components/back-to-top/index.html +9 -9
  36. package/dist/docs/components/back-to-top/react/index.html +9 -9
  37. package/dist/docs/components/backdrop/index.html +4 -4
  38. package/dist/docs/components/backdrop/react/index.html +4 -4
  39. package/dist/docs/components/background-image/index.html +4 -4
  40. package/dist/docs/components/background-image/react/index.html +4 -4
  41. package/dist/docs/components/badge/index.html +9 -9
  42. package/dist/docs/components/badge/react/index.html +9 -9
  43. package/dist/docs/components/banner/index.html +12 -12
  44. package/dist/docs/components/banner/react/index.html +12 -12
  45. package/dist/docs/components/brand/index.html +1 -1
  46. package/dist/docs/components/brand/react/index.html +1 -1
  47. package/dist/docs/components/breadcrumb/index.html +1 -1
  48. package/dist/docs/components/breadcrumb/react/index.html +1 -1
  49. package/dist/docs/components/button/index.html +1 -1
  50. package/dist/docs/components/button/react/index.html +1 -1
  51. package/dist/docs/components/calendar-month/index.html +1 -1
  52. package/dist/docs/components/calendar-month/react/index.html +1 -1
  53. package/dist/docs/components/card/index.html +1 -1
  54. package/dist/docs/components/card/react/index.html +1 -1
  55. package/dist/docs/components/checkbox/index.html +1 -1
  56. package/dist/docs/components/checkbox/react/index.html +1 -1
  57. package/dist/docs/components/chip/index.html +1 -1
  58. package/dist/docs/components/chip/react-deprecated/index.html +1 -1
  59. package/dist/docs/components/clipboard-copy/index.html +1 -1
  60. package/dist/docs/components/clipboard-copy/react/index.html +1 -1
  61. package/dist/docs/components/code-block/index.html +1 -1
  62. package/dist/docs/components/code-block/react/index.html +1 -1
  63. package/dist/docs/components/content/index.html +1 -1
  64. package/dist/docs/components/content/react/index.html +1 -1
  65. package/dist/docs/components/data-list/index.html +25 -25
  66. package/dist/docs/components/data-list/react/index.html +25 -25
  67. package/dist/docs/components/date-picker/index.html +1 -1
  68. package/dist/docs/components/date-picker/react/index.html +1 -1
  69. package/dist/docs/components/description-list/index.html +37 -37
  70. package/dist/docs/components/description-list/react/index.html +37 -37
  71. package/dist/docs/components/divider/index.html +15 -15
  72. package/dist/docs/components/divider/react/index.html +15 -15
  73. package/dist/docs/components/drag-and-drop/index.html +1 -1
  74. package/dist/docs/components/drag-and-drop/react-deprecated/index.html +1 -1
  75. package/dist/docs/components/drawer/index.html +29 -29
  76. package/dist/docs/components/drawer/react/index.html +29 -29
  77. package/dist/docs/components/dropdown/index.html +21 -21
  78. package/dist/docs/components/dropdown/react/index.html +21 -21
  79. package/dist/docs/components/dual-list-selector/index.html +18 -18
  80. package/dist/docs/components/dual-list-selector/react/index.html +1 -1
  81. package/dist/docs/components/dual-list-selector/react-deprecated/index.html +26 -26
  82. package/dist/docs/components/empty-state/index.html +1 -1
  83. package/dist/docs/components/empty-state/react/index.html +1 -1
  84. package/dist/docs/components/expandable-section/index.html +1 -1
  85. package/dist/docs/components/expandable-section/react/index.html +1 -1
  86. package/dist/docs/components/form/index.html +20 -20
  87. package/dist/docs/components/form/react/index.html +20 -20
  88. package/dist/docs/components/form-select/index.html +1 -1
  89. package/dist/docs/components/form-select/react/index.html +1 -1
  90. package/dist/docs/components/helper-text/index.html +1 -1
  91. package/dist/docs/components/helper-text/react/index.html +1 -1
  92. package/dist/docs/components/hint/index.html +1 -1
  93. package/dist/docs/components/hint/react/index.html +1 -1
  94. package/dist/docs/components/icon/index.html +1 -1
  95. package/dist/docs/components/icon/react/index.html +1 -1
  96. package/dist/docs/components/input-group/index.html +10 -10
  97. package/dist/docs/components/input-group/react/index.html +10 -10
  98. package/dist/docs/components/jump-links/index.html +13 -13
  99. package/dist/docs/components/jump-links/react/index.html +13 -13
  100. package/dist/docs/components/label/index.html +29 -29
  101. package/dist/docs/components/label/react/index.html +29 -29
  102. package/dist/docs/components/list/index.html +1 -1
  103. package/dist/docs/components/list/react/index.html +1 -1
  104. package/dist/docs/components/login-page/index.html +14 -14
  105. package/dist/docs/components/login-page/react/index.html +14 -14
  106. package/dist/docs/components/masthead/index.html +19 -19
  107. package/dist/docs/components/masthead/react/index.html +19 -19
  108. package/dist/docs/components/menu/index.html +69 -69
  109. package/dist/docs/components/menu/react/index.html +69 -69
  110. package/dist/docs/components/menu-toggle/index.html +67 -67
  111. package/dist/docs/components/menu-toggle/react/index.html +67 -67
  112. package/dist/docs/components/modal/index.html +39 -39
  113. package/dist/docs/components/modal/react/index.html +1 -1
  114. package/dist/docs/components/modal/react-deprecated/index.html +39 -39
  115. package/dist/docs/components/multiple-file-upload/index.html +30 -30
  116. package/dist/docs/components/multiple-file-upload/react/index.html +30 -30
  117. package/dist/docs/components/navigation/index.html +22 -22
  118. package/dist/docs/components/navigation/react/index.html +22 -22
  119. package/dist/docs/components/notification-badge/index.html +14 -14
  120. package/dist/docs/components/notification-badge/react/index.html +14 -14
  121. package/dist/docs/components/notification-drawer/index.html +1 -1
  122. package/dist/docs/components/notification-drawer/react/index.html +1 -1
  123. package/dist/docs/components/number-input/index.html +1 -1
  124. package/dist/docs/components/number-input/react/index.html +1 -1
  125. package/dist/docs/components/overflow-menu/index.html +1 -1
  126. package/dist/docs/components/overflow-menu/react/index.html +1 -1
  127. package/dist/docs/components/page/index.html +51 -51
  128. package/dist/docs/components/page/react/index.html +51 -51
  129. package/dist/docs/components/pagination/index.html +1 -1
  130. package/dist/docs/components/pagination/react/index.html +1 -1
  131. package/dist/docs/components/panel/index.html +26 -26
  132. package/dist/docs/components/panel/react/index.html +26 -26
  133. package/dist/docs/components/popover/index.html +24 -24
  134. package/dist/docs/components/popover/react/index.html +24 -24
  135. package/dist/docs/components/progress/index.html +21 -21
  136. package/dist/docs/components/progress/react/index.html +21 -21
  137. package/dist/docs/components/progress-stepper/index.html +1 -1
  138. package/dist/docs/components/progress-stepper/react/index.html +1 -1
  139. package/dist/docs/components/radio/index.html +13 -13
  140. package/dist/docs/components/radio/react/index.html +13 -13
  141. package/dist/docs/components/search-input/index.html +12 -12
  142. package/dist/docs/components/search-input/react/index.html +12 -12
  143. package/dist/docs/components/select/index.html +63 -63
  144. package/dist/docs/components/select/react/index.html +63 -63
  145. package/dist/docs/components/sidebar/index.html +18 -18
  146. package/dist/docs/components/sidebar/react/index.html +18 -18
  147. package/dist/docs/components/simple-file-upload/index.html +33 -33
  148. package/dist/docs/components/simple-file-upload/react/index.html +33 -33
  149. package/dist/docs/components/simple-list/index.html +10 -10
  150. package/dist/docs/components/simple-list/react/index.html +10 -10
  151. package/dist/docs/components/skeleton/index.html +11 -11
  152. package/dist/docs/components/skeleton/react/index.html +11 -11
  153. package/dist/docs/components/skip-to-content/index.html +7 -7
  154. package/dist/docs/components/skip-to-content/react/index.html +7 -7
  155. package/dist/docs/components/slider/index.html +23 -23
  156. package/dist/docs/components/slider/react/index.html +23 -23
  157. package/dist/docs/components/spinner/index.html +7 -7
  158. package/dist/docs/components/spinner/react/index.html +7 -7
  159. package/dist/docs/components/switch/index.html +10 -10
  160. package/dist/docs/components/switch/react/index.html +10 -10
  161. package/dist/docs/components/tabs/index.html +78 -78
  162. package/dist/docs/components/tabs/react/index.html +78 -78
  163. package/dist/docs/components/text-area/index.html +16 -16
  164. package/dist/docs/components/text-area/react/index.html +16 -16
  165. package/dist/docs/components/text-input/index.html +14 -14
  166. package/dist/docs/components/text-input/react/index.html +14 -14
  167. package/dist/docs/components/text-input-group/index.html +14 -14
  168. package/dist/docs/components/text-input-group/react/index.html +14 -14
  169. package/dist/docs/components/tile/index.html +27 -27
  170. package/dist/docs/components/tile/react-deprecated/index.html +27 -27
  171. package/dist/docs/components/time-picker/index.html +11 -11
  172. package/dist/docs/components/time-picker/react/index.html +11 -11
  173. package/dist/docs/components/timestamp/index.html +22 -22
  174. package/dist/docs/components/timestamp/react/index.html +22 -22
  175. package/dist/docs/components/title/index.html +5 -5
  176. package/dist/docs/components/title/react/index.html +5 -5
  177. package/dist/docs/components/toggle-group/index.html +19 -19
  178. package/dist/docs/components/toggle-group/react/index.html +19 -19
  179. package/dist/docs/components/toolbar/index.html +43 -43
  180. package/dist/docs/components/toolbar/react/index.html +43 -43
  181. package/dist/docs/components/tooltip/index.html +13 -13
  182. package/dist/docs/components/tooltip/react/index.html +13 -13
  183. package/dist/docs/components/tree-view/index.html +24 -24
  184. package/dist/docs/components/tree-view/react/index.html +24 -24
  185. package/dist/docs/components/truncate/index.html +11 -11
  186. package/dist/docs/components/truncate/react/index.html +11 -11
  187. package/dist/docs/components/wizard/index.html +33 -33
  188. package/dist/docs/components/wizard/react/index.html +30 -30
  189. package/dist/docs/components/wizard/react-deprecated/index.html +23 -23
  190. package/dist/docs/index.html +2 -2
  191. package/package.json +6 -6
  192. package/src/content.config.ts +4 -2
  193. package/src/content.ts +1 -1
  194. package/src/pages/props.ts +8 -4
  195. package/dist/docs/_astro/ClientRouter.astro_astro_type_script_index_0_lang.CtSceO8m.js +0 -1
  196. package/dist/docs/_worker.js/manifest_BT0KogAj.mjs +0 -100
  197. /package/dist/docs/_worker.js/chunks/{AboutModal_CrdYiVZ2.mjs → AboutModal_BItn3kin.mjs} +0 -0
  198. /package/dist/docs/_worker.js/chunks/{AboutModal_D3R-r6ju.mjs → AboutModal_CZjdACeW.mjs} +0 -0
  199. /package/dist/docs/_worker.js/chunks/{Accordion_Dbx8tdfD.mjs → Accordion_CYmF0KwJ.mjs} +0 -0
  200. /package/dist/docs/_worker.js/chunks/{Accordion_sjy0EnPK.mjs → Accordion_dgrn0E_o.mjs} +0 -0
  201. /package/dist/docs/_worker.js/chunks/{ActionList_Bx7eAKgV.mjs → ActionList_b3_CLZ14.mjs} +0 -0
  202. /package/dist/docs/_worker.js/chunks/{ActionList_CuygbYGp.mjs → ActionList_hxinmMC0.mjs} +0 -0
  203. /package/dist/docs/_worker.js/chunks/{Alert_Cgh0pfMA.mjs → Alert_CPMXr4GU.mjs} +0 -0
  204. /package/dist/docs/_worker.js/chunks/{Alert_CplJ22O9.mjs → Alert_CjLz1avf.mjs} +0 -0
  205. /package/dist/docs/_worker.js/chunks/{Avatar_BszzDSZB.mjs → Avatar_BpvZS7Vn.mjs} +0 -0
  206. /package/dist/docs/_worker.js/chunks/{Avatar_DuNXB-Tl.mjs → Avatar_CJxK-3JY.mjs} +0 -0
  207. /package/dist/docs/_worker.js/chunks/{BackToTop_B_0NN1kJ.mjs → BackToTop_C4eW2L0y.mjs} +0 -0
  208. /package/dist/docs/_worker.js/chunks/{BackToTop_DKY1zHBL.mjs → BackToTop_DcZBtTyL.mjs} +0 -0
  209. /package/dist/docs/_worker.js/chunks/{Backdrop_ByJvccKQ.mjs → Backdrop_10J0WLph.mjs} +0 -0
  210. /package/dist/docs/_worker.js/chunks/{Backdrop_D12wBLrB.mjs → Backdrop_D8sST9JX.mjs} +0 -0
  211. /package/dist/docs/_worker.js/chunks/{BackgroundImage_7zaRIuh-.mjs → BackgroundImage_BKA-ulgj.mjs} +0 -0
  212. /package/dist/docs/_worker.js/chunks/{BackgroundImage_BFUrU51J.mjs → BackgroundImage_Cz6hAv0v.mjs} +0 -0
  213. /package/dist/docs/_worker.js/chunks/{Badge_DloPmeMn.mjs → Badge_Cg9zVGV6.mjs} +0 -0
  214. /package/dist/docs/_worker.js/chunks/{Badge_DxGDbEGv.mjs → Badge_CmcfMGLy.mjs} +0 -0
  215. /package/dist/docs/_worker.js/chunks/{Banner_4Te4yy7I.mjs → Banner_B-0nD2-g.mjs} +0 -0
  216. /package/dist/docs/_worker.js/chunks/{Banner_FbFCGml0.mjs → Banner_D1S93kG4.mjs} +0 -0
  217. /package/dist/docs/_worker.js/chunks/{Brand_Cjeb58fX.mjs → Brand_BbimpMS3.mjs} +0 -0
  218. /package/dist/docs/_worker.js/chunks/{Brand_DZEvbkMH.mjs → Brand_BpKIcHo4.mjs} +0 -0
  219. /package/dist/docs/_worker.js/chunks/{Breadcrumb_DkNDUMw0.mjs → Breadcrumb_Ck-Lj1T3.mjs} +0 -0
  220. /package/dist/docs/_worker.js/chunks/{Breadcrumb_bVSwIfTk.mjs → Breadcrumb_D9KV7rzl.mjs} +0 -0
  221. /package/dist/docs/_worker.js/chunks/{Button_BqggYTWh.mjs → Button_CIRvQZry.mjs} +0 -0
  222. /package/dist/docs/_worker.js/chunks/{Button_DbZb-z5h.mjs → Button_V8lUSO6X.mjs} +0 -0
  223. /package/dist/docs/_worker.js/chunks/{CalendarMonth_BdoIQD1o.mjs → CalendarMonth_BFffUIcM.mjs} +0 -0
  224. /package/dist/docs/_worker.js/chunks/{CalendarMonth_BqZc2rYW.mjs → CalendarMonth_BQ28v_pg.mjs} +0 -0
  225. /package/dist/docs/_worker.js/chunks/{Card_BW6WmwTW.mjs → Card_C8qkLKEf.mjs} +0 -0
  226. /package/dist/docs/_worker.js/chunks/{Card_CEDol7Xx.mjs → Card_DUK4FmPS.mjs} +0 -0
  227. /package/dist/docs/_worker.js/chunks/{Checkbox_BqVpiIvF.mjs → Checkbox_Bn--Z5lv.mjs} +0 -0
  228. /package/dist/docs/_worker.js/chunks/{Checkbox_DSYhfv7p.mjs → Checkbox_qYxKZZGQ.mjs} +0 -0
  229. /package/dist/docs/_worker.js/chunks/{Chip_BciXepRF.mjs → Chip_0R4AtDfc.mjs} +0 -0
  230. /package/dist/docs/_worker.js/chunks/{Chip_C23BxFTk.mjs → Chip_COOLhRtH.mjs} +0 -0
  231. /package/dist/docs/_worker.js/chunks/{ClipboardCopy_BjySfoK1.mjs → ClipboardCopy_CCw7mUNs.mjs} +0 -0
  232. /package/dist/docs/_worker.js/chunks/{ClipboardCopy_CvrD2b3T.mjs → ClipboardCopy_E2VziZOh.mjs} +0 -0
  233. /package/dist/docs/_worker.js/chunks/{CodeBlock_CuH1PrfL.mjs → CodeBlock_B6MAjfQG.mjs} +0 -0
  234. /package/dist/docs/_worker.js/chunks/{CodeBlock_DK5AauFn.mjs → CodeBlock_E5IUdMeV.mjs} +0 -0
  235. /package/dist/docs/_worker.js/chunks/{Content_BfZIFUr8.mjs → Content_BTsW49BT.mjs} +0 -0
  236. /package/dist/docs/_worker.js/chunks/{Content_lBUC3eEp.mjs → Content_DAKpmQcD.mjs} +0 -0
  237. /package/dist/docs/_worker.js/chunks/{DataList_CSJAkMMZ.mjs → DataList_BUnDIzjX.mjs} +0 -0
  238. /package/dist/docs/_worker.js/chunks/{DataList_CaFvg0uz.mjs → DataList_DAx1YA9q.mjs} +0 -0
  239. /package/dist/docs/_worker.js/chunks/{DatePicker_Cw2abdEU.mjs → DatePicker_B7e4HDrD.mjs} +0 -0
  240. /package/dist/docs/_worker.js/chunks/{DatePicker_bYwsFHXL.mjs → DatePicker_BvR2KULb.mjs} +0 -0
  241. /package/dist/docs/_worker.js/chunks/{DescriptionList_BTTyevMb.mjs → DescriptionList_BN8g0mN-.mjs} +0 -0
  242. /package/dist/docs/_worker.js/chunks/{DescriptionList_Dr51d-67.mjs → DescriptionList_Ci0wXiOc.mjs} +0 -0
  243. /package/dist/docs/_worker.js/chunks/{Divider_BgOt1--F.mjs → Divider_01665LVV.mjs} +0 -0
  244. /package/dist/docs/_worker.js/chunks/{Divider_Bh7n4QTo.mjs → Divider_58GLcmuG.mjs} +0 -0
  245. /package/dist/docs/_worker.js/chunks/{DragDrop_BF-aF6Z8.mjs → DragDrop_D0BsENaH.mjs} +0 -0
  246. /package/dist/docs/_worker.js/chunks/{DragDrop_DId590rN.mjs → DragDrop_R1Bxn5bG.mjs} +0 -0
  247. /package/dist/docs/_worker.js/chunks/{Drawer_BVywTMVo.mjs → Drawer_CqiPp4tH.mjs} +0 -0
  248. /package/dist/docs/_worker.js/chunks/{Drawer_RrCnySEa.mjs → Drawer_ar8SYBBZ.mjs} +0 -0
  249. /package/dist/docs/_worker.js/chunks/{Dropdown_BjtqviYW.mjs → Dropdown_BxRoNhEO.mjs} +0 -0
  250. /package/dist/docs/_worker.js/chunks/{Dropdown_GiUvjFPw.mjs → Dropdown_CGqAffXy.mjs} +0 -0
  251. /package/dist/docs/_worker.js/chunks/{DualListSelector_8uLukfP0.mjs → DualListSelector_BY0jUhu5.mjs} +0 -0
  252. /package/dist/docs/_worker.js/chunks/{DualListSelector_Bgj1IWqe.mjs → DualListSelector_BtS4RhPL.mjs} +0 -0
  253. /package/dist/docs/_worker.js/chunks/{DualListSelector_C5QjTplp.mjs → DualListSelector_DS3XuAyO.mjs} +0 -0
  254. /package/dist/docs/_worker.js/chunks/{DualListSelector_DLgspM0s.mjs → DualListSelector_DpkuRNqO.mjs} +0 -0
  255. /package/dist/docs/_worker.js/chunks/{EmptyState_Ct_PJba3.mjs → EmptyState_D8pG8NNs.mjs} +0 -0
  256. /package/dist/docs/_worker.js/chunks/{EmptyState_Dk3hKJlg.mjs → EmptyState_DKnL5Sxb.mjs} +0 -0
  257. /package/dist/docs/_worker.js/chunks/{ExpandableSection_DSw76PjZ.mjs → ExpandableSection_BxeRuhxW.mjs} +0 -0
  258. /package/dist/docs/_worker.js/chunks/{ExpandableSection_vUQO3FgG.mjs → ExpandableSection_C-rR4lpq.mjs} +0 -0
  259. /package/dist/docs/_worker.js/chunks/{FileUpload_CEvZ0G-d.mjs → FileUpload_BS2e2_2a.mjs} +0 -0
  260. /package/dist/docs/_worker.js/chunks/{FileUpload_Ci_s8Ghd.mjs → FileUpload_Mp8yctad.mjs} +0 -0
  261. /package/dist/docs/_worker.js/chunks/{FormSelect_C2YPRAlw.mjs → FormSelect_Dh4wqtK-.mjs} +0 -0
  262. /package/dist/docs/_worker.js/chunks/{FormSelect_DWShl8Fb.mjs → FormSelect_Dj_assyG.mjs} +0 -0
  263. /package/dist/docs/_worker.js/chunks/{Form_Dyb98Nez.mjs → Form_C6rxCWwv.mjs} +0 -0
  264. /package/dist/docs/_worker.js/chunks/{Form_olaoRN4o.mjs → Form_LFZpV55d.mjs} +0 -0
  265. /package/dist/docs/_worker.js/chunks/{HelperText_2CcHVaih.mjs → HelperText_Cdoh4Xq5.mjs} +0 -0
  266. /package/dist/docs/_worker.js/chunks/{HelperText_DthGttZo.mjs → HelperText_PKuHc_Y7.mjs} +0 -0
  267. /package/dist/docs/_worker.js/chunks/{Hint_BXDZKYhJ.mjs → Hint_BdmmUbjS.mjs} +0 -0
  268. /package/dist/docs/_worker.js/chunks/{Hint_DHoiYdn6.mjs → Hint_DYFKftOG.mjs} +0 -0
  269. /package/dist/docs/_worker.js/chunks/{Icon_C4IPnIAg.mjs → Icon_B8kEVedr.mjs} +0 -0
  270. /package/dist/docs/_worker.js/chunks/{Icon_C_Dqbg9w.mjs → Icon_BMlPtDQq.mjs} +0 -0
  271. /package/dist/docs/_worker.js/chunks/{InputGroup_CDKP-uXZ.mjs → InputGroup_CvQnB4Xi.mjs} +0 -0
  272. /package/dist/docs/_worker.js/chunks/{InputGroup_CmZgaEyr.mjs → InputGroup_DuMIDv_M.mjs} +0 -0
  273. /package/dist/docs/_worker.js/chunks/{JumpLinks_DvM3PVg0.mjs → JumpLinks_0RwPXv3d.mjs} +0 -0
  274. /package/dist/docs/_worker.js/chunks/{JumpLinks_Dvdlxdps.mjs → JumpLinks_C5MZGLAO.mjs} +0 -0
  275. /package/dist/docs/_worker.js/chunks/{Label_C7fP9Jp9.mjs → Label_CNsHUBdN.mjs} +0 -0
  276. /package/dist/docs/_worker.js/chunks/{Label_Cxir7_Q4.mjs → Label_THkE-AFA.mjs} +0 -0
  277. /package/dist/docs/_worker.js/chunks/{List_CUgwFnXa.mjs → List_BXjcB6TX.mjs} +0 -0
  278. /package/dist/docs/_worker.js/chunks/{List_CWAsiYnN.mjs → List_CoXnRuT-.mjs} +0 -0
  279. /package/dist/docs/_worker.js/chunks/{LoginPage_BDfliKtU.mjs → LoginPage_Cd_Vx4TL.mjs} +0 -0
  280. /package/dist/docs/_worker.js/chunks/{LoginPage_BjIl_nF9.mjs → LoginPage_Dy-dda7r.mjs} +0 -0
  281. /package/dist/docs/_worker.js/chunks/{Masthead_BWjm5CFj.mjs → Masthead_0dZpDAir.mjs} +0 -0
  282. /package/dist/docs/_worker.js/chunks/{Masthead_BZnYzDu_.mjs → Masthead_L5uTIDIo.mjs} +0 -0
  283. /package/dist/docs/_worker.js/chunks/{MenuToggle_DeKwv469.mjs → MenuToggle_Bb2rO_CM.mjs} +0 -0
  284. /package/dist/docs/_worker.js/chunks/{MenuToggle_DmJISlPR.mjs → MenuToggle_D3uQPRxu.mjs} +0 -0
  285. /package/dist/docs/_worker.js/chunks/{Menu_DRRoq5PM.mjs → Menu_CU4-bIwV.mjs} +0 -0
  286. /package/dist/docs/_worker.js/chunks/{Menu_Sl-QVQ_w.mjs → Menu_Drl71efm.mjs} +0 -0
  287. /package/dist/docs/_worker.js/chunks/{Modal_6WZzoDHU.mjs → Modal_B35nIeQ6.mjs} +0 -0
  288. /package/dist/docs/_worker.js/chunks/{Modal_BI2dVPRJ.mjs → Modal_D-zL8r6s.mjs} +0 -0
  289. /package/dist/docs/_worker.js/chunks/{Modal_CdokBUDP.mjs → Modal_DDfqMCzs.mjs} +0 -0
  290. /package/dist/docs/_worker.js/chunks/{Modal_DJRobnfc.mjs → Modal_DKK66Rag.mjs} +0 -0
  291. /package/dist/docs/_worker.js/chunks/{MultipleFileUpload_BaHVtkF_.mjs → MultipleFileUpload_B_T35Ur4.mjs} +0 -0
  292. /package/dist/docs/_worker.js/chunks/{MultipleFileUpload_BznvLbsj.mjs → MultipleFileUpload_SF3pfPOs.mjs} +0 -0
  293. /package/dist/docs/_worker.js/chunks/{Nav_DwqATcJ4.mjs → Nav_DWhCiasr.mjs} +0 -0
  294. /package/dist/docs/_worker.js/chunks/{Nav_GZ0nRYXE.mjs → Nav_OmbKpzoZ.mjs} +0 -0
  295. /package/dist/docs/_worker.js/chunks/{NotificationBadge_DO4OLgvO.mjs → NotificationBadge_CCC3w-0n.mjs} +0 -0
  296. /package/dist/docs/_worker.js/chunks/{NotificationBadge_DjINhOQ5.mjs → NotificationBadge_Du1zJprr.mjs} +0 -0
  297. /package/dist/docs/_worker.js/chunks/{NotificationDrawer_BtpQ4pmZ.mjs → NotificationDrawer_DAuLxL7w.mjs} +0 -0
  298. /package/dist/docs/_worker.js/chunks/{NotificationDrawer_D1lmMCgd.mjs → NotificationDrawer_GsX4wbyf.mjs} +0 -0
  299. /package/dist/docs/_worker.js/chunks/{NumberInput_CggpJ5ge.mjs → NumberInput_BTUsP2Dy.mjs} +0 -0
  300. /package/dist/docs/_worker.js/chunks/{NumberInput_zMcSUUwH.mjs → NumberInput_CEdn1SLL.mjs} +0 -0
  301. /package/dist/docs/_worker.js/chunks/{OverflowMenu_BX4nwFvK.mjs → OverflowMenu_Bz0pUIse.mjs} +0 -0
  302. /package/dist/docs/_worker.js/chunks/{OverflowMenu_DnQ7wMy-.mjs → OverflowMenu_eowJo-oA.mjs} +0 -0
  303. /package/dist/docs/_worker.js/chunks/{Page_Cw_XTB6Y.mjs → Page_D8wqD5dY.mjs} +0 -0
  304. /package/dist/docs/_worker.js/chunks/{Page_UhywZXdY.mjs → Page_D96Z1le0.mjs} +0 -0
  305. /package/dist/docs/_worker.js/chunks/{Pagination_7rr0n7-V.mjs → Pagination_-jq13UTb.mjs} +0 -0
  306. /package/dist/docs/_worker.js/chunks/{Pagination_Dc5L6yaI.mjs → Pagination_CQXZNog1.mjs} +0 -0
  307. /package/dist/docs/_worker.js/chunks/{Panel_Bl_LqCWS.mjs → Panel_83a69pjh.mjs} +0 -0
  308. /package/dist/docs/_worker.js/chunks/{Panel_s8-TwBlS.mjs → Panel_Cwf130Yb.mjs} +0 -0
  309. /package/dist/docs/_worker.js/chunks/{Popover_CjipqBWs.mjs → Popover_DVQ8u4Fp.mjs} +0 -0
  310. /package/dist/docs/_worker.js/chunks/{Popover_DvQgGJTf.mjs → Popover_DtFhoH3l.mjs} +0 -0
  311. /package/dist/docs/_worker.js/chunks/{ProgressStepper_DXBI4K2w.mjs → ProgressStepper_CMwF8CiX.mjs} +0 -0
  312. /package/dist/docs/_worker.js/chunks/{ProgressStepper_lBd5mTHE.mjs → ProgressStepper_Yvcq3pmc.mjs} +0 -0
  313. /package/dist/docs/_worker.js/chunks/{Progress_BZA5taDC.mjs → Progress_DsBSXTmv.mjs} +0 -0
  314. /package/dist/docs/_worker.js/chunks/{Progress_CIgybc-D.mjs → Progress_M0fLgfjf.mjs} +0 -0
  315. /package/dist/docs/_worker.js/chunks/{Radio_3tPx1coq.mjs → Radio_BmbmoopI.mjs} +0 -0
  316. /package/dist/docs/_worker.js/chunks/{Radio_BG7VZAk6.mjs → Radio_CjW5TY2C.mjs} +0 -0
  317. /package/dist/docs/_worker.js/chunks/{SearchInput_BZ43-Elo.mjs → SearchInput_BiyBA_eF.mjs} +0 -0
  318. /package/dist/docs/_worker.js/chunks/{SearchInput_aCFv-N1U.mjs → SearchInput_Bv6KJYSn.mjs} +0 -0
  319. /package/dist/docs/_worker.js/chunks/{Select_B4cumL7U.mjs → Select_B957i7MN.mjs} +0 -0
  320. /package/dist/docs/_worker.js/chunks/{Select_CJ78kBVM.mjs → Select_BBTTR43m.mjs} +0 -0
  321. /package/dist/docs/_worker.js/chunks/{Sidebar_Bto2_gKJ.mjs → Sidebar_C3c-bPso.mjs} +0 -0
  322. /package/dist/docs/_worker.js/chunks/{Sidebar_DOfifBRA.mjs → Sidebar_CHEf7dr0.mjs} +0 -0
  323. /package/dist/docs/_worker.js/chunks/{SimpleList_CVkO5Odp.mjs → SimpleList_BqpkJemM.mjs} +0 -0
  324. /package/dist/docs/_worker.js/chunks/{SimpleList_oJajk3_z.mjs → SimpleList_DDfBcEWe.mjs} +0 -0
  325. /package/dist/docs/_worker.js/chunks/{Skeleton_CCJNka-d.mjs → Skeleton_B4QE65Ar.mjs} +0 -0
  326. /package/dist/docs/_worker.js/chunks/{Skeleton_N02yA_k6.mjs → Skeleton_D5WnGxh0.mjs} +0 -0
  327. /package/dist/docs/_worker.js/chunks/{SkipToContent_DvOYRCWm.mjs → SkipToContent_BBwU-ZdY.mjs} +0 -0
  328. /package/dist/docs/_worker.js/chunks/{SkipToContent_o7vh-U_u.mjs → SkipToContent_DFYTlqla.mjs} +0 -0
  329. /package/dist/docs/_worker.js/chunks/{Slider_C0bH-JMY.mjs → Slider_BX6wz0hN.mjs} +0 -0
  330. /package/dist/docs/_worker.js/chunks/{Slider_CWRDqhx4.mjs → Slider_BlpXbwhH.mjs} +0 -0
  331. /package/dist/docs/_worker.js/chunks/{Spinner_B-x8bJt0.mjs → Spinner_C5qilvZp.mjs} +0 -0
  332. /package/dist/docs/_worker.js/chunks/{Spinner_hzAAbZdS.mjs → Spinner_CuLTR583.mjs} +0 -0
  333. /package/dist/docs/_worker.js/chunks/{Switch_Cpr1OETy.mjs → Switch_BnA8s7Wn.mjs} +0 -0
  334. /package/dist/docs/_worker.js/chunks/{Switch_Du7AKJ4O.mjs → Switch_CvUw0Z4X.mjs} +0 -0
  335. /package/dist/docs/_worker.js/chunks/{Tabs_CzDrfKA-.mjs → Tabs_CyeQBOGa.mjs} +0 -0
  336. /package/dist/docs/_worker.js/chunks/{Tabs_KXDkISY4.mjs → Tabs_xDQjU8nW.mjs} +0 -0
  337. /package/dist/docs/_worker.js/chunks/{TextArea_C1dmG8mr.mjs → TextArea_7cFF77CV.mjs} +0 -0
  338. /package/dist/docs/_worker.js/chunks/{TextArea_Dtm0m8LO.mjs → TextArea_D7NOOvRK.mjs} +0 -0
  339. /package/dist/docs/_worker.js/chunks/{TextInputGroup_D0NXU95v.mjs → TextInputGroup_DiXNtIIB.mjs} +0 -0
  340. /package/dist/docs/_worker.js/chunks/{TextInputGroup_mJpBrogC.mjs → TextInputGroup_ZNRIWQeP.mjs} +0 -0
  341. /package/dist/docs/_worker.js/chunks/{TextInput_B0XLYaVA.mjs → TextInput_3Gggoxng.mjs} +0 -0
  342. /package/dist/docs/_worker.js/chunks/{TextInput_CmLcsUiv.mjs → TextInput_Dg_3P9RM.mjs} +0 -0
  343. /package/dist/docs/_worker.js/chunks/{Tile_CF_12LPU.mjs → Tile_CAcRzWZ9.mjs} +0 -0
  344. /package/dist/docs/_worker.js/chunks/{Tile_DJ0LawLW.mjs → Tile_RHzJKWiw.mjs} +0 -0
  345. /package/dist/docs/_worker.js/chunks/{TimePicker_CijfSKJQ.mjs → TimePicker_DtrDRcMy.mjs} +0 -0
  346. /package/dist/docs/_worker.js/chunks/{TimePicker_VX9VE-Uy.mjs → TimePicker_qxUpEV9n.mjs} +0 -0
  347. /package/dist/docs/_worker.js/chunks/{Timestamp_D7uyrIK7.mjs → Timestamp_2Z94f_Eh.mjs} +0 -0
  348. /package/dist/docs/_worker.js/chunks/{Timestamp_c2Mozpr4.mjs → Timestamp_rMinDYzW.mjs} +0 -0
  349. /package/dist/docs/_worker.js/chunks/{Title_DbrwFEEy.mjs → Title_CdyPwQ2b.mjs} +0 -0
  350. /package/dist/docs/_worker.js/chunks/{Title_DlFn7G9R.mjs → Title_Csq8EY4-.mjs} +0 -0
  351. /package/dist/docs/_worker.js/chunks/{ToggleGroup_DpLWzfAW.mjs → ToggleGroup_B1Xtdxuy.mjs} +0 -0
  352. /package/dist/docs/_worker.js/chunks/{ToggleGroup_j1ooRpX3.mjs → ToggleGroup_GBAc787N.mjs} +0 -0
  353. /package/dist/docs/_worker.js/chunks/{Toolbar_BEIh7r7J.mjs → Toolbar_BfRvo9qx.mjs} +0 -0
  354. /package/dist/docs/_worker.js/chunks/{Toolbar_mjrD3_l-.mjs → Toolbar_CmeIzev4.mjs} +0 -0
  355. /package/dist/docs/_worker.js/chunks/{Tooltip_Bp5XOVoV.mjs → Tooltip_CPduniOG.mjs} +0 -0
  356. /package/dist/docs/_worker.js/chunks/{Tooltip_BrFKk02i.mjs → Tooltip_Cdt0oB9I.mjs} +0 -0
  357. /package/dist/docs/_worker.js/chunks/{TreeView_BImfKPD_.mjs → TreeView_B1tisZRW.mjs} +0 -0
  358. /package/dist/docs/_worker.js/chunks/{TreeView_CgO4iC1E.mjs → TreeView_CwOQvnLr.mjs} +0 -0
  359. /package/dist/docs/_worker.js/chunks/{Truncate_Bn55QoeZ.mjs → Truncate_C6bX3QmA.mjs} +0 -0
  360. /package/dist/docs/_worker.js/chunks/{Truncate_S939OotH.mjs → Truncate_DGi514H0.mjs} +0 -0
  361. /package/dist/docs/_worker.js/chunks/{Wizard_B28f3non.mjs → Wizard_BOkVt8H-.mjs} +0 -0
  362. /package/dist/docs/_worker.js/chunks/{Wizard_B4Dw5Yc8.mjs → Wizard_CEoZM0Yt.mjs} +0 -0
  363. /package/dist/docs/_worker.js/chunks/{Wizard_BOCBVIjJ.mjs → Wizard_CLZDzozE.mjs} +0 -0
  364. /package/dist/docs/_worker.js/chunks/{Wizard_C2sit354.mjs → Wizard_OGE-NwoN.mjs} +0 -0
  365. /package/dist/docs/_worker.js/chunks/{_astro_assets_Cpp4aFxG.mjs → _astro_assets_RFx5l3a7.mjs} +0 -0
  366. /package/dist/docs/_worker.js/chunks/{_astro_data-layer-content_D-EXtmSy.mjs → _astro_data-layer-content_BpG5DifN.mjs} +0 -0
  367. /package/dist/docs/_worker.js/chunks/{content-modules_CUXjIWnT.mjs → content-modules_CYtYtJTg.mjs} +0 -0
  368. /package/dist/docs/_worker.js/chunks/{sharp_C-KnEafm.mjs → sharp_DVa0kR-8.mjs} +0 -0
package/dist/cli/cli.js CHANGED
@@ -2,7 +2,7 @@
2
2
  /* eslint-disable no-console */
3
3
  import { Command } from 'commander';
4
4
  import { build, dev, preview, sync } from 'astro';
5
- import { join } from 'path';
5
+ import { join, resolve } from 'path';
6
6
  import { createCollectionContent } from './createCollectionContent.js';
7
7
  import { setFsRootDir } from './setFsRootDir.js';
8
8
  import { createConfigFile } from './createConfigFile.js';
@@ -12,29 +12,54 @@ import { symLinkConfig } from './symLinkConfig.js';
12
12
  import { buildPropsData } from './buildPropsData.js';
13
13
  import { hasFile } from './hasFile.js';
14
14
  import { convertToMDX } from './convertToMDX.js';
15
+ import { mkdir } from 'fs/promises';
16
+ const currentDir = process.cwd();
17
+ const config = await getConfig(`${currentDir}/pf-docs.config.mjs`);
18
+ if (!config) {
19
+ console.error('No config found, please run the `setup` command or manually create a pf-docs.config.mjs file');
20
+ process.exit(1);
21
+ }
22
+ let astroRoot = '';
23
+ try {
24
+ astroRoot = import.meta
25
+ .resolve('@patternfly/patternfly-doc-core')
26
+ .replace('dist/cli/cli.js', '')
27
+ .replace('file://', '');
28
+ }
29
+ catch (e) {
30
+ if (e.code === 'ERR_MODULE_NOT_FOUND') {
31
+ astroRoot = process.cwd();
32
+ }
33
+ else {
34
+ console.error('Error resolving astroRoot', e);
35
+ }
36
+ }
37
+ const absoluteOutputDir = resolve(currentDir, config.outputDir);
38
+ await mkdir(absoluteOutputDir, { recursive: true });
15
39
  async function updateContent(program) {
16
40
  const { verbose } = program.opts();
41
+ if (!config) {
42
+ console.error('No config found, please run the `setup` command or manually create a pf-docs.config.mjs file');
43
+ return config;
44
+ }
17
45
  if (verbose) {
18
46
  console.log('Verbose mode enabled');
19
47
  }
20
- await createCollectionContent(astroRoot, `${process.cwd()}/pf-docs.config.mjs`, verbose);
48
+ await createCollectionContent(astroRoot, `${currentDir}/pf-docs.config.mjs`, verbose);
21
49
  }
22
50
  async function generateProps(program, forceProps = false) {
23
51
  const { verbose, props } = program.opts();
52
+ const { repoRoot } = config;
53
+ const rootDir = repoRoot ? resolve(currentDir, repoRoot) : currentDir;
24
54
  if (!props && !forceProps) {
25
55
  return;
26
56
  }
27
57
  if (verbose) {
28
58
  console.log('Verbose mode enabled');
29
59
  }
30
- buildPropsData(currentDir, `${currentDir}/pf-docs.config.mjs`, verbose);
60
+ buildPropsData(rootDir, `${currentDir}/pf-docs.config.mjs`, verbose);
31
61
  }
32
62
  async function transformMDContentToMDX() {
33
- const config = await getConfig(`${currentDir}/pf-docs.config.mjs`);
34
- if (!config) {
35
- console.error('No config found, please run the `setup` command or manually create a pf-docs.config.mjs file');
36
- return config;
37
- }
38
63
  if (config.content) {
39
64
  await Promise.all(config.content.map((contentObj) => convertToMDX(contentObj.pattern)));
40
65
  }
@@ -42,7 +67,6 @@ async function transformMDContentToMDX() {
42
67
  async function buildProject() {
43
68
  await updateContent(program);
44
69
  await generateProps(program, true);
45
- const config = await getConfig(`${currentDir}/pf-docs.config.mjs`);
46
70
  if (!config) {
47
71
  console.error('No config found, please run the `setup` command or manually create a pf-docs.config.mjs file');
48
72
  return config;
@@ -54,7 +78,7 @@ async function buildProject() {
54
78
  await transformMDContentToMDX();
55
79
  build({
56
80
  root: astroRoot,
57
- outDir: join(currentDir, config.outputDir, 'docs'),
81
+ outDir: join(absoluteOutputDir, 'docs'),
58
82
  });
59
83
  return config;
60
84
  }
@@ -72,7 +96,7 @@ async function deploy() {
72
96
  }
73
97
  // Deploy using Wrangler
74
98
  const { execSync } = await import('child_process');
75
- const outputPath = join(currentDir, config.outputDir, 'docs');
99
+ const outputPath = join(absoluteOutputDir, 'docs');
76
100
  execSync(`npx wrangler pages deploy ${outputPath}`, {
77
101
  stdio: 'inherit',
78
102
  cwd: currentDir,
@@ -85,22 +109,6 @@ async function deploy() {
85
109
  process.exit(1);
86
110
  }
87
111
  }
88
- let astroRoot = '';
89
- try {
90
- astroRoot = import.meta
91
- .resolve('@patternfly/patternfly-doc-core')
92
- .replace('dist/cli/cli.js', '')
93
- .replace('file://', '');
94
- }
95
- catch (e) {
96
- if (e.code === 'ERR_MODULE_NOT_FOUND') {
97
- astroRoot = process.cwd();
98
- }
99
- else {
100
- console.error('Error resolving astroRoot', e);
101
- }
102
- }
103
- const currentDir = process.cwd();
104
112
  const program = new Command();
105
113
  program.name('pf-doc-core');
106
114
  program.option('--verbose', 'verbose mode', false);
@@ -121,7 +129,7 @@ program.command('start').action(async () => {
121
129
  await updateContent(program);
122
130
  // if a props file hasn't been generated yet, but the consumer has propsData, it will cause a runtime error so to
123
131
  // prevent that we're just creating a props file regardless of what they say if one doesn't exist yet
124
- const hasPropsFile = await hasFile(join(astroRoot, 'dist', 'props.json'));
132
+ const hasPropsFile = await hasFile(join(absoluteOutputDir, 'props.json'));
125
133
  await generateProps(program, !hasPropsFile);
126
134
  dev({ mode: 'development', root: astroRoot });
127
135
  });
@@ -1,27 +1,88 @@
1
1
  /* eslint-disable no-console */
2
2
  import { writeFile } from 'fs/promises';
3
- import { join } from 'path';
3
+ import { dirname, join, resolve } from 'path';
4
4
  import { getConfig } from './getConfig.js';
5
- export async function createCollectionContent(rootDir, configFile, verbose) {
6
- const config = await getConfig(configFile);
5
+ import { existsSync } from 'fs';
6
+ /**
7
+ * Looks for the specified package in the node_modules directory in the configDir, then recursively
8
+ * looks for the package in the parent directories until it is found, stopping if it is not found
9
+ * and the repoRootDir is reached.
10
+ */
11
+ const findPackage = (dir, packageName, repoRootDir, verbose) => {
12
+ const nodeModulesPath = join(dir, 'node_modules');
13
+ if (verbose) {
14
+ console.log('looking for package in ', nodeModulesPath, '\n');
15
+ }
16
+ const packagePath = join(nodeModulesPath, packageName);
17
+ const packageJsonPath = join(packagePath, 'package.json');
18
+ if (existsSync(packageJsonPath)) {
19
+ if (verbose) {
20
+ console.log('found package at ', packagePath, '\n');
21
+ }
22
+ return packagePath;
23
+ }
24
+ if (dir === repoRootDir) {
25
+ if (verbose) {
26
+ console.log('reached repoRootDir, stopping search');
27
+ }
28
+ return null;
29
+ }
30
+ const parentDir = dirname(dir);
31
+ return findPackage(parentDir, packageName, repoRootDir, verbose);
32
+ };
33
+ export async function createCollectionContent(astroRoot, configFileLocation, verbose) {
34
+ const verboseModeLog = (...messages) => {
35
+ if (verbose) {
36
+ console.log(...messages);
37
+ }
38
+ };
39
+ const config = await getConfig(configFileLocation);
7
40
  if (!config) {
41
+ console.error('No config found, please run the `setup` command or manually create a pf-docs.config.mjs file');
8
42
  return;
9
43
  }
10
- const { content } = config;
44
+ const { content, repoRoot } = config;
11
45
  if (!content) {
12
46
  console.error('No content found in config');
13
47
  return;
14
48
  }
15
- const contentFile = join(rootDir, 'src', 'content.ts');
49
+ verboseModeLog('configuration content entry: ', content, '\n');
50
+ const contentFile = join(astroRoot, 'src', 'content.ts');
51
+ verboseModeLog('Creating content file', contentFile, '\n');
52
+ const configDir = dirname(configFileLocation);
53
+ const repoRootDir = repoRoot ? resolve(configDir, repoRoot) : configDir;
54
+ verboseModeLog('repoRootDir: ', repoRootDir, '\n');
55
+ const contentWithAbsolutePaths = content.map((contentEntry) => {
56
+ if (contentEntry.base) {
57
+ const absoluteBase = resolve(configDir, contentEntry.base);
58
+ verboseModeLog('relative path: ', contentEntry.base);
59
+ verboseModeLog('absolute path: ', absoluteBase, '\n');
60
+ return {
61
+ ...contentEntry,
62
+ base: absoluteBase,
63
+ };
64
+ }
65
+ const { packageName } = contentEntry;
66
+ if (!packageName) {
67
+ verboseModeLog('no package name or base path found, skipping entry ', contentEntry.name, '\n');
68
+ return {
69
+ ...contentEntry,
70
+ base: null,
71
+ };
72
+ }
73
+ const packagePath = findPackage(configDir, packageName, repoRootDir, verbose);
74
+ return {
75
+ base: packagePath,
76
+ ...contentEntry,
77
+ };
78
+ });
16
79
  try {
17
- await writeFile(contentFile, `export const content = ${JSON.stringify(content)}`);
80
+ await writeFile(contentFile, `export const content = ${JSON.stringify(contentWithAbsolutePaths)}`);
18
81
  }
19
82
  catch (e) {
20
83
  console.error('Error writing content file', e);
21
84
  }
22
85
  finally {
23
- if (verbose) {
24
- console.log('Content file created');
25
- }
86
+ verboseModeLog('Content file created');
26
87
  }
27
88
  }
@@ -0,0 +1 @@
1
+ const y="data-astro-transition-persist",ee=["data-astro-transition","data-astro-transition-fallback"],M=new Set;function U(e){const t=e.src?new URL(e.src,location.href).href:e.textContent;return M.has(t)?!0:(M.add(t),!1)}function te(e){for(const t of e.scripts)!t.hasAttribute("data-astro-rerun")&&U(t)&&(t.dataset.astroExec="")}function ne(e){const t=document.documentElement,n=[...t.attributes].filter(({name:o})=>(t.removeAttribute(o),ee.includes(o)));[...e.documentElement.attributes,...n].forEach(({name:o,value:r})=>t.setAttribute(o,r))}function oe(e){for(const t of Array.from(document.head.children)){const n=se(t,e);n?n.remove():t.remove()}document.head.append(...e.head.children)}function re(e,t){t.replaceWith(e);for(const n of t.querySelectorAll(`[${y}]`)){const o=n.getAttribute(y),r=e.querySelector(`[${y}="${o}"]`);r&&(r.replaceWith(n),r.localName==="astro-island"&&ae(n)&&!ce(n,r)&&(n.setAttribute("ssr",""),n.setAttribute("props",r.getAttribute("props"))))}}const ie=()=>{const e=document.activeElement;if(e?.closest(`[${y}]`)){if(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement){const t=e.selectionStart,n=e.selectionEnd;return()=>k({activeElement:e,start:t,end:n})}return()=>k({activeElement:e})}else return()=>k({activeElement:null})},k=({activeElement:e,start:t,end:n})=>{e&&(e.focus(),(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)&&(typeof t=="number"&&(e.selectionStart=t),typeof n=="number"&&(e.selectionEnd=n)))},se=(e,t)=>{const n=e.getAttribute(y),o=n&&t.head.querySelector(`[${y}="${n}"]`);if(o)return o;if(e.matches("link[rel=stylesheet]")){const r=e.getAttribute("href");return t.head.querySelector(`link[rel=stylesheet][href="${r}"]`)}return null},ae=e=>{const t=e.dataset.astroTransitionPersistProps;return t==null||t==="false"},ce=(e,t)=>e.getAttribute("props")===t.getAttribute("props"),le=e=>{te(e),ne(e),oe(e);const t=ie();re(e.body,document.body),t()},ue="astro:before-preparation",fe="astro:after-preparation",de="astro:before-swap",me="astro:after-swap",he=e=>document.dispatchEvent(new Event(e));class q extends Event{from;to;direction;navigationType;sourceElement;info;newDocument;signal;constructor(t,n,o,r,i,u,a,c,f,l){super(t,n),this.from=o,this.to=r,this.direction=i,this.navigationType=u,this.sourceElement=a,this.info=c,this.newDocument=f,this.signal=l,Object.defineProperties(this,{from:{enumerable:!0},to:{enumerable:!0,writable:!0},direction:{enumerable:!0,writable:!0},navigationType:{enumerable:!0},sourceElement:{enumerable:!0},info:{enumerable:!0},newDocument:{enumerable:!0,writable:!0},signal:{enumerable:!0}})}}class pe extends q{formData;loader;constructor(t,n,o,r,i,u,a,c,f,l){super(ue,{cancelable:!0},t,n,o,r,i,u,a,c),this.formData=f,this.loader=l.bind(this,this),Object.defineProperties(this,{formData:{enumerable:!0},loader:{enumerable:!0,writable:!0}})}}class we extends q{direction;viewTransition;swap;constructor(t,n){super(de,void 0,t.from,t.to,t.direction,t.navigationType,t.sourceElement,t.info,t.newDocument,t.signal),this.direction=t.direction,this.viewTransition=n,this.swap=()=>le(this.newDocument),Object.defineProperties(this,{direction:{enumerable:!0},viewTransition:{enumerable:!0},swap:{enumerable:!0,writable:!0}})}}async function ge(e,t,n,o,r,i,u,a,c){const f=new pe(e,t,n,o,r,i,window.document,u,a,c);return document.dispatchEvent(f)&&(await f.loader(),f.defaultPrevented||(he(fe),f.navigationType!=="traverse"&&x({scrollX,scrollY}))),f}async function ye(e,t,n){const o=new we(e,t);return document.dispatchEvent(o),n&&await n(),o.swap(),o}const be=history.pushState.bind(history),E=history.replaceState.bind(history),x=e=>{history.state&&(history.scrollRestoration="manual",E({...history.state,...e},""))},I=!!document.startViewTransition,N=()=>!!document.querySelector('[name="astro-view-transitions-enabled"]'),W=(e,t)=>e.pathname===t.pathname&&e.search===t.search;let m,g,R;const V=e=>document.dispatchEvent(new Event(e)),j=()=>V("astro:page-load"),ve=()=>{let e=document.createElement("div");e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),e.className="astro-route-announcer",document.body.append(e),setTimeout(()=>{let t=document.title||document.querySelector("h1")?.textContent||location.pathname;e.textContent=t},60)},H="data-astro-transition-persist",F="data-astro-transition",P="data-astro-transition-fallback";let C,v=0;history.state?(v=history.state.index,scrollTo({left:history.state.scrollX,top:history.state.scrollY})):N()&&(E({index:v,scrollX,scrollY},""),history.scrollRestoration="manual");async function Te(e,t){try{const n=await fetch(e,t),r=(n.headers.get("content-type")??"").split(";",1)[0].trim();return r!=="text/html"&&r!=="application/xhtml+xml"?null:{html:await n.text(),redirected:n.redirected?n.url:void 0,mediaType:r}}catch{return null}}function K(){const e=document.querySelector('[name="astro-view-transitions-fallback"]');return e?e.getAttribute("content"):"animate"}function Ae(){let e=Promise.resolve(),t=!1;for(const n of document.getElementsByTagName("script"))n.dataset.astroExec===void 0&&n.getAttribute("type")==="module"&&(t=n.getAttribute("src")===null);t&&document.body.insertAdjacentHTML("beforeend",'<script type="module" src="data:application/javascript,"/>');for(const n of document.getElementsByTagName("script")){if(n.dataset.astroExec==="")continue;const o=n.getAttribute("type");if(o&&o!=="module"&&o!=="text/javascript")continue;const r=document.createElement("script");r.innerHTML=n.innerHTML;for(const i of n.attributes){if(i.name==="src"){const u=new Promise(a=>{r.onload=r.onerror=a});e=e.then(()=>u)}r.setAttribute(i.name,i.value)}r.dataset.astroExec="",n.replaceWith(r)}return e}const G=(e,t,n,o,r)=>{const i=W(t,e),u=document.title;document.title=o;let a=!1;if(e.href!==location.href&&!r)if(n.history==="replace"){const c=history.state;E({...n.state,index:c.index,scrollX:c.scrollX,scrollY:c.scrollY},"",e.href)}else be({...n.state,index:++v,scrollX:0,scrollY:0},"",e.href);if(document.title=u,R=e,i||(scrollTo({left:0,top:0,behavior:"instant"}),a=!0),r)scrollTo(r.scrollX,r.scrollY);else{if(e.hash){history.scrollRestoration="auto";const c=history.state;location.href=e.href,history.state||(E(c,""),i&&window.dispatchEvent(new PopStateEvent("popstate")))}else a||scrollTo({left:0,top:0,behavior:"instant"});history.scrollRestoration="manual"}};function Ee(e){const t=[];for(const n of e.querySelectorAll("head link[rel=stylesheet]"))if(!document.querySelector(`[${H}="${n.getAttribute(H)}"], link[rel=stylesheet][href="${n.getAttribute("href")}"]`)){const o=document.createElement("link");o.setAttribute("rel","preload"),o.setAttribute("as","style"),o.setAttribute("href",n.getAttribute("href")),t.push(new Promise(r=>{["load","error"].forEach(i=>o.addEventListener(i,r)),document.head.append(o)}))}return t}async function _(e,t,n,o,r){async function i(f){function l(d){const p=d.effect;return!p||!(p instanceof KeyframeEffect)||!p.target?!1:window.getComputedStyle(p.target,p.pseudoElement).animationIterationCount==="infinite"}const s=document.getAnimations();document.documentElement.setAttribute(P,f);const b=document.getAnimations().filter(d=>!s.includes(d)&&!l(d));return Promise.allSettled(b.map(d=>d.finished))}const u=async()=>{if(r==="animate"&&!n.transitionSkipped&&!e.signal.aborted)try{await i("old")}catch{}},a=document.title,c=await ye(e,n.viewTransition,u);G(c.to,c.from,t,a,o),V(me),r==="animate"&&(!n.transitionSkipped&&!c.signal.aborted?i("new").finally(()=>n.viewTransitionFinished()):n.viewTransitionFinished())}function Se(){return m?.controller.abort(),m={controller:new AbortController}}async function z(e,t,n,o,r){const i=Se();if(!N()||location.origin!==n.origin){i===m&&(m=void 0),location.href=n.href;return}const u=r?"traverse":o.history==="replace"?"replace":"push";if(u!=="traverse"&&x({scrollX,scrollY}),W(t,n)&&!o.formData&&(e!=="back"&&n.hash||e==="back"&&t.hash)){G(n,t,o,document.title,r),i===m&&(m=void 0);return}const a=await ge(t,n,e,u,o.sourceElement,o.info,i.controller.signal,o.formData,c);if(a.defaultPrevented||a.signal.aborted){i===m&&(m=void 0),a.signal.aborted||(location.href=n.href);return}async function c(s){const h=s.to.href,b={signal:s.signal};if(s.formData){b.method="POST";const w=s.sourceElement instanceof HTMLFormElement?s.sourceElement:s.sourceElement instanceof HTMLElement&&"form"in s.sourceElement?s.sourceElement.form:s.sourceElement?.closest("form");b.body=t!==void 0&&Reflect.get(HTMLFormElement.prototype,"attributes",w).getNamedItem("enctype")?.value==="application/x-www-form-urlencoded"?new URLSearchParams(s.formData):s.formData}const d=await Te(h,b);if(d===null){s.preventDefault();return}if(d.redirected){const w=new URL(d.redirected);if(w.origin!==s.to.origin){s.preventDefault();return}s.to=w}if(C??=new DOMParser,s.newDocument=C.parseFromString(d.html,d.mediaType),s.newDocument.querySelectorAll("noscript").forEach(w=>w.remove()),!s.newDocument.querySelector('[name="astro-view-transitions-enabled"]')&&!s.formData){s.preventDefault();return}const p=Ee(s.newDocument);p.length&&!s.signal.aborted&&await Promise.all(p)}async function f(){if(g&&g.viewTransition){try{g.viewTransition.skipTransition()}catch{}try{await g.viewTransition.updateCallbackDone}catch{}}return g={transitionSkipped:!1}}const l=await f();if(a.signal.aborted){i===m&&(m=void 0);return}if(document.documentElement.setAttribute(F,a.direction),I)l.viewTransition=document.startViewTransition(async()=>await _(a,o,l,r));else{const s=(async()=>{await Promise.resolve(),await _(a,o,l,r,K())})();l.viewTransition={updateCallbackDone:s,ready:s,finished:new Promise(h=>l.viewTransitionFinished=h),skipTransition:()=>{l.transitionSkipped=!0,document.documentElement.removeAttribute(P)},types:new Set}}l.viewTransition?.updateCallbackDone.finally(async()=>{await Ae(),j(),ve()}),l.viewTransition?.finished.finally(()=>{l.viewTransition=void 0,l===g&&(g=void 0),i===m&&(m=void 0),document.documentElement.removeAttribute(F),document.documentElement.removeAttribute(P)});try{await l.viewTransition?.updateCallbackDone}catch(s){const h=s;console.log("[astro]",h.name,h.message,h.stack)}}async function X(e,t){await z("forward",R,new URL(e,location.href),t??{})}function Re(e){if(!N()&&e.state){location.reload();return}if(e.state===null)return;const t=history.state,n=t.index,o=n>v?"forward":"back";v=n,z(o,R,new URL(location.href),{},t)}const Y=()=>{history.state&&(scrollX!==history.state.scrollX||scrollY!==history.state.scrollY)&&x({scrollX,scrollY})};{if(I||K()!=="none")if(R=new URL(location.href),addEventListener("popstate",Re),addEventListener("load",j),"onscrollend"in window)addEventListener("scrollend",Y);else{let e,t,n,o;const r=()=>{if(o!==history.state?.index){clearInterval(e),e=void 0;return}if(t===scrollY&&n===scrollX){clearInterval(e),e=void 0,Y();return}else t=scrollY,n=scrollX};addEventListener("scroll",()=>{e===void 0&&(o=history.state?.index,t=scrollY,n=scrollX,e=window.setInterval(r,50))},{passive:!0})}for(const e of document.getElementsByTagName("script"))U(e),e.dataset.astroExec=""}const J=new Set,S=new WeakSet;let D,Q,B=!1;function Le(e){B||(B=!0,D??=e?.prefetchAll,Q??=e?.defaultStrategy??"hover",ke(),Pe(),De(),Ie())}function ke(){for(const e of["touchstart","mousedown"])document.body.addEventListener(e,t=>{T(t.target,"tap")&&L(t.target.href,{ignoreSlowConnection:!0})},{passive:!0})}function Pe(){let e;document.body.addEventListener("focusin",o=>{T(o.target,"hover")&&t(o)},{passive:!0}),document.body.addEventListener("focusout",n,{passive:!0}),O(()=>{for(const o of document.getElementsByTagName("a"))S.has(o)||T(o,"hover")&&(S.add(o),o.addEventListener("mouseenter",t,{passive:!0}),o.addEventListener("mouseleave",n,{passive:!0}))});function t(o){const r=o.target.href;e&&clearTimeout(e),e=setTimeout(()=>{L(r)},80)}function n(){e&&(clearTimeout(e),e=0)}}function De(){let e;O(()=>{for(const t of document.getElementsByTagName("a"))S.has(t)||T(t,"viewport")&&(S.add(t),e??=xe(),e.observe(t))})}function xe(){const e=new WeakMap;return new IntersectionObserver((t,n)=>{for(const o of t){const r=o.target,i=e.get(r);o.isIntersecting?(i&&clearTimeout(i),e.set(r,setTimeout(()=>{n.unobserve(r),e.delete(r),L(r.href)},300))):i&&(clearTimeout(i),e.delete(r))}})}function Ie(){O(()=>{for(const e of document.getElementsByTagName("a"))T(e,"load")&&L(e.href)})}function L(e,t){e=e.replace(/#.*/,"");const n=t?.ignoreSlowConnection??!1;if(Ne(e,n))if(J.add(e),document.createElement("link").relList?.supports?.("prefetch")&&t?.with!=="fetch"){const o=document.createElement("link");o.rel="prefetch",o.setAttribute("href",e),document.head.append(o)}else fetch(e,{priority:"low"})}function Ne(e,t){if(!navigator.onLine||!t&&Z())return!1;try{const n=new URL(e,location.href);return location.origin===n.origin&&(location.pathname!==n.pathname||location.search!==n.search)&&!J.has(e)}catch{}return!1}function T(e,t){if(e?.tagName!=="A")return!1;const n=e.dataset.astroPrefetch;return n==="false"?!1:t==="tap"&&(n!=null||D)&&Z()?!0:n==null&&D||n===""?t===Q:n===t}function Z(){if("connection"in navigator){const e=navigator.connection;return e.saveData||/2g/.test(e.effectiveType)}return!1}function O(e){e();let t=!1;document.addEventListener("astro:page-load",()=>{if(!t){t=!0;return}e()})}let A=null;function Oe(){const e=document.querySelector('[name="astro-view-transitions-fallback"]');return e?e.getAttribute("content"):"animate"}function $(e){return e.dataset.astroReload!==void 0}const Me=e=>e.button&&e.button!==0||e.metaKey||e.ctrlKey||e.altKey||e.shiftKey;(I||Oe()!=="none")&&(document.addEventListener("click",e=>{let t=e.target;if(A=Me(e)?t:null,e.composed&&(t=e.composedPath()[0]),t instanceof Element&&(t=t.closest("a, area")),!(t instanceof HTMLAnchorElement)&&!(t instanceof SVGAElement)&&!(t instanceof HTMLAreaElement))return;const n=t instanceof HTMLElement?t.target:t.target.baseVal,o=t instanceof HTMLElement?t.href:t.href.baseVal,r=new URL(o,location.href).origin;$(t)||t.hasAttribute("download")||!t.href||n&&n!=="_self"||r!==location.origin||A||e.defaultPrevented||(e.preventDefault(),X(o,{history:t.dataset.astroHistory==="replace"?"replace":"auto",sourceElement:t}))}),document.addEventListener("submit",e=>{let t=e.target;const n=e.submitter,o=n&&n===A;if(A=null,t.tagName!=="FORM"||e.defaultPrevented||$(t)||o)return;const r=t,i=new FormData(r,n),u=typeof r.action=="string"?r.action:r.getAttribute("action"),a=typeof r.method=="string"?r.method:r.getAttribute("method");let c=n?.getAttribute("formaction")??u??location.pathname;const f=n?.getAttribute("formmethod")??a??"get";if(f==="dialog"||location.origin!==new URL(c,location.href).origin)return;const l={sourceElement:n??r};if(f==="get"){const s=new URLSearchParams(i),h=new URL(c);h.search=s.toString(),c=h.toString()}else l.formData=i;e.preventDefault(),X(c,l)}),Le({prefetchAll:!0}));
@@ -1,2 +1,2 @@
1
1
  globalThis.process ??= {}; globalThis.process.env ??= {};
2
- export { c as createExports } from './chunks/_@astrojs-ssr-adapter_B_x81DBq.mjs';
2
+ export { c as createExports } from './chunks/_@astrojs-ssr-adapter_u4VQ4c24.mjs';
@@ -1,7 +1,7 @@
1
1
  globalThis.process ??= {}; globalThis.process.env ??= {};
2
- import './chunks/astro-designed-error-pages_CXRddWNa.mjs';
3
- import './chunks/astro/server_CVEnF9i1.mjs';
4
- import { s as sequence } from './chunks/index_CYXMeXT4.mjs';
2
+ import './chunks/astro-designed-error-pages_Cre3i65F.mjs';
3
+ import './chunks/astro/server_DXtGNXGl.mjs';
4
+ import { s as sequence } from './chunks/index_DkNBuRXQ.mjs';
5
5
 
6
6
  const onRequest$1 = (context, next) => {
7
7
  if (context.isPrerendered) {
@@ -1,5 +1,5 @@
1
1
  globalThis.process ??= {}; globalThis.process.env ??= {};
2
- import { p as getDefaultExportFromCjs, q as renderJSX, s as createVNode, t as AstroJSX, v as AstroUserError } from './astro/server_CVEnF9i1.mjs';
2
+ import { w as getDefaultExportFromCjs, x as renderJSX, y as createVNode, z as AstroJSX, B as AstroUserError } from './astro/server_DXtGNXGl.mjs';
3
3
 
4
4
  var react = {exports: {}};
5
5
 
@@ -1,9 +1,9 @@
1
1
  globalThis.process ??= {}; globalThis.process.env ??= {};
2
- import { f as fileExtension, j as joinPaths, s as slash, p as prependForwardSlash, a as removeTrailingForwardSlash, b as appendForwardSlash, c as collapseDuplicateTrailingSlashes, h as hasFileExtension } from './path_C-ZOwaTP.mjs';
3
- import { r as requestIs404Or500, i as isRequestServerIsland, n as notFound, a as redirectToFallback, b as redirectToDefaultLocale, c as requestHasLocale, d as normalizeTheLocale, e as defineMiddleware, S as SERVER_ISLAND_COMPONENT, f as SERVER_ISLAND_ROUTE, g as createEndpoint, R as RouteCache, s as sequence, h as findRouteToRewrite, m as matchRoute, j as RenderContext, P as PERSIST_SYMBOL, k as getSetCookiesFromResponse } from './index_CYXMeXT4.mjs';
4
- import { w as ROUTE_TYPE_HEADER, x as REROUTE_DIRECTIVE_HEADER, D as DEFAULT_404_COMPONENT, A as AstroError, y as ActionNotFoundError, z as bold, B as red, C as yellow, E as dim, G as blue, H as clientAddressSymbol, L as LocalsNotAnObject, I as REROUTABLE_STATUS_CODES, J as responseSentSymbol } from './astro/server_CVEnF9i1.mjs';
5
- import { D as DEFAULT_404_ROUTE, d as default404Instance, e as ensure404Route } from './astro-designed-error-pages_CXRddWNa.mjs';
6
- import { N as NOOP_MIDDLEWARE_FN } from './noop-middleware_DIXVCvyq.mjs';
2
+ import { f as fileExtension, j as joinPaths, s as slash, p as prependForwardSlash, a as removeTrailingForwardSlash, b as appendForwardSlash, c as isInternalPath, d as collapseDuplicateTrailingSlashes, h as hasFileExtension } from './path_u5O9njcM.mjs';
3
+ import { r as requestIs404Or500, i as isRequestServerIsland, n as notFound, a as redirectToFallback, b as redirectToDefaultLocale, c as requestHasLocale, d as normalizeTheLocale, e as defineMiddleware, S as SERVER_ISLAND_COMPONENT, f as SERVER_ISLAND_ROUTE, g as createEndpoint, R as RouteCache, s as sequence, h as findRouteToRewrite, m as matchRoute, j as RenderContext, P as PERSIST_SYMBOL, k as getSetCookiesFromResponse } from './index_DkNBuRXQ.mjs';
4
+ import { C as ROUTE_TYPE_HEADER, D as REROUTE_DIRECTIVE_HEADER, E as DEFAULT_404_COMPONENT, A as AstroError, G as ActionNotFoundError, H as bold, I as red, J as yellow, K as dim, L as blue, M as clientAddressSymbol, N as LocalsNotAnObject, O as REROUTABLE_STATUS_CODES, P as responseSentSymbol } from './astro/server_DXtGNXGl.mjs';
5
+ import { D as DEFAULT_404_ROUTE, d as default404Instance, e as ensure404Route } from './astro-designed-error-pages_Cre3i65F.mjs';
6
+ import { N as NOOP_MIDDLEWARE_FN } from './noop-middleware_D7Bh5dKA.mjs';
7
7
  import 'cloudflare:workers';
8
8
 
9
9
  function createI18nMiddleware(i18n, base, trailingSlash, format) {
@@ -414,7 +414,7 @@ const consoleLogDestination = {
414
414
  write(event) {
415
415
  let dest = console.error;
416
416
  if (levels[event.level] < levels["error"]) {
417
- dest = console.log;
417
+ dest = console.info;
418
418
  }
419
419
  if (event.label === "SKIP_FORMAT") {
420
420
  dest(event.message);
@@ -567,7 +567,7 @@ class AppPipeline extends Pipeline {
567
567
  trailingSlash: this.manifest.trailingSlash,
568
568
  buildFormat: this.manifest.buildFormat,
569
569
  base: this.manifest.base,
570
- outDir: this.manifest.outDir
570
+ outDir: this.serverLike ? this.manifest.buildClientDir : this.manifest.outDir
571
571
  });
572
572
  const componentInstance = await this.getComponentByRoute(routeData);
573
573
  return { newUrl, pathname, componentInstance, routeData };
@@ -682,7 +682,15 @@ class App {
682
682
  return pathname;
683
683
  }
684
684
  }
685
- match(request) {
685
+ /**
686
+ * Given a `Request`, it returns the `RouteData` that matches its `pathname`. By default, prerendered
687
+ * routes aren't returned, even if they are matched.
688
+ *
689
+ * When `allowPrerenderedRoutes` is `true`, the function returns matched prerendered routes too.
690
+ * @param request
691
+ * @param allowPrerenderedRoutes
692
+ */
693
+ match(request, allowPrerenderedRoutes = false) {
686
694
  const url = new URL(request.url);
687
695
  if (this.#manifest.assets.has(url.pathname)) return void 0;
688
696
  let pathname = this.#computePathnameFromDomain(request);
@@ -690,7 +698,12 @@ class App {
690
698
  pathname = prependForwardSlash(this.removeBase(url.pathname));
691
699
  }
692
700
  let routeData = matchRoute(decodeURI(pathname), this.#manifestData);
693
- if (!routeData || routeData.prerender) return void 0;
701
+ if (!routeData) return void 0;
702
+ if (allowPrerenderedRoutes) {
703
+ return routeData;
704
+ } else if (routeData.prerender) {
705
+ return void 0;
706
+ }
694
707
  return routeData;
695
708
  }
696
709
  #computePathnameFromDomain(request) {
@@ -742,7 +755,7 @@ class App {
742
755
  }
743
756
  #redirectTrailingSlash(pathname) {
744
757
  const { trailingSlash } = this.#manifest;
745
- if (pathname === "/" || pathname.startsWith("/_")) {
758
+ if (pathname === "/" || isInternalPath(pathname)) {
746
759
  return pathname;
747
760
  }
748
761
  const path = collapseDuplicateTrailingSlashes(pathname, trailingSlash !== "never");
@@ -1035,11 +1048,6 @@ async function handle(manifest, app, request, env, context) {
1035
1048
  }
1036
1049
  }
1037
1050
  Reflect.set(request, Symbol.for("astro.clientAddress"), request.headers.get("cf-connecting-ip"));
1038
- process.env.ASTRO_STUDIO_APP_TOKEN ??= (() => {
1039
- if (typeof env.ASTRO_STUDIO_APP_TOKEN === "string") {
1040
- return env.ASTRO_STUDIO_APP_TOKEN;
1041
- }
1042
- })();
1043
1051
  const locals = {
1044
1052
  runtime: {
1045
1053
  env,