@altertable/data-app 0.73.0 → 0.75.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.
Files changed (53) hide show
  1. package/AGENTS.md +11 -3
  2. package/CONTRIBUTING.md +54 -7
  3. package/REFERENCE.md +178 -24
  4. package/dist/chunks/{contract-BeLPJwlO.js → contract-B3s0ybE2.js} +179 -34
  5. package/dist/chunks/contract-B3s0ybE2.js.map +1 -0
  6. package/dist/chunks/{contract-Di8SP74I.js → contract-DcPjfm0R.js} +255 -4
  7. package/dist/chunks/contract-DcPjfm0R.js.map +1 -0
  8. package/dist/chunks/{iframe-C3uCZEXh.js → diagnostics-DVwQ5PDK.js} +161 -3
  9. package/dist/chunks/diagnostics-DVwQ5PDK.js.map +1 -0
  10. package/dist/chunks/format-5hMYUWk3.js +793 -0
  11. package/dist/chunks/format-5hMYUWk3.js.map +1 -0
  12. package/dist/chunks/{operation-CBxhjNhK.js → operation-CGuN7Zcb.js} +10 -7
  13. package/dist/chunks/operation-CGuN7Zcb.js.map +1 -0
  14. package/dist/client/index.js +73 -7
  15. package/dist/client/index.js.map +1 -1
  16. package/dist/core/config.js +4 -3
  17. package/dist/core/config.js.map +1 -1
  18. package/dist/core/contract.js +4 -3
  19. package/dist/core/format.js +1 -1
  20. package/dist/internal.js +8 -7
  21. package/dist/internal.js.map +1 -1
  22. package/dist/server/index.js +3 -3
  23. package/dist/server/index.js.map +1 -1
  24. package/dist/types/chunks/contract.d.ts +168 -10
  25. package/dist/types/chunks/date-time-range-value.d.ts +46 -0
  26. package/dist/types/chunks/index.d.ts +64 -2
  27. package/dist/types/client/index.d.ts +3 -3
  28. package/dist/types/core/config.d.ts +6 -4
  29. package/dist/types/core/contract.d.ts +3 -2
  30. package/dist/types/core/format.d.ts +20 -1
  31. package/dist/types/index.d.ts +3 -2
  32. package/dist/types/internal.d.ts +9 -4
  33. package/dist/types/server/index.d.ts +2 -2
  34. package/docs/app-authoring.md +51 -14
  35. package/docs/composition.md +4 -23
  36. package/docs/contract.md +41 -9
  37. package/docs/diagnostics.md +82 -0
  38. package/docs/embed.md +41 -0
  39. package/docs/hosted-apps.md +7 -4
  40. package/docs/local-data-apps.md +17 -2
  41. package/docs/react.md +6 -3
  42. package/docs/stories-and-export.md +14 -5
  43. package/docs/ui-quality.md +3 -2
  44. package/docs/ui.md +77 -1
  45. package/docs/variables.md +61 -0
  46. package/docs/views.md +2 -2
  47. package/package.json +3 -2
  48. package/dist/chunks/contract-BeLPJwlO.js.map +0 -1
  49. package/dist/chunks/contract-Di8SP74I.js.map +0 -1
  50. package/dist/chunks/format-BdFlv_xa.js +0 -148
  51. package/dist/chunks/format-BdFlv_xa.js.map +0 -1
  52. package/dist/chunks/iframe-C3uCZEXh.js.map +0 -1
  53. package/dist/chunks/operation-CBxhjNhK.js.map +0 -1
package/AGENTS.md CHANGED
@@ -1,7 +1,15 @@
1
1
  # Build Altertable data apps
2
2
 
3
- Follow [app authoring](docs/app-authoring.md) with the selected starter for a new
4
- app or the current source for an existing app. Open another guide only when the
3
+ Use [app authoring](docs/app-authoring.md) for SDK mechanics and available starters.
4
+ The calling app brief chooses the use case, content structure,
5
+ and starter; examples demonstrate APIs rather than a required app layout.
6
+ For an existing app, start from its current source. Open another guide only when the
5
7
  task needs a pattern that source does not cover. Search [REFERENCE.md](REFERENCE.md) for the exact export or prop.
6
8
 
7
- Package contributors follow [Contributing](CONTRIBUTING.md).
9
+ ## Contribute to this repository
10
+
11
+ Read [Contributing](CONTRIBUTING.md) before changing packages or contributor
12
+ tooling. App authoring guides teach agents how to build apps with the SDK.
13
+ Keep reusable behavior in components, defaults, types, and tests. Add authoring
14
+ documentation only when an app author must make a decision or take an action;
15
+ do not restate patterns already handled by the SDK.
package/CONTRIBUTING.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Use the versions in `.bun-version` and `.node-version`.
4
4
 
5
- ```fish
5
+ ```sh
6
6
  bun install --frozen-lockfile
7
7
  bash scripts/install-test-browser.sh
8
8
  ```
@@ -13,7 +13,8 @@ bash scripts/install-test-browser.sh
13
13
  for the kind of change being made.
14
14
  2. **Change source and consumers.** Keep the public API focused on concrete app
15
15
  needs. Preserve package boundaries and explicit exports. Update affected
16
- callers, starters, and guides with public behavior changes.
16
+ callers when public behavior changes. Update starters and guides only when
17
+ app authoring must change; apply the documentation boundary below.
17
18
  3. **Run focused checks.** Build with `bun run build` before consumer tests.
18
19
  Select the test file or `-t "workflow name"` matching the change. For example,
19
20
  CSV export changes use `bun run test tests/public-api/apps-export.test.ts`.
@@ -58,14 +59,24 @@ imports, fabricated internal state, and implementation assertions. Prefer
58
59
  accessible role/name or label queries scoped to the relevant region. Keep browser
59
60
  workflows self-contained in `apps-*.test.ts`.
60
61
 
61
- Update the relevant guide and starter. Keep app authoring in `docs/`; document
62
- current usage with one focused example, `<Component>` and `functionName()` notation.
62
+ When a change requires new app code or an authoring decision, update the relevant
63
+ guide and starter. Keep SDK mechanics and shared component guidance in `docs/`;
64
+ use-case composition belongs to the app brief and selected starter.
65
+ Document current usage with one focused example, `<Component>` and
66
+ `functionName()` notation.
63
67
  Show complete enclosing calls and components; use `// ...` for unrelated setup.
64
68
  Name the app declaration `dataApp`; keep the API's `app` prop name.
65
69
  Leave prop inventories to TypeScript and JSDoc. Generate `REFERENCE.md` with
66
70
  `bun run build` and stage it before `bun run check:reference`; improve entries
67
71
  through types and JSDoc, never generated output.
68
72
 
73
+ ## Documentation boundary
74
+
75
+ App authoring guides teach agents what to decide, supply, or change in app code.
76
+ Keep automatic behavior and reusable patterns in components, defaults, types,
77
+ and regression tests. Do not document them as authoring steps or end-user
78
+ instructions.
79
+
69
80
  ## UI platform principles
