link: refactor href rewrite

- uses prop instead of attempting to read env variable
- uses URL type instead of custom heuristics
This commit is contained in:
Elijah Duffy
2025-12-12 13:59:21 -08:00
parent ae3abad769
commit 3885ac09a1
4 changed files with 74 additions and 22 deletions

View File

@@ -18,7 +18,7 @@ export { default as InjectGoogleMaps } from './InjectGoogleMaps.svelte';
export { default as InjectUmami } from './InjectUmami.svelte';
export { default as InputGroup } from './InputGroup.svelte';
export { default as Label } from './Label.svelte';
export { default as Link } from './Link.svelte';
export { default as Link, rewriteHref } from './Link.svelte';
export { default as PhoneInput } from './PhoneInput.svelte';
export { default as PinInput } from './PinInput.svelte';
export { default as RadioGroup } from './RadioGroup.svelte';
@@ -47,7 +47,8 @@ export {
getValue,
targetMust,
capitalizeFirstLetter,
prefixZero
prefixZero,
trimEdges
} from './util';
export {
type ToolbarToggleState,