Inline base64 source maps had been checked into tracked src files. This strips those comments from the repository without changing runtime behavior or adding ongoing guardrails, per the requested one-time cleanup scope. Constraint: Keep this change limited to tracked source cleanup only Rejected: Add CI/source verification guard | user requested one-time cleanup only Confidence: high Scope-risk: narrow Reversibility: clean Directive: If these directives reappear, fix the producing transform instead of reintroducing repo-side cleanup code Tested: rg -n "sourceMappingURL" ., bun run smoke, bun run verify:privacy, bun run test:provider, npm run test:provider-recommendation Not-tested: bun run typecheck (repository has many pre-existing unrelated failures) Co-authored-by: anandh8x <test@example.com>
42 lines
904 B
TypeScript
42 lines
904 B
TypeScript
import { c as _c } from "react-compiler-runtime";
|
|
import type { ReactNode } from 'react';
|
|
import React from 'react';
|
|
import { supportsHyperlinks } from '../supports-hyperlinks.js';
|
|
import Text from './Text.js';
|
|
export type Props = {
|
|
readonly children?: ReactNode;
|
|
readonly url: string;
|
|
readonly fallback?: ReactNode;
|
|
};
|
|
export default function Link(t0) {
|
|
const $ = _c(5);
|
|
const {
|
|
children,
|
|
url,
|
|
fallback
|
|
} = t0;
|
|
const content = children ?? url;
|
|
if (supportsHyperlinks()) {
|
|
let t1;
|
|
if ($[0] !== content || $[1] !== url) {
|
|
t1 = <Text><ink-link href={url}>{content}</ink-link></Text>;
|
|
$[0] = content;
|
|
$[1] = url;
|
|
$[2] = t1;
|
|
} else {
|
|
t1 = $[2];
|
|
}
|
|
return t1;
|
|
}
|
|
const t1 = fallback ?? content;
|
|
let t2;
|
|
if ($[3] !== t1) {
|
|
t2 = <Text>{t1}</Text>;
|
|
$[3] = t1;
|
|
$[4] = t2;
|
|
} else {
|
|
t2 = $[4];
|
|
}
|
|
return t2;
|
|
}
|