mirror of
https://github.com/outline/outline.git
synced 2026-11-30 09:00:18 +03:00
* chore: Prune redundant comments and normalize lint directives Removes comments that restate the following line and stale TODOs, drops the passive event listener feature check now that all supported browsers support it, and renames eslint directives to oxlint. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BehTjuZwKbN5csMCp3H4QH * fix: Evaluate restricted team domains at validation time The restricted email provider list was captured when the model loaded, so it could not follow the hosting environment and the tests that covered it never reached the model. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BehTjuZwKbN5csMCp3H4QH * chore: Replace type suppressions with accurate types Adds a Concrete helper type for registries of abstract classes, declares missing Sequelize and refractor typings, uses public ProseMirror APIs, a typed mock context helper in middleware tests, and a StaticLink component for sidebar rows being edited. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BehTjuZwKbN5csMCp3H4QH --------- Co-authored-by: Claude <noreply@anthropic.com>
22 lines
699 B
TypeScript
22 lines
699 B
TypeScript
import type * as React from "react";
|
|
|
|
interface Props extends React.HTMLAttributes<HTMLDivElement> {
|
|
/** Provided by react-router's Link and ignored. */
|
|
href?: string;
|
|
/** Provided by react-router's Link and ignored. */
|
|
navigate?: () => void;
|
|
/** Ref forwarded by react-router's Link. */
|
|
innerRef?: React.Ref<HTMLDivElement>;
|
|
}
|
|
|
|
/**
|
|
* A non-navigating replacement for a Link's anchor element, used while a
|
|
* sidebar row is being edited.
|
|
*
|
|
* @param props The props passed through by react-router's Link.
|
|
* @returns A div with the link's presentational props.
|
|
*/
|
|
export function StaticLink({ href, navigate, innerRef, ...rest }: Props) {
|
|
return <div ref={innerRef} {...rest} />;
|
|
}
|