70
81
 
71
82
  - Express intent through small typed props and simple data structures.
@@ -83,11 +94,47 @@ native `var()` fallbacks. Reuse focus/state rules and keep geometry local. Add
83
94
  styles through `styles.css` with explicit injection; imports must not modify the
84
95
  DOM. Update `style-contract.ts` for public hooks.
85
96
 
97
+ ## Develop linked packages
98
+
99
+ From this checkout:
100
+
101
+ ```sh
102
+ bun install --frozen-lockfile
103
+ bun run dev
104
+ ```
105
+
106
+ `dev` builds and watches every package, including declarations and embedded CSS.
107
+ Failed builds retain the last successful output. Consumers share one watcher per
108
+ checkout; Ctrl-C detaches a consumer and the last consumer stops the watcher.
109
+ Stop all consumers before production builds, the gallery, or package checks.
110
+
111
+ Prefer the consuming project's local SDK launcher when available. For manual Bun
112
+ linking, run this from the consumer, replacing the checkout path:
113
+
114
+ ```sh
115
+ data_app_checkout=/absolute/path/to/data-app
116
+ bun link --cwd "$data_app_checkout/packages/data-app"
117
+ bun link --cwd "$data_app_checkout/packages/data-app-react"
118
+ bun link --no-save @altertable/data-app @altertable/data-app-react
119
+ ```
120
+
121
+ Link any transitive workspace packages too. Keep one React instance supplied by
122
+ the consumer, and configure its bundler to refresh linked output after builds.
123
+
124
+ Launchers parse stdout lines prefixed with `DATA_APP_DEV` and a space. The JSON
125
+ payload looks like `{"event":"ready","generation":1}`. Events are `building`, `ready`, `error`, and
126
+ `stopped`; generation increases only after successful publication. Start or refresh
127
+ consumers after `ready`. New subscribers receive the current event and must wait
128
+ for the next `ready` if a build is in progress or failed. Existing subscribers may
129
+ resume their last successful build after `error`. Unexpected watcher exits return
130
+ a nonzero status; rerun the command to reconnect.
131
+
86
132
  ## Preview UI changes
87
133
 
88
- Use `bun run dev` for the gallery at `http://127.0.0.1:27418/gallery` and
89
- `/playground`; it requires Docker. Package and fixture edits reload. Restart after
90
- changing `dev/server.ts`; add `?delay=2000` to inspect loading states.
134
+ For SDK UI work, `bun run dev:gallery` starts the example gallery at
135
+ `http://127.0.0.1:27418/gallery`, `/playground`, and a Docker-backed mock API.
136
+ Package and fixture edits reload. Restart after changing `dev/server.ts`; add
137
+ `?delay=2000` to inspect loading states.
91
138
 
92
139
  Use `bun run dev:file <path>` for a single-file app or `bun run dev:dir <path>`
93
140
  for an app directory with `src/server.ts`. These previews use built packages and
