@orangecheck/app-design 1.3.0 → 1.4.0

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.
@@ -9,6 +9,7 @@ interface CodeBlockProps {
9
9
  code?: string;
10
10
  html?: string;
11
11
  children?: ReactNode;
12
+ trailingNewline?: boolean;
12
13
  lang?: string;
13
14
  caption?: ReactNode;
14
15
  copy?: boolean;
@@ -20,7 +21,7 @@ interface CodeBlockProps {
20
21
  actions?: ReactNode;
21
22
  className?: string;
22
23
  }
23
- declare function CodeBlock({ code, html, children, lang, caption, copy, clearAfter, maxLines, highlight: marks, diff, lineNumbers, actions, className, }: CodeBlockProps): react.JSX.Element;
24
+ declare function CodeBlock({ code, html, children, trailingNewline, lang, caption, copy, clearAfter, maxLines, highlight: marks, diff, lineNumbers, actions, className, }: CodeBlockProps): react.JSX.Element;
24
25
  interface CodeTab {
25
26
  label: string;
26
27
  code: string;
@@ -73,14 +74,25 @@ declare function ProtocolNav({ current, link, className, }: {
73
74
  link?: 'page' | 'tool';
74
75
  className?: string;
75
76
  }): react.JSX.Element;
76
- declare function SpecCard({ protocol, version, license, vectors, size, className, }: {
77
+ type SpecFileKind = 'spec' | 'security' | 'rationale';
78
+ type SpecCardProps = {
77
79
  protocol: ProtocolSlug;
78
80
  version: string;
79
81
  license?: string;
80
82
  vectors?: number;
81
83
  size?: 'md' | 'sm';
82
84
  className?: string;
83
- }): react.JSX.Element;
85
+ repo?: never;
86
+ } | {
87
+ repo: string;
88
+ file?: string;
89
+ kind?: SpecFileKind;
90
+ version?: string;
91
+ note?: ReactNode;
92
+ className?: string;
93
+ protocol?: never;
94
+ };
95
+ declare function SpecCard(props: SpecCardProps): react.JSX.Element;
84
96
  declare function VerifyBox({ action, param, title, description, label, placeholder, hint, submitLabel, multiline, onVerify, className, }: {
85
97
  action: string;
86
98
  param?: string;
@@ -178,10 +190,12 @@ declare function CardGrid({ columns, children, className }: {
178
190
  declare function MdxTable({ className, ...props }: TableHTMLAttributes<HTMLTableElement>): react.JSX.Element;
179
191
  interface ApiRow {
180
192
  name: string;
193
+ id?: string;
181
194
  type?: ReactNode;
182
195
  required?: boolean;
183
196
  default?: ReactNode;
184
197
  description?: ReactNode;
198
+ source?: ReactNode;
185
199
  deprecated?: boolean;
186
200
  status?: Exclude<Status, 'live' | 'good' | 'caution' | 'refused'>;
187
201
  }
@@ -216,4 +230,4 @@ declare function DocsHeading({ as: Tag, id, children, className, ...props }: HTM
216
230
  as: keyof typeof HEADING;
217
231
  }): react.JSX.Element;
218
232
 
219
- export { type ApiRow as A, Breadcrumbs as B, Callout as C, Diagram as D, InstallTabs as I, LinkCard as L, MdxTable as M, OnThisPage as O, type PagerLink as P, SpecCard as S, VerifyBox as V, ApiTable as a, AppCard as b, type AppCardProps as c, AppGrid as d, CardGrid as e, CodeBlock as f, type CodeBlockProps as g, type CodeTab as h, CodeTabs as i, type ComparisonColumn as j, type ComparisonRow as k, ComparisonTable as l, type Crumb as m, DocsHeading as n, DocsPager as o, type MermaidLike as p, type MermaidLoader as q, ProtocolGrid as r, ProtocolHero as s, ProtocolNav as t, Step as u, Steps as v, languageName as w, useHeadings as x };
233
+ export { type ApiRow as A, Breadcrumbs as B, Callout as C, Diagram as D, InstallTabs as I, LinkCard as L, MdxTable as M, OnThisPage as O, type PagerLink as P, SpecCard as S, VerifyBox as V, ApiTable as a, AppCard as b, type AppCardProps as c, AppGrid as d, CardGrid as e, CodeBlock as f, type CodeBlockProps as g, type CodeTab as h, CodeTabs as i, type ComparisonColumn as j, type ComparisonRow as k, ComparisonTable as l, type Crumb as m, DocsHeading as n, DocsPager as o, type MermaidLike as p, type MermaidLoader as q, ProtocolGrid as r, ProtocolHero as s, ProtocolNav as t, type SpecCardProps as u, type SpecFileKind as v, Step as w, Steps as x, languageName as y, useHeadings as z };
@@ -9,6 +9,7 @@ interface CodeBlockProps {
9
9
  code?: string;
10
10
  html?: string;
11
11
  children?: ReactNode;
12
+ trailingNewline?: boolean;
12
13
  lang?: string;
13
14
  caption?: ReactNode;
14
15
  copy?: boolean;
@@ -20,7 +21,7 @@ interface CodeBlockProps {
20
21
  actions?: ReactNode;
21
22
  className?: string;
22
23
  }
23
- declare function CodeBlock({ code, html, children, lang, caption, copy, clearAfter, maxLines, highlight: marks, diff, lineNumbers, actions, className, }: CodeBlockProps): react.JSX.Element;
24
+ declare function CodeBlock({ code, html, children, trailingNewline, lang, caption, copy, clearAfter, maxLines, highlight: marks, diff, lineNumbers, actions, className, }: CodeBlockProps): react.JSX.Element;
24
25
  interface CodeTab {
25
26
  label: string;
26
27
  code: string;
@@ -73,14 +74,25 @@ declare function ProtocolNav({ current, link, className, }: {
73
74
  link?: 'page' | 'tool';
74
75
  className?: string;
75
76
  }): react.JSX.Element;
76
- declare function SpecCard({ protocol, version, license, vectors, size, className, }: {
77
+ type SpecFileKind = 'spec' | 'security' | 'rationale';
78
+ type SpecCardProps = {
77
79
  protocol: ProtocolSlug;
78
80
  version: string;
79
81
  license?: string;
80
82
  vectors?: number;
81
83
  size?: 'md' | 'sm';
82
84
  className?: string;
83
- }): react.JSX.Element;
85
+ repo?: never;
86
+ } | {
87
+ repo: string;
88
+ file?: string;
89
+ kind?: SpecFileKind;
90
+ version?: string;
91
+ note?: ReactNode;
92
+ className?: string;
93
+ protocol?: never;
94
+ };
95
+ declare function SpecCard(props: SpecCardProps): react.JSX.Element;
84
96
  declare function VerifyBox({ action, param, title, description, label, placeholder, hint, submitLabel, multiline, onVerify, className, }: {
85
97
  action: string;
86
98
  param?: string;
@@ -178,10 +190,12 @@ declare function CardGrid({ columns, children, className }: {
178
190
  declare function MdxTable({ className, ...props }: TableHTMLAttributes<HTMLTableElement>): react.JSX.Element;
179
191
  interface ApiRow {
180
192
  name: string;
193
+ id?: string;
181
194
  type?: ReactNode;
182
195
  required?: boolean;
183
196
  default?: ReactNode;
184
197
  description?: ReactNode;
198
+ source?: ReactNode;
185
199
  deprecated?: boolean;
186
200
  status?: Exclude<Status, 'live' | 'good' | 'caution' | 'refused'>;
187
201
  }
@@ -216,4 +230,4 @@ declare function DocsHeading({ as: Tag, id, children, className, ...props }: HTM
216
230
  as: keyof typeof HEADING;
217
231
  }): react.JSX.Element;
218
232
 
219
- export { type ApiRow as A, Breadcrumbs as B, Callout as C, Diagram as D, InstallTabs as I, LinkCard as L, MdxTable as M, OnThisPage as O, type PagerLink as P, SpecCard as S, VerifyBox as V, ApiTable as a, AppCard as b, type AppCardProps as c, AppGrid as d, CardGrid as e, CodeBlock as f, type CodeBlockProps as g, type CodeTab as h, CodeTabs as i, type ComparisonColumn as j, type ComparisonRow as k, ComparisonTable as l, type Crumb as m, DocsHeading as n, DocsPager as o, type MermaidLike as p, type MermaidLoader as q, ProtocolGrid as r, ProtocolHero as s, ProtocolNav as t, Step as u, Steps as v, languageName as w, useHeadings as x };
233
+ export { type ApiRow as A, Breadcrumbs as B, Callout as C, Diagram as D, InstallTabs as I, LinkCard as L, MdxTable as M, OnThisPage as O, type PagerLink as P, SpecCard as S, VerifyBox as V, ApiTable as a, AppCard as b, type AppCardProps as c, AppGrid as d, CardGrid as e, CodeBlock as f, type CodeBlockProps as g, type CodeTab as h, CodeTabs as i, type ComparisonColumn as j, type ComparisonRow as k, ComparisonTable as l, type Crumb as m, DocsHeading as n, DocsPager as o, type MermaidLike as p, type MermaidLoader as q, ProtocolGrid as r, ProtocolHero as s, ProtocolNav as t, type SpecCardProps as u, type SpecFileKind as v, Step as w, Steps as x, languageName as y, useHeadings as z };
package/dist/index.d.mts CHANGED
@@ -4,10 +4,10 @@ export { S as Statement, a as Status, b as StatusBadge, c as StatusBadgeProps, s
4
4
  export { AppIcon, AppIconProps, Crowd, CrowdProps, HalftoneCanvas, HalftoneCanvasProps, HalftoneSphere, HalftoneSphereProps, IsoCheck, IsoCheckProps, Lockup, LockupProps, MARK_FACES, Mark, MarkProps, SPHERE_GRADIENT, Tone, portraitTone } from './brand.mjs';
5
5
  export { Accent, ActivityItem, ActivityList, BrowserFrame, CheckState, Closing, Column, Container, CopyButton, CopyButtonProps, DataTable, Display, DisplayProps, EmptyLine, EmptyState, Endpoint, EndpointList, ErrorBoundary, ErrorPage, Eyebrow, FactBlock, FactRow, FactRows, Faq, FloatChip, Footnote, HashChip, KeyValueItem, KeyValueList, Lead, LegalBlock, LegalDocument, LegalSource, LoadingBlock, Monogram, Notice, PackageCard, PackageItem, PageHeader, PhoneFrame, ProgressStep, ProgressSteps, ProofStrip, Prose, Reveal, Sats, SatsFigure, SatsProps, SatsTextOptions, ScrollStory, SearchButton, SearchDialog, SearchGroup, SearchQuery, SearchResult, Section, SectionHeading, SectionIntro, SectionProps, SignMessage, SplitBar, SplitSegment, StatCard, StatCardProps, StatGrid, StatGridProps, StepGrid, StepGridProps, StepItem, StepState, TextLink, Ticker, TruthRow, TruthStatus, TruthTable, UsdApprox, VerifyCheck, VerifyReport, monogramGround, monogramLetter, satsText, sectionVariants, useCopy, useInView } from './components.mjs';
6
6
  export { D as DocHeader, a as DocLayout, P as PageHero, b as PageHeroProps, T as TocItem, u as useActiveHeading } from './hero-Dn37il-9.mjs';
7
- export { A as ApiRow, a as ApiTable, b as AppCard, c as AppCardProps, d as AppGrid, B as Breadcrumbs, C as Callout, e as CardGrid, f as CodeBlock, g as CodeBlockProps, h as CodeTab, i as CodeTabs, j as ComparisonColumn, k as ComparisonRow, l as ComparisonTable, m as Crumb, D as Diagram, n as DocsHeading, o as DocsPager, I as InstallTabs, L as LinkCard, M as MdxTable, p as MermaidLike, q as MermaidLoader, O as OnThisPage, P as PagerLink, r as ProtocolGrid, s as ProtocolHero, t as ProtocolNav, S as SpecCard, u as Step, v as Steps, V as VerifyBox, w as languageName, x as useHeadings } from './docs-wJBfLS08.mjs';
7
+ export { A as ApiRow, a as ApiTable, b as AppCard, c as AppCardProps, d as AppGrid, B as Breadcrumbs, C as Callout, e as CardGrid, f as CodeBlock, g as CodeBlockProps, h as CodeTab, i as CodeTabs, j as ComparisonColumn, k as ComparisonRow, l as ComparisonTable, m as Crumb, D as Diagram, n as DocsHeading, o as DocsPager, I as InstallTabs, L as LinkCard, M as MdxTable, p as MermaidLike, q as MermaidLoader, O as OnThisPage, P as PagerLink, r as ProtocolGrid, s as ProtocolHero, t as ProtocolNav, S as SpecCard, u as SpecCardProps, v as SpecFileKind, w as Step, x as Steps, V as VerifyBox, y as languageName, z as useHeadings } from './docs-D-T-nHiu.mjs';
8
8
  export { A as AnchorState, a as AnchorStatus, b as ArtifactView, B as BlockCountdown, c as BlockHeight, C as ChosenFile, D as DropZone, F as FilterChips, d as FilterOption, e as FormSection, M as Meter, S as SectionStatus, f as StateBadge, g as StateDef, h as StateTone, T as ToolGrid, i as ToolItem, j as createStateBadge } from './tools-DFIxIj5p.mjs';
9
- export { DOCS_HEADER_NAV, DocsNav, DocsNavItem, DocsNavSection, DocsShell, DocsShellProps, FamilyMenu, ShellContext, ShellPlace, SignInFrame, SiteBanner, SiteFooter, SiteFooterProps, SiteHeader, SiteHeaderProps, SkipLink, useShellPlace } from './chrome.mjs';
10
- export { A as AccountMenu, a as AccountMenuItem, b as AppShell, O as OCHK_APP_ACCOUNT, S as SessionAccountView, c as SessionState, d as ShellNavGroup, e as ShellNavItem, f as ShellSection, T as ThemeToggle, g as ToolShell, h as ToolShellProps, u as useSignInHref } from './tool-shell-zncroOEQ.mjs';
9
+ export { DOCS_HEADER_NAV, DocsNav, DocsNavItem, DocsNavSection, DocsShell, DocsShellProps, FamilyMenu, OchkIoFooter, ShellContext, ShellPlace, SignInFrame, SiteBanner, SiteFooter, SiteFooterProps, SiteHeader, SiteHeaderProps, SkipLink, useShellPlace } from './chrome.mjs';
10
+ export { A as AccountMenu, a as AccountMenuItem, b as AppShell, O as OCHK_APP_ACCOUNT, S as SessionAccountView, c as SessionState, d as ShellNavGroup, e as ShellNavItem, f as ShellSection, T as ThemeToggle, g as ToolShell, h as ToolShellProps, u as useSignInHref } from './tool-shell-D8Q8XX11.mjs';
11
11
  export { D as DOCS_HREF, F as FAMILY, a as FAMILY_GROUPS, b as FamilyGroup, c as FamilySite, d as FamilySlug, e as FooterColumn, L as LEGAL_LINKS, N as NavItem, O as OCHK_IO, f as OCHK_IO_FOOTER, g as OCHK_IO_NAV, P as PROTOCOLS, h as PROTOCOL_ORDER, i as ProtocolSite, j as ProtocolSlug, S as SELF_HOSTED_LEGAL_LINKS, k as SiteStatus, l as familyByGroup, m as familySite, p as protocolSite } from './index-DmfyPYe5.mjs';
12
12
  export { CODE_LANGS, CodeLine, CodeMeta, DiffMark, LineMarks, RehypeCodeOptions, TOKEN_CLASS, Token, TokenKind, escapeHtml, grammarOf, highlight, highlightToHtml, linesToHtml, parseCodeMeta, parseLineRanges, readDiff, rehypeCode } from './code.mjs';
13
13
  export { ExplorerKind, Network, blocksToDuration, explorerUrl, formatBlockHeight, formatBytes, formatUtc, shortenMiddle } from './format.mjs';
package/dist/index.d.ts CHANGED
@@ -4,10 +4,10 @@ export { S as Statement, a as Status, b as StatusBadge, c as StatusBadgeProps, s
4
4
  export { AppIcon, AppIconProps, Crowd, CrowdProps, HalftoneCanvas, HalftoneCanvasProps, HalftoneSphere, HalftoneSphereProps, IsoCheck, IsoCheckProps, Lockup, LockupProps, MARK_FACES, Mark, MarkProps, SPHERE_GRADIENT, Tone, portraitTone } from './brand.js';
5
5
  export { Accent, ActivityItem, ActivityList, BrowserFrame, CheckState, Closing, Column, Container, CopyButton, CopyButtonProps, DataTable, Display, DisplayProps, EmptyLine, EmptyState, Endpoint, EndpointList, ErrorBoundary, ErrorPage, Eyebrow, FactBlock, FactRow, FactRows, Faq, FloatChip, Footnote, HashChip, KeyValueItem, KeyValueList, Lead, LegalBlock, LegalDocument, LegalSource, LoadingBlock, Monogram, Notice, PackageCard, PackageItem, PageHeader, PhoneFrame, ProgressStep, ProgressSteps, ProofStrip, Prose, Reveal, Sats, SatsFigure, SatsProps, SatsTextOptions, ScrollStory, SearchButton, SearchDialog, SearchGroup, SearchQuery, SearchResult, Section, SectionHeading, SectionIntro, SectionProps, SignMessage, SplitBar, SplitSegment, StatCard, StatCardProps, StatGrid, StatGridProps, StepGrid, StepGridProps, StepItem, StepState, TextLink, Ticker, TruthRow, TruthStatus, TruthTable, UsdApprox, VerifyCheck, VerifyReport, monogramGround, monogramLetter, satsText, sectionVariants, useCopy, useInView } from './components.js';
6
6
  export { D as DocHeader, a as DocLayout, P as PageHero, b as PageHeroProps, T as TocItem, u as useActiveHeading } from './hero-Dn37il-9.js';
7
- export { A as ApiRow, a as ApiTable, b as AppCard, c as AppCardProps, d as AppGrid, B as Breadcrumbs, C as Callout, e as CardGrid, f as CodeBlock, g as CodeBlockProps, h as CodeTab, i as CodeTabs, j as ComparisonColumn, k as ComparisonRow, l as ComparisonTable, m as Crumb, D as Diagram, n as DocsHeading, o as DocsPager, I as InstallTabs, L as LinkCard, M as MdxTable, p as MermaidLike, q as MermaidLoader, O as OnThisPage, P as PagerLink, r as ProtocolGrid, s as ProtocolHero, t as ProtocolNav, S as SpecCard, u as Step, v as Steps, V as VerifyBox, w as languageName, x as useHeadings } from './docs-Dxg4Tp_q.js';
7
+ export { A as ApiRow, a as ApiTable, b as AppCard, c as AppCardProps, d as AppGrid, B as Breadcrumbs, C as Callout, e as CardGrid, f as CodeBlock, g as CodeBlockProps, h as CodeTab, i as CodeTabs, j as ComparisonColumn, k as ComparisonRow, l as ComparisonTable, m as Crumb, D as Diagram, n as DocsHeading, o as DocsPager, I as InstallTabs, L as LinkCard, M as MdxTable, p as MermaidLike, q as MermaidLoader, O as OnThisPage, P as PagerLink, r as ProtocolGrid, s as ProtocolHero, t as ProtocolNav, S as SpecCard, u as SpecCardProps, v as SpecFileKind, w as Step, x as Steps, V as VerifyBox, y as languageName, z as useHeadings } from './docs-BB9gK4KF.js';
8
8
  export { A as AnchorState, a as AnchorStatus, b as ArtifactView, B as BlockCountdown, c as BlockHeight, C as ChosenFile, D as DropZone, F as FilterChips, d as FilterOption, e as FormSection, M as Meter, S as SectionStatus, f as StateBadge, g as StateDef, h as StateTone, T as ToolGrid, i as ToolItem, j as createStateBadge } from './tools-BggNN5DV.js';
9
- export { DOCS_HEADER_NAV, DocsNav, DocsNavItem, DocsNavSection, DocsShell, DocsShellProps, FamilyMenu, ShellContext, ShellPlace, SignInFrame, SiteBanner, SiteFooter, SiteFooterProps, SiteHeader, SiteHeaderProps, SkipLink, useShellPlace } from './chrome.js';
10
- export { A as AccountMenu, a as AccountMenuItem, b as AppShell, O as OCHK_APP_ACCOUNT, S as SessionAccountView, c as SessionState, d as ShellNavGroup, e as ShellNavItem, f as ShellSection, T as ThemeToggle, g as ToolShell, h as ToolShellProps, u as useSignInHref } from './tool-shell-Be4Q0cNN.js';
9
+ export { DOCS_HEADER_NAV, DocsNav, DocsNavItem, DocsNavSection, DocsShell, DocsShellProps, FamilyMenu, OchkIoFooter, ShellContext, ShellPlace, SignInFrame, SiteBanner, SiteFooter, SiteFooterProps, SiteHeader, SiteHeaderProps, SkipLink, useShellPlace } from './chrome.js';
10
+ export { A as AccountMenu, a as AccountMenuItem, b as AppShell, O as OCHK_APP_ACCOUNT, S as SessionAccountView, c as SessionState, d as ShellNavGroup, e as ShellNavItem, f as ShellSection, T as ThemeToggle, g as ToolShell, h as ToolShellProps, u as useSignInHref } from './tool-shell-gmlj47Ie.js';
11
11
  export { D as DOCS_HREF, F as FAMILY, a as FAMILY_GROUPS, b as FamilyGroup, c as FamilySite, d as FamilySlug, e as FooterColumn, L as LEGAL_LINKS, N as NavItem, O as OCHK_IO, f as OCHK_IO_FOOTER, g as OCHK_IO_NAV, P as PROTOCOLS, h as PROTOCOL_ORDER, i as ProtocolSite, j as ProtocolSlug, S as SELF_HOSTED_LEGAL_LINKS, k as SiteStatus, l as familyByGroup, m as familySite, p as protocolSite } from './index-DmfyPYe5.js';
12
12
  export { CODE_LANGS, CodeLine, CodeMeta, DiffMark, LineMarks, RehypeCodeOptions, TOKEN_CLASS, Token, TokenKind, escapeHtml, grammarOf, highlight, highlightToHtml, linesToHtml, parseCodeMeta, parseLineRanges, readDiff, rehypeCode } from './code.js';
13
13
  export { ExplorerKind, Network, blocksToDuration, explorerUrl, formatBlockHeight, formatBytes, formatUtc, shortenMiddle } from './format.js';