@patternfly/patternfly-doc-core 1.13.1 → 1.13.3
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.
- package/.astro/content-modules.mjs +22 -22
- package/.astro/content.d.ts +43 -0
- package/cli/tsDocGen.js +33 -7
- package/dist/cli/tsDocGen.js +26 -6
- package/dist/cli/tsconfig.tsbuildinfo +1 -1
- package/dist/docs/_astro/ClientRouter.astro_astro_type_script_index_0_lang.DZnDNxNb.js +1 -0
- package/dist/docs/_astro/{LiveExample.B5R4Dzng.js → LiveExample.C43dqXje.js} +1 -1
- package/dist/docs/_astro/Navigation.x46lNg3Y.js +1 -0
- package/dist/docs/_astro/{SectionGallery.B0I2mi5J.js → SectionGallery.C8gQa3w3.js} +1 -1
- package/dist/docs/_astro/index.DF2PWfYV.js +16 -0
- package/dist/docs/_worker.js/_@astrojs-ssr-adapter.mjs +1 -1
- package/dist/docs/_worker.js/_astro-internal_middleware.mjs +3 -3
- package/dist/docs/_worker.js/chunks/{_@astro-renderers_D4IG6Oyo.mjs → _@astro-renderers_DuN_RQCZ.mjs} +1 -1
- package/dist/docs/_worker.js/chunks/{_@astrojs-ssr-adapter_B_x81DBq.mjs → _@astrojs-ssr-adapter_BOXzLyxA.mjs} +23 -15
- package/dist/docs/_worker.js/chunks/_astro_assets_COD8WDsm.mjs +1959 -0
- package/dist/docs/_worker.js/chunks/astro/{server_CVEnF9i1.mjs → server_DJAlTAUe.mjs} +126 -72
- package/dist/docs/_worker.js/chunks/{astro-designed-error-pages_CXRddWNa.mjs → astro-designed-error-pages_RucpOaTo.mjs} +52 -22
- package/dist/docs/_worker.js/chunks/consts_47CwkweC.mjs +33 -0
- package/dist/docs/_worker.js/chunks/{index_CYXMeXT4.mjs → index_CzaW3DU8.mjs} +194 -151
- package/dist/docs/_worker.js/chunks/{noop-middleware_DIXVCvyq.mjs → noop-middleware_BUlUjpRM.mjs} +1 -1
- package/dist/docs/_worker.js/chunks/{parse_EttCPxrw.mjs → parse_yL_293SP.mjs} +61 -26
- package/dist/docs/_worker.js/chunks/{path_C-ZOwaTP.mjs → path_u5O9njcM.mjs} +8 -2
- package/dist/docs/_worker.js/chunks/sharp_DdDF6upK.mjs +99 -0
- package/dist/docs/_worker.js/index.js +4 -4
- package/dist/docs/_worker.js/manifest_Cz7n9zdK.mjs +100 -0
- package/dist/docs/_worker.js/pages/_image.astro.mjs +10 -1
- package/dist/docs/_worker.js/pages/props.astro.mjs +1 -1
- package/dist/docs/_worker.js/renderers.mjs +1 -1
- package/dist/docs/components/about-modal/index.html +5 -5
- package/dist/docs/components/about-modal/react/index.html +5 -5
- package/dist/docs/components/accordion/index.html +7 -7
- package/dist/docs/components/accordion/react/index.html +7 -7
- package/dist/docs/components/action-list/index.html +13 -13
- package/dist/docs/components/action-list/react/index.html +13 -13
- package/dist/docs/components/alert/index.html +99 -99
- package/dist/docs/components/alert/react/index.html +99 -99
- package/dist/docs/components/avatar/index.html +5 -5
- package/dist/docs/components/avatar/react/index.html +5 -5
- package/dist/docs/components/back-to-top/index.html +3 -3
- package/dist/docs/components/back-to-top/react/index.html +3 -3
- package/dist/docs/components/backdrop/index.html +7 -7
- package/dist/docs/components/backdrop/react/index.html +7 -7
- package/dist/docs/components/background-image/index.html +7 -7
- package/dist/docs/components/background-image/react/index.html +7 -7
- package/dist/docs/components/badge/index.html +11 -11
- package/dist/docs/components/badge/react/index.html +11 -11
- package/dist/docs/components/banner/index.html +13 -13
- package/dist/docs/components/banner/react/index.html +13 -13
- package/dist/docs/components/brand/index.html +4 -4
- package/dist/docs/components/brand/react/index.html +4 -4
- package/dist/docs/components/breadcrumb/index.html +13 -13
- package/dist/docs/components/breadcrumb/react/index.html +13 -13
- package/dist/docs/components/button/index.html +15 -15
- package/dist/docs/components/button/react/index.html +15 -15
- package/dist/docs/components/calendar-month/index.html +11 -11
- package/dist/docs/components/calendar-month/react/index.html +11 -11
- package/dist/docs/components/card/index.html +20 -20
- package/dist/docs/components/card/react/index.html +20 -20
- package/dist/docs/components/checkbox/index.html +23 -23
- package/dist/docs/components/checkbox/react/index.html +23 -23
- package/dist/docs/components/chip/index.html +6 -6
- package/dist/docs/components/chip/react-deprecated/index.html +6 -6
- package/dist/docs/components/clipboard-copy/index.html +30 -30
- package/dist/docs/components/clipboard-copy/react/index.html +30 -30
- package/dist/docs/components/code-block/index.html +11 -11
- package/dist/docs/components/code-block/react/index.html +11 -11
- package/dist/docs/components/content/index.html +11 -11
- package/dist/docs/components/content/react/index.html +11 -11
- package/dist/docs/components/data-list/index.html +34 -34
- package/dist/docs/components/data-list/react/index.html +34 -34
- package/dist/docs/components/date-picker/index.html +11 -11
- package/dist/docs/components/date-picker/react/index.html +11 -11
- package/dist/docs/components/description-list/index.html +63 -63
- package/dist/docs/components/description-list/react/index.html +63 -63
- package/dist/docs/components/divider/index.html +20 -20
- package/dist/docs/components/divider/react/index.html +20 -20
- package/dist/docs/components/drag-and-drop/index.html +4 -4
- package/dist/docs/components/drag-and-drop/react-deprecated/index.html +4 -4
- package/dist/docs/components/drawer/index.html +47 -47
- package/dist/docs/components/drawer/react/index.html +47 -47
- package/dist/docs/components/dropdown/index.html +24 -24
- package/dist/docs/components/dropdown/react/index.html +24 -24
- package/dist/docs/components/dual-list-selector/index.html +26 -26
- package/dist/docs/components/dual-list-selector/react/index.html +23 -23
- package/dist/docs/components/dual-list-selector/react-deprecated/index.html +35 -35
- package/dist/docs/components/empty-state/index.html +18 -18
- package/dist/docs/components/empty-state/react/index.html +18 -18
- package/dist/docs/components/expandable-section/index.html +23 -23
- package/dist/docs/components/expandable-section/react/index.html +23 -23
- package/dist/docs/components/form/index.html +29 -29
- package/dist/docs/components/form/react/index.html +29 -29
- package/dist/docs/components/form-select/index.html +10 -10
- package/dist/docs/components/form-select/react/index.html +10 -10
- package/dist/docs/components/helper-text/index.html +12 -12
- package/dist/docs/components/helper-text/react/index.html +12 -12
- package/dist/docs/components/hint/index.html +11 -11
- package/dist/docs/components/hint/react/index.html +11 -11
- package/dist/docs/components/icon/index.html +26 -26
- package/dist/docs/components/icon/react/index.html +26 -26
- package/dist/docs/components/input-group/index.html +13 -13
- package/dist/docs/components/input-group/react/index.html +13 -13
- package/dist/docs/components/jump-links/index.html +15 -15
- package/dist/docs/components/jump-links/react/index.html +15 -15
- package/dist/docs/components/label/index.html +41 -41
- package/dist/docs/components/label/react/index.html +41 -41
- package/dist/docs/components/list/index.html +19 -19
- package/dist/docs/components/list/react/index.html +19 -19
- package/dist/docs/components/login-page/index.html +14 -14
- package/dist/docs/components/login-page/react/index.html +14 -14
- package/dist/docs/components/masthead/index.html +26 -26
- package/dist/docs/components/masthead/react/index.html +26 -26
- package/dist/docs/components/menu/index.html +107 -107
- package/dist/docs/components/menu/react/index.html +107 -107
- package/dist/docs/components/menu-toggle/index.html +74 -74
- package/dist/docs/components/menu-toggle/react/index.html +74 -74
- package/dist/docs/components/modal/index.html +56 -56
- package/dist/docs/components/modal/react/index.html +56 -56
- package/dist/docs/components/modal/react-deprecated/index.html +58 -58
- package/dist/docs/components/multiple-file-upload/index.html +31 -31
- package/dist/docs/components/multiple-file-upload/react/index.html +31 -31
- package/dist/docs/components/navigation/index.html +29 -29
- package/dist/docs/components/navigation/react/index.html +29 -29
- package/dist/docs/components/notification-badge/index.html +19 -19
- package/dist/docs/components/notification-badge/react/index.html +19 -19
- package/dist/docs/components/notification-drawer/index.html +8 -8
- package/dist/docs/components/notification-drawer/react/index.html +8 -8
- package/dist/docs/components/number-input/index.html +19 -19
- package/dist/docs/components/number-input/react/index.html +19 -19
- package/dist/docs/components/overflow-menu/index.html +14 -14
- package/dist/docs/components/overflow-menu/react/index.html +14 -14
- package/dist/docs/components/page/index.html +59 -59
- package/dist/docs/components/page/react/index.html +59 -59
- package/dist/docs/components/pagination/index.html +26 -26
- package/dist/docs/components/pagination/react/index.html +26 -26
- package/dist/docs/components/panel/index.html +26 -26
- package/dist/docs/components/panel/react/index.html +26 -26
- package/dist/docs/components/popover/index.html +32 -32
- package/dist/docs/components/popover/react/index.html +32 -32
- package/dist/docs/components/progress/index.html +38 -38
- package/dist/docs/components/progress/react/index.html +38 -38
- package/dist/docs/components/progress-stepper/index.html +21 -21
- package/dist/docs/components/progress-stepper/react/index.html +21 -21
- package/dist/docs/components/radio/index.html +21 -21
- package/dist/docs/components/radio/react/index.html +21 -21
- package/dist/docs/components/search-input/index.html +21 -21
- package/dist/docs/components/search-input/react/index.html +21 -21
- package/dist/docs/components/select/index.html +71 -71
- package/dist/docs/components/select/react/index.html +71 -71
- package/dist/docs/components/sidebar/index.html +26 -26
- package/dist/docs/components/sidebar/react/index.html +26 -26
- package/dist/docs/components/simple-file-upload/index.html +37 -37
- package/dist/docs/components/simple-file-upload/react/index.html +37 -37
- package/dist/docs/components/simple-list/index.html +10 -10
- package/dist/docs/components/simple-list/react/index.html +10 -10
- package/dist/docs/components/skeleton/index.html +15 -15
- package/dist/docs/components/skeleton/react/index.html +15 -15
- package/dist/docs/components/skip-to-content/index.html +4 -4
- package/dist/docs/components/skip-to-content/react/index.html +4 -4
- package/dist/docs/components/slider/index.html +26 -26
- package/dist/docs/components/slider/react/index.html +26 -26
- package/dist/docs/components/spinner/index.html +13 -13
- package/dist/docs/components/spinner/react/index.html +13 -13
- package/dist/docs/components/switch/index.html +18 -18
- package/dist/docs/components/switch/react/index.html +18 -18
- package/dist/docs/components/tabs/index.html +124 -124
- package/dist/docs/components/tabs/react/index.html +124 -124
- package/dist/docs/components/text-area/index.html +25 -25
- package/dist/docs/components/text-area/react/index.html +25 -25
- package/dist/docs/components/text-input/index.html +21 -21
- package/dist/docs/components/text-input/react/index.html +21 -21
- package/dist/docs/components/text-input-group/index.html +18 -18
- package/dist/docs/components/text-input-group/react/index.html +18 -18
- package/dist/docs/components/tile/index.html +8 -8
- package/dist/docs/components/tile/react-deprecated/index.html +8 -8
- package/dist/docs/components/time-picker/index.html +16 -16
- package/dist/docs/components/time-picker/react/index.html +16 -16
- package/dist/docs/components/timestamp/index.html +27 -27
- package/dist/docs/components/timestamp/react/index.html +27 -27
- package/dist/docs/components/title/index.html +9 -9
- package/dist/docs/components/title/react/index.html +9 -9
- package/dist/docs/components/toggle-group/index.html +26 -26
- package/dist/docs/components/toggle-group/react/index.html +26 -26
- package/dist/docs/components/toolbar/index.html +52 -52
- package/dist/docs/components/toolbar/react/index.html +52 -52
- package/dist/docs/components/tooltip/index.html +17 -17
- package/dist/docs/components/tooltip/react/index.html +17 -17
- package/dist/docs/components/tree-view/index.html +34 -34
- package/dist/docs/components/tree-view/react/index.html +34 -34
- package/dist/docs/components/truncate/index.html +11 -11
- package/dist/docs/components/truncate/react/index.html +11 -11
- package/dist/docs/components/wizard/index.html +21 -21
- package/dist/docs/components/wizard/react/index.html +49 -49
- package/dist/docs/components/wizard/react-deprecated/index.html +13 -13
- package/dist/docs/index.html +2 -2
- package/dist/props.json +1 -1
- package/package.json +8 -8
- package/src/components/Navigation.tsx +1 -1
- package/dist/docs/_astro/ClientRouter.astro_astro_type_script_index_0_lang.CtSceO8m.js +0 -1
- package/dist/docs/_astro/Navigation.B2RHZcqO.js +0 -1
- package/dist/docs/_astro/index.DGdw5tfb.js +0 -16
- package/dist/docs/_worker.js/chunks/content-modules_PMz0mfKv.mjs +0 -1
- package/dist/docs/_worker.js/chunks/sharp_CXlY1snz.mjs +0 -1
- package/dist/docs/_worker.js/manifest_CJjpUQ_9.mjs +0 -100
- /package/dist/docs/_worker.js/chunks/{AboutModal_CrdYiVZ2.mjs → AboutModal_Bq3UkWc8.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{AboutModal_D3R-r6ju.mjs → AboutModal_DZETQtiE.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Accordion_Dbx8tdfD.mjs → Accordion_ChuDfd26.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Accordion_sjy0EnPK.mjs → Accordion_DRoasdwW.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{ActionList_Bx7eAKgV.mjs → ActionList_DqDNZT3u.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{ActionList_CuygbYGp.mjs → ActionList_pAt5URX0.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Alert_Cgh0pfMA.mjs → Alert_CPdL1vUD.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Alert_CplJ22O9.mjs → Alert_DwPYvJAI.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Avatar_BszzDSZB.mjs → Avatar_BdN2tI4Z.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Avatar_DuNXB-Tl.mjs → Avatar_DjnLfcKy.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{BackToTop_B_0NN1kJ.mjs → BackToTop_B7k52guD.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{BackToTop_DKY1zHBL.mjs → BackToTop_CQrkN4vo.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Backdrop_ByJvccKQ.mjs → Backdrop_Bw8DXuQW.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Backdrop_D12wBLrB.mjs → Backdrop_D5VKp0Pn.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{BackgroundImage_7zaRIuh-.mjs → BackgroundImage_B95WtDtI.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{BackgroundImage_BFUrU51J.mjs → BackgroundImage_D25W0eG4.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Badge_DloPmeMn.mjs → Badge_9BXEKeIX.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Badge_DxGDbEGv.mjs → Badge_DY7mAZxX.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Banner_4Te4yy7I.mjs → Banner_BBMun_pf.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Banner_FbFCGml0.mjs → Banner_Bzf9E_Yg.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Brand_Cjeb58fX.mjs → Brand_BpBKJkui.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Brand_DZEvbkMH.mjs → Brand_BvV48K7K.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Breadcrumb_DkNDUMw0.mjs → Breadcrumb_7xVGXyOH.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Breadcrumb_bVSwIfTk.mjs → Breadcrumb_D0B5NecG.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Button_BqggYTWh.mjs → Button_B-jQM-mS.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Button_DbZb-z5h.mjs → Button_D4xV2ZHx.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{CalendarMonth_BdoIQD1o.mjs → CalendarMonth_BPH-iWlS.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{CalendarMonth_BqZc2rYW.mjs → CalendarMonth_CtyCDM_4.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Card_BW6WmwTW.mjs → Card_56uPtmT4.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Card_CEDol7Xx.mjs → Card_BL_KFAWY.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Checkbox_BqVpiIvF.mjs → Checkbox_CM-N3RVv.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Checkbox_DSYhfv7p.mjs → Checkbox_DaX-zjAc.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Chip_BciXepRF.mjs → Chip_BpeES5rc.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Chip_C23BxFTk.mjs → Chip_UaJGmwLY.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{ClipboardCopy_BjySfoK1.mjs → ClipboardCopy_761fbT2Y.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{ClipboardCopy_CvrD2b3T.mjs → ClipboardCopy_BHFbqYI-.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{CodeBlock_CuH1PrfL.mjs → CodeBlock_CwKrtp-D.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{CodeBlock_DK5AauFn.mjs → CodeBlock_DOqKbnLY.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Content_BfZIFUr8.mjs → Content_0CWGm4rN.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Content_lBUC3eEp.mjs → Content_CLL8cKDM.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{DataList_CSJAkMMZ.mjs → DataList_BN8khk3S.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{DataList_CaFvg0uz.mjs → DataList_CDy650B7.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{DatePicker_Cw2abdEU.mjs → DatePicker_BQOndvp6.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{DatePicker_bYwsFHXL.mjs → DatePicker_DpTevTA0.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{DescriptionList_BTTyevMb.mjs → DescriptionList_BJ6vItOU.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{DescriptionList_Dr51d-67.mjs → DescriptionList_CtWKTF3e.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Divider_BgOt1--F.mjs → Divider_CB0eK6ED.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Divider_Bh7n4QTo.mjs → Divider_CYqs87wx.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{DragDrop_BF-aF6Z8.mjs → DragDrop_CA9eI_rd.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{DragDrop_DId590rN.mjs → DragDrop_hMbQYdDP.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Drawer_BVywTMVo.mjs → Drawer_DNl2avZP.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Drawer_RrCnySEa.mjs → Drawer_QrI_Bnwl.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Dropdown_BjtqviYW.mjs → Dropdown_DN6hLqJ9.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Dropdown_GiUvjFPw.mjs → Dropdown_VLF3XzpL.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{DualListSelector_8uLukfP0.mjs → DualListSelector_BKTQQnIz.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{DualListSelector_Bgj1IWqe.mjs → DualListSelector_BlKIcmLH.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{DualListSelector_C5QjTplp.mjs → DualListSelector_CLgp74Kh.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{DualListSelector_DLgspM0s.mjs → DualListSelector_DhE2Hwgc.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{EmptyState_Ct_PJba3.mjs → EmptyState_CyuMXV7z.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{EmptyState_Dk3hKJlg.mjs → EmptyState__skv13AF.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{ExpandableSection_DSw76PjZ.mjs → ExpandableSection_CW95SdOW.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{ExpandableSection_vUQO3FgG.mjs → ExpandableSection_yNWV4j_1.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{FileUpload_CEvZ0G-d.mjs → FileUpload_BB5VBmj8.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{FileUpload_Ci_s8Ghd.mjs → FileUpload_Dz6qx2Au.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{FormSelect_C2YPRAlw.mjs → FormSelect_CMF2Pw8r.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{FormSelect_DWShl8Fb.mjs → FormSelect_ImdHPQ8r.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Form_Dyb98Nez.mjs → Form_BlqSvroo.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Form_olaoRN4o.mjs → Form_Dyfbp-xB.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{HelperText_2CcHVaih.mjs → HelperText_I6gDmQuM.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{HelperText_DthGttZo.mjs → HelperText_iuAAuAAX.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Hint_BXDZKYhJ.mjs → Hint_CmH0eX8e.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Hint_DHoiYdn6.mjs → Hint_JlGz6qCF.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Icon_C4IPnIAg.mjs → Icon_CVgO9TfB.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Icon_C_Dqbg9w.mjs → Icon_I_Jxay-o.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{InputGroup_CDKP-uXZ.mjs → InputGroup_C1qnMb39.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{InputGroup_CmZgaEyr.mjs → InputGroup_CO4BbgKK.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{JumpLinks_DvM3PVg0.mjs → JumpLinks_B6V7Oept.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{JumpLinks_Dvdlxdps.mjs → JumpLinks_xK6Xtd_P.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Label_C7fP9Jp9.mjs → Label_DDNQOBjJ.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Label_Cxir7_Q4.mjs → Label_DV6JdsMd.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{List_CUgwFnXa.mjs → List_BXSnNYCk.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{List_CWAsiYnN.mjs → List_D6-bxLhY.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{LoginPage_BDfliKtU.mjs → LoginPage_-uTxWToD.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{LoginPage_BjIl_nF9.mjs → LoginPage_C4Fpi4_3.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Masthead_BWjm5CFj.mjs → Masthead_rYGQQQdw.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Masthead_BZnYzDu_.mjs → Masthead_rpdMuWpg.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{MenuToggle_DeKwv469.mjs → MenuToggle_Cij7zNik.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{MenuToggle_DmJISlPR.mjs → MenuToggle_DVmAV48i.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Menu_DRRoq5PM.mjs → Menu_XN6Bsy-K.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Menu_Sl-QVQ_w.mjs → Menu_dxw3tZmM.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Modal_6WZzoDHU.mjs → Modal_BDIrTlau.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Modal_BI2dVPRJ.mjs → Modal_BbXa3EV6.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Modal_CdokBUDP.mjs → Modal_DXt8fdwv.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Modal_DJRobnfc.mjs → Modal_ya4p_Dn4.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{MultipleFileUpload_BaHVtkF_.mjs → MultipleFileUpload_BY7N0d2_.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{MultipleFileUpload_BznvLbsj.mjs → MultipleFileUpload_CJirO2Tv.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Nav_DwqATcJ4.mjs → Nav_B9aNkM3u.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Nav_GZ0nRYXE.mjs → Nav_Cv7y3tKr.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{NotificationBadge_DO4OLgvO.mjs → NotificationBadge_BdyrqrxS.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{NotificationBadge_DjINhOQ5.mjs → NotificationBadge_uLLBi7Nf.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{NotificationDrawer_BtpQ4pmZ.mjs → NotificationDrawer_C2D_vkJA.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{NotificationDrawer_D1lmMCgd.mjs → NotificationDrawer_DsOv-Bc1.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{NumberInput_CggpJ5ge.mjs → NumberInput_C_v8A68W.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{NumberInput_zMcSUUwH.mjs → NumberInput_M2Arq19A.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{OverflowMenu_BX4nwFvK.mjs → OverflowMenu_CgQ02tet.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{OverflowMenu_DnQ7wMy-.mjs → OverflowMenu_GhL_Hxhj.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Page_Cw_XTB6Y.mjs → Page_BmNS_HKl.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Page_UhywZXdY.mjs → Page_BqhHgZEf.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Pagination_7rr0n7-V.mjs → Pagination_6zsdJgjo.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Pagination_Dc5L6yaI.mjs → Pagination_EnfXcy1c.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Panel_Bl_LqCWS.mjs → Panel_Bns9Yczb.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Panel_s8-TwBlS.mjs → Panel_CAl9TttI.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Popover_CjipqBWs.mjs → Popover_Cq5GlG_u.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Popover_DvQgGJTf.mjs → Popover_DNBqVY6K.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{ProgressStepper_DXBI4K2w.mjs → ProgressStepper_Bj7xdcVW.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{ProgressStepper_lBd5mTHE.mjs → ProgressStepper_DLwBtQPD.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Progress_BZA5taDC.mjs → Progress_Bwa6IFCG.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Progress_CIgybc-D.mjs → Progress_Ct2ZmHWP.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Radio_3tPx1coq.mjs → Radio_BW36RoyQ.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Radio_BG7VZAk6.mjs → Radio_CD1tbLUH.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{SearchInput_BZ43-Elo.mjs → SearchInput_C5t7rgL8.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{SearchInput_aCFv-N1U.mjs → SearchInput_D5zVWGRR.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Select_B4cumL7U.mjs → Select_B7PClV22.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Select_CJ78kBVM.mjs → Select_DxSAnryc.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Sidebar_Bto2_gKJ.mjs → Sidebar_CBHc_qDs.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Sidebar_DOfifBRA.mjs → Sidebar_CUsSON01.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{SimpleList_CVkO5Odp.mjs → SimpleList_A4ZllarK.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{SimpleList_oJajk3_z.mjs → SimpleList_CA6-eKv7.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Skeleton_CCJNka-d.mjs → Skeleton_BCcNwA3X.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Skeleton_N02yA_k6.mjs → Skeleton_ppLKyrxA.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{SkipToContent_DvOYRCWm.mjs → SkipToContent_BRt-mxN_.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{SkipToContent_o7vh-U_u.mjs → SkipToContent_DJ0j9iWN.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Slider_C0bH-JMY.mjs → Slider_C9b3jjeF.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Slider_CWRDqhx4.mjs → Slider_XCexzUeI.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Spinner_B-x8bJt0.mjs → Spinner_9AYi3VBw.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Spinner_hzAAbZdS.mjs → Spinner_CP9Rq_gX.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Switch_Cpr1OETy.mjs → Switch_DXdLGDOE.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Switch_Du7AKJ4O.mjs → Switch_RNh98qtJ.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Tabs_CzDrfKA-.mjs → Tabs_DT6Yi6be.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Tabs_KXDkISY4.mjs → Tabs_DlM_bjlT.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{TextArea_C1dmG8mr.mjs → TextArea_Cf_R8jQK.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{TextArea_Dtm0m8LO.mjs → TextArea_ovxC_0Ab.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{TextInputGroup_D0NXU95v.mjs → TextInputGroup_080YBtEj.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{TextInputGroup_mJpBrogC.mjs → TextInputGroup_Br_i0HvU.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{TextInput_B0XLYaVA.mjs → TextInput_Db5MQT0r.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{TextInput_CmLcsUiv.mjs → TextInput_DmvzGSiB.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Tile_CF_12LPU.mjs → Tile_DSLiQefE.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Tile_DJ0LawLW.mjs → Tile_DuVi0Nxx.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{TimePicker_CijfSKJQ.mjs → TimePicker_DRkouY7Y.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{TimePicker_VX9VE-Uy.mjs → TimePicker_qLqDQt66.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Timestamp_D7uyrIK7.mjs → Timestamp_Bm1TmV0u.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Timestamp_c2Mozpr4.mjs → Timestamp_ByppCUVl.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Title_DbrwFEEy.mjs → Title_CbgR81X9.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Title_DlFn7G9R.mjs → Title_DEeLRIBp.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{ToggleGroup_DpLWzfAW.mjs → ToggleGroup_CLcoYGlf.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{ToggleGroup_j1ooRpX3.mjs → ToggleGroup_DZfpRXld.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Toolbar_BEIh7r7J.mjs → Toolbar_Ckexja0f.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Toolbar_mjrD3_l-.mjs → Toolbar_WEvlPE_Z.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Tooltip_Bp5XOVoV.mjs → Tooltip_ByLTXbvB.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Tooltip_BrFKk02i.mjs → Tooltip_C50yThxC.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{TreeView_BImfKPD_.mjs → TreeView_BepL2dW_.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{TreeView_CgO4iC1E.mjs → TreeView_CF9fMfij.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Truncate_Bn55QoeZ.mjs → Truncate_B5tvwEJU.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Truncate_S939OotH.mjs → Truncate_fFugxOSE.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Wizard_B28f3non.mjs → Wizard_BZDTr1GR.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Wizard_B4Dw5Yc8.mjs → Wizard_Bo1prwt4.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Wizard_BOCBVIjJ.mjs → Wizard_CUdz0SC3.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{Wizard_C2sit354.mjs → Wizard_CgLDSR4C.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{_astro_assets_gAZzkAab.mjs → _astro_data-layer-content_aS8_cRFJ.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{_astro_data-layer-content_Dvh2cBdG.mjs → content-modules_BkNrgIXI.mjs} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
globalThis.process ??= {}; globalThis.process.env ??= {};
|
|
2
|
-
import { g as getActionQueryString, a as deserializeActionResult, b as distExports, D as DEFAULT_404_ROUTE, A as ActionError, s as serializeActionResult, c as ACTION_RPC_ROUTE_PATTERN, f as ACTION_QUERY_PARAMS, h as stringify$2 } from './astro-designed-error-
|
|
3
|
-
import {
|
|
4
|
-
import { b as appendForwardSlash, j as joinPaths, a as removeTrailingForwardSlash, p as prependForwardSlash, t as trimSlashes } from './
|
|
5
|
-
import { u as unflatten$1 } from './
|
|
2
|
+
import { g as getActionQueryString, a as deserializeActionResult, b as distExports, D as DEFAULT_404_ROUTE, A as ActionError, s as serializeActionResult, c as ACTION_RPC_ROUTE_PATTERN, f as ACTION_QUERY_PARAMS, h as stringify$2 } from './astro-designed-error-pages_RucpOaTo.mjs';
|
|
3
|
+
import { Q as decryptString, S as createSlotValueFromString, T as isAstroComponentFactory, r as renderComponent, b as renderTemplate, D as REROUTE_DIRECTIVE_HEADER, A as AstroError, V as i18nNoLocaleFoundInPath, W as ResponseSentError, X as originPathnameSymbol, Y as RewriteWithBodyUsed, Z as GetStaticPathsRequired, _ as InvalidGetStaticPathsReturn, $ as InvalidGetStaticPathsEntry, a0 as GetStaticPathsExpectedParams, a1 as GetStaticPathsInvalidRouteParam, a2 as PageNumberParamNotFound, E as DEFAULT_404_COMPONENT, a3 as NoMatchingStaticPathFound, a4 as PrerenderDynamicEndpointPathCollide, a5 as ReservedSlotName, a6 as renderSlotToString, x as renderJSX, a7 as chunkToString, a8 as isRenderInstruction, a9 as MiddlewareNoDataOrNextCalled, aa as MiddlewareNotAResponse, ab as SessionStorageInitError, ac as SessionStorageSaveError, C as ROUTE_TYPE_HEADER, ad as ForbiddenRewrite, ae as ASTRO_VERSION, af as CspNotEnabled, ag as green, ah as LocalsReassigned, ai as generateCspDigest, aj as PrerenderClientAddressNotAvailable, M as clientAddressSymbol, ak as ClientAddressNotAvailable, al as StaticClientAddressNotAvailable, am as AstroResponseHeadersReassigned, P as responseSentSymbol$1, an as renderPage, ao as REWRITE_DIRECTIVE_HEADER_KEY, ap as REWRITE_DIRECTIVE_HEADER_VALUE, aq as renderEndpoint } from './astro/server_DJAlTAUe.mjs';
|
|
4
|
+
import { b as appendForwardSlash, j as joinPaths, a as removeTrailingForwardSlash, p as prependForwardSlash, t as trimSlashes } from './path_u5O9njcM.mjs';
|
|
5
|
+
import { u as unflatten$1 } from './parse_yL_293SP.mjs';
|
|
6
6
|
|
|
7
7
|
const ACTION_API_CONTEXT_SYMBOL = Symbol.for("astro.actionAPIContext");
|
|
8
8
|
const formContentTypes = ["application/x-www-form-urlencoded", "multipart/form-data"];
|
|
@@ -227,7 +227,7 @@ function requestHasLocale(locales) {
|
|
|
227
227
|
};
|
|
228
228
|
}
|
|
229
229
|
function pathHasLocale(path, locales) {
|
|
230
|
-
const segments = path.split("/");
|
|
230
|
+
const segments = path.split("/").map(normalizeThePath);
|
|
231
231
|
for (const segment of segments) {
|
|
232
232
|
for (const locale of locales) {
|
|
233
233
|
if (typeof locale === "string") {
|
|
@@ -260,6 +260,9 @@ function getPathByLocale(locale, locales) {
|
|
|
260
260
|
function normalizeTheLocale(locale) {
|
|
261
261
|
return locale.replaceAll("_", "-").toLowerCase();
|
|
262
262
|
}
|
|
263
|
+
function normalizeThePath(path) {
|
|
264
|
+
return path.endsWith(".html") ? path.slice(0, -5) : path;
|
|
265
|
+
}
|
|
263
266
|
function getAllCodes(locales) {
|
|
264
267
|
const result = [];
|
|
265
268
|
for (const loopLocale of locales) {
|
|
@@ -462,7 +465,7 @@ function computePreferredLocaleList(request, locales) {
|
|
|
462
465
|
return result;
|
|
463
466
|
}
|
|
464
467
|
function computeCurrentLocale(pathname, locales, defaultLocale) {
|
|
465
|
-
for (const segment of pathname.split("/")) {
|
|
468
|
+
for (const segment of pathname.split("/").map(normalizeThePath)) {
|
|
466
469
|
for (const locale of locales) {
|
|
467
470
|
if (typeof locale === "string") {
|
|
468
471
|
if (!segment.includes(locale)) continue;
|
|
@@ -863,8 +866,20 @@ function copyRequest(newUrl, oldRequest, isPrerendered, logger, routePattern) {
|
|
|
863
866
|
}
|
|
864
867
|
});
|
|
865
868
|
}
|
|
866
|
-
function setOriginPathname(request, pathname) {
|
|
867
|
-
|
|
869
|
+
function setOriginPathname(request, pathname, trailingSlash, buildFormat) {
|
|
870
|
+
if (!pathname) {
|
|
871
|
+
pathname = "/";
|
|
872
|
+
}
|
|
873
|
+
const shouldAppendSlash = shouldAppendForwardSlash(trailingSlash, buildFormat);
|
|
874
|
+
let finalPathname;
|
|
875
|
+
if (pathname === "/") {
|
|
876
|
+
finalPathname = "/";
|
|
877
|
+
} else if (shouldAppendSlash) {
|
|
878
|
+
finalPathname = appendForwardSlash(pathname);
|
|
879
|
+
} else {
|
|
880
|
+
finalPathname = removeTrailingForwardSlash(pathname);
|
|
881
|
+
}
|
|
882
|
+
Reflect.set(request, originPathnameSymbol, encodeURIComponent(finalPathname));
|
|
868
883
|
}
|
|
869
884
|
function getOriginPathname(request) {
|
|
870
885
|
const origin = Reflect.get(request, originPathnameSymbol);
|
|
@@ -874,114 +889,6 @@ function getOriginPathname(request) {
|
|
|
874
889
|
return new URL(request.url).pathname;
|
|
875
890
|
}
|
|
876
891
|
|
|
877
|
-
function getActionContext(context) {
|
|
878
|
-
const callerInfo = getCallerInfo(context);
|
|
879
|
-
const actionResultAlreadySet = Boolean(context.locals._actionPayload);
|
|
880
|
-
let action = void 0;
|
|
881
|
-
if (callerInfo && context.request.method === "POST" && !actionResultAlreadySet) {
|
|
882
|
-
action = {
|
|
883
|
-
calledFrom: callerInfo.from,
|
|
884
|
-
name: callerInfo.name,
|
|
885
|
-
handler: async () => {
|
|
886
|
-
const pipeline = Reflect.get(context, apiContextRoutesSymbol);
|
|
887
|
-
const callerInfoName = shouldAppendForwardSlash(
|
|
888
|
-
pipeline.manifest.trailingSlash,
|
|
889
|
-
pipeline.manifest.buildFormat
|
|
890
|
-
) ? removeTrailingForwardSlash(callerInfo.name) : callerInfo.name;
|
|
891
|
-
const baseAction = await pipeline.getAction(callerInfoName);
|
|
892
|
-
let input;
|
|
893
|
-
try {
|
|
894
|
-
input = await parseRequestBody(context.request);
|
|
895
|
-
} catch (e) {
|
|
896
|
-
if (e instanceof TypeError) {
|
|
897
|
-
return { data: void 0, error: new ActionError({ code: "UNSUPPORTED_MEDIA_TYPE" }) };
|
|
898
|
-
}
|
|
899
|
-
throw e;
|
|
900
|
-
}
|
|
901
|
-
const omitKeys = ["props", "getActionResult", "callAction", "redirect"];
|
|
902
|
-
const actionAPIContext = Object.create(
|
|
903
|
-
Object.getPrototypeOf(context),
|
|
904
|
-
Object.fromEntries(
|
|
905
|
-
Object.entries(Object.getOwnPropertyDescriptors(context)).filter(
|
|
906
|
-
([key]) => !omitKeys.includes(key)
|
|
907
|
-
)
|
|
908
|
-
)
|
|
909
|
-
);
|
|
910
|
-
Reflect.set(actionAPIContext, ACTION_API_CONTEXT_SYMBOL, true);
|
|
911
|
-
const handler = baseAction.bind(actionAPIContext);
|
|
912
|
-
return handler(input);
|
|
913
|
-
}
|
|
914
|
-
};
|
|
915
|
-
}
|
|
916
|
-
function setActionResult(actionName, actionResult) {
|
|
917
|
-
context.locals._actionPayload = {
|
|
918
|
-
actionResult,
|
|
919
|
-
actionName
|
|
920
|
-
};
|
|
921
|
-
}
|
|
922
|
-
return {
|
|
923
|
-
action,
|
|
924
|
-
setActionResult,
|
|
925
|
-
serializeActionResult,
|
|
926
|
-
deserializeActionResult
|
|
927
|
-
};
|
|
928
|
-
}
|
|
929
|
-
function getCallerInfo(ctx) {
|
|
930
|
-
if (ctx.routePattern === ACTION_RPC_ROUTE_PATTERN) {
|
|
931
|
-
return { from: "rpc", name: ctx.url.pathname.replace(/^.*\/_actions\//, "") };
|
|
932
|
-
}
|
|
933
|
-
const queryParam = ctx.url.searchParams.get(ACTION_QUERY_PARAMS.actionName);
|
|
934
|
-
if (queryParam) {
|
|
935
|
-
return { from: "form", name: queryParam };
|
|
936
|
-
}
|
|
937
|
-
return void 0;
|
|
938
|
-
}
|
|
939
|
-
async function parseRequestBody(request) {
|
|
940
|
-
const contentType = request.headers.get("content-type");
|
|
941
|
-
const contentLength = request.headers.get("Content-Length");
|
|
942
|
-
if (!contentType) return void 0;
|
|
943
|
-
if (hasContentType(contentType, formContentTypes)) {
|
|
944
|
-
return await request.clone().formData();
|
|
945
|
-
}
|
|
946
|
-
if (hasContentType(contentType, ["application/json"])) {
|
|
947
|
-
return contentLength === "0" ? void 0 : await request.clone().json();
|
|
948
|
-
}
|
|
949
|
-
throw new TypeError("Unsupported content type");
|
|
950
|
-
}
|
|
951
|
-
|
|
952
|
-
async function callMiddleware(onRequest, apiContext, responseFunction) {
|
|
953
|
-
let nextCalled = false;
|
|
954
|
-
let responseFunctionPromise = void 0;
|
|
955
|
-
const next = async (payload) => {
|
|
956
|
-
nextCalled = true;
|
|
957
|
-
responseFunctionPromise = responseFunction(apiContext, payload);
|
|
958
|
-
return responseFunctionPromise;
|
|
959
|
-
};
|
|
960
|
-
let middlewarePromise = onRequest(apiContext, next);
|
|
961
|
-
return await Promise.resolve(middlewarePromise).then(async (value) => {
|
|
962
|
-
if (nextCalled) {
|
|
963
|
-
if (typeof value !== "undefined") {
|
|
964
|
-
if (value instanceof Response === false) {
|
|
965
|
-
throw new AstroError(MiddlewareNotAResponse);
|
|
966
|
-
}
|
|
967
|
-
return value;
|
|
968
|
-
} else {
|
|
969
|
-
if (responseFunctionPromise) {
|
|
970
|
-
return responseFunctionPromise;
|
|
971
|
-
} else {
|
|
972
|
-
throw new AstroError(MiddlewareNotAResponse);
|
|
973
|
-
}
|
|
974
|
-
}
|
|
975
|
-
} else if (typeof value === "undefined") {
|
|
976
|
-
throw new AstroError(MiddlewareNoDataOrNextCalled);
|
|
977
|
-
} else if (value instanceof Response === false) {
|
|
978
|
-
throw new AstroError(MiddlewareNotAResponse);
|
|
979
|
-
} else {
|
|
980
|
-
return value;
|
|
981
|
-
}
|
|
982
|
-
});
|
|
983
|
-
}
|
|
984
|
-
|
|
985
892
|
const VALID_PARAM_TYPES = ["string", "number", "undefined"];
|
|
986
893
|
function validateGetStaticPathsParameter([key, value], route) {
|
|
987
894
|
if (!VALID_PARAM_TYPES.includes(typeof value)) {
|
|
@@ -1343,6 +1250,114 @@ class Slots {
|
|
|
1343
1250
|
}
|
|
1344
1251
|
}
|
|
1345
1252
|
|
|
1253
|
+
function getActionContext(context) {
|
|
1254
|
+
const callerInfo = getCallerInfo(context);
|
|
1255
|
+
const actionResultAlreadySet = Boolean(context.locals._actionPayload);
|
|
1256
|
+
let action = void 0;
|
|
1257
|
+
if (callerInfo && context.request.method === "POST" && !actionResultAlreadySet) {
|
|
1258
|
+
action = {
|
|
1259
|
+
calledFrom: callerInfo.from,
|
|
1260
|
+
name: callerInfo.name,
|
|
1261
|
+
handler: async () => {
|
|
1262
|
+
const pipeline = Reflect.get(context, apiContextRoutesSymbol);
|
|
1263
|
+
const callerInfoName = shouldAppendForwardSlash(
|
|
1264
|
+
pipeline.manifest.trailingSlash,
|
|
1265
|
+
pipeline.manifest.buildFormat
|
|
1266
|
+
) ? removeTrailingForwardSlash(callerInfo.name) : callerInfo.name;
|
|
1267
|
+
const baseAction = await pipeline.getAction(callerInfoName);
|
|
1268
|
+
let input;
|
|
1269
|
+
try {
|
|
1270
|
+
input = await parseRequestBody(context.request);
|
|
1271
|
+
} catch (e) {
|
|
1272
|
+
if (e instanceof TypeError) {
|
|
1273
|
+
return { data: void 0, error: new ActionError({ code: "UNSUPPORTED_MEDIA_TYPE" }) };
|
|
1274
|
+
}
|
|
1275
|
+
throw e;
|
|
1276
|
+
}
|
|
1277
|
+
const omitKeys = ["props", "getActionResult", "callAction", "redirect"];
|
|
1278
|
+
const actionAPIContext = Object.create(
|
|
1279
|
+
Object.getPrototypeOf(context),
|
|
1280
|
+
Object.fromEntries(
|
|
1281
|
+
Object.entries(Object.getOwnPropertyDescriptors(context)).filter(
|
|
1282
|
+
([key]) => !omitKeys.includes(key)
|
|
1283
|
+
)
|
|
1284
|
+
)
|
|
1285
|
+
);
|
|
1286
|
+
Reflect.set(actionAPIContext, ACTION_API_CONTEXT_SYMBOL, true);
|
|
1287
|
+
const handler = baseAction.bind(actionAPIContext);
|
|
1288
|
+
return handler(input);
|
|
1289
|
+
}
|
|
1290
|
+
};
|
|
1291
|
+
}
|
|
1292
|
+
function setActionResult(actionName, actionResult) {
|
|
1293
|
+
context.locals._actionPayload = {
|
|
1294
|
+
actionResult,
|
|
1295
|
+
actionName
|
|
1296
|
+
};
|
|
1297
|
+
}
|
|
1298
|
+
return {
|
|
1299
|
+
action,
|
|
1300
|
+
setActionResult,
|
|
1301
|
+
serializeActionResult,
|
|
1302
|
+
deserializeActionResult
|
|
1303
|
+
};
|
|
1304
|
+
}
|
|
1305
|
+
function getCallerInfo(ctx) {
|
|
1306
|
+
if (ctx.routePattern === ACTION_RPC_ROUTE_PATTERN) {
|
|
1307
|
+
return { from: "rpc", name: ctx.url.pathname.replace(/^.*\/_actions\//, "") };
|
|
1308
|
+
}
|
|
1309
|
+
const queryParam = ctx.url.searchParams.get(ACTION_QUERY_PARAMS.actionName);
|
|
1310
|
+
if (queryParam) {
|
|
1311
|
+
return { from: "form", name: queryParam };
|
|
1312
|
+
}
|
|
1313
|
+
return void 0;
|
|
1314
|
+
}
|
|
1315
|
+
async function parseRequestBody(request) {
|
|
1316
|
+
const contentType = request.headers.get("content-type");
|
|
1317
|
+
const contentLength = request.headers.get("Content-Length");
|
|
1318
|
+
if (!contentType) return void 0;
|
|
1319
|
+
if (hasContentType(contentType, formContentTypes)) {
|
|
1320
|
+
return await request.clone().formData();
|
|
1321
|
+
}
|
|
1322
|
+
if (hasContentType(contentType, ["application/json"])) {
|
|
1323
|
+
return contentLength === "0" ? void 0 : await request.clone().json();
|
|
1324
|
+
}
|
|
1325
|
+
throw new TypeError("Unsupported content type");
|
|
1326
|
+
}
|
|
1327
|
+
|
|
1328
|
+
async function callMiddleware(onRequest, apiContext, responseFunction) {
|
|
1329
|
+
let nextCalled = false;
|
|
1330
|
+
let responseFunctionPromise = void 0;
|
|
1331
|
+
const next = async (payload) => {
|
|
1332
|
+
nextCalled = true;
|
|
1333
|
+
responseFunctionPromise = responseFunction(apiContext, payload);
|
|
1334
|
+
return responseFunctionPromise;
|
|
1335
|
+
};
|
|
1336
|
+
let middlewarePromise = onRequest(apiContext, next);
|
|
1337
|
+
return await Promise.resolve(middlewarePromise).then(async (value) => {
|
|
1338
|
+
if (nextCalled) {
|
|
1339
|
+
if (typeof value !== "undefined") {
|
|
1340
|
+
if (value instanceof Response === false) {
|
|
1341
|
+
throw new AstroError(MiddlewareNotAResponse);
|
|
1342
|
+
}
|
|
1343
|
+
return value;
|
|
1344
|
+
} else {
|
|
1345
|
+
if (responseFunctionPromise) {
|
|
1346
|
+
return responseFunctionPromise;
|
|
1347
|
+
} else {
|
|
1348
|
+
throw new AstroError(MiddlewareNotAResponse);
|
|
1349
|
+
}
|
|
1350
|
+
}
|
|
1351
|
+
} else if (typeof value === "undefined") {
|
|
1352
|
+
throw new AstroError(MiddlewareNoDataOrNextCalled);
|
|
1353
|
+
} else if (value instanceof Response === false) {
|
|
1354
|
+
throw new AstroError(MiddlewareNotAResponse);
|
|
1355
|
+
} else {
|
|
1356
|
+
return value;
|
|
1357
|
+
}
|
|
1358
|
+
});
|
|
1359
|
+
}
|
|
1360
|
+
|
|
1346
1361
|
const suspectProtoRx = /"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/;
|
|
1347
1362
|
const suspectConstructorRx = /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;
|
|
1348
1363
|
const JsonSigRx = /^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;
|
|
@@ -2047,6 +2062,15 @@ class AstroSession {
|
|
|
2047
2062
|
cookie: cookieConfig = DEFAULT_COOKIE_NAME,
|
|
2048
2063
|
...config
|
|
2049
2064
|
}, runtimeMode) {
|
|
2065
|
+
const { driver } = config;
|
|
2066
|
+
if (!driver) {
|
|
2067
|
+
throw new AstroError({
|
|
2068
|
+
...SessionStorageInitError,
|
|
2069
|
+
message: SessionStorageInitError.message(
|
|
2070
|
+
"No driver was defined in the session configuration and the adapter did not provide a default driver."
|
|
2071
|
+
)
|
|
2072
|
+
});
|
|
2073
|
+
}
|
|
2050
2074
|
this.#cookies = cookies;
|
|
2051
2075
|
let cookieConfigObject;
|
|
2052
2076
|
if (typeof cookieConfig === "object") {
|
|
@@ -2063,7 +2087,7 @@ class AstroSession {
|
|
|
2063
2087
|
...cookieConfigObject,
|
|
2064
2088
|
httpOnly: true
|
|
2065
2089
|
};
|
|
2066
|
-
this.#config = config;
|
|
2090
|
+
this.#config = { ...config, driver };
|
|
2067
2091
|
}
|
|
2068
2092
|
/**
|
|
2069
2093
|
* Gets a session value. Returns `undefined` if the session or value does not exist.
|
|
@@ -2145,7 +2169,14 @@ class AstroSession {
|
|
|
2145
2169
|
* Destroys the session, clearing the cookie and storage if it exists.
|
|
2146
2170
|
*/
|
|
2147
2171
|
destroy() {
|
|
2148
|
-
this.#
|
|
2172
|
+
const sessionId = this.#sessionID ?? this.#cookies.get(this.#cookieName)?.value;
|
|
2173
|
+
if (sessionId) {
|
|
2174
|
+
this.#toDestroy.add(sessionId);
|
|
2175
|
+
}
|
|
2176
|
+
this.#cookies.delete(this.#cookieName, this.#cookieConfig);
|
|
2177
|
+
this.#sessionID = void 0;
|
|
2178
|
+
this.#data = void 0;
|
|
2179
|
+
this.#dirty = true;
|
|
2149
2180
|
}
|
|
2150
2181
|
/**
|
|
2151
2182
|
* Regenerates the session, creating a new session ID. The existing session data is preserved.
|
|
@@ -2253,7 +2284,7 @@ class AstroSession {
|
|
|
2253
2284
|
try {
|
|
2254
2285
|
const storedMap = unflatten(raw);
|
|
2255
2286
|
if (!(storedMap instanceof Map)) {
|
|
2256
|
-
await this
|
|
2287
|
+
await this.destroy();
|
|
2257
2288
|
throw new AstroError({
|
|
2258
2289
|
...SessionStorageInitError,
|
|
2259
2290
|
message: SessionStorageInitError.message(
|
|
@@ -2272,7 +2303,7 @@ class AstroSession {
|
|
|
2272
2303
|
this.#partial = false;
|
|
2273
2304
|
return this.#data;
|
|
2274
2305
|
} catch (err) {
|
|
2275
|
-
await this
|
|
2306
|
+
await this.destroy();
|
|
2276
2307
|
if (err instanceof AstroError) {
|
|
2277
2308
|
throw err;
|
|
2278
2309
|
}
|
|
@@ -2288,20 +2319,6 @@ class AstroSession {
|
|
|
2288
2319
|
);
|
|
2289
2320
|
}
|
|
2290
2321
|
}
|
|
2291
|
-
/**
|
|
2292
|
-
* Safely destroys the session, clearing the cookie and storage if it exists.
|
|
2293
|
-
*/
|
|
2294
|
-
#destroySafe() {
|
|
2295
|
-
if (this.#sessionID) {
|
|
2296
|
-
this.#toDestroy.add(this.#sessionID);
|
|
2297
|
-
}
|
|
2298
|
-
if (this.#cookieName) {
|
|
2299
|
-
this.#cookies.delete(this.#cookieName, this.#cookieConfig);
|
|
2300
|
-
}
|
|
2301
|
-
this.#sessionID = void 0;
|
|
2302
|
-
this.#data = void 0;
|
|
2303
|
-
this.#dirty = true;
|
|
2304
|
-
}
|
|
2305
2322
|
/**
|
|
2306
2323
|
* Returns the session ID, generating a new one if it does not exist.
|
|
2307
2324
|
*/
|
|
@@ -2330,14 +2347,6 @@ class AstroSession {
|
|
|
2330
2347
|
this.#config.driver = "fs-lite";
|
|
2331
2348
|
this.#config.options.base ??= ".astro/session";
|
|
2332
2349
|
}
|
|
2333
|
-
if (!this.#config?.driver) {
|
|
2334
|
-
throw new AstroError({
|
|
2335
|
-
...SessionStorageInitError,
|
|
2336
|
-
message: SessionStorageInitError.message(
|
|
2337
|
-
"No driver was defined in the session configuration and the adapter did not provide a default driver."
|
|
2338
|
-
)
|
|
2339
|
-
});
|
|
2340
|
-
}
|
|
2341
2350
|
let driver = null;
|
|
2342
2351
|
try {
|
|
2343
2352
|
if (this.#config.driverModule) {
|
|
@@ -2449,7 +2458,12 @@ class RenderContext {
|
|
|
2449
2458
|
}) {
|
|
2450
2459
|
const pipelineMiddleware = await pipeline.getMiddleware();
|
|
2451
2460
|
const pipelineActions = actions ?? await pipeline.getActions();
|
|
2452
|
-
setOriginPathname(
|
|
2461
|
+
setOriginPathname(
|
|
2462
|
+
request,
|
|
2463
|
+
pathname,
|
|
2464
|
+
pipeline.manifest.trailingSlash,
|
|
2465
|
+
pipeline.manifest.buildFormat
|
|
2466
|
+
);
|
|
2453
2467
|
return new RenderContext(
|
|
2454
2468
|
pipeline,
|
|
2455
2469
|
locals,
|
|
@@ -2536,7 +2550,12 @@ class RenderContext {
|
|
|
2536
2550
|
this.params = getParams(routeData, pathname);
|
|
2537
2551
|
this.pathname = pathname;
|
|
2538
2552
|
this.status = 200;
|
|
2539
|
-
setOriginPathname(
|
|
2553
|
+
setOriginPathname(
|
|
2554
|
+
this.request,
|
|
2555
|
+
oldPathname,
|
|
2556
|
+
this.pipeline.manifest.trailingSlash,
|
|
2557
|
+
this.pipeline.manifest.buildFormat
|
|
2558
|
+
);
|
|
2540
2559
|
}
|
|
2541
2560
|
let response2;
|
|
2542
2561
|
if (!ctx.isPrerendered) {
|
|
@@ -2619,7 +2638,8 @@ class RenderContext {
|
|
|
2619
2638
|
reroutePayload,
|
|
2620
2639
|
this.request
|
|
2621
2640
|
);
|
|
2622
|
-
|
|
2641
|
+
const isI18nFallback = routeData.fallbackRoutes && routeData.fallbackRoutes.length > 0;
|
|
2642
|
+
if (this.pipeline.serverLike && !this.routeData.prerender && routeData.prerender && !isI18nFallback) {
|
|
2623
2643
|
throw new AstroError({
|
|
2624
2644
|
...ForbiddenRewrite,
|
|
2625
2645
|
message: ForbiddenRewrite.message(this.pathname, pathname, routeData.component),
|
|
@@ -2645,7 +2665,12 @@ class RenderContext {
|
|
|
2645
2665
|
this.pathname = pathname;
|
|
2646
2666
|
this.isRewriting = true;
|
|
2647
2667
|
this.status = 200;
|
|
2648
|
-
setOriginPathname(
|
|
2668
|
+
setOriginPathname(
|
|
2669
|
+
this.request,
|
|
2670
|
+
oldPathname,
|
|
2671
|
+
this.pipeline.manifest.trailingSlash,
|
|
2672
|
+
this.pipeline.manifest.buildFormat
|
|
2673
|
+
);
|
|
2649
2674
|
return await this.render(componentInstance);
|
|
2650
2675
|
}
|
|
2651
2676
|
createActionAPIContext() {
|
|
@@ -2739,6 +2764,18 @@ class RenderContext {
|
|
|
2739
2764
|
const { cookies, pathname, pipeline, routeData, status } = this;
|
|
2740
2765
|
const { clientDirectives, inlinedScripts, compressHTML, manifest, renderers, resolve } = pipeline;
|
|
2741
2766
|
const { links, scripts, styles } = await pipeline.headElements(routeData);
|
|
2767
|
+
const extraStyleHashes = [];
|
|
2768
|
+
const extraScriptHashes = [];
|
|
2769
|
+
const shouldInjectCspMetaTags = !!manifest.csp;
|
|
2770
|
+
const cspAlgorithm = manifest.csp?.algorithm ?? "SHA-256";
|
|
2771
|
+
if (shouldInjectCspMetaTags) {
|
|
2772
|
+
for (const style of styles) {
|
|
2773
|
+
extraStyleHashes.push(await generateCspDigest(style.children, cspAlgorithm));
|
|
2774
|
+
}
|
|
2775
|
+
for (const script of scripts) {
|
|
2776
|
+
extraScriptHashes.push(await generateCspDigest(script.children, cspAlgorithm));
|
|
2777
|
+
}
|
|
2778
|
+
}
|
|
2742
2779
|
const componentMetadata = await pipeline.componentMetadata(routeData) ?? manifest.componentMetadata;
|
|
2743
2780
|
const headers = new Headers({ "Content-Type": "text/html" });
|
|
2744
2781
|
const partial = typeof this.partial === "boolean" ? this.partial : Boolean(mod.partial);
|
|
@@ -2788,13 +2825,13 @@ class RenderContext {
|
|
|
2788
2825
|
hasRenderedServerIslandRuntime: false,
|
|
2789
2826
|
headInTree: false,
|
|
2790
2827
|
extraHead: [],
|
|
2791
|
-
extraStyleHashes
|
|
2792
|
-
extraScriptHashes
|
|
2828
|
+
extraStyleHashes,
|
|
2829
|
+
extraScriptHashes,
|
|
2793
2830
|
propagators: /* @__PURE__ */ new Set()
|
|
2794
2831
|
},
|
|
2795
2832
|
cspDestination: manifest.csp?.cspDestination ?? (routeData.prerender ? "meta" : "header"),
|
|
2796
|
-
shouldInjectCspMetaTags
|
|
2797
|
-
cspAlgorithm
|
|
2833
|
+
shouldInjectCspMetaTags,
|
|
2834
|
+
cspAlgorithm,
|
|
2798
2835
|
// The following arrays must be cloned, otherwise they become mutable across routes.
|
|
2799
2836
|
scriptHashes: manifest.csp?.scriptHashes ? [...manifest.csp.scriptHashes] : [],
|
|
2800
2837
|
scriptResources: manifest.csp?.scriptResources ? [...manifest.csp.scriptResources] : [],
|
|
@@ -3080,7 +3117,13 @@ function sequence(...handlers) {
|
|
|
3080
3117
|
handleContext.url = new URL(newRequest.url);
|
|
3081
3118
|
handleContext.cookies = new AstroCookies(newRequest);
|
|
3082
3119
|
handleContext.params = getParams(routeData, pathname);
|
|
3083
|
-
|
|
3120
|
+
handleContext.routePattern = routeData.route;
|
|
3121
|
+
setOriginPathname(
|
|
3122
|
+
handleContext.request,
|
|
3123
|
+
oldPathname,
|
|
3124
|
+
pipeline.manifest.trailingSlash,
|
|
3125
|
+
pipeline.manifest.buildFormat
|
|
3126
|
+
);
|
|
3084
3127
|
}
|
|
3085
3128
|
return applyHandle(i + 1, handleContext);
|
|
3086
3129
|
} else {
|
package/dist/docs/_worker.js/chunks/{noop-middleware_DIXVCvyq.mjs → noop-middleware_BUlUjpRM.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
globalThis.process ??= {}; globalThis.process.env ??= {};
|
|
2
|
-
import {
|
|
2
|
+
import { ar as NOOP_MIDDLEWARE_HEADER } from './astro/server_DJAlTAUe.mjs';
|
|
3
3
|
|
|
4
4
|
const NOOP_MIDDLEWARE_FN = async (_ctx, next) => {
|
|
5
5
|
const response = await next();
|
|
@@ -153,7 +153,9 @@ function unflatten(parsed, revivers) {
|
|
|
153
153
|
if (index === NEGATIVE_INFINITY) return -Infinity;
|
|
154
154
|
if (index === NEGATIVE_ZERO) return -0;
|
|
155
155
|
|
|
156
|
-
if (standalone
|
|
156
|
+
if (standalone || typeof index !== 'number') {
|
|
157
|
+
throw new Error(`Invalid input`);
|
|
158
|
+
}
|
|
157
159
|
|
|
158
160
|
if (index in hydrated) return hydrated[index];
|
|
159
161
|
|
|
@@ -211,31 +213,60 @@ function unflatten(parsed, revivers) {
|
|
|
211
213
|
}
|
|
212
214
|
break;
|
|
213
215
|
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
216
|
+
case 'Int8Array':
|
|
217
|
+
case 'Uint8Array':
|
|
218
|
+
case 'Uint8ClampedArray':
|
|
219
|
+
case 'Int16Array':
|
|
220
|
+
case 'Uint16Array':
|
|
221
|
+
case 'Int32Array':
|
|
222
|
+
case 'Uint32Array':
|
|
223
|
+
case 'Float32Array':
|
|
224
|
+
case 'Float64Array':
|
|
225
|
+
case 'BigInt64Array':
|
|
226
|
+
case 'BigUint64Array': {
|
|
227
|
+
const TypedArrayConstructor = globalThis[type];
|
|
228
|
+
const typedArray = new TypedArrayConstructor(hydrate(value[1]));
|
|
229
|
+
|
|
230
|
+
hydrated[index] =
|
|
231
|
+
value[2] !== undefined
|
|
232
|
+
? typedArray.subarray(value[2], value[3])
|
|
233
|
+
: typedArray;
|
|
234
|
+
|
|
235
|
+
break;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
case 'ArrayBuffer': {
|
|
239
|
+
const base64 = value[1];
|
|
240
|
+
const arraybuffer = decode64(base64);
|
|
241
|
+
hydrated[index] = arraybuffer;
|
|
242
|
+
break;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
case 'Temporal.Duration':
|
|
246
|
+
case 'Temporal.Instant':
|
|
247
|
+
case 'Temporal.PlainDate':
|
|
248
|
+
case 'Temporal.PlainTime':
|
|
249
|
+
case 'Temporal.PlainDateTime':
|
|
250
|
+
case 'Temporal.PlainMonthDay':
|
|
251
|
+
case 'Temporal.PlainYearMonth':
|
|
252
|
+
case 'Temporal.ZonedDateTime': {
|
|
253
|
+
const temporalName = type.slice(9);
|
|
254
|
+
// @ts-expect-error TS doesn't know about Temporal yet
|
|
255
|
+
hydrated[index] = Temporal[temporalName].from(value[1]);
|
|
256
|
+
break;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
case 'URL': {
|
|
260
|
+
const url = new URL(value[1]);
|
|
261
|
+
hydrated[index] = url;
|
|
262
|
+
break;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
case 'URLSearchParams': {
|
|
266
|
+
const url = new URLSearchParams(value[1]);
|
|
267
|
+
hydrated[index] = url;
|
|
268
|
+
break;
|
|
269
|
+
}
|
|
239
270
|
|
|
240
271
|
default:
|
|
241
272
|
throw new Error(`Unknown type ${type}`);
|
|
@@ -257,6 +288,10 @@ function unflatten(parsed, revivers) {
|
|
|
257
288
|
hydrated[index] = object;
|
|
258
289
|
|
|
259
290
|
for (const key in value) {
|
|
291
|
+
if (key === '__proto__') {
|
|
292
|
+
throw new Error('Cannot parse an object with a `__proto__` property');
|
|
293
|
+
}
|
|
294
|
+
|
|
260
295
|
const n = value[key];
|
|
261
296
|
object[key] = hydrate(n);
|
|
262
297
|
}
|
|
@@ -24,6 +24,11 @@ function trimSlashes(path) {
|
|
|
24
24
|
function isString(path) {
|
|
25
25
|
return typeof path === "string" || path instanceof String;
|
|
26
26
|
}
|
|
27
|
+
const INTERNAL_PREFIXES = /* @__PURE__ */ new Set(["/_", "/@", "/.", "//"]);
|
|
28
|
+
const JUST_SLASHES = /^\/{2,}$/;
|
|
29
|
+
function isInternalPath(path) {
|
|
30
|
+
return INTERNAL_PREFIXES.has(path.slice(0, 2)) && !JUST_SLASHES.test(path);
|
|
31
|
+
}
|
|
27
32
|
function joinPaths(...paths) {
|
|
28
33
|
return paths.filter(isString).map((path, i) => {
|
|
29
34
|
if (i === 0) {
|
|
@@ -35,8 +40,9 @@ function joinPaths(...paths) {
|
|
|
35
40
|
}
|
|
36
41
|
}).join("/");
|
|
37
42
|
}
|
|
43
|
+
const URL_PROTOCOL_REGEX = /^(?:(?:http|ftp|https|ws):?\/\/|\/\/)/;
|
|
38
44
|
function isRemotePath(src) {
|
|
39
|
-
return
|
|
45
|
+
return URL_PROTOCOL_REGEX.test(src) || src.startsWith("data:");
|
|
40
46
|
}
|
|
41
47
|
function slash(path) {
|
|
42
48
|
return path.replace(/\\/g, "/");
|
|
@@ -56,4 +62,4 @@ function hasFileExtension(path) {
|
|
|
56
62
|
return WITH_FILE_EXT.test(path);
|
|
57
63
|
}
|
|
58
64
|
|
|
59
|
-
export { removeTrailingForwardSlash as a, appendForwardSlash as b,
|
|
65
|
+
export { removeTrailingForwardSlash as a, appendForwardSlash as b, isInternalPath as c, collapseDuplicateTrailingSlashes as d, fileExtension as f, hasFileExtension as h, isRemotePath as i, joinPaths as j, prependForwardSlash as p, removeBase as r, slash as s, trimSlashes as t };
|