package/REFERENCE.md CHANGED
@@ -52,6 +52,10 @@ AboutSubject.references?: { kind: 'ids'; glossaryIds?: readonly string[] | undef
52
52
  AboutSubject.queries?: DisclosedQuery[]
53
53
  AboutSubject.records?: InspectionRecords
54
54
  AboutTab (type, @altertable/data-app-react/ui): = 'glossary' | 'queries' | 'records'
55
+ AbsoluteOrRelativeDateTime (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/contract, @altertable/data-app/format): Frontend-compatible range values. Absolute dates encode wall-clock fields as UTC, not instants converted from a reporting timezone. The backend interprets that zone.
56
+ AbsoluteOrRelativeDateTime.anchor: RelativeAnchor [variant 2 of 2]
57
+ AbsoluteOrRelativeDateTime.offset: RelativeOffset[] [variant 2 of 2]
58
+ AbsoluteOrRelativeDateTime.…: plus props inherited from built-in
55
59
  AnnotationTarget (component, @altertable/data-app-react): (props: AnnotationTargetProps) — A stable feedback target for app-owned content outside the built-in widgets.
56
60
  AnnotationTarget.annotationId: string
57
61
  AnnotationTarget.label: string
@@ -242,6 +246,7 @@ ComparisonProps (type, @altertable/data-app-react): = props listed as Comparison
242
246
  ComposedChart (component, @altertable/data-app-react/ui): <Row>(props: ComposedChartProps<Row>) — Shared themed series and controls; other children retain native Recharts defaults.
243
247
  ComposedChart.data: readonly Row[] — Displayed rows; series and axes select fields with Recharts dataKey props.
244
248
  ComposedChart.ariaLabel: string — Describes the measures and scope for assistive technology.
249
+ ComposedChart.valueFormat?: MetricFormat — Shared measure semantics: compact numeric axes and precise tooltips. For mixed units, use explicit axis tickFormatter and series/tooltip formatters.
245
250
  ComposedChart.…: plus props inherited from recharts
246
251
  ComposedChart.Dot: (props: DotProps & { active?: boolean; })
247
252
  ComposedChart.Area: <Row = unknown, Value = number | null>(props: AreaProps<Row, Value>)
@@ -297,6 +302,7 @@ CsvTable.rows: readonly (readonly CsvCell[])[]
297
302
  DataApp (component, @altertable/data-app-react): <Data, Input>(props: DataAppProps<Data, Input>) — Executes the primary view and owns its controls, inspection, exports, and stories.
298
303
  DataApp.children: ReactNode
299
304
  DataApp.description?: ReactNode — Override the declared subtitle; null hides it.
305
+ DataApp.showToolbar?: boolean — Show page actions. Defaults to true; does not hide filters or data states.
300
306
  DataApp.toolbarActions?: ReactNode
301
307
  DataApp.footerActions?: ReactNode
302
308
  DataApp.footer?: ReactNode — Optional source, coverage, or methodology note below the app content. Compose prose and inline components; typography and spacing are provided.
@@ -304,13 +310,14 @@ DataApp.showSearch?: boolean — Show declared search controls. Defaults to true
304
310
  DataApp.showFilters?: boolean — Show declared filter controls, including display options. Defaults to true; hiding preserves their values.
305
311
  DataApp.view: DeclaredView<Data, Input, unknown> & { scope(snapshot: DisplayedSnapshot<Data, Input>): string; }
306
312
  DataApp.showSearchSuggestions?: boolean — Show supplied datasets’ record suggestions on the first declared search. Defaults to true.
307
- DataApp.story: (snapshot: DisplayedSnapshot<Data, Input>) => readonly (Omit<StoryFinding, 'evidence'> & { evidence: RegisteredBinding; })[]
308
- DataApp.datasets: readonly [ExportDataset<Data, Input>, ...ExportDataset<Data, Input>[]]
313
+ DataApp.story?: ((snapshot: DisplayedSnapshot<Data, Input>) => readonly (Omit<StoryFinding, 'evidence'> & { evidence: RegisteredBinding; })[]) — Omit to leave presentation out of the toolbar.
314
+ DataApp.datasets?: readonly [ExportDataset<Data, Input>, ...ExportDataset<Data, Input>[]] — Omit to leave CSV export out of the toolbar.
309
315
  DataApp.details?: readonly DetailContent<any, any>[] — Detail destinations available to dataset actions and metric record inspection.
310
316
  DataApp (component, @altertable/data-app-react/ui): (props: DataAppProps) — Setup and static screens; fetched data uses the declared-view DataApp.
311
317
  DataApp.children: ReactNode
312
318
  DataApp.dataContext: DataContext
313
319
  DataApp.description?: ReactNode — Override the declared subtitle; null hides it.
320
+ DataApp.showToolbar?: boolean — Show page actions. Defaults to true; does not hide filters or data states.
314
321
  DataApp.toolbarActions?: ReactNode
315
322
  DataApp.footerActions?: ReactNode
316
323
  DataApp.footer?: ReactNode — Optional source, coverage, or methodology note below the app content. Compose prose and inline components; typography and spacing are provided.
@@ -341,6 +348,7 @@ DataAppProps (type, @altertable/data-app-react/ui)
341
348
  DataAppProps.children: ReactNode
342
349
  DataAppProps.dataContext: DataContext
343
350
  DataAppProps.description?: ReactNode — Override the declared subtitle; null hides it.
351
+ DataAppProps.showToolbar?: boolean — Show page actions. Defaults to true; does not hide filters or data states.
344
352
  DataAppProps.toolbarActions?: ReactNode
345
353
  DataAppProps.footerActions?: ReactNode
346
354
  DataAppProps.footer?: ReactNode — Optional source, coverage, or methodology note below the app content. Compose prose and inline components; typography and spacing are provided.
@@ -503,9 +511,10 @@ DateFormatOptions.missing?: string
503
511
  DatePresetId (type, @altertable/data-app-react/ui): = 'day' | 'last-14' | 'last-3' | 'last-30' | 'last-7' | 'last-90' | 'previous-month' | 'previous-week' | 'this-month' | 'this-week'
504
512
  DateRange (type, @altertable/data-app-react/ui): = props listed as previousDateRange.options.* — ISO calendar dates; the app operation defines timezone and inclusive bounds.
505
513
  DateRangeContract (type, @altertable/data-app/contract)
514
+ DateRangeContract.datetime: { timeZone: string; bounds: (now?: Date | undefined) => { minDate: string | undefined; maxDate: string; maxRangeDays: number; timeZone: string; }; parse: (value: unknown, now?: Date | undefined) => DateTimeRange; resolve: (value: unknown, now?: Date | undefined) => ResolvedDateTimeRange; comparison…
506
515
  DateRangeContract.request: (value: unknown, compare?: boolean | undefined) => DateRangeRequest
507
516
  DateRangeContract.parseRequest: (value: unknown) => DateRangeRequest
508
- DateRangeContract.bounds: () => { minDate: string | undefined; maxDate: string; maxRangeDays: number; timeZone: string; }
517
+ DateRangeContract.bounds: (now?: Date | undefined) => { minDate: string | undefined; maxDate: string; maxRangeDays: number; timeZone: string; }
509
518
  DateRangeContract.parse: (value: unknown) => DateRange
510
519
  DateRangeContract.period: ({ start, end }: DateRange) => ReportingPeriod
511
520
  DateRangeContract.comparison: (input: DateRange) => DateRange | null
@@ -545,7 +554,7 @@ dateRangeVariable (function, @altertable/data-app-react): (options: DateRangeVar
545
554
  dateRangeVariable.options.label?: string
546
555
  dateRangeVariable.options.key: string — URL key for a relative preset; explicit dates use start/end for period, otherwise key-prefixed fields.
547
556
  dateRangeVariable.options.defaultValue: DateRangeSelection & { comparison?: undefined; }
548
- dateRangeVariable.options.contract: { request: (value: unknown, compare?: boolean | undefined) => DateRangeRequest; parseRequest: (value: unknown) => DateRangeRequest; bounds: () => { minDate: string | undefined; maxDate: string; maxRangeDays: number; timeZone: string; }; ... 4 more ...; view: { ...; }; }
557
+ dateRangeVariable.options.contract: { datetime: { timeZone: string; bounds: (now?: Date | undefined) => { minDate: string | undefined; maxDate: string; maxRangeDays: number; timeZone: string; }; parse: (value: unknown, now?: Date | undefined) => DateTimeRange; resolve: (value: unknown, now?: Date | undefined) => ResolvedDateTimeRange…
549
558
  dateRangeVariable.options.history?: HistoryMode
550
559
  dateRangeVariable.options.comparison?: boolean — Opt into a URL-backed comparison with the preceding equal-length range.
551
560
  dateRangeVariable.options.presentation?: VariablePresentation
@@ -575,6 +584,102 @@ DateTimeFormatOptions.locale?: string
575
584
  DateTimeFormatOptions.missing?: string
576
585
  DateTimeFormatOptions.timeZone?: string
577
586
  DateTimeFormatOptions.precision?: 'minute' | 'second'
587
+ DateTimeRange (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/contract, @altertable/data-app/format): = props listed as dateTimeRangeSql.range.*
588
+ DateTimeRangeComparisonRequest (type, @altertable/data-app/contract, @altertable/data-app-react, @altertable/data-app-react/ui): An execution snapshot with the relative selection retained for URL and displayed-scope matching.
589
+ DateTimeRangeComparisonRequest.range: ResolvedDateTimeRange
590
+ DateTimeRangeComparisonRequest.comparison: ResolvedDateTimeRange | null
591
+ DateTimeRangeComparisonRequest.selection: DateTimeRangeComparisonSelection
592
+ DateTimeRangeComparisonRequest.reference: string
593
+ DateTimeRangeComparisonSelection (type, @altertable/data-app/contract, @altertable/data-app-react, @altertable/data-app-react/ui)
594
+ DateTimeRangeComparisonSelection.range: DateTimeRange
595
+ DateTimeRangeComparisonSelection.comparison?: 'previous'
596
+ DateTimeRangeComparisonVariable (type, @altertable/data-app/contract, @altertable/data-app-react, @altertable/data-app-react/ui)
597
+ DateTimeRangeComparisonVariable.kind: 'dateTimeRangeComparison'
598
+ DateTimeRangeComparisonVariable.label?: string
599
+ DateTimeRangeComparisonVariable.presentation?: VariablePresentation
600
+ DateTimeRangeComparisonVariable.urlKeys: readonly string[]
601
+ DateTimeRangeComparisonVariable.defaultValue: DateTimeRangeComparisonSelection
602
+ DateTimeRangeComparisonVariable.clearValue?: DateTimeRangeComparisonSelection — Unrestricted value, when this variable represents a filter.
603
+ DateTimeRangeComparisonVariable.describe?: ((value: DateTimeRangeComparisonSelection) => string)
604
+ DateTimeRangeComparisonVariable.history: HistoryMode
605
+ DateTimeRangeComparisonVariable.read: (params: URLSearchParams) => DateTimeRangeComparisonSelection
606
+ DateTimeRangeComparisonVariable.write: (value: DateTimeRangeComparisonSelection) => Record<string, string | null>
607
+ DateTimeRangeComparisonVariable.valid: (value: DateTimeRangeComparisonSelection) => boolean
608
+ DateTimeRangeComparisonVariable.same: (left: DateTimeRangeComparisonSelection, right: DateTimeRangeComparisonSelection) => boolean
609
+ DateTimeRangeComparisonVariable.contract: { datetime: { timeZone: string; bounds: (now?: Date | undefined) => { minDate: string | undefined; maxDate: string; maxRangeDays: number; timeZone: string; }; parse: (value: unknown, now?: Date | undefined) => DateTimeRange; resolve: (value: unknown, now?: Date | undefined) => ResolvedDateTimeRange…
610
+ DateTimeRangeComparisonVariable.maxRangeDays?: number
611
+ DateTimeRangeComparisonVariable.presets?: readonly DateTimeRangePreset[]
612
+ DateTimeRangeComparisonVariable.input: (selection: DateTimeRangeComparisonSelection, now?: Date | undefined) => DateTimeRangeComparisonRequest
613
+ DateTimeRangeComparisonVariable.parseInput: (value: unknown) => DateTimeRangeComparisonRequest
614
+ DateTimeRangeComparisonVariable.previous: (selection: DateTimeRangeComparisonSelection) => ResolvedDateTimeRange | null
615
+ DateTimeRangeComparisonVariableOptions (type, @altertable/data-app/contract, @altertable/data-app-react, @altertable/data-app-react/ui): = props listed as dateTimeRangeVariable.options.*
616
+ DateTimeRangeContract (type, @altertable/data-app/contract): Datetime policy exposed by defineDateRangeContract().datetime. Parsing preserves relative values.
617
+ DateTimeRangeContract.timeZone: string
618
+ DateTimeRangeContract.bounds: (now?: Date | undefined) => { minDate: string | undefined; maxDate: string; maxRangeDays: number; timeZone: string; }
619
+ DateTimeRangeContract.parse: (value: unknown, now?: Date | undefined) => DateTimeRange — Validate coverage and duration while preserving symbolic relative bounds.
620
+ DateTimeRangeContract.resolve: (value: unknown, now?: Date | undefined) => ResolvedDateTimeRange — Resolve to UTC-rebased bounds using reporting-zone wall-clock fields, then validate policy.
621
+ DateTimeRangeContract.comparison: (value: unknown, now?: Date | undefined) => ResolvedDateTimeRange | null — Return the preceding equal-length interval, or null when source coverage excludes it.
622
+ DateTimeRangeContract.request: (value: unknown, compare?: boolean | undefined, now?: Date | undefined) => DateTimeRangeRequest — Resolve both periods against one reference instant. Use these bounds for comparison queries.
623
+ DateTimeRangeParseFailureReason (type, @altertable/data-app/format): = 'ambiguous' | 'empty' | 'invalid-range' | 'unrecognized'
624
+ DateTimeRangeParserOptions (type, @altertable/data-app/format)
625
+ DateTimeRangeParserOptions.now?: Date — UTC-encoded reference fields for omitted dates/years. Defaults to the current UTC date/time.
626
+ DateTimeRangePicker (component, @altertable/data-app-react, @altertable/data-app-react/ui): (props: DateTimeRangePickerProps) — A datetime picker with presets, natural-language input, and a calendar. Presets apply immediately; Enter or calendar Apply commits edits; dismissal discards them.
627
+ DateTimeRangePicker.value: DateTimeRange | null
628
+ DateTimeRangePicker.onChange: (value: DateTimeRange, live?: boolean | undefined) => void — Commits a selection; the optional second argument indicates host-owned Live mode.
629
+ DateTimeRangePicker.liveOption?: { dateTimeRange: DateTimeRange; isLive: boolean; } — Adds a Live preset using dateTimeRange; isLive reflects the applied mode. The host owns refresh scheduling.
630
+ DateTimeRangePicker.className?: string
631
+ DateTimeRangePicker.placeholder?: string
632
+ DateTimeRangePicker.label?: string
633
+ DateTimeRangePicker.labelPlacement?: ControlLabelPlacement
634
+ DateTimeRangePicker.maxRangeDays?: number — Client limit for determinate durations; validate timezone-dependent ranges on the backend.
635
+ DateTimeRangePicker.contract?: { datetime: { timeZone: string; bounds: (now?: Date | undefined) => { minDate: string | undefined; maxDate: string; maxRangeDays: number; timeZone: string; }; parse: (value: unknown, now?: Date | undefined) => DateTimeRange; resolve: (value: unknown, now?: Date | undefined) => ResolvedDateTimeRange… — Shared reporting policy; generated controls inherit it from their variable.
636
+ DateTimeRangePicker.presets?: readonly DateTimeRangePreset[] — Suggestions in display order. Omit for defaults; [] retains calendar and text entry. Invalid or over-limit suggestions are omitted; typed input is not restricted to the menu.
637
+ DateTimeRangePicker.disabled?: boolean
638
+ DateTimeRangePicker.comparison?: { enabled: boolean; range: DateTimeRange | null; onChange: (enabled: boolean) => void; } — Optional controlled comparison with the immediately preceding equal-length interval.
639
+ DateTimeRangePickerProps (type, @altertable/data-app-react, @altertable/data-app-react/ui): = props listed as DateTimeRangePicker.*
640
+ DateTimeRangePreset (type, @altertable/data-app/contract, @altertable/data-app-react, @altertable/data-app-react/ui): A picker suggestion. Text ranges use the same natural-language parser as typed input.
641
+ DateTimeRangePreset.label: string — Menu label, also shown when this preset matches the selected range.
642
+ DateTimeRangePreset.range: string | DateTimeRange
643
+ DateTimeRangePreset.shortcut?: string — Optional compact badge, for example "15m".
644
+ dateTimeRangePresets (const, @altertable/data-app/contract, @altertable/data-app-react, @altertable/data-app-react/ui): Monitoring offers minute/hour windows; analytics offers longer periods and to-date windows. Spread either menu to add custom presets.
645
+ dateTimeRangePresets.monitoring: readonly DateTimeRangePreset[]
646
+ dateTimeRangePresets.analytics: readonly DateTimeRangePreset[]
647
+ DateTimeRangeRequest (type, @altertable/data-app/contract): Resolved UTC-rebased bounds for one execution, optionally with the preceding equal-length interval.
648
+ DateTimeRangeRequest.range: ResolvedDateTimeRange
649
+ DateTimeRangeRequest.comparison: ResolvedDateTimeRange | null
650
+ dateTimeRangeSql (function, @altertable/data-app/contract): (range: DateTimeRange, parameter: string): { from: string; to: string; params: Record<string, string>; } — DuckDB timestamp expressions using the query session's timezone for relative anchors. Absolute fields remain UTC-rebased TIMESTAMP values. Start is inclusive, end exclusive.
651
+ dateTimeRangeSql.range.from?: AbsoluteOrRelativeDateTime | null — Inclusive start; null or omitted means unbounded.
652
+ dateTimeRangeSql.range.to?: AbsoluteOrRelativeDateTime | null — Exclusive end; null or omitted means now.
653
+ dateTimeRangeVariable (function, @altertable/data-app/contract, @altertable/data-app-react, @altertable/data-app-react/ui): (options: DateTimeRangeComparisonVariableOptions): DateTimeRangeComparisonVariable; (options: DateTimeRangeVariableOptions): DateTimeRangeVariable — One declaration drives the picker, URL state, and operation input. With comparison enabled, use input(defaultValue) for operation checks and variableInput() to validate request snapshots.
654
+ dateTimeRangeVariable.options.key: string
655
+ dateTimeRangeVariable.options.label?: string
656
+ dateTimeRangeVariable.options.defaultValue: string | DateTimeRange — Relative defaults such as "7d" stay relative.
657
+ dateTimeRangeVariable.options.maxRangeDays?: number — Client limit for determinate durations; the backend must validate timezone-dependent ranges.
658
+ dateTimeRangeVariable.options.presets?: readonly DateTimeRangePreset[] — Suggestions in display order. Omit for defaults; [] retains calendar and text entry. Invalid or over-limit suggestions are omitted; typed input is not restricted to the menu.
659
+ dateTimeRangeVariable.options.history?: HistoryMode
660
+ dateTimeRangeVariable.options.presentation?: VariablePresentation
661
+ dateTimeRangeVariable.options.allowComparison: true
662
+ dateTimeRangeVariable.options.contract: { datetime: { timeZone: string; bounds: (now?: Date | undefined) => { minDate: string | undefined; maxDate: string; maxRangeDays: number; timeZone: string; }; parse: (value: unknown, now?: Date | undefined) => DateTimeRange; resolve: (value: unknown, now?: Date | undefined) => ResolvedDateTimeRange…
663
+ dateTimeRangeVariable.options.allowComparison?: false — Enable the previous-period reporting workflow. Requires a shared contract.
664
+ dateTimeRangeVariable.options.contract?: { datetime: { timeZone: string; bounds: (now?: Date | undefined) => { minDate: string | undefined; maxDate: string; maxRangeDays: number; timeZone: string; }; parse: (value: unknown, now?: Date | undefined) => DateTimeRange; resolve: (value: unknown, now?: Date | undefined) => ResolvedDateTimeRange… — Shared reporting coverage, timezone, duration limits, and comparison policy.
665
+ DateTimeRangeVariable (type, @altertable/data-app/contract, @altertable/data-app-react, @altertable/data-app-react/ui)
666
+ DateTimeRangeVariable.kind: 'dateTimeRange'
667
+ DateTimeRangeVariable.label?: string
668
+ DateTimeRangeVariable.presentation?: VariablePresentation
669
+ DateTimeRangeVariable.urlKeys: readonly string[]
670
+ DateTimeRangeVariable.defaultValue: DateTimeRange
671
+ DateTimeRangeVariable.clearValue?: DateTimeRange — Unrestricted value, when this variable represents a filter.
672
+ DateTimeRangeVariable.describe?: ((value: DateTimeRange) => string)
673
+ DateTimeRangeVariable.history: HistoryMode
674
+ DateTimeRangeVariable.read: (params: URLSearchParams) => DateTimeRange
675
+ DateTimeRangeVariable.write: (value: DateTimeRange) => Record<string, string | null>
676
+ DateTimeRangeVariable.valid: (value: DateTimeRange) => boolean
677
+ DateTimeRangeVariable.same: (left: DateTimeRange, right: DateTimeRange) => boolean
678
+ DateTimeRangeVariable.parse: (value: unknown) => DateTimeRange
679
+ DateTimeRangeVariable.maxRangeDays?: number
680
+ DateTimeRangeVariable.contract?: { datetime: { timeZone: string; bounds: (now?: Date | undefined) => { minDate: string | undefined; maxDate: string; maxRangeDays: number; timeZone: string; }; parse: (value: unknown, now?: Date | undefined) => DateTimeRange; resolve: (value: unknown, now?: Date | undefined) => ResolvedDateTimeRange… — Shared reporting coverage, timezone, duration limits, and comparison policy.
681
+ DateTimeRangeVariable.presets?: readonly DateTimeRangePreset[]
682
+ DateTimeRangeVariableOptions (type, @altertable/data-app/contract, @altertable/data-app-react, @altertable/data-app-react/ui): = props listed as dateTimeRangeVariable.options.*
578
683
  DateTimeTooltip (component, @altertable/data-app-react): (props: DateTimeTooltipProps) — Exact-time disclosure uses the same reporting zone and locale as other date displays.
579
684
  DateTimeTooltip.date: Date
580
685
  DateTimeTooltip.timeZone?: string
@@ -597,12 +702,12 @@ defineDataApp.config.queries: Queries & KnownRecord<Queries> & ('' extends keyof
597
702
  defineDataIdentifiers (function, @altertable/data-app-react): <const Tables extends Record<string, TableIdentifier>, const Columns extends Record<string, ColumnIdentifier<Extract<keyof Tables, string>>>>(options: {…}): { definitions: Readonly<Record<IdentifierId<Tables, Columns>, DataIdentifierDefinition>>; DataIdentifier: ({ id, display }: { ...; }) => Eleme… — Register exact source names once; returned JSX IDs are checked against this registry.
598
703
  defineDataIdentifiers.options.tables: Tables
599
704
  defineDataIdentifiers.options.columns: Columns
600
- defineDateRangeContract (function, @altertable/data-app/contract): (options: DateRangeContractOptions): { request: (value: unknown, compare?: boolean | undefined) => DateRangeRequest; parseRequest: (value: unknown) => DateRangeRequest; bounds: () => { minDate: string | undefined; maxDate: string; maxRangeDays: number; timeZone: string; }; ... 4 more ...; view: { .… — One source policy for the server parser, URL variable, and displayed reporting period.
705
+ defineDateRangeContract (function, @altertable/data-app/contract): (options: DateRangeContractOptions): { datetime: { timeZone: string; bounds: (now?: Date | undefined) => { minDate: string | undefined; maxDate: string; maxRangeDays: number; timeZone: string; }; parse: (value: unknown, now?: Date | undefined) => DateTimeRange; resolve: (value: unknown, now?: Date… — One source policy for the server parser, URL variable, and displayed reporting period.
601
706
  defineDateRangeContract.options.minDate?: string
602
707
  defineDateRangeContract.options.maxDate?: string | (() => string)
603
708
  defineDateRangeContract.options.maxRangeDays: number
604
709
  defineDateRangeContract.options.timeZone: string
605
- defineDateRangeContract.options.completeDays?: boolean
710
+ defineDateRangeContract.options.completeDays?: boolean — Defaults to complete days through yesterday in the reporting timezone. Set false to include today.
606
711
  defineOperation (function, @altertable/data-app/contract): <Input, Output, const Queries extends QueryDefinitions>(operation: OperationDefinition<Input, Output, Queries> & { queries: CheckedQueries<Queries>; }): Omit<DataOperation<Input, Output>, 'queryNames'> & { queryNames: { readonly [Name in keyof Queries & string]: Name; }; }
607
712
  defineOperation.operation.input: (value: unknown) => Input
608
713
  defineOperation.operation.checks: readonly [Input, ...Input[]]
@@ -707,6 +812,12 @@ ExplorationActionControl.indicator?: 'chevron' | 'ellipsis' — Chart labels use
707
812
  ExplorationActionControl.ref?: Ref<HTMLButtonElement> — Shares this menu trigger with an item's context and keyboard actions.
708
813
  ExplorationActionControl.className?: string
709
814
  ExplorationActionControlProps (type, @altertable/data-app-react/ui): = props listed as ExplorationActionControl.*
815
+ ExternalLink (component, @altertable/data-app-react): (props: ExternalLinkProps) — Open HTTPS links through the host when embedded, or a native new tab when standalone.
816
+ ExternalLink.href: string
817
+ ExternalLink.children: ReactNode
818
+ ExternalLink.className?: string
819
+ ExternalLink.title?: string
820
+ ExternalLinkProps (type, @altertable/data-app-react): = props listed as ExternalLink.*
710
821
  FilterActions (component, @altertable/data-app-react/ui): (props: FilterActionsProps)
711
822
  FilterActions.onClear?: (() => void)
712
823
  FilterActions.onApply: () => void [variant 1 of 2]
@@ -733,6 +844,13 @@ formatDateTime.options.locale?: string
733
844
  formatDateTime.options.missing?: string
734
845
  formatDateTime.options.timeZone?: string
735
846
  formatDateTime.options.precision?: 'minute' | 'second'
847
+ formatDateTimeBound (function, @altertable/data-app/contract): (value: AbsoluteOrRelativeDateTime | null | undefined, fallback: string): string
848
+ formatDateTimeBound.value.anchor: RelativeAnchor [variant 2 of 2]
849
+ formatDateTimeBound.value.offset: RelativeOffset[] [variant 2 of 2]
850
+ formatDateTimeBound.value.…: plus props inherited from built-in
851
+ formatDateTimeRange (function, @altertable/data-app/contract, @altertable/data-app/format): (value: DateTimeRange): string
852
+ formatDateTimeRange.value.from?: AbsoluteOrRelativeDateTime | null — Inclusive start; null or omitted means unbounded.
853
+ formatDateTimeRange.value.to?: AbsoluteOrRelativeDateTime | null — Exclusive end; null or omitted means now.
736
854
  formatMetric (function, @altertable/data-app/format): (value: number, format: MetricFormat): string
737
855
  formatMetric.format.kind: 'count' [variant 1 of 3]
738
856
  formatMetric.format.compact?: boolean [variant 1 of 3]
@@ -904,7 +1022,7 @@ MetricFormat (type, @altertable/data-app/format): = props listed as formatMetric
904
1022
  MetricReading (type, @altertable/data-app-react/ui)
905
1023
  MetricReading.loading: true [variant 1 of 2]
906
1024
  MetricReading.loading: false [variant 2 of 2]
907
- MetricReading.value: MetricValues & { period?: DateRangeRequest | undefined; } [variant 2 of 2]
1025
+ MetricReading.value: MetricValues & { period?: DateRangeRequest | DateTimeRangeRequest | undefined; } [variant 2 of 2]
908
1026
  MetricRecords (class, @altertable/data-app-react): <Data, Input, DetailData, DetailInput> — A metric-owned record destination. It can only render from that metric's displayed source.
909
1027
  MetricRecords.render: (source: ViewSource<Data, Input>, navigation?: DetailNavigation | undefined) => { scope: string; content: FunctionComponentElement<{ content: DetailContent<any, any>; input: any; navigation?: DetailNavigation | undefined; }>; } | undefined
910
1028
  MetricValues (type, @altertable/data-app-react): Zero is measured data. null or omitted means no previous measurement. Comparison activation belongs to the reading's period, not these values.
@@ -1040,6 +1158,18 @@ parseDateRangeInput.options.minDate?: string
1040
1158
  parseDateRangeInput.options.maxDate?: string
1041
1159
  parseDateRangeInput.options.maxRangeDays: number
1042
1160
  parseDateTime (function, @altertable/data-app/format): (value: DateTimeValue): Date | null — Parse only unambiguous instants. String values must include `Z` or an explicit offset.
1161
+ parseDateTimeBound (function, @altertable/data-app/contract): (text: string): AbsoluteOrRelativeDateTime | null — Parse one bound without resolving relative anchors or offsets.
1162
+ parseDateTimeRange (function, @altertable/data-app/contract): (value: unknown, options: {…}): DateTimeRange — Validate and restore UTC-rebased dates from JSON, without resolving relative bounds.
1163
+ parseDateTimeRange.options.maxRangeDays?: number
1164
+ parseDateTimeRangeInput (function, @altertable/data-app/format): (input: string, options: DateTimeRangeParserOptions): ParseDateTimeRangeResult
1165
+ parseDateTimeRangeInput.options.now?: Date — UTC-encoded reference fields for omitted dates/years. Defaults to the current UTC date/time.
1166
+ ParseDateTimeRangeResult (type, @altertable/data-app/format)
1167
+ ParseDateTimeRangeResult.ok: true [variant 1 of 2]
1168
+ ParseDateTimeRangeResult.range: DateTimeRange [variant 1 of 2]
1169
+ ParseDateTimeRangeResult.normalizedInput: string
1170
+ ParseDateTimeRangeResult.parser: 'calendar-preset' | 'calendar-range' | 'chrono' | 'relative' | 'unix' [variant 1 of 2]
1171
+ ParseDateTimeRangeResult.ok: false [variant 2 of 2]
1172
+ ParseDateTimeRangeResult.reason: DateTimeRangeParseFailureReason [variant 2 of 2]
1043
1173
  parseDimensionSelection (function, @altertable/data-app/contract): <T extends DimensionValue>(value: unknown, filter: DimensionSelectionVariable<T>): DimensionSelection<T> — Server-side parser; call from the operation input parser before building SQL.
1044
1174
  parseDimensionSelection.filter.kind: 'dimension'
1045
1175
  parseDimensionSelection.filter.label: string
@@ -1138,20 +1268,22 @@ QueryDefinitions (type, @altertable/data-app, @altertable/data-app/config, @alte
1138
1268
  QueryField (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/contract)
1139
1269
  QueryField.type: keyof QueryValues
1140
1270
  QueryField.nullable?: boolean
1141
- QueryParameter (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/contract): Typed scalar parameters with optional fallback values.
1142
- QueryParameter.type: 'boolean' [variants 1, 5 of 8]
1143
- QueryParameter.nullable?: false [variants 1, 2, 3, 4 of 8]
1144
- QueryParameter.defaultValue?: boolean [variant 1 of 8]
1145
- QueryParameter.type: 'null' [variants 2, 6 of 8]
1146
- QueryParameter.defaultValue?: null [variants 2, 6 of 8]
1147
- QueryParameter.type: 'number' [variants 3, 7 of 8]
1148
- QueryParameter.defaultValue?: number [variant 3 of 8]
1149
- QueryParameter.type: 'string' [variants 4, 8 of 8]
1150
- QueryParameter.defaultValue?: string [variant 4 of 8]
1151
- QueryParameter.nullable: true [variants 5, 6, 7, 8 of 8]
1152
- QueryParameter.defaultValue?: boolean | null [variant 5 of 8]
1153
- QueryParameter.defaultValue?: number | null [variant 7 of 8]
1154
- QueryParameter.defaultValue?: string | null [variant 8 of 8]
1271
+ QueryParameter (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/contract): Typed scalar or datetime-range parameters with optional fallback values.
1272
+ QueryParameter.type: 'dateTimeRange' [variant 1 of 9]
1273
+ QueryParameter.nullable?: false [variants 1, 2, 3, 4, 5 of 9]
1274
+ QueryParameter.defaultValue?: { from?: string | AbsoluteOrRelativeDateTime | null | undefined; to?: string | AbsoluteOrRelativeDateTime | null | undefined; } [variant 1 of 9] — Absolute defaults may use canonical UTC ISO strings (including milliseconds) for static manifests. Snapshots hydrate them into Dates.
1275
+ QueryParameter.type: 'boolean' [variants 2, 6 of 9]
1276
+ QueryParameter.defaultValue?: boolean [variant 2 of 9]
1277
+ QueryParameter.type: 'null' [variants 3, 7 of 9]
1278
+ QueryParameter.defaultValue?: null [variants 3, 7 of 9]
1279
+ QueryParameter.type: 'number' [variants 4, 8 of 9]
1280
+ QueryParameter.defaultValue?: number [variant 4 of 9]
1281
+ QueryParameter.type: 'string' [variants 5, 9 of 9]
1282
+ QueryParameter.defaultValue?: string [variant 5 of 9]
1283
+ QueryParameter.nullable: true [variants 6, 7, 8, 9 of 9]
1284
+ QueryParameter.defaultValue?: boolean | null [variant 6 of 9]
1285
+ QueryParameter.defaultValue?: number | null [variant 8 of 9]
1286
+ QueryParameter.defaultValue?: string | null [variant 9 of 9]
1155
1287
  QueryParameters (type, @altertable/data-app/contract): <Record<string, QueryParameterValue>> = { readonly [x: string]: QueryParameterValue; } — Parameters are scalar SQL values, never identifiers or SQL fragments.
1156
1288
  QueryParameterValue (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/contract): = string | number | boolean | null
1157
1289
  QueryProjections (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/contract): <Record<string, QueryField>> = { readonly [x: string]: QueryField; }
@@ -1182,6 +1314,14 @@ RankingItem.value: number
1182
1314
  RankingItem.detail?: ReactNode
1183
1315
  RankingProps (type, @altertable/data-app-react): = props listed as Ranking.*
1184
1316
  RegisteredQuery (type, @altertable/data-app/contract): <Queries> = <Name extends keyof Queries & string, const Params extends object = {}, const Limit extends number = number>(name: Name & (true extends IsUnion<NoInfer<Name>, NoInfer<Name>> ? [ParameterNames<Queries, Name>] extends [...] ? unknown : never : unknown), params?: ExactQueryParameters<...> | undefined,…
1317
+ RelativeAnchor (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/format): = 'RELATIVE_ANCHOR_NOW' | 'RELATIVE_ANCHOR_START_OF_MONTH' | 'RELATIVE_ANCHOR_START_OF_TODAY' | 'RELATIVE_ANCHOR_START_OF_TOMORROW' | 'RELATIVE_ANCHOR_START_OF_WEEK' | 'RELATIVE_ANCHOR_START_OF_YEAR' | 'RELATIVE_ANCHOR_START_OF_YESTERDAY'
1318
+ RelativeDateTime (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/contract, @altertable/data-app/format)
1319
+ RelativeDateTime.anchor: RelativeAnchor
1320
+ RelativeDateTime.offset: RelativeOffset[]
1321
+ RelativeOffset (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/format)
1322
+ RelativeOffset.amount: number
1323
+ RelativeOffset.unit: RelativeUnit
1324
+ RelativeUnit (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/format): = 'DAY' | 'HOUR' | 'MINUTE' | 'MONTH' | 'SECOND' | 'WEEK' | 'YEAR'
1185
1325
  ReportingPeriod (type, @altertable/data-app/contract, @altertable/data-app-react)
1186
1326
  ReportingPeriod.kind: 'rolling' [variant 1 of 2]
1187
1327
  ReportingPeriod.amount: number [variant 1 of 2]
@@ -1190,6 +1330,13 @@ ReportingPeriod.end: string
1190
1330
  ReportingPeriod.kind: 'calendar' [variant 2 of 2]
1191
1331
  ReportingPeriod.start: string [variant 2 of 2]
1192
1332
  ReportingPeriod.timeZone: string [variant 2 of 2]
1333
+ resolveDateTimeRange (function, @altertable/data-app/contract): (value: DateTimeRange, now: Date): { from: Date | null; to: Date; } — UTC preview only. Backend execution owns reporting-timezone interpretation. Null start is unbounded; null end is now.
1334
+ resolveDateTimeRange.value.from?: AbsoluteOrRelativeDateTime | null — Inclusive start; null or omitted means unbounded.
1335
+ resolveDateTimeRange.value.to?: AbsoluteOrRelativeDateTime | null — Exclusive end; null or omitted means now.
1336
+ resolveDateTimeRange.now.…: plus props inherited from built-in
1337
+ ResolvedDateTimeRange (type, @altertable/data-app/contract): Bounded, resolved wall-clock dates encoded in UTC, with an exclusive end.
1338
+ ResolvedDateTimeRange.from: Date
1339
+ ResolvedDateTimeRange.to: Date
1193
1340
  RetentionChart (component, @altertable/data-app-react/ui): (props: RetentionChartProps) — Query-defined retention curves with count inspection and dotted incomplete periods. Rates are not recomputed from counts. Compose inside VisualizationWidget.
1194
1341
  RetentionChart.ariaLabel: string — Accessible measure and scope description.
1195
1342
  RetentionChart.unit: string — Population unit, such as users or sessions.
@@ -1331,6 +1478,9 @@ Select.id?: string
1331
1478
  Select.className?: string
1332
1479
  Select.align?: 'end' | 'start' — Align the popup with the selection button. Defaults to start.
1333
1480
  SelectProps (type, @altertable/data-app-react/ui): = props listed as Select.*
1481
+ serializeDateTimeRange (function, @altertable/data-app/contract): (value: DateTimeRange): string — Canonical URL/JSON representation. Dates retain their encoded UTC fields.
1482
+ serializeDateTimeRange.value.from?: AbsoluteOrRelativeDateTime | null — Inclusive start; null or omitted means unbounded.
1483
+ serializeDateTimeRange.value.to?: AbsoluteOrRelativeDateTime | null — Exclusive end; null or omitted means now.
1334
1484
  Sheet (component, @altertable/data-app-react/ui): (props: SheetProps) — Uses the native dialog top layer and focus trap. Closing keeps the modal mounted until its exit transition completes.
1335
1485
  Sheet.open: boolean
1336
1486
  Sheet.onOpenChange: (open: boolean) => void
@@ -1345,6 +1495,10 @@ Sheet.side?: 'left' | 'right' — Edge for side placement. Defaults to right; sm
1345
1495
  Sheet.returnFocus?: RefObject<HTMLElement | SVGElement | null>
1346
1496
  Sheet.…: plus props inherited from React
1347
1497
  SheetProps (type, @altertable/data-app-react/ui): = props listed as Sheet.*
1498
+ ShimmerText (component, @altertable/data-app-react/ui): (props: ShimmerTextProps) — Animated text for custom activity labels. Wrap in `<output>` to announce updates. Respects reduced motion.
1499
+ ShimmerText.children: string
1500
+ ShimmerText.…: plus props inherited from React
1501
+ ShimmerTextProps (type, @altertable/data-app-react/ui): = props listed as ShimmerText.*
1348
1502
  Skeleton (component, @altertable/data-app-react): (props: SkeletonProps) — Decorative loading placeholder that fades in only when loading takes a moment. Put the accessible status on its container.
1349
1503
  Skeleton.inline?: boolean — Align a text-sized placeholder with surrounding prose.
1350
1504
  Skeleton.…: plus props inherited from React
@@ -1475,7 +1629,7 @@ TextWidgetProps (type, @altertable/data-app-react): <Data, Input, Row> = props l
1475
1629
  TextWidgetProps (type, @altertable/data-app-react/ui): <Data> = props listed as TextWidget.* — Narrative sibling of VisualizationWidget, composing DataWidget with TextContent. Use TextContent directly for borderless prose. Bind claims and scope to the same displayed reading.
1476
1630
  Theme (type, @altertable/data-app/appearance): = 'dark' | 'light' — Appearance configured by app authors.
1477
1631
  ThemePreference (type, @altertable/data-app/appearance): = 'system' | Theme
1478
- Tooltip (component, @altertable/data-app-react, @altertable/data-app-react/ui): (props: TooltipProps) — Short visual hint for an already labeled control. variant="chart" follows the cursor on hover and toggles on tap so a bar or point can show the period and value.
1632
+ Tooltip (component, @altertable/data-app-react, @altertable/data-app-react/ui): (props: TooltipProps) — Supplemental, non-interactive description for one already labeled control. Supply a single child that forwards aria-describedby to its focusable DOM element.
1479
1633
  Tooltip.content: ReactNode
1480
1634
  Tooltip.children: ReactNode
1481
1635
  Tooltip.variant?: 'chart' | 'hint'
@@ -1503,7 +1657,7 @@ UpdatedAt.open?: boolean
1503
1657
  UpdatedAt.onOpenChange?: ((open: boolean) => void)
1504
1658
  UpdatedAt.timeZone?: string
1505
1659
  UpdatedAtProps (type, @altertable/data-app-react): = props listed as UpdatedAt.*
1506
- useAppVariables (hook, @altertable/data-app-react/ui): <const Variables extends VariableCollection>(definitions: Variables): { values: AppVariableValues<Variables>; set: <Key extends keyof Variables & string>(name: Key, value: AppVariableValues<Variables>[Key]) => void; ... 4 more ...; bind: <Key extends keyof Variables & string>(name: Key) => { ...; }… — URL is the source of truth for app variables; one update can change dependent values atomically.
1660
+ useAppVariables (hook, @altertable/data-app-react/ui): <const Variables extends VariableCollection>(definitions: Variables): { values: AppVariableValues<Variables>; calendarRevision: number; set: <Key extends keyof Variables & string>(name: Key, value: AppVariableValues<Variables>[Key]) => void; ... 4 more ...; bind: <Key extends keyof Variables & stri… — URL is the source of truth for app variables; one update can change dependent values atomically.
1507
1661
  useDateFormatting (hook, @altertable/data-app-react, @altertable/data-app-react/ui): (options: {…}): { locale: string; timeZone: string; } — Resolve date display defaults for custom charts and narrative. Explicit options override the view and app.
1508
1662
  useDateFormatting.options.locale?: string
1509
1663
  useDateFormatting.options.timeZone?: string
@@ -1514,7 +1668,7 @@ VariableBar (component, @altertable/data-app-react/ui): (props: VariableBarProps
1514
1668
  VariableBar.children: ReactNode
1515
1669
  VariableBar.…: plus props inherited from React
1516
1670
  VariableBarProps (type, @altertable/data-app-react/ui): = props listed as VariableBar.*
1517
- variableInput (function, @altertable/data-app/contract): <Input extends object, const Variables extends VariableCollection>(parse: (value: unknown) => Input, variables: Variables & { [Key in keyof Variables]: Variables[Key] extends { kind: 'dateRange'; } ? never : Variables[Key]; }): (value: unknown) => Input & AppVariableValues<Variables> — Validate named variable values at the operation boundary. Date inputs belong to the base parser.
1671
+ variableInput (function, @altertable/data-app/contract): <Input extends object, const Variables extends VariableCollection>(parse: (value: unknown) => Input, variables: Variables & { [Key in keyof Variables]: Variables[Key] extends { kind: 'dateRange'; } ? never : Variables[Key]; }): (value: unknown) => Input & ParsedVariableValues<Variables> — Validate named variable values at the operation boundary. Date inputs belong to the base parser.
1518
1672
  VariablePresentation (type, @altertable/data-app-react)
1519
1673
  VariablePresentation.group?: 'display' | 'scope' — Scope changes the included data; display changes its presentation. Defaults to scope.
1520
1674
  VariablePresentation.control?: 'toolbar' | 'widget' — Widget controls render beside their visualization instead of in the toolbar. Scope filters remain available in the Filters sheet and active summaries.