a70e68c7bd
* Smolmix documentation * Add smolmix docs: landing page, tutorials, and developer page links * Add Exit Gateway services page (NR vs IPR) and link from existing docs * Update auto-generated command and API outputs * Reorg of tutorials and architecture pages * License information + remove TODO from docs.rs visibile comment + reorg readme * Add versions file for doc-wide versioning * Relative -> absolute links * Relative -> absolute links * Update license + add old tutorial code as examples * Streamline smolmix docs * Clippy * Clean up doc comments * Last pass * Add larger file download to list * set new versions * Clippy * Remove blake pin from docs + add version range to root Cargo.toml * Format example logging * Remove crate blocked component * Loose whitespace * Add doc verification script for inline mdx * Formatting * Components regen * Reorg + tighten text * Voicing cohesion pass + remove bloated examples * Voicing cont. * Reduce max download size * Small suggested clarifications * Max/docs voicing consistency (#6769) * Reduce max download size * voicing consistency across docs * New landing order w smolmix * Tweaks * Final tweaks
58 lines
1.7 KiB
TypeScript
58 lines
1.7 KiB
TypeScript
import { Callout } from "nextra/components";
|
|
import type { ReactNode } from "react";
|
|
|
|
/**
|
|
* Centralised "Lewes Protocol release is coming" notice.
|
|
*
|
|
* When the Lewes Protocol ships, update the variant strings below in this one
|
|
* file rather than searching the docs tree for individual callouts.
|
|
*
|
|
* <LewesPending variant="latency" />
|
|
* <LewesPending variant="cryptography" />
|
|
* <LewesPending variant="acks" />
|
|
*/
|
|
|
|
type Variant = "latency" | "cryptography" | "acks";
|
|
|
|
interface LewesPendingProps {
|
|
variant: Variant;
|
|
}
|
|
|
|
interface VariantEntry {
|
|
type: "info" | "warning";
|
|
body: ReactNode;
|
|
}
|
|
|
|
const VARIANTS: Record<Variant, VariantEntry> = {
|
|
latency: {
|
|
type: "info",
|
|
body: "Updated latency measurements will be published after the Lewes Protocol release.",
|
|
},
|
|
cryptography: {
|
|
type: "info",
|
|
body: (
|
|
<>
|
|
Cryptographic details on this page will be updated for the Lewes
|
|
Protocol release. For the current algorithm overview, see the{" "}
|
|
<a
|
|
href="https://nym.com/trust-center/cryptography"
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
>
|
|
Nym Trust Center: Cryptography
|
|
</a>
|
|
.
|
|
</>
|
|
),
|
|
},
|
|
acks: {
|
|
type: "warning",
|
|
body: "The upcoming Lewes Protocol release will introduce changes to how acknowledgements are handled. The current hop-by-hop ACK mechanism described above may be revised as part of broader protocol improvements. Details will be documented here once the changes are finalised.",
|
|
},
|
|
};
|
|
|
|
export const LewesPending = ({ variant }: LewesPendingProps) => {
|
|
const { type, body } = VARIANTS[variant];
|
|
return <Callout type={type}>{body}</Callout>;
|
|
};
|