lkd-web-kit 0.7.14 → 0.7.16
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/dist/components/EmptyState/index.cjs +5 -5
- package/dist/components/Icon.cjs +2 -2
- package/dist/components/InfinityLoadMoreButton/index.cjs +15 -8
- package/dist/components/InfinityLoadMoreButton/index.js +13 -6
- package/dist/components/{SelectInfinity → InfinitySelect}/index.cjs +17 -12
- package/dist/components/{SelectInfinity → InfinitySelect}/index.js +14 -9
- package/dist/components/MyCheckboxGroup/index.cjs +2 -2
- package/dist/components/MyDateInput/index.cjs +3 -3
- package/dist/components/MyDatePickerInput/CalendarIcon.cjs +7 -7
- package/dist/components/MyDatePickerInput/index.cjs +3 -3
- package/dist/components/MyDateTimePicker/index.cjs +3 -3
- package/dist/components/MyMonthPickerInput/index.cjs +3 -3
- package/dist/components/MyMultiSelect/index.cjs +2 -2
- package/dist/components/MyNotifications/index.cjs +2 -2
- package/dist/components/MyNumberInput/index.cjs +2 -2
- package/dist/components/MyRadioGroup/index.cjs +2 -2
- package/dist/components/MySelect/index.cjs +2 -2
- package/dist/components/MyTextInput/index.cjs +2 -2
- package/dist/components/MyTextarea/index.cjs +2 -2
- package/dist/components/MyTimeInput/index.cjs +2 -2
- package/dist/components/NavItems.cjs +4 -4
- package/dist/contexts/NavigationHistoryContext/hook.cjs +2 -2
- package/dist/contexts/NavigationHistoryContext/hook.js +2 -2
- package/dist/contexts/NavigationHistoryContext/index.cjs +3 -3
- package/dist/contexts/PageDataContext/index.cjs +2 -2
- package/dist/form/Form.cjs +2 -2
- package/dist/form/{FormButtonSubmit.cjs → FormSubmitButton.cjs} +4 -4
- package/dist/form/{FormButtonSubmit.js → FormSubmitButton.js} +2 -2
- package/dist/form/base/FormCheckbox.cjs +2 -2
- package/dist/form/base/FormCheckboxGroup.cjs +2 -2
- package/dist/form/base/FormDateInput.cjs +2 -2
- package/dist/form/base/FormDatePickerInput.cjs +2 -2
- package/dist/form/base/FormDateTimePicker.cjs +2 -2
- package/dist/form/base/FormMonthPickerInput.cjs +2 -2
- package/dist/form/base/FormMultiSelect.cjs +2 -2
- package/dist/form/base/FormNumberInput.cjs +2 -2
- package/dist/form/base/FormRadioGroup.cjs +2 -2
- package/dist/form/base/FormSelect.cjs +2 -2
- package/dist/form/base/FormSelectInfinity.cjs +3 -3
- package/dist/form/base/FormSelectInfinity.js +1 -1
- package/dist/form/base/FormTextInput.cjs +2 -2
- package/dist/form/base/FormTextarea.cjs +2 -2
- package/dist/form/base/FormTimeInput.cjs +2 -2
- package/dist/hocs/withController.cjs +3 -3
- package/dist/hocs/withModalManager.cjs +2 -2
- package/dist/index.cjs +37 -39
- package/dist/index.d.ts +8 -21
- package/dist/index.js +2 -3
- package/dist/node_modules/@tanstack/react-virtual/dist/esm/index.cjs +2 -2
- package/package.json +2 -2
- package/dist/_virtual/___vite-browser-external.cjs +0 -12
- package/dist/_virtual/___vite-browser-external.js +0 -6
- package/dist/_virtual/__vite-browser-external.cjs +0 -5
- package/dist/_virtual/__vite-browser-external.js +0 -3
- package/dist/_virtual/_commonjsHelpers.cjs +0 -34
- package/dist/_virtual/_commonjsHelpers.js +0 -30
- package/dist/_virtual/_interop_require_default.cjs +0 -7
- package/dist/_virtual/_interop_require_default.js +0 -3
- package/dist/_virtual/_interop_require_wildcard.cjs +0 -7
- package/dist/_virtual/_interop_require_wildcard.js +0 -3
- package/dist/_virtual/add-base-path.cjs +0 -7
- package/dist/_virtual/add-base-path.js +0 -3
- package/dist/_virtual/add-locale.cjs +0 -7
- package/dist/_virtual/add-locale.js +0 -3
- package/dist/_virtual/add-locale2.cjs +0 -7
- package/dist/_virtual/add-locale2.js +0 -3
- package/dist/_virtual/add-path-prefix.cjs +0 -7
- package/dist/_virtual/add-path-prefix.js +0 -3
- package/dist/_virtual/add-path-suffix.cjs +0 -7
- package/dist/_virtual/add-path-suffix.js +0 -3
- package/dist/_virtual/app-paths.cjs +0 -7
- package/dist/_virtual/app-paths.js +0 -3
- package/dist/_virtual/bloom-filter.cjs +0 -7
- package/dist/_virtual/bloom-filter.js +0 -3
- package/dist/_virtual/compare-states.cjs +0 -7
- package/dist/_virtual/compare-states.js +0 -3
- package/dist/_virtual/constants.cjs +0 -7
- package/dist/_virtual/constants.js +0 -3
- package/dist/_virtual/denormalize-page-path.cjs +0 -7
- package/dist/_virtual/denormalize-page-path.js +0 -3
- package/dist/_virtual/deployment-id.cjs +0 -7
- package/dist/_virtual/deployment-id.js +0 -3
- package/dist/_virtual/detect-domain-locale.cjs +0 -7
- package/dist/_virtual/detect-domain-locale.js +0 -3
- package/dist/_virtual/detect-domain-locale2.cjs +0 -7
- package/dist/_virtual/detect-domain-locale2.js +0 -3
- package/dist/_virtual/disable-smooth-scroll.cjs +0 -7
- package/dist/_virtual/disable-smooth-scroll.js +0 -3
- package/dist/_virtual/encode-uri-path.cjs +0 -7
- package/dist/_virtual/encode-uri-path.js +0 -3
- package/dist/_virtual/ensure-leading-slash.cjs +0 -7
- package/dist/_virtual/ensure-leading-slash.js +0 -3
- package/dist/_virtual/escape-regexp.cjs +0 -7
- package/dist/_virtual/escape-regexp.js +0 -3
- package/dist/_virtual/format-next-pathname-info.cjs +0 -7
- package/dist/_virtual/format-next-pathname-info.js +0 -3
- package/dist/_virtual/format-url.cjs +0 -7
- package/dist/_virtual/format-url.js +0 -3
- package/dist/_virtual/get-asset-path-from-route.cjs +0 -7
- package/dist/_virtual/get-asset-path-from-route.js +0 -3
- package/dist/_virtual/get-cookie-parser.cjs +0 -7
- package/dist/_virtual/get-cookie-parser.js +0 -3
- package/dist/_virtual/get-dynamic-param.cjs +0 -7
- package/dist/_virtual/get-dynamic-param.js +0 -3
- package/dist/_virtual/get-next-pathname-info.cjs +0 -7
- package/dist/_virtual/get-next-pathname-info.js +0 -3
- package/dist/_virtual/get-segment-param.cjs +0 -7
- package/dist/_virtual/get-segment-param.js +0 -3
- package/dist/_virtual/has-base-path.cjs +0 -7
- package/dist/_virtual/has-base-path.js +0 -3
- package/dist/_virtual/head-manager-context.shared-runtime.cjs +0 -7
- package/dist/_virtual/head-manager-context.shared-runtime.js +0 -3
- package/dist/_virtual/html-bots.cjs +0 -7
- package/dist/_virtual/html-bots.js +0 -3
- package/dist/_virtual/index.cjs +0 -7
- package/dist/_virtual/index.js +0 -3
- package/dist/_virtual/index2.cjs +0 -7
- package/dist/_virtual/index2.js +0 -3
- package/dist/_virtual/index3.cjs +0 -7
- package/dist/_virtual/index3.js +0 -3
- package/dist/_virtual/index4.cjs +0 -7
- package/dist/_virtual/index4.js +0 -3
- package/dist/_virtual/index5.cjs +0 -7
- package/dist/_virtual/index5.js +0 -3
- package/dist/_virtual/interception-routes.cjs +0 -7
- package/dist/_virtual/interception-routes.js +0 -3
- package/dist/_virtual/interpolate-as.cjs +0 -7
- package/dist/_virtual/interpolate-as.js +0 -3
- package/dist/_virtual/invariant-error.cjs +0 -7
- package/dist/_virtual/invariant-error.js +0 -3
- package/dist/_virtual/is-api-route.cjs +0 -7
- package/dist/_virtual/is-api-route.js +0 -3
- package/dist/_virtual/is-bot.cjs +0 -7
- package/dist/_virtual/is-bot.js +0 -3
- package/dist/_virtual/is-dynamic.cjs +0 -7
- package/dist/_virtual/is-dynamic.js +0 -3
- package/dist/_virtual/is-error.cjs +0 -7
- package/dist/_virtual/is-error.js +0 -3
- package/dist/_virtual/is-local-url.cjs +0 -7
- package/dist/_virtual/is-local-url.js +0 -3
- package/dist/_virtual/is-plain-object.cjs +0 -7
- package/dist/_virtual/is-plain-object.js +0 -3
- package/dist/_virtual/mitt.cjs +0 -7
- package/dist/_virtual/mitt.js +0 -3
- package/dist/_virtual/normalize-locale-path.cjs +0 -7
- package/dist/_virtual/normalize-locale-path.js +0 -3
- package/dist/_virtual/normalize-path-sep.cjs +0 -7
- package/dist/_virtual/normalize-path-sep.js +0 -3
- package/dist/_virtual/normalize-trailing-slash.cjs +0 -7
- package/dist/_virtual/normalize-trailing-slash.js +0 -3
- package/dist/_virtual/omit.cjs +0 -7
- package/dist/_virtual/omit.js +0 -3
- package/dist/_virtual/parse-loader-tree.cjs +0 -7
- package/dist/_virtual/parse-loader-tree.js +0 -3
- package/dist/_virtual/parse-path.cjs +0 -7
- package/dist/_virtual/parse-path.js +0 -3
- package/dist/_virtual/parse-relative-url.cjs +0 -7
- package/dist/_virtual/parse-relative-url.js +0 -3
- package/dist/_virtual/parse-url.cjs +0 -7
- package/dist/_virtual/parse-url.js +0 -3
- package/dist/_virtual/path-has-prefix.cjs +0 -7
- package/dist/_virtual/path-has-prefix.js +0 -3
- package/dist/_virtual/path-match.cjs +0 -7
- package/dist/_virtual/path-match.js +0 -3
- package/dist/_virtual/prepare-destination.cjs +0 -7
- package/dist/_virtual/prepare-destination.js +0 -3
- package/dist/_virtual/querystring.cjs +0 -7
- package/dist/_virtual/querystring.js +0 -3
- package/dist/_virtual/react-is.development.cjs +0 -7
- package/dist/_virtual/react-is.development.js +0 -3
- package/dist/_virtual/react-is.production.cjs +0 -7
- package/dist/_virtual/react-is.production.js +0 -3
- package/dist/_virtual/remove-base-path.cjs +0 -7
- package/dist/_virtual/remove-base-path.js +0 -3
- package/dist/_virtual/remove-locale.cjs +0 -7
- package/dist/_virtual/remove-locale.js +0 -3
- package/dist/_virtual/remove-path-prefix.cjs +0 -7
- package/dist/_virtual/remove-path-prefix.js +0 -3
- package/dist/_virtual/remove-trailing-slash.cjs +0 -7
- package/dist/_virtual/remove-trailing-slash.js +0 -3
- package/dist/_virtual/request-idle-callback.cjs +0 -7
- package/dist/_virtual/request-idle-callback.js +0 -3
- package/dist/_virtual/resolve-href.cjs +0 -7
- package/dist/_virtual/resolve-href.js +0 -3
- package/dist/_virtual/resolve-rewrites.cjs +0 -7
- package/dist/_virtual/resolve-rewrites.js +0 -3
- package/dist/_virtual/route-loader.cjs +0 -7
- package/dist/_virtual/route-loader.js +0 -3
- package/dist/_virtual/route-match-utils.cjs +0 -7
- package/dist/_virtual/route-match-utils.js +0 -3
- package/dist/_virtual/route-matcher.cjs +0 -7
- package/dist/_virtual/route-matcher.js +0 -3
- package/dist/_virtual/route-pattern-normalizer.cjs +0 -7
- package/dist/_virtual/route-pattern-normalizer.js +0 -3
- package/dist/_virtual/route-regex.cjs +0 -7
- package/dist/_virtual/route-regex.js +0 -3
- package/dist/_virtual/router-context.shared-runtime.cjs +0 -7
- package/dist/_virtual/router-context.shared-runtime.js +0 -3
- package/dist/_virtual/router.cjs +0 -9
- package/dist/_virtual/router.js +0 -5
- package/dist/_virtual/router2.cjs +0 -7
- package/dist/_virtual/router2.js +0 -3
- package/dist/_virtual/router3.cjs +0 -7
- package/dist/_virtual/router3.js +0 -3
- package/dist/_virtual/script.cjs +0 -7
- package/dist/_virtual/script.js +0 -3
- package/dist/_virtual/segment.cjs +0 -7
- package/dist/_virtual/segment.js +0 -3
- package/dist/_virtual/set-attributes-from-props.cjs +0 -7
- package/dist/_virtual/set-attributes-from-props.js +0 -3
- package/dist/_virtual/sorted-routes.cjs +0 -7
- package/dist/_virtual/sorted-routes.js +0 -3
- package/dist/_virtual/trusted-types.cjs +0 -7
- package/dist/_virtual/trusted-types.js +0 -3
- package/dist/_virtual/utils.cjs +0 -7
- package/dist/_virtual/utils.js +0 -3
- package/dist/_virtual/warn-once.cjs +0 -7
- package/dist/_virtual/warn-once.js +0 -3
- package/dist/_virtual/with-router.cjs +0 -7
- package/dist/_virtual/with-router.js +0 -3
- package/dist/components/InfinityLoader/index.cjs +0 -68
- package/dist/components/InfinityLoader/index.js +0 -64
- package/dist/node_modules/@swc/helpers/cjs/_interop_require_default.cjs +0 -20
- package/dist/node_modules/@swc/helpers/cjs/_interop_require_default.js +0 -16
- package/dist/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs +0 -52
- package/dist/node_modules/@swc/helpers/cjs/_interop_require_wildcard.js +0 -48
- package/dist/node_modules/next/dist/build/deployment-id.cjs +0 -34
- package/dist/node_modules/next/dist/build/deployment-id.js +0 -30
- package/dist/node_modules/next/dist/client/add-base-path.cjs +0 -42
- package/dist/node_modules/next/dist/client/add-base-path.js +0 -38
- package/dist/node_modules/next/dist/client/add-locale.cjs +0 -43
- package/dist/node_modules/next/dist/client/add-locale.js +0 -39
- package/dist/node_modules/next/dist/client/detect-domain-locale.cjs +0 -40
- package/dist/node_modules/next/dist/client/detect-domain-locale.js +0 -36
- package/dist/node_modules/next/dist/client/has-base-path.cjs +0 -40
- package/dist/node_modules/next/dist/client/has-base-path.js +0 -36
- package/dist/node_modules/next/dist/client/normalize-trailing-slash.cjs +0 -54
- package/dist/node_modules/next/dist/client/normalize-trailing-slash.js +0 -50
- package/dist/node_modules/next/dist/client/remove-base-path.cjs +0 -49
- package/dist/node_modules/next/dist/client/remove-base-path.js +0 -45
- package/dist/node_modules/next/dist/client/remove-locale.cjs +0 -45
- package/dist/node_modules/next/dist/client/remove-locale.js +0 -41
- package/dist/node_modules/next/dist/client/request-idle-callback.cjs +0 -56
- package/dist/node_modules/next/dist/client/request-idle-callback.js +0 -52
- package/dist/node_modules/next/dist/client/resolve-href.cjs +0 -132
- package/dist/node_modules/next/dist/client/resolve-href.js +0 -128
- package/dist/node_modules/next/dist/client/route-loader.cjs +0 -363
- package/dist/node_modules/next/dist/client/route-loader.js +0 -359
- package/dist/node_modules/next/dist/client/router.cjs +0 -201
- package/dist/node_modules/next/dist/client/router.js +0 -197
- package/dist/node_modules/next/dist/client/script.cjs +0 -366
- package/dist/node_modules/next/dist/client/script.js +0 -362
- package/dist/node_modules/next/dist/client/set-attributes-from-props.cjs +0 -81
- package/dist/node_modules/next/dist/client/set-attributes-from-props.js +0 -77
- package/dist/node_modules/next/dist/client/trusted-types.cjs +0 -56
- package/dist/node_modules/next/dist/client/trusted-types.js +0 -52
- package/dist/node_modules/next/dist/client/with-router.cjs +0 -54
- package/dist/node_modules/next/dist/client/with-router.js +0 -50
- package/dist/node_modules/next/dist/compiled/cookie/index.cjs +0 -22
- package/dist/node_modules/next/dist/compiled/cookie/index.js +0 -18
- package/dist/node_modules/next/dist/compiled/gzip-size/index.cjs +0 -17
- package/dist/node_modules/next/dist/compiled/gzip-size/index.js +0 -13
- package/dist/node_modules/next/dist/compiled/path-to-regexp/index.cjs +0 -16
- package/dist/node_modules/next/dist/compiled/path-to-regexp/index.js +0 -12
- package/dist/node_modules/next/dist/compiled/react-is/cjs/react-is.development.cjs +0 -147
- package/dist/node_modules/next/dist/compiled/react-is/cjs/react-is.development.js +0 -143
- package/dist/node_modules/next/dist/compiled/react-is/cjs/react-is.production.cjs +0 -144
- package/dist/node_modules/next/dist/compiled/react-is/cjs/react-is.production.js +0 -140
- package/dist/node_modules/next/dist/compiled/react-is/index.cjs +0 -23
- package/dist/node_modules/next/dist/compiled/react-is/index.js +0 -19
- package/dist/node_modules/next/dist/lib/constants.cjs +0 -365
- package/dist/node_modules/next/dist/lib/constants.js +0 -361
- package/dist/node_modules/next/dist/lib/is-api-route.cjs +0 -31
- package/dist/node_modules/next/dist/lib/is-api-route.js +0 -27
- package/dist/node_modules/next/dist/lib/is-error.cjs +0 -91
- package/dist/node_modules/next/dist/lib/is-error.js +0 -87
- package/dist/node_modules/next/dist/lib/route-pattern-normalizer.cjs +0 -115
- package/dist/node_modules/next/dist/lib/route-pattern-normalizer.js +0 -111
- package/dist/node_modules/next/dist/server/api-utils/get-cookie-parser.cjs +0 -39
- package/dist/node_modules/next/dist/server/api-utils/get-cookie-parser.js +0 -35
- package/dist/node_modules/next/dist/shared/lib/bloom-filter.cjs +0 -101
- package/dist/node_modules/next/dist/shared/lib/bloom-filter.js +0 -97
- package/dist/node_modules/next/dist/shared/lib/encode-uri-path.cjs +0 -31
- package/dist/node_modules/next/dist/shared/lib/encode-uri-path.js +0 -27
- package/dist/node_modules/next/dist/shared/lib/escape-regexp.cjs +0 -37
- package/dist/node_modules/next/dist/shared/lib/escape-regexp.js +0 -33
- package/dist/node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.cjs +0 -36
- package/dist/node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js +0 -32
- package/dist/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.cjs +0 -41
- package/dist/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js +0 -37
- package/dist/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.cjs +0 -70
- package/dist/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js +0 -66
- package/dist/node_modules/next/dist/shared/lib/invariant-error.cjs +0 -34
- package/dist/node_modules/next/dist/shared/lib/invariant-error.js +0 -30
- package/dist/node_modules/next/dist/shared/lib/is-plain-object.cjs +0 -54
- package/dist/node_modules/next/dist/shared/lib/is-plain-object.js +0 -50
- package/dist/node_modules/next/dist/shared/lib/mitt.cjs +0 -58
- package/dist/node_modules/next/dist/shared/lib/mitt.js +0 -54
- package/dist/node_modules/next/dist/shared/lib/page-path/denormalize-page-path.cjs +0 -36
- package/dist/node_modules/next/dist/shared/lib/page-path/denormalize-page-path.js +0 -32
- package/dist/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.cjs +0 -36
- package/dist/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js +0 -32
- package/dist/node_modules/next/dist/shared/lib/page-path/normalize-path-sep.cjs +0 -37
- package/dist/node_modules/next/dist/shared/lib/page-path/normalize-path-sep.js +0 -33
- package/dist/node_modules/next/dist/shared/lib/router/router.cjs +0 -1814
- package/dist/node_modules/next/dist/shared/lib/router/router.js +0 -1810
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-locale.cjs +0 -46
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-locale.js +0 -42
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.cjs +0 -37
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js +0 -33
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-suffix.cjs +0 -37
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-suffix.js +0 -33
- package/dist/node_modules/next/dist/shared/lib/router/utils/app-paths.cjs +0 -65
- package/dist/node_modules/next/dist/shared/lib/router/utils/app-paths.js +0 -61
- package/dist/node_modules/next/dist/shared/lib/router/utils/compare-states.cjs +0 -50
- package/dist/node_modules/next/dist/shared/lib/router/utils/compare-states.js +0 -46
- package/dist/node_modules/next/dist/shared/lib/router/utils/disable-smooth-scroll.cjs +0 -60
- package/dist/node_modules/next/dist/shared/lib/router/utils/disable-smooth-scroll.js +0 -56
- package/dist/node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.cjs +0 -47
- package/dist/node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.js +0 -43
- package/dist/node_modules/next/dist/shared/lib/router/utils/format-url.cjs +0 -103
- package/dist/node_modules/next/dist/shared/lib/router/utils/format-url.js +0 -99
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-asset-path-from-route.cjs +0 -32
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-asset-path-from-route.js +0 -28
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.cjs +0 -208
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js +0 -204
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-next-pathname-info.cjs +0 -71
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-next-pathname-info.js +0 -67
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-segment-param.cjs +0 -94
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-segment-param.js +0 -90
- package/dist/node_modules/next/dist/shared/lib/router/utils/html-bots.cjs +0 -29
- package/dist/node_modules/next/dist/shared/lib/router/utils/html-bots.js +0 -25
- package/dist/node_modules/next/dist/shared/lib/router/utils/index.cjs +0 -43
- package/dist/node_modules/next/dist/shared/lib/router/utils/index.js +0 -39
- package/dist/node_modules/next/dist/shared/lib/router/utils/interception-routes.cjs +0 -119
- package/dist/node_modules/next/dist/shared/lib/router/utils/interception-routes.js +0 -115
- package/dist/node_modules/next/dist/shared/lib/router/utils/interpolate-as.cjs +0 -71
- package/dist/node_modules/next/dist/shared/lib/router/utils/interpolate-as.js +0 -67
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-bot.cjs +0 -68
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-bot.js +0 -64
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-dynamic.cjs +0 -43
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js +0 -39
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-local-url.cjs +0 -44
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-local-url.js +0 -40
- package/dist/node_modules/next/dist/shared/lib/router/utils/omit.cjs +0 -37
- package/dist/node_modules/next/dist/shared/lib/router/utils/omit.js +0 -33
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.cjs +0 -46
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.js +0 -42
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-path.cjs +0 -51
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-path.js +0 -47
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-relative-url.cjs +0 -54
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-relative-url.js +0 -50
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-url.cjs +0 -50
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-url.js +0 -46
- package/dist/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.cjs +0 -37
- package/dist/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js +0 -33
- package/dist/node_modules/next/dist/shared/lib/router/utils/path-match.cjs +0 -66
- package/dist/node_modules/next/dist/shared/lib/router/utils/path-match.js +0 -62
- package/dist/node_modules/next/dist/shared/lib/router/utils/prepare-destination.cjs +0 -303
- package/dist/node_modules/next/dist/shared/lib/router/utils/prepare-destination.js +0 -299
- package/dist/node_modules/next/dist/shared/lib/router/utils/querystring.cjs +0 -90
- package/dist/node_modules/next/dist/shared/lib/router/utils/querystring.js +0 -86
- package/dist/node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.cjs +0 -56
- package/dist/node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.js +0 -52
- package/dist/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.cjs +0 -39
- package/dist/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js +0 -35
- package/dist/node_modules/next/dist/shared/lib/router/utils/resolve-rewrites.cjs +0 -140
- package/dist/node_modules/next/dist/shared/lib/router/utils/resolve-rewrites.js +0 -136
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-match-utils.cjs +0 -127
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-match-utils.js +0 -123
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-matcher.cjs +0 -63
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-matcher.js +0 -59
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-regex.cjs +0 -272
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-regex.js +0 -268
- package/dist/node_modules/next/dist/shared/lib/router/utils/sorted-routes.cjs +0 -256
- package/dist/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js +0 -252
- package/dist/node_modules/next/dist/shared/lib/router-context.shared-runtime.cjs +0 -36
- package/dist/node_modules/next/dist/shared/lib/router-context.shared-runtime.js +0 -32
- package/dist/node_modules/next/dist/shared/lib/segment.cjs +0 -103
- package/dist/node_modules/next/dist/shared/lib/segment.js +0 -99
- package/dist/node_modules/next/dist/shared/lib/utils/warn-once.cjs +0 -38
- package/dist/node_modules/next/dist/shared/lib/utils/warn-once.js +0 -34
- package/dist/node_modules/next/dist/shared/lib/utils.cjs +0 -204
- package/dist/node_modules/next/dist/shared/lib/utils.js +0 -200
- package/dist/node_modules/next/router.cjs +0 -17
- package/dist/node_modules/next/router.js +0 -13
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { __exports as parseLoaderTree } from '../../../../../../../_virtual/parse-loader-tree.js';
|
|
2
|
-
import { __require as requireSegment } from '../../segment.js';
|
|
3
|
-
|
|
4
|
-
var hasRequiredParseLoaderTree;
|
|
5
|
-
|
|
6
|
-
function requireParseLoaderTree () {
|
|
7
|
-
if (hasRequiredParseLoaderTree) return parseLoaderTree;
|
|
8
|
-
hasRequiredParseLoaderTree = 1;
|
|
9
|
-
(function (exports) {
|
|
10
|
-
Object.defineProperty(exports, "__esModule", {
|
|
11
|
-
value: true
|
|
12
|
-
});
|
|
13
|
-
Object.defineProperty(exports, "parseLoaderTree", {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
get: function() {
|
|
16
|
-
return parseLoaderTree;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
const _segment = requireSegment();
|
|
20
|
-
function parseLoaderTree(tree) {
|
|
21
|
-
const [segment, parallelRoutes, modules] = tree;
|
|
22
|
-
const { layout, template } = modules;
|
|
23
|
-
let { page } = modules;
|
|
24
|
-
// a __DEFAULT__ segment means that this route didn't match any of the
|
|
25
|
-
// segments in the route, so we should use the default page
|
|
26
|
-
page = segment === _segment.DEFAULT_SEGMENT_KEY ? modules.defaultPage : page;
|
|
27
|
-
const conventionPath = layout?.[1] || template?.[1] || page?.[1];
|
|
28
|
-
return {
|
|
29
|
-
page,
|
|
30
|
-
segment,
|
|
31
|
-
modules,
|
|
32
|
-
/* it can be either layout / template / page */ conventionPath,
|
|
33
|
-
parallelRoutes
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
} (parseLoaderTree));
|
|
39
|
-
return parseLoaderTree;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export { requireParseLoaderTree as __require };
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
-
|
|
5
|
-
const parsePath = require('../../../../../../../_virtual/parse-path.cjs');
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Given a path this function will find the pathname, query and hash and return
|
|
9
|
-
* them. This is useful to parse full paths on the client side.
|
|
10
|
-
* @param path A path to parse e.g. /foo/bar?id=1#hash
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
var hasRequiredParsePath;
|
|
14
|
-
|
|
15
|
-
function requireParsePath () {
|
|
16
|
-
if (hasRequiredParsePath) return parsePath.__exports;
|
|
17
|
-
hasRequiredParsePath = 1;
|
|
18
|
-
(function (exports) {
|
|
19
|
-
Object.defineProperty(exports, "__esModule", {
|
|
20
|
-
value: true
|
|
21
|
-
});
|
|
22
|
-
Object.defineProperty(exports, "parsePath", {
|
|
23
|
-
enumerable: true,
|
|
24
|
-
get: function() {
|
|
25
|
-
return parsePath;
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
function parsePath(path) {
|
|
29
|
-
const hashIndex = path.indexOf('#');
|
|
30
|
-
const queryIndex = path.indexOf('?');
|
|
31
|
-
const hasQuery = queryIndex > -1 && (hashIndex < 0 || queryIndex < hashIndex);
|
|
32
|
-
if (hasQuery || hashIndex > -1) {
|
|
33
|
-
return {
|
|
34
|
-
pathname: path.substring(0, hasQuery ? queryIndex : hashIndex),
|
|
35
|
-
query: hasQuery ? path.substring(queryIndex, hashIndex > -1 ? hashIndex : undefined) : '',
|
|
36
|
-
hash: hashIndex > -1 ? path.slice(hashIndex) : ''
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
return {
|
|
40
|
-
pathname: path,
|
|
41
|
-
query: '',
|
|
42
|
-
hash: ''
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
} (parsePath.__exports));
|
|
48
|
-
return parsePath.__exports;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
exports.__require = requireParsePath;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { __exports as parsePath } from '../../../../../../../_virtual/parse-path.js';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Given a path this function will find the pathname, query and hash and return
|
|
5
|
-
* them. This is useful to parse full paths on the client side.
|
|
6
|
-
* @param path A path to parse e.g. /foo/bar?id=1#hash
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
var hasRequiredParsePath;
|
|
10
|
-
|
|
11
|
-
function requireParsePath () {
|
|
12
|
-
if (hasRequiredParsePath) return parsePath;
|
|
13
|
-
hasRequiredParsePath = 1;
|
|
14
|
-
(function (exports) {
|
|
15
|
-
Object.defineProperty(exports, "__esModule", {
|
|
16
|
-
value: true
|
|
17
|
-
});
|
|
18
|
-
Object.defineProperty(exports, "parsePath", {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function() {
|
|
21
|
-
return parsePath;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
function parsePath(path) {
|
|
25
|
-
const hashIndex = path.indexOf('#');
|
|
26
|
-
const queryIndex = path.indexOf('?');
|
|
27
|
-
const hasQuery = queryIndex > -1 && (hashIndex < 0 || queryIndex < hashIndex);
|
|
28
|
-
if (hasQuery || hashIndex > -1) {
|
|
29
|
-
return {
|
|
30
|
-
pathname: path.substring(0, hasQuery ? queryIndex : hashIndex),
|
|
31
|
-
query: hasQuery ? path.substring(queryIndex, hashIndex > -1 ? hashIndex : undefined) : '',
|
|
32
|
-
hash: hashIndex > -1 ? path.slice(hashIndex) : ''
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
pathname: path,
|
|
37
|
-
query: '',
|
|
38
|
-
hash: ''
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
} (parsePath));
|
|
44
|
-
return parsePath;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export { requireParsePath as __require };
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
-
|
|
5
|
-
const parseRelativeUrl = require('../../../../../../../_virtual/parse-relative-url.cjs');
|
|
6
|
-
const utils = require('../../utils.cjs');
|
|
7
|
-
const querystring = require('./querystring.cjs');
|
|
8
|
-
|
|
9
|
-
var hasRequiredParseRelativeUrl;
|
|
10
|
-
|
|
11
|
-
function requireParseRelativeUrl () {
|
|
12
|
-
if (hasRequiredParseRelativeUrl) return parseRelativeUrl.__exports;
|
|
13
|
-
hasRequiredParseRelativeUrl = 1;
|
|
14
|
-
(function (exports) {
|
|
15
|
-
Object.defineProperty(exports, "__esModule", {
|
|
16
|
-
value: true
|
|
17
|
-
});
|
|
18
|
-
Object.defineProperty(exports, "parseRelativeUrl", {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function() {
|
|
21
|
-
return parseRelativeUrl;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
const _utils = utils.__require();
|
|
25
|
-
const _querystring = querystring.__require();
|
|
26
|
-
function parseRelativeUrl(url, base, parseQuery = true) {
|
|
27
|
-
const globalBase = new URL(typeof window === 'undefined' ? 'http://n' : (0, _utils.getLocationOrigin)());
|
|
28
|
-
const resolvedBase = base ? new URL(base, globalBase) : url.startsWith('.') ? new URL(typeof window === 'undefined' ? 'http://n' : window.location.href) : globalBase;
|
|
29
|
-
const { pathname, searchParams, search, hash, href, origin } = new URL(url, resolvedBase);
|
|
30
|
-
if (origin !== globalBase.origin) {
|
|
31
|
-
throw Object.defineProperty(new Error(`invariant: invalid relative URL, router received ${url}`), "__NEXT_ERROR_CODE", {
|
|
32
|
-
value: "E159",
|
|
33
|
-
enumerable: false,
|
|
34
|
-
configurable: true
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
return {
|
|
38
|
-
pathname,
|
|
39
|
-
query: parseQuery ? (0, _querystring.searchParamsToUrlQuery)(searchParams) : undefined,
|
|
40
|
-
search,
|
|
41
|
-
hash,
|
|
42
|
-
href: href.slice(origin.length),
|
|
43
|
-
// We don't know for relative URLs at this point since we set a custom, internal
|
|
44
|
-
// base that isn't surfaced to users.
|
|
45
|
-
slashes: undefined
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
} (parseRelativeUrl.__exports));
|
|
51
|
-
return parseRelativeUrl.__exports;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
exports.__require = requireParseRelativeUrl;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { __exports as parseRelativeUrl } from '../../../../../../../_virtual/parse-relative-url.js';
|
|
2
|
-
import { __require as requireUtils } from '../../utils.js';
|
|
3
|
-
import { __require as requireQuerystring } from './querystring.js';
|
|
4
|
-
|
|
5
|
-
var hasRequiredParseRelativeUrl;
|
|
6
|
-
|
|
7
|
-
function requireParseRelativeUrl () {
|
|
8
|
-
if (hasRequiredParseRelativeUrl) return parseRelativeUrl;
|
|
9
|
-
hasRequiredParseRelativeUrl = 1;
|
|
10
|
-
(function (exports) {
|
|
11
|
-
Object.defineProperty(exports, "__esModule", {
|
|
12
|
-
value: true
|
|
13
|
-
});
|
|
14
|
-
Object.defineProperty(exports, "parseRelativeUrl", {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function() {
|
|
17
|
-
return parseRelativeUrl;
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
const _utils = requireUtils();
|
|
21
|
-
const _querystring = requireQuerystring();
|
|
22
|
-
function parseRelativeUrl(url, base, parseQuery = true) {
|
|
23
|
-
const globalBase = new URL(typeof window === 'undefined' ? 'http://n' : (0, _utils.getLocationOrigin)());
|
|
24
|
-
const resolvedBase = base ? new URL(base, globalBase) : url.startsWith('.') ? new URL(typeof window === 'undefined' ? 'http://n' : window.location.href) : globalBase;
|
|
25
|
-
const { pathname, searchParams, search, hash, href, origin } = new URL(url, resolvedBase);
|
|
26
|
-
if (origin !== globalBase.origin) {
|
|
27
|
-
throw Object.defineProperty(new Error(`invariant: invalid relative URL, router received ${url}`), "__NEXT_ERROR_CODE", {
|
|
28
|
-
value: "E159",
|
|
29
|
-
enumerable: false,
|
|
30
|
-
configurable: true
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
return {
|
|
34
|
-
pathname,
|
|
35
|
-
query: parseQuery ? (0, _querystring.searchParamsToUrlQuery)(searchParams) : undefined,
|
|
36
|
-
search,
|
|
37
|
-
hash,
|
|
38
|
-
href: href.slice(origin.length),
|
|
39
|
-
// We don't know for relative URLs at this point since we set a custom, internal
|
|
40
|
-
// base that isn't surfaced to users.
|
|
41
|
-
slashes: undefined
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
} (parseRelativeUrl));
|
|
47
|
-
return parseRelativeUrl;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export { requireParseRelativeUrl as __require };
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
-
|
|
5
|
-
const parseUrl = require('../../../../../../../_virtual/parse-url.cjs');
|
|
6
|
-
const querystring = require('./querystring.cjs');
|
|
7
|
-
const parseRelativeUrl = require('./parse-relative-url.cjs');
|
|
8
|
-
|
|
9
|
-
var hasRequiredParseUrl;
|
|
10
|
-
|
|
11
|
-
function requireParseUrl () {
|
|
12
|
-
if (hasRequiredParseUrl) return parseUrl.__exports;
|
|
13
|
-
hasRequiredParseUrl = 1;
|
|
14
|
-
(function (exports) {
|
|
15
|
-
Object.defineProperty(exports, "__esModule", {
|
|
16
|
-
value: true
|
|
17
|
-
});
|
|
18
|
-
Object.defineProperty(exports, "parseUrl", {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function() {
|
|
21
|
-
return parseUrl;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
const _querystring = querystring.__require();
|
|
25
|
-
const _parserelativeurl = parseRelativeUrl.__require();
|
|
26
|
-
function parseUrl(url) {
|
|
27
|
-
if (url.startsWith('/')) {
|
|
28
|
-
return (0, _parserelativeurl.parseRelativeUrl)(url);
|
|
29
|
-
}
|
|
30
|
-
const parsedURL = new URL(url);
|
|
31
|
-
return {
|
|
32
|
-
hash: parsedURL.hash,
|
|
33
|
-
hostname: parsedURL.hostname,
|
|
34
|
-
href: parsedURL.href,
|
|
35
|
-
pathname: parsedURL.pathname,
|
|
36
|
-
port: parsedURL.port,
|
|
37
|
-
protocol: parsedURL.protocol,
|
|
38
|
-
query: (0, _querystring.searchParamsToUrlQuery)(parsedURL.searchParams),
|
|
39
|
-
search: parsedURL.search,
|
|
40
|
-
origin: parsedURL.origin,
|
|
41
|
-
slashes: parsedURL.href.slice(parsedURL.protocol.length, parsedURL.protocol.length + 2) === '//'
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
} (parseUrl.__exports));
|
|
47
|
-
return parseUrl.__exports;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
exports.__require = requireParseUrl;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { __exports as parseUrl } from '../../../../../../../_virtual/parse-url.js';
|
|
2
|
-
import { __require as requireQuerystring } from './querystring.js';
|
|
3
|
-
import { __require as requireParseRelativeUrl } from './parse-relative-url.js';
|
|
4
|
-
|
|
5
|
-
var hasRequiredParseUrl;
|
|
6
|
-
|
|
7
|
-
function requireParseUrl () {
|
|
8
|
-
if (hasRequiredParseUrl) return parseUrl;
|
|
9
|
-
hasRequiredParseUrl = 1;
|
|
10
|
-
(function (exports) {
|
|
11
|
-
Object.defineProperty(exports, "__esModule", {
|
|
12
|
-
value: true
|
|
13
|
-
});
|
|
14
|
-
Object.defineProperty(exports, "parseUrl", {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function() {
|
|
17
|
-
return parseUrl;
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
const _querystring = requireQuerystring();
|
|
21
|
-
const _parserelativeurl = requireParseRelativeUrl();
|
|
22
|
-
function parseUrl(url) {
|
|
23
|
-
if (url.startsWith('/')) {
|
|
24
|
-
return (0, _parserelativeurl.parseRelativeUrl)(url);
|
|
25
|
-
}
|
|
26
|
-
const parsedURL = new URL(url);
|
|
27
|
-
return {
|
|
28
|
-
hash: parsedURL.hash,
|
|
29
|
-
hostname: parsedURL.hostname,
|
|
30
|
-
href: parsedURL.href,
|
|
31
|
-
pathname: parsedURL.pathname,
|
|
32
|
-
port: parsedURL.port,
|
|
33
|
-
protocol: parsedURL.protocol,
|
|
34
|
-
query: (0, _querystring.searchParamsToUrlQuery)(parsedURL.searchParams),
|
|
35
|
-
search: parsedURL.search,
|
|
36
|
-
origin: parsedURL.origin,
|
|
37
|
-
slashes: parsedURL.href.slice(parsedURL.protocol.length, parsedURL.protocol.length + 2) === '//'
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
} (parseUrl));
|
|
43
|
-
return parseUrl;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export { requireParseUrl as __require };
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
-
|
|
5
|
-
const pathHasPrefix = require('../../../../../../../_virtual/path-has-prefix.cjs');
|
|
6
|
-
const parsePath = require('./parse-path.cjs');
|
|
7
|
-
|
|
8
|
-
var hasRequiredPathHasPrefix;
|
|
9
|
-
|
|
10
|
-
function requirePathHasPrefix () {
|
|
11
|
-
if (hasRequiredPathHasPrefix) return pathHasPrefix.__exports;
|
|
12
|
-
hasRequiredPathHasPrefix = 1;
|
|
13
|
-
(function (exports) {
|
|
14
|
-
Object.defineProperty(exports, "__esModule", {
|
|
15
|
-
value: true
|
|
16
|
-
});
|
|
17
|
-
Object.defineProperty(exports, "pathHasPrefix", {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
get: function() {
|
|
20
|
-
return pathHasPrefix;
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
const _parsepath = parsePath.__require();
|
|
24
|
-
function pathHasPrefix(path, prefix) {
|
|
25
|
-
if (typeof path !== 'string') {
|
|
26
|
-
return false;
|
|
27
|
-
}
|
|
28
|
-
const { pathname } = (0, _parsepath.parsePath)(path);
|
|
29
|
-
return pathname === prefix || pathname.startsWith(prefix + '/');
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
} (pathHasPrefix.__exports));
|
|
34
|
-
return pathHasPrefix.__exports;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
exports.__require = requirePathHasPrefix;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { __exports as pathHasPrefix } from '../../../../../../../_virtual/path-has-prefix.js';
|
|
2
|
-
import { __require as requireParsePath } from './parse-path.js';
|
|
3
|
-
|
|
4
|
-
var hasRequiredPathHasPrefix;
|
|
5
|
-
|
|
6
|
-
function requirePathHasPrefix () {
|
|
7
|
-
if (hasRequiredPathHasPrefix) return pathHasPrefix;
|
|
8
|
-
hasRequiredPathHasPrefix = 1;
|
|
9
|
-
(function (exports) {
|
|
10
|
-
Object.defineProperty(exports, "__esModule", {
|
|
11
|
-
value: true
|
|
12
|
-
});
|
|
13
|
-
Object.defineProperty(exports, "pathHasPrefix", {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
get: function() {
|
|
16
|
-
return pathHasPrefix;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
const _parsepath = requireParsePath();
|
|
20
|
-
function pathHasPrefix(path, prefix) {
|
|
21
|
-
if (typeof path !== 'string') {
|
|
22
|
-
return false;
|
|
23
|
-
}
|
|
24
|
-
const { pathname } = (0, _parsepath.parsePath)(path);
|
|
25
|
-
return pathname === prefix || pathname.startsWith(prefix + '/');
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
} (pathHasPrefix));
|
|
30
|
-
return pathHasPrefix;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export { requirePathHasPrefix as __require };
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
-
|
|
5
|
-
const pathMatch = require('../../../../../../../_virtual/path-match.cjs');
|
|
6
|
-
const index = require('../../../../compiled/path-to-regexp/index.cjs');
|
|
7
|
-
|
|
8
|
-
var hasRequiredPathMatch;
|
|
9
|
-
|
|
10
|
-
function requirePathMatch () {
|
|
11
|
-
if (hasRequiredPathMatch) return pathMatch.__exports;
|
|
12
|
-
hasRequiredPathMatch = 1;
|
|
13
|
-
(function (exports) {
|
|
14
|
-
Object.defineProperty(exports, "__esModule", {
|
|
15
|
-
value: true
|
|
16
|
-
});
|
|
17
|
-
Object.defineProperty(exports, "getPathMatch", {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
get: function() {
|
|
20
|
-
return getPathMatch;
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
const _pathtoregexp = index.__require();
|
|
24
|
-
function getPathMatch(path, options) {
|
|
25
|
-
const keys = [];
|
|
26
|
-
const regexp = (0, _pathtoregexp.pathToRegexp)(path, keys, {
|
|
27
|
-
delimiter: '/',
|
|
28
|
-
sensitive: typeof options?.sensitive === 'boolean' ? options.sensitive : false,
|
|
29
|
-
strict: options?.strict
|
|
30
|
-
});
|
|
31
|
-
const matcher = (0, _pathtoregexp.regexpToFunction)(options?.regexModifier ? new RegExp(options.regexModifier(regexp.source), regexp.flags) : regexp, keys);
|
|
32
|
-
/**
|
|
33
|
-
* A matcher function that will check if a given pathname matches the path
|
|
34
|
-
* given in the builder function. When the path does not match it will return
|
|
35
|
-
* `false` but if it does it will return an object with the matched params
|
|
36
|
-
* merged with the params provided in the second argument.
|
|
37
|
-
*/ return (pathname, params)=>{
|
|
38
|
-
// If no pathname is provided it's not a match.
|
|
39
|
-
if (typeof pathname !== 'string') return false;
|
|
40
|
-
const match = matcher(pathname);
|
|
41
|
-
// If the path did not match `false` will be returned.
|
|
42
|
-
if (!match) return false;
|
|
43
|
-
/**
|
|
44
|
-
* If unnamed params are not allowed they must be removed from
|
|
45
|
-
* the matched parameters. path-to-regexp uses "string" for named and
|
|
46
|
-
* "number" for unnamed parameters.
|
|
47
|
-
*/ if (options?.removeUnnamedParams) {
|
|
48
|
-
for (const key of keys){
|
|
49
|
-
if (typeof key.name === 'number') {
|
|
50
|
-
delete match.params[key.name];
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
return {
|
|
55
|
-
...params,
|
|
56
|
-
...match.params
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
} (pathMatch.__exports));
|
|
63
|
-
return pathMatch.__exports;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
exports.__require = requirePathMatch;
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { __exports as pathMatch } from '../../../../../../../_virtual/path-match.js';
|
|
2
|
-
import { __require as requirePathToRegexp } from '../../../../compiled/path-to-regexp/index.js';
|
|
3
|
-
|
|
4
|
-
var hasRequiredPathMatch;
|
|
5
|
-
|
|
6
|
-
function requirePathMatch () {
|
|
7
|
-
if (hasRequiredPathMatch) return pathMatch;
|
|
8
|
-
hasRequiredPathMatch = 1;
|
|
9
|
-
(function (exports) {
|
|
10
|
-
Object.defineProperty(exports, "__esModule", {
|
|
11
|
-
value: true
|
|
12
|
-
});
|
|
13
|
-
Object.defineProperty(exports, "getPathMatch", {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
get: function() {
|
|
16
|
-
return getPathMatch;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
const _pathtoregexp = requirePathToRegexp();
|
|
20
|
-
function getPathMatch(path, options) {
|
|
21
|
-
const keys = [];
|
|
22
|
-
const regexp = (0, _pathtoregexp.pathToRegexp)(path, keys, {
|
|
23
|
-
delimiter: '/',
|
|
24
|
-
sensitive: typeof options?.sensitive === 'boolean' ? options.sensitive : false,
|
|
25
|
-
strict: options?.strict
|
|
26
|
-
});
|
|
27
|
-
const matcher = (0, _pathtoregexp.regexpToFunction)(options?.regexModifier ? new RegExp(options.regexModifier(regexp.source), regexp.flags) : regexp, keys);
|
|
28
|
-
/**
|
|
29
|
-
* A matcher function that will check if a given pathname matches the path
|
|
30
|
-
* given in the builder function. When the path does not match it will return
|
|
31
|
-
* `false` but if it does it will return an object with the matched params
|
|
32
|
-
* merged with the params provided in the second argument.
|
|
33
|
-
*/ return (pathname, params)=>{
|
|
34
|
-
// If no pathname is provided it's not a match.
|
|
35
|
-
if (typeof pathname !== 'string') return false;
|
|
36
|
-
const match = matcher(pathname);
|
|
37
|
-
// If the path did not match `false` will be returned.
|
|
38
|
-
if (!match) return false;
|
|
39
|
-
/**
|
|
40
|
-
* If unnamed params are not allowed they must be removed from
|
|
41
|
-
* the matched parameters. path-to-regexp uses "string" for named and
|
|
42
|
-
* "number" for unnamed parameters.
|
|
43
|
-
*/ if (options?.removeUnnamedParams) {
|
|
44
|
-
for (const key of keys){
|
|
45
|
-
if (typeof key.name === 'number') {
|
|
46
|
-
delete match.params[key.name];
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
return {
|
|
51
|
-
...params,
|
|
52
|
-
...match.params
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
} (pathMatch));
|
|
59
|
-
return pathMatch;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export { requirePathMatch as __require };
|