跳到主要內容

ARC 2.0.0-beta.28 · AUP Web-only widget

finance-chart

AUP Web-only widget `finance-chart`: purpose, boundaries, surfaces, fallback, and evidence.

AUP Web-only widget — not a cross-device primitive; not a Web Device layout component.

The name is registered in AUP_WIDGETS (packages/aup/src/aup-types.ts). It can be accepted by structure verification and implemented by a Web runtime (or native target where noted). It is not one of the 18 cross-device AUP_PRIMITIVES, does not enter DeviceCaps.primitives via fillPrimitives, and is not a Web Device theme/site layout component (for example content-card or page-breadcrumb).

Purpose

Trading-oriented chart presentation (candlestick/OHLC/etc.) implemented with TradingView Lightweight Charts on the interactive Web client. In the client switch, finance variants are selected off the chart primitive by props.variant; the name remains an AUP_WIDGETS entry for type acceptance.

Boundaries

  • Do not document this type as a portable primitive.
  • Do not mix it with Web Device layout-component reference pages under widgets/.
  • A parser-accepted name is not a portability or product-readiness claim.

Author entry

Prefer authoring portable intent via chart + finance variant on interactive Web. Standalone type: "finance-chart" is registered in AUP_WIDGETS but is not a separate case in core.ts (falls through to unknown unless expanded).

Surfaces

Interactive Web chart path. Document target: chart is unsupported with table/text reshape — not a finance-chart sample.

Fallback

Document chart reshape is for primitive chart, not a finance widget contract. No DEGRADATION_CHAINS.finance-chart.

Evidence

SourcePath
Registrationpackages/aup/src/aup-types.ts (finance-chart)
Renderer fragmentproviders/runtime/ui/src/web-page/renderers/finance-chart.ts
Dispatchproviders/runtime/ui/src/web-page/core.ts case "chart"finance variants →renderAupFinanceChart``
Showcase (chart page)blocklets/showcase/.aup/pages/finance.json (uses chart nodes)

Paths are relative to the Arc repository checkout used for this documentation baseline.

Sample

Internal / experimental for public samples. Registration and renderers exist in the interactive Web runtime (and sometimes Web Device widget packages), but this site does not ship a docs-safe live sample. Do not infer product readiness from the type name alone.