lkd-web-kit 0.7.15 → 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 +2 -2
- package/dist/components/InfinitySelect/index.cjs +9 -10
- package/dist/components/InfinitySelect/index.js +0 -1
- 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/FormSubmitButton.cjs +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 +2 -2
- 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/node_modules/@tanstack/react-virtual/dist/esm/index.cjs +2 -2
- package/package.json +1 -1
- 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/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,86 +0,0 @@
|
|
|
1
|
-
import { __exports as querystring } from '../../../../../../../_virtual/querystring.js';
|
|
2
|
-
|
|
3
|
-
var hasRequiredQuerystring;
|
|
4
|
-
|
|
5
|
-
function requireQuerystring () {
|
|
6
|
-
if (hasRequiredQuerystring) return querystring;
|
|
7
|
-
hasRequiredQuerystring = 1;
|
|
8
|
-
(function (exports) {
|
|
9
|
-
Object.defineProperty(exports, "__esModule", {
|
|
10
|
-
value: true
|
|
11
|
-
});
|
|
12
|
-
function _export(target, all) {
|
|
13
|
-
for(var name in all)Object.defineProperty(target, name, {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
get: all[name]
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
_export(exports, {
|
|
19
|
-
assign: function() {
|
|
20
|
-
return assign;
|
|
21
|
-
},
|
|
22
|
-
searchParamsToUrlQuery: function() {
|
|
23
|
-
return searchParamsToUrlQuery;
|
|
24
|
-
},
|
|
25
|
-
urlQueryToSearchParams: function() {
|
|
26
|
-
return urlQueryToSearchParams;
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
function searchParamsToUrlQuery(searchParams) {
|
|
30
|
-
const query = {};
|
|
31
|
-
for (const [key, value] of searchParams.entries()){
|
|
32
|
-
const existing = query[key];
|
|
33
|
-
if (typeof existing === 'undefined') {
|
|
34
|
-
query[key] = value;
|
|
35
|
-
} else if (Array.isArray(existing)) {
|
|
36
|
-
existing.push(value);
|
|
37
|
-
} else {
|
|
38
|
-
query[key] = [
|
|
39
|
-
existing,
|
|
40
|
-
value
|
|
41
|
-
];
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
return query;
|
|
45
|
-
}
|
|
46
|
-
function stringifyUrlQueryParam(param) {
|
|
47
|
-
if (typeof param === 'string') {
|
|
48
|
-
return param;
|
|
49
|
-
}
|
|
50
|
-
if (typeof param === 'number' && !isNaN(param) || typeof param === 'boolean') {
|
|
51
|
-
return String(param);
|
|
52
|
-
} else {
|
|
53
|
-
return '';
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
function urlQueryToSearchParams(query) {
|
|
57
|
-
const searchParams = new URLSearchParams();
|
|
58
|
-
for (const [key, value] of Object.entries(query)){
|
|
59
|
-
if (Array.isArray(value)) {
|
|
60
|
-
for (const item of value){
|
|
61
|
-
searchParams.append(key, stringifyUrlQueryParam(item));
|
|
62
|
-
}
|
|
63
|
-
} else {
|
|
64
|
-
searchParams.set(key, stringifyUrlQueryParam(value));
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
return searchParams;
|
|
68
|
-
}
|
|
69
|
-
function assign(target, ...searchParamsList) {
|
|
70
|
-
for (const searchParams of searchParamsList){
|
|
71
|
-
for (const key of searchParams.keys()){
|
|
72
|
-
target.delete(key);
|
|
73
|
-
}
|
|
74
|
-
for (const [key, value] of searchParams.entries()){
|
|
75
|
-
target.append(key, value);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
return target;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
} (querystring));
|
|
83
|
-
return querystring;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export { requireQuerystring as __require };
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
-
|
|
5
|
-
const removePathPrefix = require('../../../../../../../_virtual/remove-path-prefix.cjs');
|
|
6
|
-
const pathHasPrefix = require('./path-has-prefix.cjs');
|
|
7
|
-
|
|
8
|
-
var hasRequiredRemovePathPrefix;
|
|
9
|
-
|
|
10
|
-
function requireRemovePathPrefix () {
|
|
11
|
-
if (hasRequiredRemovePathPrefix) return removePathPrefix.__exports;
|
|
12
|
-
hasRequiredRemovePathPrefix = 1;
|
|
13
|
-
(function (exports) {
|
|
14
|
-
Object.defineProperty(exports, "__esModule", {
|
|
15
|
-
value: true
|
|
16
|
-
});
|
|
17
|
-
Object.defineProperty(exports, "removePathPrefix", {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
get: function() {
|
|
20
|
-
return removePathPrefix;
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
const _pathhasprefix = pathHasPrefix.__require();
|
|
24
|
-
function removePathPrefix(path, prefix) {
|
|
25
|
-
// If the path doesn't start with the prefix we can return it as is. This
|
|
26
|
-
// protects us from situations where the prefix is a substring of the path
|
|
27
|
-
// prefix such as:
|
|
28
|
-
//
|
|
29
|
-
// For prefix: /blog
|
|
30
|
-
//
|
|
31
|
-
// /blog -> true
|
|
32
|
-
// /blog/ -> true
|
|
33
|
-
// /blog/1 -> true
|
|
34
|
-
// /blogging -> false
|
|
35
|
-
// /blogging/ -> false
|
|
36
|
-
// /blogging/1 -> false
|
|
37
|
-
if (!(0, _pathhasprefix.pathHasPrefix)(path, prefix)) {
|
|
38
|
-
return path;
|
|
39
|
-
}
|
|
40
|
-
// Remove the prefix from the path via slicing.
|
|
41
|
-
const withoutPrefix = path.slice(prefix.length);
|
|
42
|
-
// If the path without the prefix starts with a `/` we can return it as is.
|
|
43
|
-
if (withoutPrefix.startsWith('/')) {
|
|
44
|
-
return withoutPrefix;
|
|
45
|
-
}
|
|
46
|
-
// If the path without the prefix doesn't start with a `/` we need to add it
|
|
47
|
-
// back to the path to make sure it's a valid path.
|
|
48
|
-
return `/${withoutPrefix}`;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
} (removePathPrefix.__exports));
|
|
53
|
-
return removePathPrefix.__exports;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
exports.__require = requireRemovePathPrefix;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { __exports as removePathPrefix } from '../../../../../../../_virtual/remove-path-prefix.js';
|
|
2
|
-
import { __require as requirePathHasPrefix } from './path-has-prefix.js';
|
|
3
|
-
|
|
4
|
-
var hasRequiredRemovePathPrefix;
|
|
5
|
-
|
|
6
|
-
function requireRemovePathPrefix () {
|
|
7
|
-
if (hasRequiredRemovePathPrefix) return removePathPrefix;
|
|
8
|
-
hasRequiredRemovePathPrefix = 1;
|
|
9
|
-
(function (exports) {
|
|
10
|
-
Object.defineProperty(exports, "__esModule", {
|
|
11
|
-
value: true
|
|
12
|
-
});
|
|
13
|
-
Object.defineProperty(exports, "removePathPrefix", {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
get: function() {
|
|
16
|
-
return removePathPrefix;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
const _pathhasprefix = requirePathHasPrefix();
|
|
20
|
-
function removePathPrefix(path, prefix) {
|
|
21
|
-
// If the path doesn't start with the prefix we can return it as is. This
|
|
22
|
-
// protects us from situations where the prefix is a substring of the path
|
|
23
|
-
// prefix such as:
|
|
24
|
-
//
|
|
25
|
-
// For prefix: /blog
|
|
26
|
-
//
|
|
27
|
-
// /blog -> true
|
|
28
|
-
// /blog/ -> true
|
|
29
|
-
// /blog/1 -> true
|
|
30
|
-
// /blogging -> false
|
|
31
|
-
// /blogging/ -> false
|
|
32
|
-
// /blogging/1 -> false
|
|
33
|
-
if (!(0, _pathhasprefix.pathHasPrefix)(path, prefix)) {
|
|
34
|
-
return path;
|
|
35
|
-
}
|
|
36
|
-
// Remove the prefix from the path via slicing.
|
|
37
|
-
const withoutPrefix = path.slice(prefix.length);
|
|
38
|
-
// If the path without the prefix starts with a `/` we can return it as is.
|
|
39
|
-
if (withoutPrefix.startsWith('/')) {
|
|
40
|
-
return withoutPrefix;
|
|
41
|
-
}
|
|
42
|
-
// If the path without the prefix doesn't start with a `/` we need to add it
|
|
43
|
-
// back to the path to make sure it's a valid path.
|
|
44
|
-
return `/${withoutPrefix}`;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
} (removePathPrefix));
|
|
49
|
-
return removePathPrefix;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export { requireRemovePathPrefix as __require };
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
-
|
|
5
|
-
const removeTrailingSlash = require('../../../../../../../_virtual/remove-trailing-slash.cjs');
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Removes the trailing slash for a given route or page path. Preserves the
|
|
9
|
-
* root page. Examples:
|
|
10
|
-
* - `/foo/bar/` -> `/foo/bar`
|
|
11
|
-
* - `/foo/bar` -> `/foo/bar`
|
|
12
|
-
* - `/` -> `/`
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
var hasRequiredRemoveTrailingSlash;
|
|
16
|
-
|
|
17
|
-
function requireRemoveTrailingSlash () {
|
|
18
|
-
if (hasRequiredRemoveTrailingSlash) return removeTrailingSlash.__exports;
|
|
19
|
-
hasRequiredRemoveTrailingSlash = 1;
|
|
20
|
-
(function (exports) {
|
|
21
|
-
Object.defineProperty(exports, "__esModule", {
|
|
22
|
-
value: true
|
|
23
|
-
});
|
|
24
|
-
Object.defineProperty(exports, "removeTrailingSlash", {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
get: function() {
|
|
27
|
-
return removeTrailingSlash;
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
function removeTrailingSlash(route) {
|
|
31
|
-
return route.replace(/\/$/, '') || '/';
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
} (removeTrailingSlash.__exports));
|
|
36
|
-
return removeTrailingSlash.__exports;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
exports.__require = requireRemoveTrailingSlash;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { __exports as removeTrailingSlash } from '../../../../../../../_virtual/remove-trailing-slash.js';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Removes the trailing slash for a given route or page path. Preserves the
|
|
5
|
-
* root page. Examples:
|
|
6
|
-
* - `/foo/bar/` -> `/foo/bar`
|
|
7
|
-
* - `/foo/bar` -> `/foo/bar`
|
|
8
|
-
* - `/` -> `/`
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
var hasRequiredRemoveTrailingSlash;
|
|
12
|
-
|
|
13
|
-
function requireRemoveTrailingSlash () {
|
|
14
|
-
if (hasRequiredRemoveTrailingSlash) return removeTrailingSlash;
|
|
15
|
-
hasRequiredRemoveTrailingSlash = 1;
|
|
16
|
-
(function (exports) {
|
|
17
|
-
Object.defineProperty(exports, "__esModule", {
|
|
18
|
-
value: true
|
|
19
|
-
});
|
|
20
|
-
Object.defineProperty(exports, "removeTrailingSlash", {
|
|
21
|
-
enumerable: true,
|
|
22
|
-
get: function() {
|
|
23
|
-
return removeTrailingSlash;
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
function removeTrailingSlash(route) {
|
|
27
|
-
return route.replace(/\/$/, '') || '/';
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
} (removeTrailingSlash));
|
|
32
|
-
return removeTrailingSlash;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export { requireRemoveTrailingSlash as __require };
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
-
|
|
5
|
-
const resolveRewrites = require('../../../../../../../_virtual/resolve-rewrites.cjs');
|
|
6
|
-
const pathMatch = require('./path-match.cjs');
|
|
7
|
-
const prepareDestination = require('./prepare-destination.cjs');
|
|
8
|
-
const removeTrailingSlash = require('./remove-trailing-slash.cjs');
|
|
9
|
-
const normalizeLocalePath = require('../../i18n/normalize-locale-path.cjs');
|
|
10
|
-
const removeBasePath = require('../../../../client/remove-base-path.cjs');
|
|
11
|
-
const parseRelativeUrl = require('./parse-relative-url.cjs');
|
|
12
|
-
|
|
13
|
-
var hasRequiredResolveRewrites;
|
|
14
|
-
|
|
15
|
-
function requireResolveRewrites () {
|
|
16
|
-
if (hasRequiredResolveRewrites) return resolveRewrites.__exports;
|
|
17
|
-
hasRequiredResolveRewrites = 1;
|
|
18
|
-
(function (exports) {
|
|
19
|
-
Object.defineProperty(exports, "__esModule", {
|
|
20
|
-
value: true
|
|
21
|
-
});
|
|
22
|
-
Object.defineProperty(exports, "default", {
|
|
23
|
-
enumerable: true,
|
|
24
|
-
get: function() {
|
|
25
|
-
return resolveRewrites;
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
const _pathmatch = pathMatch.__require();
|
|
29
|
-
const _preparedestination = prepareDestination.__require();
|
|
30
|
-
const _removetrailingslash = removeTrailingSlash.__require();
|
|
31
|
-
const _normalizelocalepath = normalizeLocalePath.__require();
|
|
32
|
-
const _removebasepath = removeBasePath.__require();
|
|
33
|
-
const _parserelativeurl = parseRelativeUrl.__require();
|
|
34
|
-
function resolveRewrites(asPath, pages, rewrites, query, resolveHref, locales) {
|
|
35
|
-
let matchedPage = false;
|
|
36
|
-
let externalDest = false;
|
|
37
|
-
let parsedAs = (0, _parserelativeurl.parseRelativeUrl)(asPath);
|
|
38
|
-
let fsPathname = (0, _removetrailingslash.removeTrailingSlash)((0, _normalizelocalepath.normalizeLocalePath)((0, _removebasepath.removeBasePath)(parsedAs.pathname), locales).pathname);
|
|
39
|
-
let resolvedHref;
|
|
40
|
-
const handleRewrite = (rewrite)=>{
|
|
41
|
-
const matcher = (0, _pathmatch.getPathMatch)(rewrite.source + (process.env.__NEXT_TRAILING_SLASH ? '(/)?' : ''), {
|
|
42
|
-
removeUnnamedParams: true,
|
|
43
|
-
strict: true
|
|
44
|
-
});
|
|
45
|
-
let params = matcher(parsedAs.pathname);
|
|
46
|
-
if ((rewrite.has || rewrite.missing) && params) {
|
|
47
|
-
const hasParams = (0, _preparedestination.matchHas)({
|
|
48
|
-
headers: {
|
|
49
|
-
host: document.location.hostname,
|
|
50
|
-
'user-agent': navigator.userAgent
|
|
51
|
-
},
|
|
52
|
-
cookies: document.cookie.split('; ').reduce((acc, item)=>{
|
|
53
|
-
const [key, ...value] = item.split('=');
|
|
54
|
-
acc[key] = value.join('=');
|
|
55
|
-
return acc;
|
|
56
|
-
}, {})
|
|
57
|
-
}, parsedAs.query, rewrite.has, rewrite.missing);
|
|
58
|
-
if (hasParams) {
|
|
59
|
-
Object.assign(params, hasParams);
|
|
60
|
-
} else {
|
|
61
|
-
params = false;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
if (params) {
|
|
65
|
-
if (!rewrite.destination) {
|
|
66
|
-
// this is a proxied rewrite which isn't handled on the client
|
|
67
|
-
externalDest = true;
|
|
68
|
-
return true;
|
|
69
|
-
}
|
|
70
|
-
const destRes = (0, _preparedestination.prepareDestination)({
|
|
71
|
-
appendParamsToQuery: true,
|
|
72
|
-
destination: rewrite.destination,
|
|
73
|
-
params: params,
|
|
74
|
-
query: query
|
|
75
|
-
});
|
|
76
|
-
parsedAs = destRes.parsedDestination;
|
|
77
|
-
asPath = destRes.newUrl;
|
|
78
|
-
Object.assign(query, destRes.parsedDestination.query);
|
|
79
|
-
fsPathname = (0, _removetrailingslash.removeTrailingSlash)((0, _normalizelocalepath.normalizeLocalePath)((0, _removebasepath.removeBasePath)(asPath), locales).pathname);
|
|
80
|
-
if (pages.includes(fsPathname)) {
|
|
81
|
-
// check if we now match a page as this means we are done
|
|
82
|
-
// resolving the rewrites
|
|
83
|
-
matchedPage = true;
|
|
84
|
-
resolvedHref = fsPathname;
|
|
85
|
-
return true;
|
|
86
|
-
}
|
|
87
|
-
// check if we match a dynamic-route, if so we break the rewrites chain
|
|
88
|
-
resolvedHref = resolveHref(fsPathname);
|
|
89
|
-
if (resolvedHref !== asPath && pages.includes(resolvedHref)) {
|
|
90
|
-
matchedPage = true;
|
|
91
|
-
return true;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
};
|
|
95
|
-
let finished = false;
|
|
96
|
-
for(let i = 0; i < rewrites.beforeFiles.length; i++){
|
|
97
|
-
// we don't end after match in beforeFiles to allow
|
|
98
|
-
// continuing through all beforeFiles rewrites
|
|
99
|
-
handleRewrite(rewrites.beforeFiles[i]);
|
|
100
|
-
}
|
|
101
|
-
matchedPage = pages.includes(fsPathname);
|
|
102
|
-
if (!matchedPage) {
|
|
103
|
-
if (!finished) {
|
|
104
|
-
for(let i = 0; i < rewrites.afterFiles.length; i++){
|
|
105
|
-
if (handleRewrite(rewrites.afterFiles[i])) {
|
|
106
|
-
finished = true;
|
|
107
|
-
break;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
// check dynamic route before processing fallback rewrites
|
|
112
|
-
if (!finished) {
|
|
113
|
-
resolvedHref = resolveHref(fsPathname);
|
|
114
|
-
matchedPage = pages.includes(resolvedHref);
|
|
115
|
-
finished = matchedPage;
|
|
116
|
-
}
|
|
117
|
-
if (!finished) {
|
|
118
|
-
for(let i = 0; i < rewrites.fallback.length; i++){
|
|
119
|
-
if (handleRewrite(rewrites.fallback[i])) {
|
|
120
|
-
finished = true;
|
|
121
|
-
break;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
return {
|
|
127
|
-
asPath,
|
|
128
|
-
parsedAs,
|
|
129
|
-
matchedPage,
|
|
130
|
-
resolvedHref,
|
|
131
|
-
externalDest
|
|
132
|
-
};
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
} (resolveRewrites.__exports));
|
|
137
|
-
return resolveRewrites.__exports;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
exports.__require = requireResolveRewrites;
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
import { __exports as resolveRewrites } from '../../../../../../../_virtual/resolve-rewrites.js';
|
|
2
|
-
import { __require as requirePathMatch } from './path-match.js';
|
|
3
|
-
import { __require as requirePrepareDestination } from './prepare-destination.js';
|
|
4
|
-
import { __require as requireRemoveTrailingSlash } from './remove-trailing-slash.js';
|
|
5
|
-
import { __require as requireNormalizeLocalePath } from '../../i18n/normalize-locale-path.js';
|
|
6
|
-
import { __require as requireRemoveBasePath } from '../../../../client/remove-base-path.js';
|
|
7
|
-
import { __require as requireParseRelativeUrl } from './parse-relative-url.js';
|
|
8
|
-
|
|
9
|
-
var hasRequiredResolveRewrites;
|
|
10
|
-
|
|
11
|
-
function requireResolveRewrites () {
|
|
12
|
-
if (hasRequiredResolveRewrites) return resolveRewrites;
|
|
13
|
-
hasRequiredResolveRewrites = 1;
|
|
14
|
-
(function (exports) {
|
|
15
|
-
Object.defineProperty(exports, "__esModule", {
|
|
16
|
-
value: true
|
|
17
|
-
});
|
|
18
|
-
Object.defineProperty(exports, "default", {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function() {
|
|
21
|
-
return resolveRewrites;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
const _pathmatch = requirePathMatch();
|
|
25
|
-
const _preparedestination = requirePrepareDestination();
|
|
26
|
-
const _removetrailingslash = requireRemoveTrailingSlash();
|
|
27
|
-
const _normalizelocalepath = requireNormalizeLocalePath();
|
|
28
|
-
const _removebasepath = requireRemoveBasePath();
|
|
29
|
-
const _parserelativeurl = requireParseRelativeUrl();
|
|
30
|
-
function resolveRewrites(asPath, pages, rewrites, query, resolveHref, locales) {
|
|
31
|
-
let matchedPage = false;
|
|
32
|
-
let externalDest = false;
|
|
33
|
-
let parsedAs = (0, _parserelativeurl.parseRelativeUrl)(asPath);
|
|
34
|
-
let fsPathname = (0, _removetrailingslash.removeTrailingSlash)((0, _normalizelocalepath.normalizeLocalePath)((0, _removebasepath.removeBasePath)(parsedAs.pathname), locales).pathname);
|
|
35
|
-
let resolvedHref;
|
|
36
|
-
const handleRewrite = (rewrite)=>{
|
|
37
|
-
const matcher = (0, _pathmatch.getPathMatch)(rewrite.source + (process.env.__NEXT_TRAILING_SLASH ? '(/)?' : ''), {
|
|
38
|
-
removeUnnamedParams: true,
|
|
39
|
-
strict: true
|
|
40
|
-
});
|
|
41
|
-
let params = matcher(parsedAs.pathname);
|
|
42
|
-
if ((rewrite.has || rewrite.missing) && params) {
|
|
43
|
-
const hasParams = (0, _preparedestination.matchHas)({
|
|
44
|
-
headers: {
|
|
45
|
-
host: document.location.hostname,
|
|
46
|
-
'user-agent': navigator.userAgent
|
|
47
|
-
},
|
|
48
|
-
cookies: document.cookie.split('; ').reduce((acc, item)=>{
|
|
49
|
-
const [key, ...value] = item.split('=');
|
|
50
|
-
acc[key] = value.join('=');
|
|
51
|
-
return acc;
|
|
52
|
-
}, {})
|
|
53
|
-
}, parsedAs.query, rewrite.has, rewrite.missing);
|
|
54
|
-
if (hasParams) {
|
|
55
|
-
Object.assign(params, hasParams);
|
|
56
|
-
} else {
|
|
57
|
-
params = false;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
if (params) {
|
|
61
|
-
if (!rewrite.destination) {
|
|
62
|
-
// this is a proxied rewrite which isn't handled on the client
|
|
63
|
-
externalDest = true;
|
|
64
|
-
return true;
|
|
65
|
-
}
|
|
66
|
-
const destRes = (0, _preparedestination.prepareDestination)({
|
|
67
|
-
appendParamsToQuery: true,
|
|
68
|
-
destination: rewrite.destination,
|
|
69
|
-
params: params,
|
|
70
|
-
query: query
|
|
71
|
-
});
|
|
72
|
-
parsedAs = destRes.parsedDestination;
|
|
73
|
-
asPath = destRes.newUrl;
|
|
74
|
-
Object.assign(query, destRes.parsedDestination.query);
|
|
75
|
-
fsPathname = (0, _removetrailingslash.removeTrailingSlash)((0, _normalizelocalepath.normalizeLocalePath)((0, _removebasepath.removeBasePath)(asPath), locales).pathname);
|
|
76
|
-
if (pages.includes(fsPathname)) {
|
|
77
|
-
// check if we now match a page as this means we are done
|
|
78
|
-
// resolving the rewrites
|
|
79
|
-
matchedPage = true;
|
|
80
|
-
resolvedHref = fsPathname;
|
|
81
|
-
return true;
|
|
82
|
-
}
|
|
83
|
-
// check if we match a dynamic-route, if so we break the rewrites chain
|
|
84
|
-
resolvedHref = resolveHref(fsPathname);
|
|
85
|
-
if (resolvedHref !== asPath && pages.includes(resolvedHref)) {
|
|
86
|
-
matchedPage = true;
|
|
87
|
-
return true;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
};
|
|
91
|
-
let finished = false;
|
|
92
|
-
for(let i = 0; i < rewrites.beforeFiles.length; i++){
|
|
93
|
-
// we don't end after match in beforeFiles to allow
|
|
94
|
-
// continuing through all beforeFiles rewrites
|
|
95
|
-
handleRewrite(rewrites.beforeFiles[i]);
|
|
96
|
-
}
|
|
97
|
-
matchedPage = pages.includes(fsPathname);
|
|
98
|
-
if (!matchedPage) {
|
|
99
|
-
if (!finished) {
|
|
100
|
-
for(let i = 0; i < rewrites.afterFiles.length; i++){
|
|
101
|
-
if (handleRewrite(rewrites.afterFiles[i])) {
|
|
102
|
-
finished = true;
|
|
103
|
-
break;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
// check dynamic route before processing fallback rewrites
|
|
108
|
-
if (!finished) {
|
|
109
|
-
resolvedHref = resolveHref(fsPathname);
|
|
110
|
-
matchedPage = pages.includes(resolvedHref);
|
|
111
|
-
finished = matchedPage;
|
|
112
|
-
}
|
|
113
|
-
if (!finished) {
|
|
114
|
-
for(let i = 0; i < rewrites.fallback.length; i++){
|
|
115
|
-
if (handleRewrite(rewrites.fallback[i])) {
|
|
116
|
-
finished = true;
|
|
117
|
-
break;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
return {
|
|
123
|
-
asPath,
|
|
124
|
-
parsedAs,
|
|
125
|
-
matchedPage,
|
|
126
|
-
resolvedHref,
|
|
127
|
-
externalDest
|
|
128
|
-
};
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
} (resolveRewrites));
|
|
133
|
-
return resolveRewrites;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
export { requireResolveRewrites as __require };
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
-
|
|
5
|
-
const routeMatchUtils = require('../../../../../../../_virtual/route-match-utils.cjs');
|
|
6
|
-
const index = require('../../../../compiled/path-to-regexp/index.cjs');
|
|
7
|
-
const routePatternNormalizer = require('../../../../lib/route-pattern-normalizer.cjs');
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Client-safe utilities for route matching that don't import server-side
|
|
11
|
-
* utilities to avoid bundling issues with Turbopack
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
var hasRequiredRouteMatchUtils;
|
|
15
|
-
|
|
16
|
-
function requireRouteMatchUtils () {
|
|
17
|
-
if (hasRequiredRouteMatchUtils) return routeMatchUtils.__exports;
|
|
18
|
-
hasRequiredRouteMatchUtils = 1;
|
|
19
|
-
(function (exports) {
|
|
20
|
-
Object.defineProperty(exports, "__esModule", {
|
|
21
|
-
value: true
|
|
22
|
-
});
|
|
23
|
-
function _export(target, all) {
|
|
24
|
-
for(var name in all)Object.defineProperty(target, name, {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
get: all[name]
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
_export(exports, {
|
|
30
|
-
safeCompile: function() {
|
|
31
|
-
return safeCompile;
|
|
32
|
-
},
|
|
33
|
-
safePathToRegexp: function() {
|
|
34
|
-
return safePathToRegexp;
|
|
35
|
-
},
|
|
36
|
-
safeRegexpToFunction: function() {
|
|
37
|
-
return safeRegexpToFunction;
|
|
38
|
-
},
|
|
39
|
-
safeRouteMatcher: function() {
|
|
40
|
-
return safeRouteMatcher;
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
const _pathtoregexp = index.__require();
|
|
44
|
-
const _routepatternnormalizer = routePatternNormalizer.__require();
|
|
45
|
-
function safePathToRegexp(route, keys, options) {
|
|
46
|
-
if (typeof route !== 'string') {
|
|
47
|
-
return (0, _pathtoregexp.pathToRegexp)(route, keys, options);
|
|
48
|
-
}
|
|
49
|
-
// Check if normalization is needed and cache the result
|
|
50
|
-
const needsNormalization = (0, _routepatternnormalizer.hasAdjacentParameterIssues)(route);
|
|
51
|
-
const routeToUse = needsNormalization ? (0, _routepatternnormalizer.normalizeAdjacentParameters)(route) : route;
|
|
52
|
-
try {
|
|
53
|
-
return (0, _pathtoregexp.pathToRegexp)(routeToUse, keys, options);
|
|
54
|
-
} catch (error) {
|
|
55
|
-
// Only try normalization if we haven't already normalized
|
|
56
|
-
if (!needsNormalization) {
|
|
57
|
-
try {
|
|
58
|
-
const normalizedRoute = (0, _routepatternnormalizer.normalizeAdjacentParameters)(route);
|
|
59
|
-
return (0, _pathtoregexp.pathToRegexp)(normalizedRoute, keys, options);
|
|
60
|
-
} catch (retryError) {
|
|
61
|
-
// If that doesn't work, fall back to original error
|
|
62
|
-
throw error;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
throw error;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
function safeCompile(route, options) {
|
|
69
|
-
// Check if normalization is needed and cache the result
|
|
70
|
-
const needsNormalization = (0, _routepatternnormalizer.hasAdjacentParameterIssues)(route);
|
|
71
|
-
const routeToUse = needsNormalization ? (0, _routepatternnormalizer.normalizeAdjacentParameters)(route) : route;
|
|
72
|
-
try {
|
|
73
|
-
const compiler = (0, _pathtoregexp.compile)(routeToUse, options);
|
|
74
|
-
// If we normalized the route, wrap the compiler to strip separators from output
|
|
75
|
-
// The normalization inserts _NEXTSEP_ as a literal string in the pattern to satisfy
|
|
76
|
-
// path-to-regexp validation, but we don't want it in the final compiled URL
|
|
77
|
-
if (needsNormalization) {
|
|
78
|
-
return (params)=>{
|
|
79
|
-
return (0, _routepatternnormalizer.stripNormalizedSeparators)(compiler(params));
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
return compiler;
|
|
83
|
-
} catch (error) {
|
|
84
|
-
// Only try normalization if we haven't already normalized
|
|
85
|
-
if (!needsNormalization) {
|
|
86
|
-
try {
|
|
87
|
-
const normalizedRoute = (0, _routepatternnormalizer.normalizeAdjacentParameters)(route);
|
|
88
|
-
const compiler = (0, _pathtoregexp.compile)(normalizedRoute, options);
|
|
89
|
-
// Wrap the compiler to strip separators from output
|
|
90
|
-
return (params)=>{
|
|
91
|
-
return (0, _routepatternnormalizer.stripNormalizedSeparators)(compiler(params));
|
|
92
|
-
};
|
|
93
|
-
} catch (retryError) {
|
|
94
|
-
// If that doesn't work, fall back to original error
|
|
95
|
-
throw error;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
throw error;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
function safeRegexpToFunction(regexp, keys) {
|
|
102
|
-
const originalMatcher = (0, _pathtoregexp.regexpToFunction)(regexp, keys || []);
|
|
103
|
-
return (pathname)=>{
|
|
104
|
-
const result = originalMatcher(pathname);
|
|
105
|
-
if (!result) return false;
|
|
106
|
-
// Clean parameters before returning
|
|
107
|
-
return {
|
|
108
|
-
...result,
|
|
109
|
-
params: (0, _routepatternnormalizer.stripParameterSeparators)(result.params)
|
|
110
|
-
};
|
|
111
|
-
};
|
|
112
|
-
}
|
|
113
|
-
function safeRouteMatcher(matcherFn) {
|
|
114
|
-
return (pathname)=>{
|
|
115
|
-
const result = matcherFn(pathname);
|
|
116
|
-
if (!result) return false;
|
|
117
|
-
// Clean parameters before returning
|
|
118
|
-
return (0, _routepatternnormalizer.stripParameterSeparators)(result);
|
|
119
|
-
};
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
} (routeMatchUtils.__exports));
|
|
124
|
-
return routeMatchUtils.__exports;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
exports.__require = requireRouteMatchUtils;
|