@amoa/casting 0.1.5 → 0.1.6
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/export/index.js +9 -9
- package/dist/form/buttons/index.js +2 -2
- package/dist/form/caption/index.js +2 -2
- package/dist/form/description/index.js +2 -2
- package/dist/form/email/index.js +3 -3
- package/dist/form/index.js +4 -4
- package/dist/form/inputs/index.js +2 -2
- package/dist/form/password/index.js +3 -3
- package/dist/index.css +33 -1647
- package/dist/waiter/index.js +11 -13
- package/package.json +4 -3
- package/dist/_virtual/_commonjsHelpers.js +0 -5
- package/dist/_virtual/_interop_require_default.js +0 -3
- package/dist/_virtual/_interop_require_wildcard.js +0 -3
- package/dist/_virtual/action-async-storage-instance.js +0 -3
- package/dist/_virtual/action-async-storage.external.js +0 -3
- package/dist/_virtual/add-base-path.js +0 -3
- package/dist/_virtual/add-locale.js +0 -3
- package/dist/_virtual/add-locale2.js +0 -3
- package/dist/_virtual/add-path-prefix.js +0 -3
- package/dist/_virtual/app-paths.js +0 -3
- package/dist/_virtual/app-router-context.shared-runtime.js +0 -3
- package/dist/_virtual/app-router-headers.js +0 -3
- package/dist/_virtual/app.js +0 -3
- package/dist/_virtual/async-local-storage.js +0 -3
- package/dist/_virtual/bailout-to-csr.js +0 -3
- package/dist/_virtual/boundary-constants.js +0 -3
- package/dist/_virtual/constants.js +0 -3
- package/dist/_virtual/deployment-id.js +0 -3
- package/dist/_virtual/detect-domain-locale.js +0 -3
- package/dist/_virtual/detect-domain-locale2.js +0 -3
- package/dist/_virtual/dynamic-rendering-utils.js +0 -3
- package/dist/_virtual/dynamic-rendering.js +0 -3
- package/dist/_virtual/ensure-leading-slash.js +0 -3
- package/dist/_virtual/error-once.js +0 -3
- package/dist/_virtual/escape-regexp.js +0 -3
- package/dist/_virtual/find-closest-quality.js +0 -3
- package/dist/_virtual/forbidden.js +0 -3
- package/dist/_virtual/format-url.js +0 -3
- package/dist/_virtual/get-domain-locale.js +0 -3
- package/dist/_virtual/get-dynamic-param.js +0 -3
- package/dist/_virtual/get-img-props.js +0 -3
- package/dist/_virtual/get-segment-param.js +0 -3
- package/dist/_virtual/has-base-path.js +0 -3
- package/dist/_virtual/head-manager-context.shared-runtime.js +0 -3
- package/dist/_virtual/head.js +0 -3
- package/dist/_virtual/hooks-client-context.shared-runtime.js +0 -3
- package/dist/_virtual/hooks-server-context.js +0 -3
- package/dist/_virtual/http-access-fallback.js +0 -3
- package/dist/_virtual/image-blur-svg.js +0 -3
- package/dist/_virtual/image-component.js +0 -3
- package/dist/_virtual/image-config-context.shared-runtime.js +0 -3
- package/dist/_virtual/image-config.js +0 -3
- package/dist/_virtual/image-external.js +0 -3
- package/dist/_virtual/image-loader.js +0 -3
- package/dist/_virtual/image.js +0 -7
- package/dist/_virtual/index.js +0 -3
- package/dist/_virtual/index2.js +0 -3
- package/dist/_virtual/index3.js +0 -3
- package/dist/_virtual/interception-prefix-from-param-type.js +0 -3
- package/dist/_virtual/interception-routes.js +0 -3
- package/dist/_virtual/interpolate-as.js +0 -3
- package/dist/_virtual/invariant-error.js +0 -3
- package/dist/_virtual/is-dynamic.js +0 -3
- package/dist/_virtual/is-local-url.js +0 -3
- package/dist/_virtual/is-next-router-error.js +0 -3
- package/dist/_virtual/is-postpone.js +0 -3
- package/dist/_virtual/jsx-runtime.js +0 -5
- package/dist/_virtual/jsx-runtime2.js +0 -3
- package/dist/_virtual/link.js +0 -7
- package/dist/_virtual/link2.js +0 -3
- package/dist/_virtual/match-local-pattern.js +0 -3
- package/dist/_virtual/match-remote-pattern.js +0 -3
- package/dist/_virtual/navigation.js +0 -3
- package/dist/_virtual/navigation.react-server.js +0 -3
- package/dist/_virtual/navigation2.js +0 -3
- package/dist/_virtual/normalize-locale-path.js +0 -3
- package/dist/_virtual/normalize-locale-path2.js +0 -3
- package/dist/_virtual/normalize-trailing-slash.js +0 -3
- package/dist/_virtual/not-found.js +0 -3
- package/dist/_virtual/omit.js +0 -3
- package/dist/_virtual/parse-loader-tree.js +0 -3
- package/dist/_virtual/parse-path.js +0 -3
- package/dist/_virtual/path-has-prefix.js +0 -3
- package/dist/_virtual/querystring.js +0 -3
- package/dist/_virtual/react-jsx-runtime.development.js +0 -3
- package/dist/_virtual/react-jsx-runtime.production.js +0 -3
- package/dist/_virtual/readonly-url-search-params.js +0 -3
- package/dist/_virtual/redirect-error.js +0 -3
- package/dist/_virtual/redirect-status-code.js +0 -3
- package/dist/_virtual/redirect.js +0 -3
- package/dist/_virtual/remove-trailing-slash.js +0 -3
- package/dist/_virtual/request-idle-callback.js +0 -3
- package/dist/_virtual/resolve-href.js +0 -3
- package/dist/_virtual/resolve-param-value.js +0 -3
- package/dist/_virtual/route-match-utils.js +0 -3
- package/dist/_virtual/route-matcher.js +0 -3
- package/dist/_virtual/route-pattern-normalizer.js +0 -3
- package/dist/_virtual/route-regex.js +0 -3
- package/dist/_virtual/router-context.shared-runtime.js +0 -3
- package/dist/_virtual/scheduler.js +0 -3
- package/dist/_virtual/segment.js +0 -3
- package/dist/_virtual/server-inserted-html.shared-runtime.js +0 -3
- package/dist/_virtual/side-effect.js +0 -3
- package/dist/_virtual/sorted-routes.js +0 -3
- package/dist/_virtual/static-generation-bailout.js +0 -3
- package/dist/_virtual/unauthorized.js +0 -3
- package/dist/_virtual/unrecognized-action-error.js +0 -3
- package/dist/_virtual/unstable-rethrow.browser.js +0 -3
- package/dist/_virtual/unstable-rethrow.js +0 -3
- package/dist/_virtual/unstable-rethrow.server.js +0 -3
- package/dist/_virtual/use-intersection.js +0 -3
- package/dist/_virtual/use-merged-ref.js +0 -3
- package/dist/_virtual/utils.js +0 -3
- package/dist/_virtual/warn-once.js +0 -3
- package/dist/_virtual/work-async-storage-instance.js +0 -3
- package/dist/_virtual/work-async-storage.external.js +0 -3
- package/dist/_virtual/work-unit-async-storage-instance.js +0 -3
- package/dist/_virtual/work-unit-async-storage.external.js +0 -3
- package/dist/config/config.json.js +0 -37
- package/dist/node_modules/@swc/helpers/cjs/_interop_require_default.js +0 -16
- package/dist/node_modules/@swc/helpers/cjs/_interop_require_wildcard.js +0 -48
- package/dist/node_modules/next/dist/client/add-base-path.js +0 -38
- package/dist/node_modules/next/dist/client/add-locale.js +0 -39
- package/dist/node_modules/next/dist/client/components/app-router-headers.js +0 -112
- package/dist/node_modules/next/dist/client/components/forbidden.js +0 -62
- package/dist/node_modules/next/dist/client/components/hooks-server-context.js +0 -50
- package/dist/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.js +0 -77
- package/dist/node_modules/next/dist/client/components/is-next-router-error.js +0 -37
- package/dist/node_modules/next/dist/client/components/navigation.js +0 -198
- package/dist/node_modules/next/dist/client/components/navigation.react-server.js +0 -80
- package/dist/node_modules/next/dist/client/components/not-found.js +0 -56
- package/dist/node_modules/next/dist/client/components/readonly-url-search-params.js +0 -58
- package/dist/node_modules/next/dist/client/components/redirect-error.js +0 -60
- package/dist/node_modules/next/dist/client/components/redirect-status-code.js +0 -36
- package/dist/node_modules/next/dist/client/components/redirect.js +0 -98
- package/dist/node_modules/next/dist/client/components/static-generation-bailout.js +0 -50
- package/dist/node_modules/next/dist/client/components/unauthorized.js +0 -63
- package/dist/node_modules/next/dist/client/components/unrecognized-action-error.js +0 -47
- package/dist/node_modules/next/dist/client/components/unstable-rethrow.browser.js +0 -42
- package/dist/node_modules/next/dist/client/components/unstable-rethrow.js +0 -41
- package/dist/node_modules/next/dist/client/components/unstable-rethrow.server.js +0 -50
- package/dist/node_modules/next/dist/client/detect-domain-locale.js +0 -36
- package/dist/node_modules/next/dist/client/get-domain-locale.js +0 -51
- package/dist/node_modules/next/dist/client/has-base-path.js +0 -36
- package/dist/node_modules/next/dist/client/image-component.js +0 -343
- package/dist/node_modules/next/dist/client/link.js +0 -466
- package/dist/node_modules/next/dist/client/normalize-locale-path.js +0 -40
- package/dist/node_modules/next/dist/client/normalize-trailing-slash.js +0 -54
- package/dist/node_modules/next/dist/client/request-idle-callback.js +0 -52
- package/dist/node_modules/next/dist/client/resolve-href.js +0 -124
- package/dist/node_modules/next/dist/client/use-intersection.js +0 -126
- package/dist/node_modules/next/dist/client/use-merged-ref.js +0 -79
- package/dist/node_modules/next/dist/compiled/path-to-regexp/index.js +0 -439
- package/dist/node_modules/next/dist/compiled/picomatch/index.js +0 -1662
- package/dist/node_modules/next/dist/lib/constants.js +0 -339
- package/dist/node_modules/next/dist/lib/framework/boundary-constants.js +0 -41
- package/dist/node_modules/next/dist/lib/route-pattern-normalizer.js +0 -114
- package/dist/node_modules/next/dist/lib/scheduler.js +0 -69
- package/dist/node_modules/next/dist/server/app-render/action-async-storage-instance.js +0 -26
- package/dist/node_modules/next/dist/server/app-render/action-async-storage.external.js +0 -25
- package/dist/node_modules/next/dist/server/app-render/async-local-storage.js +0 -83
- package/dist/node_modules/next/dist/server/app-render/dynamic-rendering.js +0 -804
- package/dist/node_modules/next/dist/server/app-render/work-async-storage-instance.js +0 -26
- package/dist/node_modules/next/dist/server/app-render/work-async-storage.external.js +0 -25
- package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js +0 -26
- package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js +0 -221
- package/dist/node_modules/next/dist/server/dynamic-rendering-utils.js +0 -90
- package/dist/node_modules/next/dist/server/lib/router-utils/is-postpone.js +0 -27
- package/dist/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js +0 -56
- package/dist/node_modules/next/dist/shared/lib/deployment-id.js +0 -41
- package/dist/node_modules/next/dist/shared/lib/escape-regexp.js +0 -32
- package/dist/node_modules/next/dist/shared/lib/find-closest-quality.js +0 -30
- package/dist/node_modules/next/dist/shared/lib/get-img-props.js +0 -617
- package/dist/node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js +0 -31
- package/dist/node_modules/next/dist/shared/lib/head.js +0 -177
- package/dist/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js +0 -65
- package/dist/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js +0 -36
- package/dist/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js +0 -66
- package/dist/node_modules/next/dist/shared/lib/image-blur-svg.js +0 -42
- package/dist/node_modules/next/dist/shared/lib/image-config-context.shared-runtime.js +0 -33
- package/dist/node_modules/next/dist/shared/lib/image-config.js +0 -56
- package/dist/node_modules/next/dist/shared/lib/image-external.js +0 -60
- package/dist/node_modules/next/dist/shared/lib/image-loader.js +0 -119
- package/dist/node_modules/next/dist/shared/lib/invariant-error.js +0 -29
- package/dist/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js +0 -43
- package/dist/node_modules/next/dist/shared/lib/match-local-pattern.js +0 -54
- package/dist/node_modules/next/dist/shared/lib/match-remote-pattern.js +0 -71
- package/dist/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js +0 -31
- package/dist/node_modules/next/dist/shared/lib/router/routes/app.js +0 -130
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-locale.js +0 -41
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js +0 -36
- 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/format-url.js +0 -88
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js +0 -176
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-segment-param.js +0 -89
- package/dist/node_modules/next/dist/shared/lib/router/utils/index.js +0 -38
- package/dist/node_modules/next/dist/shared/lib/router/utils/interception-prefix-from-param-type.js +0 -44
- package/dist/node_modules/next/dist/shared/lib/router/utils/interception-routes.js +0 -109
- package/dist/node_modules/next/dist/shared/lib/router/utils/interpolate-as.js +0 -71
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js +0 -38
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-local-url.js +0 -39
- package/dist/node_modules/next/dist/shared/lib/router/utils/omit.js +0 -32
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.js +0 -46
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-path.js +0 -46
- package/dist/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js +0 -34
- package/dist/node_modules/next/dist/shared/lib/router/utils/querystring.js +0 -82
- package/dist/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js +0 -34
- package/dist/node_modules/next/dist/shared/lib/router/utils/resolve-param-value.js +0 -128
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-match-utils.js +0 -122
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-matcher.js +0 -61
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-regex.js +0 -312
- package/dist/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js +0 -246
- package/dist/node_modules/next/dist/shared/lib/router-context.shared-runtime.js +0 -31
- package/dist/node_modules/next/dist/shared/lib/segment.js +0 -102
- package/dist/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.js +0 -44
- package/dist/node_modules/next/dist/shared/lib/side-effect.js +0 -78
- package/dist/node_modules/next/dist/shared/lib/utils/error-once.js +0 -33
- package/dist/node_modules/next/dist/shared/lib/utils/warn-once.js +0 -33
- package/dist/node_modules/next/dist/shared/lib/utils.js +0 -192
- package/dist/node_modules/next/image.js +0 -13
- package/dist/node_modules/next/link.js +0 -13
- package/dist/node_modules/next/navigation.js +0 -13
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.js +0 -240
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.js +0 -44
- package/dist/node_modules/react/jsx-runtime.js +0 -19
- package/dist/node_modules/style-inject/dist/style-inject.es.js +0 -26
- package/dist/packages/carving/src/carving.js +0 -34
- package/dist/packages/carving/src/condo.js +0 -17
- package/dist/packages/carving/src/logos/amoa.js +0 -17
- package/dist/packages/forge/src/classes.js +0 -17
- package/dist/packages/forge/src/dates/date.js +0 -8
- package/dist/packages/forge/src/dates/day.js +0 -7
- package/dist/packages/forge/src/dates/index.js +0 -31
- package/dist/packages/forge/src/dates/month.js +0 -35
- package/dist/packages/forge/src/dates/year.js +0 -16
- package/dist/packages/forge/src/fetcher/index.js +0 -37
- package/dist/packages/forge/src/fetcher/querystring.js +0 -9
- package/dist/packages/forge/src/files.js +0 -17
- package/dist/packages/forge/src/numbers/index.js +0 -5
- package/dist/packages/forge/src/strings/characters.js +0 -3
- package/dist/packages/forge/src/strings/diacritics.js +0 -261
- package/dist/packages/forge/src/strings/index.js +0 -24
- package/dist/packages/hooks/src/use-debounce.js +0 -19
- package/dist/packages/hooks/src/use-tooltip.js +0 -27
- package/dist/packages/ingots/src/address/api/form.js +0 -12
- package/dist/packages/ingots/src/address/config.json.js +0 -16
- package/dist/packages/ingots/src/address/index.js +0 -115
- package/dist/packages/ingots/src/address/index.module.css.js +0 -3
- package/dist/packages/ingots/src/address/service.js +0 -41
- package/dist/packages/ingots/src/backdrop/index.js +0 -18
- package/dist/packages/ingots/src/backdrop/index.module.css.js +0 -3
- package/dist/packages/ingots/src/button/index.js +0 -56
- package/dist/packages/ingots/src/button/index.module.css.js +0 -3
- package/dist/packages/ingots/src/checkbox/index.js +0 -47
- package/dist/packages/ingots/src/checkbox/index.module.css.js +0 -3
- package/dist/packages/ingots/src/date/erase/index.js +0 -22
- package/dist/packages/ingots/src/date/erase/index.module.css.js +0 -3
- package/dist/packages/ingots/src/date/input/index.js +0 -113
- package/dist/packages/ingots/src/date/input/index.module.css.js +0 -3
- package/dist/packages/ingots/src/date/picker/day/index.js +0 -35
- package/dist/packages/ingots/src/date/picker/day/index.module.css.js +0 -3
- package/dist/packages/ingots/src/date/picker/days/index.js +0 -59
- package/dist/packages/ingots/src/date/picker/days/index.module.css.js +0 -3
- package/dist/packages/ingots/src/date/picker/handle/index.js +0 -40
- package/dist/packages/ingots/src/date/picker/handle/index.module.css.js +0 -3
- package/dist/packages/ingots/src/date/picker/index.js +0 -154
- package/dist/packages/ingots/src/date/picker/index.module.css.js +0 -3
- package/dist/packages/ingots/src/date/picker/menu/index.js +0 -32
- package/dist/packages/ingots/src/date/picker/menu/index.module.css.js +0 -3
- package/dist/packages/ingots/src/date/picker/menu/item.js +0 -30
- package/dist/packages/ingots/src/date/picker/menu/item.module.css.js +0 -3
- package/dist/packages/ingots/src/file/api/index.js +0 -14
- package/dist/packages/ingots/src/file/card/index.js +0 -65
- package/dist/packages/ingots/src/file/card/index.module.css.js +0 -3
- package/dist/packages/ingots/src/file/index.js +0 -34
- package/dist/packages/ingots/src/file/index.module.css.js +0 -3
- package/dist/packages/ingots/src/file/input/index.js +0 -261
- package/dist/packages/ingots/src/file/input/index.module.css.js +0 -3
- package/dist/packages/ingots/src/input/index.js +0 -75
- package/dist/packages/ingots/src/input/src/validation/index.js +0 -3
- package/dist/packages/ingots/src/loader/index.js +0 -23
- package/dist/packages/ingots/src/loader/index.module.css.js +0 -3
- package/dist/packages/ingots/src/loader/variants/spinner/index.js +0 -31
- package/dist/packages/ingots/src/loader/variants/spinner/index.module.css.js +0 -3
- package/dist/packages/ingots/src/select/card/index.js +0 -33
- package/dist/packages/ingots/src/select/card/index.module.css.js +0 -3
- package/dist/packages/ingots/src/select/category/index.js +0 -13
- package/dist/packages/ingots/src/select/category/index.module.css.js +0 -3
- package/dist/packages/ingots/src/select/content/index.js +0 -46
- package/dist/packages/ingots/src/select/index.js +0 -155
- package/dist/packages/ingots/src/select/index.module.css.js +0 -3
- package/dist/packages/ingots/src/select/option/index.js +0 -35
- package/dist/packages/ingots/src/select/option/index.module.css.js +0 -3
- package/dist/packages/ingots/src/select/options/index.js +0 -59
- package/dist/packages/ingots/src/select/options/index.module.css.js +0 -3
- package/dist/packages/ingots/src/snackbar/context.js +0 -9
- package/dist/packages/ingots/src/tag/index.js +0 -16
- package/dist/packages/ingots/src/tag/index.module.css.js +0 -3
- package/dist/packages/ingots/src/text/index.js +0 -92
- package/dist/packages/ingots/src/text/index.module.css.js +0 -3
- package/dist/packages/ingots/src/textarea/index.js +0 -62
- package/dist/packages/ingots/src/textarea/index.module.css.js +0 -3
- package/dist/packages/ingots/src/toggle/index.js +0 -43
- package/dist/packages/ingots/src/toggle/index.module.css.js +0 -3
- package/dist/packages/runes/src/icon.js +0 -16
- package/dist/packages/runes/src/paths/alert.js +0 -18
- package/dist/packages/runes/src/paths/arrow/path.js +0 -18
- package/dist/packages/runes/src/paths/calendar.js +0 -18
- package/dist/packages/runes/src/paths/check/fill.js +0 -18
- package/dist/packages/runes/src/paths/check/regular.js +0 -18
- package/dist/packages/runes/src/paths/chevron/down.js +0 -18
- package/dist/packages/runes/src/paths/chevron/left.js +0 -18
- package/dist/packages/runes/src/paths/chevron/right.js +0 -18
- package/dist/packages/runes/src/paths/click.js +0 -18
- package/dist/packages/runes/src/paths/cross/regular.js +0 -16
- package/dist/packages/runes/src/paths/download.js +0 -18
- package/dist/packages/runes/src/paths/file.js +0 -18
- package/dist/packages/runes/src/paths/link.js +0 -23
- package/dist/packages/wares/src/authentication/index.js +0 -11
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
import { __module as resolveHref } from '../../../../_virtual/resolve-href.js';
|
|
2
|
-
import { __require as requireQuerystring } from '../shared/lib/router/utils/querystring.js';
|
|
3
|
-
import { __require as requireFormatUrl } from '../shared/lib/router/utils/format-url.js';
|
|
4
|
-
import { __require as requireOmit } from '../shared/lib/router/utils/omit.js';
|
|
5
|
-
import { __require as requireUtils } from '../shared/lib/utils.js';
|
|
6
|
-
import { __require as requireNormalizeTrailingSlash } from './normalize-trailing-slash.js';
|
|
7
|
-
import { __require as requireIsLocalUrl } from '../shared/lib/router/utils/is-local-url.js';
|
|
8
|
-
import { __require as requireUtils$1 } from '../shared/lib/router/utils/index.js';
|
|
9
|
-
import { __require as requireInterpolateAs } from '../shared/lib/router/utils/interpolate-as.js';
|
|
10
|
-
import { __require as requireRouteRegex } from '../shared/lib/router/utils/route-regex.js';
|
|
11
|
-
import { __require as requireRouteMatcher } from '../shared/lib/router/utils/route-matcher.js';
|
|
12
|
-
|
|
13
|
-
var hasRequiredResolveHref;
|
|
14
|
-
|
|
15
|
-
function requireResolveHref () {
|
|
16
|
-
if (hasRequiredResolveHref) return resolveHref.exports;
|
|
17
|
-
hasRequiredResolveHref = 1;
|
|
18
|
-
(function (module, exports$1) {
|
|
19
|
-
|
|
20
|
-
Object.defineProperty(exports$1, "__esModule", {
|
|
21
|
-
value: true
|
|
22
|
-
});
|
|
23
|
-
Object.defineProperty(exports$1, "resolveHref", {
|
|
24
|
-
enumerable: true,
|
|
25
|
-
get: function () {
|
|
26
|
-
return resolveHref;
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
const _querystring = requireQuerystring();
|
|
30
|
-
const _formaturl = requireFormatUrl();
|
|
31
|
-
const _omit = requireOmit();
|
|
32
|
-
const _utils = requireUtils();
|
|
33
|
-
const _normalizetrailingslash = requireNormalizeTrailingSlash();
|
|
34
|
-
const _islocalurl = requireIsLocalUrl();
|
|
35
|
-
const _utils1 = requireUtils$1();
|
|
36
|
-
const _interpolateas = requireInterpolateAs();
|
|
37
|
-
const _routeregex = requireRouteRegex();
|
|
38
|
-
const _routematcher = requireRouteMatcher();
|
|
39
|
-
function resolveHref(router, href, resolveAs) {
|
|
40
|
-
// we use a dummy base url for relative urls
|
|
41
|
-
let base;
|
|
42
|
-
let urlAsString = typeof href === 'string' ? href : (0, _formaturl.formatWithValidation)(href);
|
|
43
|
-
// repeated slashes and backslashes in the URL are considered
|
|
44
|
-
// invalid and will never match a Next.js page/file
|
|
45
|
-
// https://www.rfc-editor.org/rfc/rfc3986.html#section-3.1
|
|
46
|
-
const urlProtoMatch = urlAsString.match(/^[a-z][a-z0-9+.-]*:\/\//i);
|
|
47
|
-
const urlAsStringNoProto = urlProtoMatch ? urlAsString.slice(urlProtoMatch[0].length) : urlAsString;
|
|
48
|
-
const urlParts = urlAsStringNoProto.split('?', 1);
|
|
49
|
-
if ((urlParts[0] || '').match(/(\/\/|\\)/)) {
|
|
50
|
-
console.error(`Invalid href '${urlAsString}' passed to next/router in page: '${router.pathname}'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.`);
|
|
51
|
-
const normalizedUrl = (0, _utils.normalizeRepeatedSlashes)(urlAsStringNoProto);
|
|
52
|
-
urlAsString = (urlProtoMatch ? urlProtoMatch[0] : '') + normalizedUrl;
|
|
53
|
-
}
|
|
54
|
-
// Return because it cannot be routed by the Next.js router
|
|
55
|
-
if (!(0, _islocalurl.isLocalURL)(urlAsString)) {
|
|
56
|
-
return resolveAs ? [urlAsString] : urlAsString;
|
|
57
|
-
}
|
|
58
|
-
try {
|
|
59
|
-
let baseBase = urlAsString.startsWith('#') ? router.asPath : router.pathname;
|
|
60
|
-
// If the provided href is only a query string, it is safer to use the asPath
|
|
61
|
-
// considering rewrites.
|
|
62
|
-
if (urlAsString.startsWith('?')) {
|
|
63
|
-
baseBase = router.asPath;
|
|
64
|
-
// However, if is a dynamic route, we need to use the pathname to preserve the
|
|
65
|
-
// query interpolation and rewrites (router.pathname will look like "/[slug]").
|
|
66
|
-
if ((0, _utils1.isDynamicRoute)(router.pathname)) {
|
|
67
|
-
baseBase = router.pathname;
|
|
68
|
-
const routeRegex = (0, _routeregex.getRouteRegex)(router.pathname);
|
|
69
|
-
const match = (0, _routematcher.getRouteMatcher)(routeRegex)(router.asPath);
|
|
70
|
-
// For dynamic routes, if asPath doesn't match the pathname regex, it is a rewritten path.
|
|
71
|
-
// In this case, should use asPath to preserve the current URL.
|
|
72
|
-
if (!match) {
|
|
73
|
-
baseBase = router.asPath;
|
|
74
|
-
}
|
|
75
|
-
// Note: There is an edge case where the pathname is dynamic, and also a rewrite path to the same segment.
|
|
76
|
-
// E.g. in "/[slug]" path, rewrite "/foo" -> "/bar"
|
|
77
|
-
// In this case, it will be treated as a non-rewritten path and possibly interpolate the query string.
|
|
78
|
-
// E.g., "/any?slug=foo" will become the content of "/foo", not rewritten as "/bar"
|
|
79
|
-
// This is currently a trade-off of not resolving rewrite paths on every Router/Link call,
|
|
80
|
-
// but using a lighter route regex pattern check.
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
base = new URL(baseBase, 'http://n');
|
|
84
|
-
} catch (_) {
|
|
85
|
-
// fallback to / for invalid asPath values e.g. //
|
|
86
|
-
base = new URL('/', 'http://n');
|
|
87
|
-
}
|
|
88
|
-
try {
|
|
89
|
-
const finalUrl = new URL(urlAsString, base);
|
|
90
|
-
finalUrl.pathname = (0, _normalizetrailingslash.normalizePathTrailingSlash)(finalUrl.pathname);
|
|
91
|
-
let interpolatedAs = '';
|
|
92
|
-
if ((0, _utils1.isDynamicRoute)(finalUrl.pathname) && finalUrl.searchParams && resolveAs) {
|
|
93
|
-
const query = (0, _querystring.searchParamsToUrlQuery)(finalUrl.searchParams);
|
|
94
|
-
const {
|
|
95
|
-
result,
|
|
96
|
-
params
|
|
97
|
-
} = (0, _interpolateas.interpolateAs)(finalUrl.pathname, finalUrl.pathname, query);
|
|
98
|
-
if (result) {
|
|
99
|
-
interpolatedAs = (0, _formaturl.formatWithValidation)({
|
|
100
|
-
pathname: result,
|
|
101
|
-
hash: finalUrl.hash,
|
|
102
|
-
query: (0, _omit.omit)(query, params)
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
// if the origin didn't change, it means we received a relative href
|
|
107
|
-
const resolvedHref = finalUrl.origin === base.origin ? finalUrl.href.slice(finalUrl.origin.length) : finalUrl.href;
|
|
108
|
-
return resolveAs ? [resolvedHref, interpolatedAs || resolvedHref] : resolvedHref;
|
|
109
|
-
} catch (_) {
|
|
110
|
-
return resolveAs ? [urlAsString] : urlAsString;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
if ((typeof exports$1.default === 'function' || typeof exports$1.default === 'object' && exports$1.default !== null) && typeof exports$1.default.__esModule === 'undefined') {
|
|
114
|
-
Object.defineProperty(exports$1.default, '__esModule', {
|
|
115
|
-
value: true
|
|
116
|
-
});
|
|
117
|
-
Object.assign(exports$1.default, exports$1);
|
|
118
|
-
module.exports = exports$1.default;
|
|
119
|
-
}
|
|
120
|
-
} (resolveHref, resolveHref.exports));
|
|
121
|
-
return resolveHref.exports;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
export { requireResolveHref as __require };
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
import { __module as useIntersection } from '../../../../_virtual/use-intersection.js';
|
|
2
|
-
import React__default from 'react';
|
|
3
|
-
import { __require as requireRequestIdleCallback } from './request-idle-callback.js';
|
|
4
|
-
|
|
5
|
-
var hasRequiredUseIntersection;
|
|
6
|
-
|
|
7
|
-
function requireUseIntersection () {
|
|
8
|
-
if (hasRequiredUseIntersection) return useIntersection.exports;
|
|
9
|
-
hasRequiredUseIntersection = 1;
|
|
10
|
-
(function (module, exports$1) {
|
|
11
|
-
|
|
12
|
-
Object.defineProperty(exports$1, "__esModule", {
|
|
13
|
-
value: true
|
|
14
|
-
});
|
|
15
|
-
Object.defineProperty(exports$1, "useIntersection", {
|
|
16
|
-
enumerable: true,
|
|
17
|
-
get: function () {
|
|
18
|
-
return useIntersection;
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
const _react = React__default;
|
|
22
|
-
const _requestidlecallback = requireRequestIdleCallback();
|
|
23
|
-
const hasIntersectionObserver = typeof IntersectionObserver === 'function';
|
|
24
|
-
const observers = new Map();
|
|
25
|
-
const idList = [];
|
|
26
|
-
function createObserver(options) {
|
|
27
|
-
const id = {
|
|
28
|
-
root: options.root || null,
|
|
29
|
-
margin: options.rootMargin || ''
|
|
30
|
-
};
|
|
31
|
-
const existing = idList.find(obj => obj.root === id.root && obj.margin === id.margin);
|
|
32
|
-
let instance;
|
|
33
|
-
if (existing) {
|
|
34
|
-
instance = observers.get(existing);
|
|
35
|
-
if (instance) {
|
|
36
|
-
return instance;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
const elements = new Map();
|
|
40
|
-
const observer = new IntersectionObserver(entries => {
|
|
41
|
-
entries.forEach(entry => {
|
|
42
|
-
const callback = elements.get(entry.target);
|
|
43
|
-
const isVisible = entry.isIntersecting || entry.intersectionRatio > 0;
|
|
44
|
-
if (callback && isVisible) {
|
|
45
|
-
callback(isVisible);
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
}, options);
|
|
49
|
-
instance = {
|
|
50
|
-
id,
|
|
51
|
-
observer,
|
|
52
|
-
elements
|
|
53
|
-
};
|
|
54
|
-
idList.push(id);
|
|
55
|
-
observers.set(id, instance);
|
|
56
|
-
return instance;
|
|
57
|
-
}
|
|
58
|
-
function observe(element, callback, options) {
|
|
59
|
-
const {
|
|
60
|
-
id,
|
|
61
|
-
observer,
|
|
62
|
-
elements
|
|
63
|
-
} = createObserver(options);
|
|
64
|
-
elements.set(element, callback);
|
|
65
|
-
observer.observe(element);
|
|
66
|
-
return function unobserve() {
|
|
67
|
-
elements.delete(element);
|
|
68
|
-
observer.unobserve(element);
|
|
69
|
-
// Destroy observer when there's nothing left to watch:
|
|
70
|
-
if (elements.size === 0) {
|
|
71
|
-
observer.disconnect();
|
|
72
|
-
observers.delete(id);
|
|
73
|
-
const index = idList.findIndex(obj => obj.root === id.root && obj.margin === id.margin);
|
|
74
|
-
if (index > -1) {
|
|
75
|
-
idList.splice(index, 1);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
function useIntersection({
|
|
81
|
-
rootRef,
|
|
82
|
-
rootMargin,
|
|
83
|
-
disabled
|
|
84
|
-
}) {
|
|
85
|
-
const isDisabled = disabled || !hasIntersectionObserver;
|
|
86
|
-
const [visible, setVisible] = (0, _react.useState)(false);
|
|
87
|
-
const elementRef = (0, _react.useRef)(null);
|
|
88
|
-
const setElement = (0, _react.useCallback)(element => {
|
|
89
|
-
elementRef.current = element;
|
|
90
|
-
}, []);
|
|
91
|
-
(0, _react.useEffect)(() => {
|
|
92
|
-
if (hasIntersectionObserver) {
|
|
93
|
-
if (isDisabled || visible) return;
|
|
94
|
-
const element = elementRef.current;
|
|
95
|
-
if (element && element.tagName) {
|
|
96
|
-
const unobserve = observe(element, isVisible => isVisible && setVisible(isVisible), {
|
|
97
|
-
root: rootRef?.current,
|
|
98
|
-
rootMargin
|
|
99
|
-
});
|
|
100
|
-
return unobserve;
|
|
101
|
-
}
|
|
102
|
-
} else {
|
|
103
|
-
if (!visible) {
|
|
104
|
-
const idleCallback = (0, _requestidlecallback.requestIdleCallback)(() => setVisible(true));
|
|
105
|
-
return () => (0, _requestidlecallback.cancelIdleCallback)(idleCallback);
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
109
|
-
}, [isDisabled, rootMargin, rootRef, visible, elementRef.current]);
|
|
110
|
-
const resetVisible = (0, _react.useCallback)(() => {
|
|
111
|
-
setVisible(false);
|
|
112
|
-
}, []);
|
|
113
|
-
return [setElement, visible, resetVisible];
|
|
114
|
-
}
|
|
115
|
-
if ((typeof exports$1.default === 'function' || typeof exports$1.default === 'object' && exports$1.default !== null) && typeof exports$1.default.__esModule === 'undefined') {
|
|
116
|
-
Object.defineProperty(exports$1.default, '__esModule', {
|
|
117
|
-
value: true
|
|
118
|
-
});
|
|
119
|
-
Object.assign(exports$1.default, exports$1);
|
|
120
|
-
module.exports = exports$1.default;
|
|
121
|
-
}
|
|
122
|
-
} (useIntersection, useIntersection.exports));
|
|
123
|
-
return useIntersection.exports;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
export { requireUseIntersection as __require };
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { __module as useMergedRef } from '../../../../_virtual/use-merged-ref.js';
|
|
2
|
-
import React__default from 'react';
|
|
3
|
-
|
|
4
|
-
var hasRequiredUseMergedRef;
|
|
5
|
-
|
|
6
|
-
function requireUseMergedRef () {
|
|
7
|
-
if (hasRequiredUseMergedRef) return useMergedRef.exports;
|
|
8
|
-
hasRequiredUseMergedRef = 1;
|
|
9
|
-
(function (module, exports$1) {
|
|
10
|
-
|
|
11
|
-
Object.defineProperty(exports$1, "__esModule", {
|
|
12
|
-
value: true
|
|
13
|
-
});
|
|
14
|
-
Object.defineProperty(exports$1, "useMergedRef", {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function () {
|
|
17
|
-
return useMergedRef;
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
const _react = React__default;
|
|
21
|
-
function useMergedRef(refA, refB) {
|
|
22
|
-
const cleanupA = (0, _react.useRef)(null);
|
|
23
|
-
const cleanupB = (0, _react.useRef)(null);
|
|
24
|
-
// NOTE: In theory, we could skip the wrapping if only one of the refs is non-null.
|
|
25
|
-
// (this happens often if the user doesn't pass a ref to Link/Form/Image)
|
|
26
|
-
// But this can cause us to leak a cleanup-ref into user code (previously via `<Link legacyBehavior>`),
|
|
27
|
-
// and the user might pass that ref into ref-merging library that doesn't support cleanup refs
|
|
28
|
-
// (because it hasn't been updated for React 19)
|
|
29
|
-
// which can then cause things to blow up, because a cleanup-returning ref gets called with `null`.
|
|
30
|
-
// So in practice, it's safer to be defensive and always wrap the ref, even on React 19.
|
|
31
|
-
return (0, _react.useCallback)(current => {
|
|
32
|
-
if (current === null) {
|
|
33
|
-
const cleanupFnA = cleanupA.current;
|
|
34
|
-
if (cleanupFnA) {
|
|
35
|
-
cleanupA.current = null;
|
|
36
|
-
cleanupFnA();
|
|
37
|
-
}
|
|
38
|
-
const cleanupFnB = cleanupB.current;
|
|
39
|
-
if (cleanupFnB) {
|
|
40
|
-
cleanupB.current = null;
|
|
41
|
-
cleanupFnB();
|
|
42
|
-
}
|
|
43
|
-
} else {
|
|
44
|
-
if (refA) {
|
|
45
|
-
cleanupA.current = applyRef(refA, current);
|
|
46
|
-
}
|
|
47
|
-
if (refB) {
|
|
48
|
-
cleanupB.current = applyRef(refB, current);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}, [refA, refB]);
|
|
52
|
-
}
|
|
53
|
-
function applyRef(refA, current) {
|
|
54
|
-
if (typeof refA === 'function') {
|
|
55
|
-
const cleanup = refA(current);
|
|
56
|
-
if (typeof cleanup === 'function') {
|
|
57
|
-
return cleanup;
|
|
58
|
-
} else {
|
|
59
|
-
return () => refA(null);
|
|
60
|
-
}
|
|
61
|
-
} else {
|
|
62
|
-
refA.current = current;
|
|
63
|
-
return () => {
|
|
64
|
-
refA.current = null;
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
if ((typeof exports$1.default === 'function' || typeof exports$1.default === 'object' && exports$1.default !== null) && typeof exports$1.default.__esModule === 'undefined') {
|
|
69
|
-
Object.defineProperty(exports$1.default, '__esModule', {
|
|
70
|
-
value: true
|
|
71
|
-
});
|
|
72
|
-
Object.assign(exports$1.default, exports$1);
|
|
73
|
-
module.exports = exports$1.default;
|
|
74
|
-
}
|
|
75
|
-
} (useMergedRef, useMergedRef.exports));
|
|
76
|
-
return useMergedRef.exports;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export { requireUseMergedRef as __require };
|