@altertable/data-app 0.72.0 → 0.74.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.
- package/AGENTS.md +5 -61
- package/CONTRIBUTING.md +130 -181
- package/README.md +3 -4
- package/REFERENCE.md +35 -345
- package/dist/chunks/contract-BeLPJwlO.js +558 -0
- package/dist/chunks/contract-BeLPJwlO.js.map +1 -0
- package/dist/chunks/contract-Di8SP74I.js +462 -0
- package/dist/chunks/contract-Di8SP74I.js.map +1 -0
- package/dist/chunks/diagnostics-BTZSlNtW.js +967 -0
- package/dist/chunks/diagnostics-BTZSlNtW.js.map +1 -0
- package/dist/chunks/format-BdFlv_xa.js +148 -0
- package/dist/chunks/format-BdFlv_xa.js.map +1 -0
- package/dist/chunks/operation-CSM9UmO3.js +134 -0
- package/dist/chunks/operation-CSM9UmO3.js.map +1 -0
- package/dist/chunks/request-body-H1qPmmTN.js +50 -0
- package/dist/chunks/request-body-H1qPmmTN.js.map +1 -0
- package/dist/client/index.js +273 -285
- package/dist/client/index.js.map +1 -13
- package/dist/core/appearance.js +171 -162
- package/dist/core/appearance.js.map +1 -10
- package/dist/core/config.js +49 -11
- package/dist/core/config.js.map +1 -9
- package/dist/core/contract.js +3 -73
- package/dist/core/format.js +1 -26
- package/dist/index.js +1 -12
- package/dist/internal.js +352 -397
- package/dist/internal.js.map +1 -15
- package/dist/server/index.js +85 -97
- package/dist/server/index.js.map +1 -10
- package/dist/types/chunks/appearance.d.ts +45 -0
- package/dist/types/chunks/contract.d.ts +720 -0
- package/dist/types/chunks/index.d.ts +240 -0
- package/dist/types/client/index.d.ts +3 -13
- package/dist/types/core/appearance.d.ts +2 -42
- package/dist/types/core/config.d.ts +36 -39
- package/dist/types/core/contract.d.ts +2 -114
- package/dist/types/core/format.d.ts +44 -17
- package/dist/types/index.d.ts +3 -3
- package/dist/types/internal.d.ts +312 -22
- package/dist/types/server/index.d.ts +15 -4
- package/docs/app-authoring.md +77 -128
- package/docs/client.md +29 -63
- package/docs/composition.md +44 -75
- package/docs/contract.md +60 -100
- package/docs/data-context.md +35 -61
- package/docs/diagnostics.md +45 -0
- package/docs/embed.md +86 -55
- package/docs/formatting-and-appearance.md +17 -38
- package/docs/hosted-apps.md +7 -14
- package/docs/layout.md +30 -47
- package/docs/local-data-apps.md +7 -7
- package/docs/react-embed.md +20 -26
- package/docs/react.md +10 -27
- package/docs/server-bun.md +2 -27
- package/docs/server.md +6 -12
- package/docs/stories-and-export.md +38 -40
- package/docs/styling.md +14 -22
- package/docs/ui-quality.md +5 -5
- package/docs/ui.md +93 -70
- package/docs/variables.md +142 -254
- package/docs/views.md +85 -116
- package/docs/widgets.md +100 -153
- package/docs/worker.md +15 -27
- package/package.json +3 -2
- package/dist/chunks/index-5a27erdg.js +0 -54
- package/dist/chunks/index-5a27erdg.js.map +0 -10
- package/dist/chunks/index-9yxr7nmm.js +0 -742
- package/dist/chunks/index-9yxr7nmm.js.map +0 -17
- package/dist/chunks/index-j5q5n3ra.js +0 -151
- package/dist/chunks/index-j5q5n3ra.js.map +0 -10
- package/dist/chunks/index-q75zm3a7.js +0 -153
- package/dist/chunks/index-q75zm3a7.js.map +0 -11
- package/dist/chunks/index-vhaec7m5.js +0 -30
- package/dist/chunks/index-vhaec7m5.js.map +0 -10
- package/dist/chunks/index-zp78caex.js +0 -1047
- package/dist/chunks/index-zp78caex.js.map +0 -19
- package/dist/core/contract.js.map +0 -9
- package/dist/core/format.js.map +0 -9
- package/dist/index.js.map +0 -9
- package/dist/types/client/annotations.d.ts +0 -27
- package/dist/types/client/data-client.d.ts +0 -43
- package/dist/types/client/download.d.ts +0 -5
- package/dist/types/client/iframe.d.ts +0 -59
- package/dist/types/client/location.d.ts +0 -13
- package/dist/types/client/logger.d.ts +0 -14
- package/dist/types/client/messages.d.ts +0 -7
- package/dist/types/client/navigation.d.ts +0 -15
- package/dist/types/client/transport.d.ts +0 -15
- package/dist/types/core/annotations.d.ts +0 -99
- package/dist/types/core/bridge-endpoint.d.ts +0 -21
- package/dist/types/core/bridge.d.ts +0 -172
- package/dist/types/core/data-view.d.ts +0 -46
- package/dist/types/core/date-format.d.ts +0 -24
- package/dist/types/core/date-range.d.ts +0 -20
- package/dist/types/core/dimension-source.d.ts +0 -64
- package/dist/types/core/dimension.d.ts +0 -71
- package/dist/types/core/facets.d.ts +0 -13
- package/dist/types/core/filters.d.ts +0 -45
- package/dist/types/core/invariant.d.ts +0 -2
- package/dist/types/core/keys.d.ts +0 -2
- package/dist/types/core/logger.d.ts +0 -12
- package/dist/types/core/messages.d.ts +0 -62
- package/dist/types/core/navigation.d.ts +0 -11
- package/dist/types/core/operation-types.d.ts +0 -80
- package/dist/types/core/operation.d.ts +0 -20
- package/dist/types/core/presentation.d.ts +0 -9
- package/dist/types/core/queries.d.ts +0 -84
- package/dist/types/core/reading.d.ts +0 -17
- package/dist/types/core/uuid.d.ts +0 -2
- package/dist/types/core/variables.d.ts +0 -133
- package/dist/types/server/handler.d.ts +0 -13
- package/dist/types/server/request-body.d.ts +0 -4
package/REFERENCE.md
CHANGED
|
@@ -1,26 +1,14 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Data app API reference
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
edit. Each of the 421 public exports has one heading line, then
|
|
5
|
-
one line per prop, option, or field, so one search returns everything about a
|
|
6
|
-
name:
|
|
3
|
+
Search an export to find its import paths, signature, and props:
|
|
7
4
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
Line shapes:
|
|
13
|
-
|
|
14
|
-
- `Name (kind, import specifiers): signature or type — JSDoc summary`. A name
|
|
15
|
-
exported by two entry points as different values, such as `DataApp`, has
|
|
16
|
-
one heading per entry point.
|
|
17
|
-
- `Name.prop: Type` is required; `Name.prop?: Type` is optional. Component
|
|
18
|
-
props follow the component name. Other functions add the parameter name.
|
|
19
|
-
- `[variant 2 of 3]` marks a prop that only some branches of a union accept.
|
|
20
|
-
- `= props listed as Name.*` points from a props type to its component.
|
|
5
|
+
```sh
|
|
6
|
+
rg '^LineChart\b' REFERENCE.md
|
|
7
|
+
```
|
|
21
8
|
|
|
22
|
-
|
|
23
|
-
`
|
|
9
|
+
Each export and field has its own line. `?` marks optional fields;
|
|
10
|
+
`[variant 2 of 3]` identifies union-specific fields.
|
|
11
|
+
`= props listed as Name.*` points to a component's prop definitions.
|
|
24
12
|
|
|
25
13
|
```text
|
|
26
14
|
AboutData (component, @altertable/data-app-react/ui): (props: AboutDataProps)
|
|
@@ -64,48 +52,12 @@ AboutSubject.references?: { kind: 'ids'; glossaryIds?: readonly string[] | undef
|
|
|
64
52
|
AboutSubject.queries?: DisclosedQuery[]
|
|
65
53
|
AboutSubject.records?: InspectionRecords
|
|
66
54
|
AboutTab (type, @altertable/data-app-react/ui): = 'glossary' | 'queries' | 'records'
|
|
67
|
-
AnnotationBar (component, @altertable/data-app-react): (props: AnnotationBarProps) — Host-owned batch controls. Collection changes and agent submission stay with the outer app.
|
|
68
|
-
AnnotationBar.ref?: Ref<AnnotationBarHandle>
|
|
69
|
-
AnnotationBar.annotations: readonly DataAppAnnotationDraft[]
|
|
70
|
-
AnnotationBar.active?: boolean
|
|
71
|
-
AnnotationBar.theme?: Theme
|
|
72
|
-
AnnotationBar.disabled?: boolean
|
|
73
|
-
AnnotationBar.deletedAnnotationId?: string
|
|
74
|
-
AnnotationBar.onUndoDelete?: ((id: string) => void)
|
|
75
|
-
AnnotationBar.onDismissUndo?: (() => void)
|
|
76
|
-
AnnotationBar.hasUnsavedChanges?: boolean
|
|
77
|
-
AnnotationBar.pinsVisible: boolean
|
|
78
|
-
AnnotationBar.onPinsVisibleChange: (visible: boolean) => void
|
|
79
|
-
AnnotationBar.onSelect: (id: string) => void
|
|
80
|
-
AnnotationBar.onDelete: (id: string) => void
|
|
81
|
-
AnnotationBar.onClear: () => void
|
|
82
|
-
AnnotationBar.requestDiscard?: ((discard: () => void) => void) — Let host apps use their existing confirmation dialog.
|
|
83
|
-
AnnotationBar.onSend: (annotations: readonly DataAppAnnotationDraft[]) => Promise<void> — Resolve only after the outer application's agent API accepts this snapshot.
|
|
84
|
-
AnnotationBar.onClose: () => void
|
|
85
|
-
AnnotationBarHandle (type, @altertable/data-app-react)
|
|
86
|
-
AnnotationBarHandle.send: () => Promise<void> — Submit through the same guards, pending state, and retry feedback as the Send button.
|
|
87
|
-
AnnotationBarProps (type, @altertable/data-app-react): = props listed as AnnotationBar.*
|
|
88
|
-
annotationDraftRoute (const, @altertable/data-app/contract): MessageRoute<DataAppAnnotationDraft, null>
|
|
89
|
-
annotationDraftRoute.input: (value: unknown) => DataAppAnnotationDraft
|
|
90
|
-
annotationDraftRoute.output: (value: unknown, input: DataAppAnnotationDraft) => null
|
|
91
|
-
annotationEditorStateRoute (const, @altertable/data-app/contract): MessageRoute<{ hasUnsavedChanges: boolean; }, null>
|
|
92
|
-
annotationEditorStateRoute.input: (value: unknown) => { hasUnsavedChanges: boolean; }
|
|
93
|
-
annotationEditorStateRoute.output: (value: unknown, input: { hasUnsavedChanges: boolean; }) => null
|
|
94
|
-
annotationModeRoute (const, @altertable/data-app/contract): MessageRoute<{ active: boolean; }, null> — A controlled shell acknowledges local exits (for example Escape).
|
|
95
|
-
annotationModeRoute.input: (value: unknown) => { active: boolean; }
|
|
96
|
-
annotationModeRoute.output: (value: unknown, input: { active: boolean; }) => null
|
|
97
|
-
annotationSendRoute (const, @altertable/data-app/contract): MessageRoute<null, null> — Request host-owned batch submission without transferring ownership of drafts.
|
|
98
|
-
annotationSendRoute.input: (value: unknown) => null
|
|
99
|
-
annotationSendRoute.output: (value: unknown, input: null) => null
|
|
100
55
|
AnnotationTarget (component, @altertable/data-app-react): (props: AnnotationTargetProps) — A stable feedback target for app-owned content outside the built-in widgets.
|
|
101
56
|
AnnotationTarget.annotationId: string
|
|
102
57
|
AnnotationTarget.label: string
|
|
103
58
|
AnnotationTarget.evidence?: WidgetEvidence
|
|
104
59
|
AnnotationTarget.…: plus props inherited from React
|
|
105
60
|
AnnotationTargetProps (type, @altertable/data-app-react): = props listed as AnnotationTarget.*
|
|
106
|
-
annotationUpdateRoute (const, @altertable/data-app/contract): MessageRoute<{ id: string; comment: string; }, null>
|
|
107
|
-
annotationUpdateRoute.input: (value: unknown) => { id: string; comment: string; }
|
|
108
|
-
annotationUpdateRoute.output: (value: unknown, input: { id: string; comment: string; }) => null
|
|
109
61
|
AppearanceOptions (type, @altertable/data-app/appearance): App-authored overrides; omitted fields use the package defaults.
|
|
110
62
|
AppearanceOptions.theme?: ThemePreference
|
|
111
63
|
AppearanceOptions.baseColor?: 'neutral' | 'slate' | 'warm' — Palette for surfaces, text, and borders; independent of the accent.
|
|
@@ -126,29 +78,12 @@ AppearanceSettings.density: 'comfortable' | 'compact' | 'spacious'
|
|
|
126
78
|
AppearanceSettings.cornerRadius: 'large' | 'medium' | 'none' | 'small'
|
|
127
79
|
AppearanceSettings.elevation: 'flat' | 'raised' | 'subtle'
|
|
128
80
|
AppearanceSettings.typography: { body: string; heading: string; }
|
|
129
|
-
AppFilePreview (type, @altertable/data-app-bun/preview)
|
|
130
|
-
AppFilePreview.url: URL
|
|
131
|
-
AppFilePreview.stop: () => Promise<void> — Stop serving, close reload connections, and release all file watchers.
|
|
132
|
-
AppFilePreviewOptions (type, @altertable/data-app-bun/preview): = props listed as serveAppFile.options.*
|
|
133
81
|
AppIcon (function, @altertable/data-app-react/ui): (options: AppIconProps): FunctionComponentElement<Omit<LucideProps, 'ref'> & RefAttributes<SVGSVGElement>>
|
|
134
82
|
AppIcon.options.name: 'annotate' | 'breakdown' | 'calendar' | 'cancel' | 'check' | 'clearFilters' | 'clock' | 'close' | 'copy' | 'darkTheme' | 'disclosure' | 'displayOptions' | 'error' | 'explore' | ... 22 more ... | 'wrap'
|
|
135
83
|
AppIcon.options.size?: string | number
|
|
136
84
|
AppIcon.options.…: plus props inherited from lucide-react, React
|
|
137
85
|
AppIconName (type, @altertable/data-app-react/ui): = 'annotate' | 'breakdown' | 'calendar' | 'cancel' | 'check' | 'clearFilters' | 'clock' | 'close' | 'copy' | 'darkTheme' | 'disclosure' | 'displayOptions' | 'error' | 'explore' | ... 22 more ... | 'wrap'
|
|
138
86
|
AppIconProps (type, @altertable/data-app-react/ui): = props listed as AppIcon.options.*
|
|
139
|
-
AppLocation (type, @altertable/data-app/client): App-owned URL state shared by controls, frame adapters, and host navigation.
|
|
140
|
-
AppLocation.search: string
|
|
141
|
-
AppLocation.hash: string
|
|
142
|
-
applyAppearance (function, @altertable/data-app/appearance): (value: AppearanceOptions): () => void — Select document-owned appearance presets and brand inputs. Public CSS tokens remain overridable in stylesheets. Cleanup restores the previous document appearance.
|
|
143
|
-
applyAppearance.value.theme?: ThemePreference
|
|
144
|
-
applyAppearance.value.baseColor?: 'neutral' | 'slate' | 'warm' — Palette for surfaces, text, and borders; independent of the accent.
|
|
145
|
-
applyAppearance.value.accentColor?: string — Emphasis color for checked controls and selected dates; options use the base palette.
|
|
146
|
-
applyAppearance.value.darkAccentColor?: string
|
|
147
|
-
applyAppearance.value.chartColors?: string[]
|
|
148
|
-
applyAppearance.value.density?: 'comfortable' | 'compact' | 'spacious'
|
|
149
|
-
applyAppearance.value.cornerRadius?: 'large' | 'medium' | 'none' | 'small'
|
|
150
|
-
applyAppearance.value.elevation?: 'flat' | 'raised' | 'subtle'
|
|
151
|
-
applyAppearance.value.typography?: Partial<{ body: string; heading: string; }>
|
|
152
87
|
AppVariable (type, @altertable/data-app-react): <Value, Kind> — An app-owned value with one URL representation. Controls never parse or write routes.
|
|
153
88
|
AppVariable.kind: Kind
|
|
154
89
|
AppVariable.label?: string
|
|
@@ -174,18 +109,6 @@ AreaChartItem.id: string
|
|
|
174
109
|
AreaChartItem.label: string
|
|
175
110
|
AreaChartItem.value: number
|
|
176
111
|
AreaChartProps (type, @altertable/data-app-react/ui): <Row> = props listed as AreaChart.*
|
|
177
|
-
attachDataAppBridge (function, @altertable/data-app-embed): (options: DataAppBridgeOptions): DataAppHost — Source mode configures and loads the iframe; connection mode attaches to a host-owned document.
|
|
178
|
-
attachDataAppBridge.options.iframe: HTMLIFrameElement
|
|
179
|
-
attachDataAppBridge.options.presentation?: DataAppPresentation
|
|
180
|
-
attachDataAppBridge.options.logger?: DataAppLogger
|
|
181
|
-
attachDataAppBridge.options.onStatusChange?: ((status: DataAppStatus) => void)
|
|
182
|
-
attachDataAppBridge.options.onDiagnostic?: ((event: DataAppDiagnostic) => void)
|
|
183
|
-
attachDataAppBridge.options.onMessage: MessageDispatcher
|
|
184
|
-
attachDataAppBridge.options.connection: DataAppConnection [variant 1 of 2]
|
|
185
|
-
attachDataAppBridge.options.javascript?: string [variant 1 of 2]
|
|
186
|
-
attachDataAppBridge.options.window?: Window [variant 1 of 2]
|
|
187
|
-
attachDataAppBridge.options.source: DataAppSource [variant 2 of 2]
|
|
188
|
-
attachDataAppBridge.options.startupTimeoutMs?: number [variant 2 of 2]
|
|
189
112
|
BarChart (component, @altertable/data-app-react/ui): <Row extends BarChartItem>(props: BarChartProps<Row>) — Nonnegative category values. Compose inside VisualizationWidget for a titled panel. Owns hover/touch tooltips; no selection state or keyboard navigation.
|
|
190
113
|
BarChart.items: readonly Row[] — Ordered samples; the chart validates IDs and values when rendering.
|
|
191
114
|
BarChart.itemActions?: ItemActions<Row> — Actions available for each displayed item. Domain fields remain available to this callback.
|
|
@@ -319,17 +242,18 @@ ComparisonProps (type, @altertable/data-app-react): = props listed as Comparison
|
|
|
319
242
|
ComposedChart (component, @altertable/data-app-react/ui): <Row>(props: ComposedChartProps<Row>) — Shared themed series and controls; other children retain native Recharts defaults.
|
|
320
243
|
ComposedChart.data: readonly Row[] — Displayed rows; series and axes select fields with Recharts dataKey props.
|
|
321
244
|
ComposedChart.ariaLabel: string — Describes the measures and scope for assistive technology.
|
|
245
|
+
ComposedChart.valueFormat?: MetricFormat — Shared measure semantics: compact numeric axes and precise tooltips. For mixed units, use explicit axis tickFormatter and series/tooltip formatters.
|
|
322
246
|
ComposedChart.…: plus props inherited from recharts
|
|
323
247
|
ComposedChart.Dot: (props: DotProps & { active?: boolean; })
|
|
324
248
|
ComposedChart.Area: <Row = unknown, Value = number | null>(props: AreaProps<Row, Value>)
|
|
325
249
|
ComposedChart.Bar: <Row = unknown, Value = number | null>(props: BarProps<Row, Value>)
|
|
326
250
|
ComposedChart.Line: <Row = unknown, Value = number | null>(props: LineProps<Row, Value>)
|
|
327
|
-
ComposedChart.Scatter: <Row = unknown, Value = number>(props: ComponentProps<typeof Scatter<Row, Value>>)
|
|
328
|
-
ComposedChart.XAxis: <Row = unknown, Value = string | number | Date>(props: ComponentProps<typeof XAxis<Row, Value>>)
|
|
329
|
-
ComposedChart.YAxis: <Row = unknown, Value = number>(props: ComponentProps<typeof YAxis<Row, Value>>)
|
|
251
|
+
ComposedChart.Scatter: <Row = unknown, Value = number>(props: ComponentProps<typeof import('recharts').Scatter<Row, Value>>)
|
|
252
|
+
ComposedChart.XAxis: <Row = unknown, Value = string | number | Date>(props: ComponentProps<typeof import('recharts').XAxis<Row, Value>>)
|
|
253
|
+
ComposedChart.YAxis: <Row = unknown, Value = number>(props: ComponentProps<typeof import('recharts').YAxis<Row, Value>>)
|
|
330
254
|
ComposedChart.ZAxis: <DataPointType = any, DataValueType = any>(outsideProps: Props<DataPointType, DataValueType>)
|
|
331
|
-
ComposedChart.CartesianGrid: (props: ComponentProps<typeof CartesianGrid>)
|
|
332
|
-
ComposedChart.Tooltip: (props: ComponentProps<typeof Tooltip>)
|
|
255
|
+
ComposedChart.CartesianGrid: (props: ComponentProps<typeof import('recharts').CartesianGrid>)
|
|
256
|
+
ComposedChart.Tooltip: (props: ComponentProps<typeof import('recharts').Tooltip>)
|
|
333
257
|
ComposedChart.Legend: (props: ComposedChartLegendProps)
|
|
334
258
|
ComposedChart.ReferenceLine: <XValueType extends ReferenceCoordinateValue = any, YValueType extends ReferenceCoordinateValue = any>(outsideProps: Props<XValueType, YValueType>)
|
|
335
259
|
ComposedChart.ReferenceArea: <XValueType extends ReferenceCoordinateValue = any, YValueType extends ReferenceCoordinateValue = any>(outsideProps: Props<XValueType, YValueType>)
|
|
@@ -351,11 +275,6 @@ ConnectionOperation.run: (context: OperationContext, input: Record<string, never
|
|
|
351
275
|
ConnectionOperation.checks: readonly [Record<string, never>, ...Record<string, never>[]]
|
|
352
276
|
ConnectionOperation.policy: { maxQueryRows: number; maxDurationMs: number; maxResponseBytes?: number | undefined; }
|
|
353
277
|
ConnectionOperation.queryNames: { readonly connection: 'connection'; }
|
|
354
|
-
copyExample (function, @altertable/data-app-examples): (id: DataAppExampleId, destination: string): Promise<void> — Copy a starter into a new directory; reject existing destinations.
|
|
355
|
-
createAnnotationClient (function, @altertable/data-app/client): (transport: MessageTransport): { requestSendAnnotations(options?: { signal?: AbortSignal | undefined; } | undefined): Promise<null>; reportAnnotationEditorState(state: { hasUnsavedChanges: boolean; }, options?: { ...; } | undefined): Promise<...>; addAnnotation(draft: DataAppAnnotationDraft, option… — Deliver annotations to the authenticated host. Acknowledgement means retained, not sent to an agent.
|
|
356
|
-
createDataAppNavigation (function, @altertable/data-app/client): (options: {…}): DataAppNavigation — Attach app URL behavior to an already authenticated bridge.
|
|
357
|
-
createDataAppNavigation.options.bridge: { logger: DataAppLogger; request: (message: RoutedMessage, signal?: AbortSignal | undefined) => Promise<unknown>; transport: (operation: string, input: unknown, signal?: AbortSignal | undefined) => Promise<...>; ... 6 more ...; fail(cause?: unknown): void; }
|
|
358
|
-
createDataAppNavigation.options.window?: Window
|
|
359
278
|
createDataClient (function, @altertable/data-app/client): <Operations extends DataOperations>(options: DataClientOptions<Operations>): DataClient<Operations>; <Operations extends DataOperations>(...args: DataClientOptions<Operations> extends never ? [ options: never ] : [ ]): DataClient<Operations>; (options: TransportOptions): DataClient<DataOperations> — Named HTTP operations, or browser-owned operations executed through an authorized SQL bridge. Named clients derive data from the declared operations' run return types.
|
|
360
279
|
createDataClient.options.transport?: DataTransport [variant 1 of 2]
|
|
361
280
|
createDataClient.options.endpoint?: string [variant 1 of 2]
|
|
@@ -366,25 +285,8 @@ createDataClient.options.transport?: DataTransport
|
|
|
366
285
|
createDataClient.options.endpoint?: string
|
|
367
286
|
createDataClient.options.fetch?: typeof fetch
|
|
368
287
|
createDataContext (function, @altertable/data-app-react): <const Names extends Record<string, string>>(queryNames: Names): <const Context extends Omit<DataContext, 'glossary'> & { glossary: Record<string, Omit<GlossaryEntry, 'queryNames'> & { queryNames?: Names[keyof Names][]; }>; }>(context: Context) => Context & { ...; } — Bind glossary query references and card evidence to the same registry.
|
|
369
|
-
createDataHandler (function, @altertable/data-app/server): (operations: DataOperations, authorize: (request: Request, operation: string) => Promise<RequestAccess>): (request: Request) => Promise<Response> — Execute named operations on the server. The app supplies operations and viewer authorization.
|
|
370
288
|
createDataHooks (function, @altertable/data-app-react): <Operations extends DataOperations>(client: DataClient<Operations>): { defineDataView: { <Name extends keyof Operations & string, const Variables extends VariableCollection = {}, const Context extends AuthoringDataContext = AuthoringDataContext>(definition: { operation: Name; dataContext: DataConte… — Bind declared operations to URL variables, displayed readings, and request feedback.
|
|
371
289
|
createDataHooks.client.query: <Name extends keyof Operations & string>(this: void, name: Name & (true extends IsUnion<NoInfer<Name>, NoInfer<Name>> ? never : unknown), input: InputOf<Operations[NoInfer<Name>]>, options?: { ...; } | undefined) => Promise<...>
|
|
372
|
-
createHttpTransport (function, @altertable/data-app/client): (options: {…}): DataTransport
|
|
373
|
-
createHttpTransport.options.endpoint?: string
|
|
374
|
-
createHttpTransport.options.fetch?: typeof fetch
|
|
375
|
-
createIframeTransport (function, @altertable/data-app/client): (options: {…}): { logger: DataAppLogger; request: (message: RoutedMessage, signal?: AbortSignal | undefined) => Promise<unknown>; transport: (operation: string, input: unknown, signal?: AbortSignal | undefined) => Promise<...>; ... 6 more ...; fail(cause?: unknown): void; } — One bridge per document, shared by all clients and retained across module hot replacement.
|
|
376
|
-
createIframeTransport.options.parentOrigin: string
|
|
377
|
-
createIframeTransport.options.window?: Window
|
|
378
|
-
createIframeTransport.options.timeoutMs?: number
|
|
379
|
-
createIframeTransport.options.mode?: 'bundle' | 'url'
|
|
380
|
-
createIframeTransport.options.loadScript?: ((javascript: string) => void)
|
|
381
|
-
createMessageClient (function, @altertable/data-app/client): <const Routes extends MessageRoutes>(routes: Routes, transport: MessageTransport): { request<Name extends keyof Routes & string, const Input extends MessageInput<NoInfer<Routes[Name]>>>(route: Name, payload: Input, { signal }?: { signal?: AbortSignal | undefined; } | undefined): Promise<...>; } — Both ends validate using the same contracts; the transport owns delivery and cancellation.
|
|
382
|
-
createMessageRouter (function, @altertable/data-app/contract): <const Routes extends MessageRoutes>(routes: Routes, handlers: MessageHandlers<NoInfer<Routes>>): { dispatch: (value: unknown, context: MessageContext) => Promise<unknown>; } — Contracts are shared; handlers are supplied by the host and never belong in the app bundle.
|
|
383
|
-
createNavigationHandler (function, @altertable/data-app-embed): (options: {…}): (input: NavigationUpdate) => null — Override this handler for framework routers. Reserved host parameters survive app navigation.
|
|
384
|
-
createNavigationHandler.options.window?: Window
|
|
385
|
-
createNavigationHandler.options.reservedSearchParams?: readonly string[]
|
|
386
|
-
createSqlQueryHandler (function, @altertable/data-app-embed): (authorize: (query: SqlQueryInput, context: MessageContext) => Promise<Lakehouse>): (input: SqlQueryInput, context: MessageContext) => Promise<QueryResult<unknown[]>> — Authorize every SQL request and supply a backend that independently enforces access and query limits.
|
|
387
|
-
createThemeController (function, @altertable/data-app/appearance): (initialTheme: ThemePreference): ThemeController — Persist a viewer theme preference. Applying appearance belongs to the UI owner.
|
|
388
290
|
CsvCell (type, @altertable/data-app-react): = string | number | boolean | null | undefined
|
|
389
291
|
CsvExport (type, @altertable/data-app-react/ui): All distinct datasets in the displayed result; filename names the download.
|
|
390
292
|
CsvExport.filename: string
|
|
@@ -415,36 +317,6 @@ DataApp.footerActions?: ReactNode
|
|
|
415
317
|
DataApp.footer?: ReactNode — Optional source, coverage, or methodology note below the app content. Compose prose and inline components; typography and spacing are provided.
|
|
416
318
|
DataApp.csvExport?: CsvExport
|
|
417
319
|
DataApp.queries?: DisclosedQuery[]
|
|
418
|
-
DataAppAnnotationDraft (type, @altertable/data-app/contract)
|
|
419
|
-
DataAppAnnotationDraft.id: string
|
|
420
|
-
DataAppAnnotationDraft.target: { id: string; label: string; kind: 'app' | 'element' | 'widget'; text: string; queryNames: string[]; glossaryIds: string[]; }
|
|
421
|
-
DataAppAnnotationDraft.context: { search: string; hash: string; displayedInput?: unknown; anchor?: { x: number; y: number; } | undefined; cursor?: { x: number; y: number; } | undefined; region?: { x: number; y: number; width: number; height: number; } | undefined; screenshot?: { ...; } | undefined; view?: string | undefined; view…
|
|
422
|
-
DataAppAnnotationDraft.comment: string
|
|
423
|
-
DataAppAnnotationPresentation (type, @altertable/data-app/contract)
|
|
424
|
-
DataAppAnnotationPresentation.enabled: boolean
|
|
425
|
-
DataAppAnnotationPresentation.active?: boolean — When provided, the host owns the mode and renders the annotation trigger.
|
|
426
|
-
DataAppAnnotationPresentation.pinsVisible?: boolean
|
|
427
|
-
DataAppAnnotationPresentation.showHint?: boolean
|
|
428
|
-
DataAppAnnotationPresentation.readOnly?: boolean
|
|
429
|
-
DataAppAnnotationPresentation.targets?: { id: string; targetId: string; number: number; comment?: string | undefined; anchor?: { x: number; y: number; } | undefined; region?: { x: number; y: number; width: number; height: number; } | undefined; }[]
|
|
430
|
-
DataAppAnnotationPresentation.selectedAnnotationId?: string
|
|
431
|
-
DataAppAnnotationPresentation.selectedTargetId?: string
|
|
432
|
-
DataAppAnnotationPresentation.selectionId?: string
|
|
433
|
-
DataAppAnnotationPresentation.dismissal?: { id: string; occurredAt: number; } — Confirmed host click outside the iframe; occurredAt is epoch milliseconds.
|
|
434
|
-
DataAppBridge (component, @altertable/data-app-embed/react): (props: DataAppBridgeProps) — Owns iframe setup and delivery. The consuming shell owns loading, error UI, and retries.
|
|
435
|
-
DataAppBridge.presentation?: DataAppPresentation
|
|
436
|
-
DataAppBridge.logger?: DataAppLogger
|
|
437
|
-
DataAppBridge.onStatusChange?: ((status: DataAppStatus) => void)
|
|
438
|
-
DataAppBridge.onDiagnostic?: ((event: DataAppDiagnostic) => void)
|
|
439
|
-
DataAppBridge.onMessage: MessageDispatcher
|
|
440
|
-
DataAppBridge.source: DataAppSource [variant 1 of 2]
|
|
441
|
-
DataAppBridge.title: string [variant 1 of 2]
|
|
442
|
-
DataAppBridge.startupTimeoutMs?: number [variant 1 of 2]
|
|
443
|
-
DataAppBridge.iframeProps?: Omit<Omit<DetailedHTMLProps<IframeHTMLAttributes<HTMLIFrameElement>, HTMLIFrameElement>, 'ref'>, 'children' | ... 5 more ... | 'title'> [variant 1 of 2]
|
|
444
|
-
DataAppBridge.iframe: HTMLIFrameElement | null [variant 2 of 2]
|
|
445
|
-
DataAppBridge.connection: DataAppConnection [variant 2 of 2]
|
|
446
|
-
DataAppBridgeOptions (type, @altertable/data-app-embed): = props listed as attachDataAppBridge.options.*
|
|
447
|
-
DataAppBridgeProps (type, @altertable/data-app-embed/react): = props listed as DataAppBridge.*
|
|
448
320
|
DataAppConfig (type, @altertable/data-app, @altertable/data-app/config): <Queries>
|
|
449
321
|
DataAppConfig.title: string
|
|
450
322
|
DataAppConfig.scope: { organization: string; environment: string; } — Display labels; scope does not grant data access.
|
|
@@ -452,11 +324,6 @@ DataAppConfig.description: string — Explain what the app helps readers explore
|
|
|
452
324
|
DataAppConfig.appearance?: AppearanceOptions — Omit to use the standard appearance.
|
|
453
325
|
DataAppConfig.dateFormatting?: { locale?: string | undefined; timeZone?: string | undefined; } — Shared date display defaults. Reporting views and individual fields may override the time zone.
|
|
454
326
|
DataAppConfig.queries: Queries — Named SQL statements with typed parameters and result projections.
|
|
455
|
-
DataAppConnection (type, @altertable/data-app-embed)
|
|
456
|
-
DataAppConnection.type: 'origin' [variant 1 of 2]
|
|
457
|
-
DataAppConnection.origin: string [variant 1 of 2]
|
|
458
|
-
DataAppConnection.type: 'opaque' [variant 2 of 2]
|
|
459
|
-
DataAppConnection.token: string [variant 2 of 2]
|
|
460
327
|
DataAppDefinition (type, @altertable/data-app, @altertable/data-app/config): <Queries> — An app declaration with operations bound to its query registry.
|
|
461
328
|
DataAppDefinition.title: string
|
|
462
329
|
DataAppDefinition.scope: { organization: string; environment: string; } — Display labels; scope does not grant data access.
|
|
@@ -466,46 +333,10 @@ DataAppDefinition.dateFormatting?: { locale?: string | undefined; timeZone?: str
|
|
|
466
333
|
DataAppDefinition.queries: QuerySnapshot<Queries>
|
|
467
334
|
DataAppDefinition.defineDimension: <const Type extends 'string' | 'number'>(config: DimensionSourceConfig<Type> & { source: { query: DimensionSourceQueryName<Queries, NoInfer<Type>>; }; }) => SourceDimensionVariable<...>
|
|
468
335
|
DataAppDefinition.defineOperation: <Input, Output>(operation: OperationDefinition<Input, Output, Queries>) => Omit<DataOperation<Input, Output>, 'queryNames'> & { ...; }
|
|
469
|
-
DataAppDiagnostic (type, @altertable/data-app-embed): Delivery metadata only; never tokens or payloads. `durationMs` measures host handling of a request, reported on its result or error.
|
|
470
|
-
DataAppDiagnostic.direction: 'drop' [variant 1 of 2]
|
|
471
|
-
DataAppDiagnostic.type?: string [variant 1 of 2]
|
|
472
|
-
DataAppDiagnostic.reason: BridgeDropReason [variant 1 of 2]
|
|
473
|
-
DataAppDiagnostic.durationMs?: number
|
|
474
|
-
DataAppDiagnostic.direction: 'receive' | 'send' [variant 2 of 2]
|
|
475
|
-
DataAppDiagnostic.type: 'bridge:cancel' | 'bridge:connect' | 'bridge:disconnect' | 'bridge:error' | 'bridge:initialize' | 'bridge:ready' | 'bridge:request' | 'bridge:result' | 'runtime:error' | 'runtime:log' | 'runtime:ready' | 'script:load' | 'state:update' [variant 2 of 2]
|
|
476
|
-
DataAppDiagnostic.id?: string [variant 2 of 2]
|
|
477
|
-
DataAppDiagnostic.route?: string [variant 2 of 2]
|
|
478
|
-
DataAppDiagnostic.operation?: string [variant 2 of 2]
|
|
479
|
-
DataAppDiagnostic.error?: { code: string; message: string; requestId?: string | undefined; } [variant 2 of 2]
|
|
480
336
|
DataAppError (class, @altertable/data-app/client)
|
|
481
337
|
DataAppError.code: string
|
|
482
338
|
DataAppError.requestId?: string
|
|
483
339
|
DataAppError.…: plus props inherited from built-in
|
|
484
|
-
DataAppExampleId (type, @altertable/data-app-examples): = 'starter-data-app' | 'starter-local-data-app' — Stable identifier for a canonical starter.
|
|
485
|
-
dataAppExamples (const, @altertable/data-app-examples): readonly [{ readonly id: 'starter-data-app'; readonly title: 'Hosted data app'; readonly description: 'A single-file React app for hosted execution.'; readonly mode: 'hosted'; }, { readonly id: 'starter-local-data-app'; readonly title: 'Local data app'; readonly description: 'A Bun and React projec… — Canonical starters available to scaffolding tools. IDs are stable across releases.
|
|
486
|
-
DataAppHost (type, @altertable/data-app-embed)
|
|
487
|
-
DataAppHost.dispose: () => void
|
|
488
|
-
DataAppHost.setPresentation: (presentation?: DataAppPresentation | undefined) => void
|
|
489
|
-
DataAppHost.setLogger: (logger?: DataAppLogger | undefined) => void
|
|
490
|
-
DataAppLocation (type, @altertable/data-app/client)
|
|
491
|
-
DataAppLocation.snapshot: () => AppLocation
|
|
492
|
-
DataAppLocation.subscribe: (listener: () => void) => () => void
|
|
493
|
-
DataAppLocation.update: (location: AppLocation, mode?: HistoryMode | undefined) => void
|
|
494
|
-
DataAppLogger (type, @altertable/data-app/client, @altertable/data-app-embed): Host-owned log sink; compatible with console and frontend createLogger().
|
|
495
|
-
DataAppLogger.log: (...args: unknown[]) => void
|
|
496
|
-
DataAppLogger.info: (...args: unknown[]) => void
|
|
497
|
-
DataAppLogger.warn: (...args: unknown[]) => void
|
|
498
|
-
DataAppLogger.error: (...args: unknown[]) => void
|
|
499
|
-
DataAppNavigation (type, @altertable/data-app/client)
|
|
500
|
-
DataAppNavigation.snapshot: () => AppLocation
|
|
501
|
-
DataAppNavigation.subscribe: (listener: () => void) => () => void
|
|
502
|
-
DataAppNavigation.update: (location: AppLocation, mode?: HistoryMode | undefined) => void
|
|
503
|
-
DataAppNavigation.publish: (mode?: HistoryMode | undefined) => void — Publish URL changes made outside the adapter, including the document title.
|
|
504
|
-
DataAppNavigation.dispose: () => void
|
|
505
|
-
DataAppPresentation (type, @altertable/data-app-embed): Presentation owned by the parent shell, delivered only over a trusted bridge.
|
|
506
|
-
DataAppPresentation.surface: 'embedded' | 'standalone'
|
|
507
|
-
DataAppPresentation.theme: Theme
|
|
508
|
-
DataAppPresentation.annotations?: DataAppAnnotationPresentation
|
|
509
340
|
DataAppProps (type, @altertable/data-app-react): <Data, Input> = props listed as DataApp.*
|
|
510
341
|
DataAppProps (type, @altertable/data-app-react/ui)
|
|
511
342
|
DataAppProps.children: ReactNode
|
|
@@ -519,16 +350,6 @@ DataAppProps.queries?: DisclosedQuery[]
|
|
|
519
350
|
DataAppProvider (component, @altertable/data-app-react/ui): <const Queries extends QueryDefinitions>(props: {…}) — Provide one app identity and shared requests to a custom React root.
|
|
520
351
|
DataAppProvider.app: DataAppDefinition<Queries>
|
|
521
352
|
DataAppProvider.children: ReactNode
|
|
522
|
-
dataAppRoutes (const, @altertable/data-app/contract)
|
|
523
|
-
dataAppRoutes.data:query: DataQueryRoute<OperationContracts>
|
|
524
|
-
dataAppRoutes.navigation:update: MessageRoute<NavigationUpdate, null>
|
|
525
|
-
DataAppSource (type, @altertable/data-app-embed)
|
|
526
|
-
DataAppSource.type: 'url' [variant 1 of 2]
|
|
527
|
-
DataAppSource.url: string [variant 1 of 2]
|
|
528
|
-
DataAppSource.type: 'bundle' [variant 2 of 2]
|
|
529
|
-
DataAppSource.bootstrapUrl?: string [variant 2 of 2] — Omit to use the packaged, network-isolated data document.
|
|
530
|
-
DataAppSource.javascript: string [variant 2 of 2]
|
|
531
|
-
DataAppStatus (type, @altertable/data-app-embed): = 'connected' | 'connecting' | 'disconnected' | 'failed' | 'ready'
|
|
532
353
|
DataAppStyle (type, @altertable/data-app-react, @altertable/data-app-react/ui): React style properties with checked public Altertable custom properties.
|
|
533
354
|
DataAppStyle.{--atbl-accent, --atbl-accent-subtle, --atbl-annotation-accent, --atbl-annotation-accent-hover, --atbl-annotation-highlight, --atbl-annotation-on-accent, --atbl-backdrop, --atbl-background, --atbl-border, --atbl-chart-1, --atbl-chart-2, --atbl-chart-3, --atbl-chart-4, --atbl-chart-5, --atbl-chart-6, --atbl-chart-7, --atbl-chart-8, --atbl-chart-fill, --atbl-code-keyword, --atbl-code-surface, --atbl-code-text, --atbl-content-width, --atbl-control-compact-height, --atbl-control-disabled-opacity, --atbl-control-gap, --atbl-control-height, --atbl-control-hover-border, --atbl-control-hover-surface, --atbl-control-icon-size, --atbl-control-open-border, --atbl-control-open-surface, --atbl-control-padding-block, --atbl-control-padding-inline, --atbl-control-pressed-surface, --atbl-control-selected-surface, --atbl-control-selected-text, --atbl-control-text-size, --atbl-cursor-action, --atbl-cursor-busy, --atbl-cursor-disabled, --atbl-cursor-help, --atbl-danger, --atbl-danger-subtle, --atbl-dropdown-item-gap, --atbl-dropdown-item-padding-block, --atbl-dropdown-item-padding-inline, --atbl-dropdown-padding, --atbl-duration-fast, --atbl-duration-normal, --atbl-duration-slow, --atbl-ease-enter, --atbl-ease-standard, --atbl-focus-color, --atbl-focus-outline, --atbl-focus-ring-inset, --atbl-focus-ring-offset, --atbl-font, --atbl-font-heading, --atbl-layout-gap, --atbl-mono-font, --atbl-muted, --atbl-negative, --atbl-on-accent, --atbl-positive, --atbl-radius-control, --atbl-radius-overlay, --atbl-radius-surface, --atbl-shadow-control, --atbl-shadow-overlay, --atbl-shadow-surface, --atbl-space-lg, --atbl-space-md, --atbl-space-sm, --atbl-space-xl, --atbl-space-xs, --atbl-subtle, --atbl-surface, --atbl-surface-padding, --atbl-text, --atbl-text-measure, --atbl-type-body-leading, --atbl-type-body-size, --atbl-type-emphasis-weight, --atbl-type-heading-leading, --atbl-type-heading-weight, --atbl-type-label-leading, --atbl-type-label-size, --atbl-type-label-weight, --atbl-type-meta-size, --atbl-type-meta-weight, --atbl-type-metric-leading, --atbl-type-metric-size, --atbl-type-page-size, --atbl-type-section-size, --atbl-type-widget-size}?: string | number
|
|
534
355
|
DataAppStyle.…: plus props inherited from csstype
|
|
@@ -539,9 +360,6 @@ DataAppStylesOptions (type, @altertable/data-app-react)
|
|
|
539
360
|
DataAppStylesOptions.document?: Document — Defaults to the current browser document.
|
|
540
361
|
DataAppStylesOptions.nonce?: string — Nonce permitted by the document's style-src CSP.
|
|
541
362
|
DataAppStyleToken (type, @altertable/data-app-react, @altertable/data-app-react/ui): = '--atbl-accent' | '--atbl-accent-subtle' | '--atbl-annotation-accent' | '--atbl-annotation-accent-hover' | '--atbl-annotation-highlight' | '--atbl-annotation-on-accent' | ... 88 more ... | '--atbl-type-widget-size'
|
|
542
|
-
dataAppTitle (function, @altertable/data-app, @altertable/data-app/config): (config: Pick<DataAppConfig, 'title' | 'scope'>): string
|
|
543
|
-
dataAppTitle.config.title: string
|
|
544
|
-
dataAppTitle.config.scope: { organization: string; environment: string; } — Display labels; scope does not grant data access.
|
|
545
363
|
DataClient (type, @altertable/data-app/client): <Operations> = props listed as createDataHooks.client.*
|
|
546
364
|
DataClientOptions (type, @altertable/data-app/client): <Operations> = props listed as createDataClient.options.* — Browser operations and named-operation delivery are mutually exclusive.
|
|
547
365
|
DataContext (type, @altertable/data-app-react)
|
|
@@ -563,18 +381,6 @@ DataOperation.run: (context: OperationContext, input: Input) => Promise<Output>
|
|
|
563
381
|
DataOperation.checks: readonly [Input, ...Input[]]
|
|
564
382
|
DataOperation.queryNames?: Readonly<Record<string, string>>
|
|
565
383
|
DataOperation.policy: { maxQueryRows: number; maxDurationMs: number; maxResponseBytes?: number | undefined; }
|
|
566
|
-
DataOperations (type, @altertable/data-app/contract): = { [x: string]: { input: (value: unknown) => unknown; } & Omit<DataOperation<never, unknown>, 'checks' | 'input'> & { checks: readonly [unknown, ...unknown[]]; }; } — Heterogeneous registry: inputs vary per operation, so checks retain unknown values.
|
|
567
|
-
DataQueryBody (type, @altertable/data-app/contract): <Output>
|
|
568
|
-
DataQueryBody.data: Output
|
|
569
|
-
DataQueryBody.requestId: string
|
|
570
|
-
DataQueryBody.queriedAt: string
|
|
571
|
-
DataQueryBody.queryIds: string[]
|
|
572
|
-
DataQueryBody.queries?: DisclosedQuery[]
|
|
573
|
-
DataQueryInput (type, @altertable/data-app/contract): <Operations> = { [Name in keyof Operations & string]: { operation: Name; input: InputOf<Operations[Name]>; }; }[keyof Operations & string]
|
|
574
|
-
DataQueryRoute (type, @altertable/data-app/contract): <Operations>
|
|
575
|
-
DataQueryRoute.input: (value: unknown) => DataQueryInput<Operations>
|
|
576
|
-
DataQueryRoute.output: (value: unknown, input: DataQueryInput<Operations>) => TransportResponse
|
|
577
|
-
DataQueryRoute.operations: Operations | undefined
|
|
578
384
|
DataReading (type, @altertable/data-app-react/ui): <Value>
|
|
579
385
|
DataReading.loading: true [variant 1 of 2]
|
|
580
386
|
DataReading.loading: false [variant 2 of 2]
|
|
@@ -615,11 +421,6 @@ DatasetSuggestionOptions (type, @altertable/data-app-react): <Row>
|
|
|
615
421
|
DatasetSuggestionOptions.title: (row: Row) => string
|
|
616
422
|
DatasetSuggestionOptions.description?: ((row: Row) => string)
|
|
617
423
|
DatasetSuggestionOptions.onSelect?: ((row: Row) => void) — Override query completion with an app action.
|
|
618
|
-
DataSourceError (class, @altertable/data-app/contract)
|
|
619
|
-
DataSourceError.reason: 'forbidden' | 'query_rejected' | 'rate_limited' | 'unauthorized' | 'unavailable'
|
|
620
|
-
DataSourceError.status?: number
|
|
621
|
-
DataSourceError.queryName?: string
|
|
622
|
-
DataSourceError.…: plus props inherited from built-in
|
|
623
424
|
DataTable (component, @altertable/data-app-react/ui): (props: DataTableProps) — Scrollable native table. Mark quantitative th/td cells with data-type="number"; the runtime aligns them to the end and uses tabular digits.
|
|
624
425
|
DataTable.searchable?: DataTableSearch
|
|
625
426
|
DataTable.…: plus props inherited from React
|
|
@@ -647,7 +448,6 @@ DataTableTimestamp.timeZone?: string
|
|
|
647
448
|
DataTableTimestamp.locale?: string
|
|
648
449
|
DataTableTimestamp.precision?: 'minute' | 'second'
|
|
649
450
|
DataTableTimestampProps (type, @altertable/data-app-react/ui): = props listed as DataTableTimestamp.*
|
|
650
|
-
DataTransport (type, @altertable/data-app/client): = (operation: string, input: unknown, signal?: AbortSignal | undefined) => Promise<TransportResponse>
|
|
651
451
|
DataValue (component, @altertable/data-app-react): <Data, Input, Row>(props: DataValueProps<Data, Input, Row>)
|
|
652
452
|
DataValue.loadingFallback?: ReactNode
|
|
653
453
|
DataValue.scope: DataReading<string> [variant 1 of 3]
|
|
@@ -788,29 +588,22 @@ DateTimeTooltip.panelProps?: HelpPopoverPanelProps
|
|
|
788
588
|
DateTimeTooltip.open?: boolean
|
|
789
589
|
DateTimeTooltip.onOpenChange?: ((open: boolean) => void)
|
|
790
590
|
DateTimeTooltipProps (type, @altertable/data-app-react): = props listed as DateTimeTooltip.*
|
|
791
|
-
|
|
792
|
-
default.runtimeHtml: (parentOrigin: string) => string
|
|
793
|
-
default.fetch: (request: Request, env: WorkerBindings) => Response
|
|
794
|
-
defineDataApp (function, @altertable/data-app, @altertable/data-app/config): <const Queries extends QueryDefinitions>(config: DataAppConfig<Queries> & { queries: CheckedQueries<Queries>; }): DataAppDefinition<Queries> — Define the app's query source of truth while preserving exact query and parameter names. Use `app.defineOperation()` to bind operations to these queries.
|
|
591
|
+
defineDataApp (function, @altertable/data-app, @altertable/data-app/config): <const Queries extends QueryDefinitions>(config: DataAppConfig<Queries> & { queries: CheckedQueries<Queries>; }): DataAppDefinition<Queries> — Define the app's query source of truth while preserving exact query and parameter names. Use `dataApp.defineOperation()` to bind operations to these queries.
|
|
795
592
|
defineDataApp.config.title: string
|
|
796
593
|
defineDataApp.config.scope: { organization: string; environment: string; } — Display labels; scope does not grant data access.
|
|
797
594
|
defineDataApp.config.description: string — Explain what the app helps readers explore.
|
|
798
595
|
defineDataApp.config.appearance?: AppearanceOptions — Omit to use the standard appearance.
|
|
799
596
|
defineDataApp.config.dateFormatting?: { locale?: string | undefined; timeZone?: string | undefined; } — Shared date display defaults. Reporting views and individual fields may override the time zone.
|
|
800
597
|
defineDataApp.config.queries: Queries & KnownRecord<Queries> & ('' extends keyof Queries ? never : unknown) & { [Name in keyof Queries]: KnownRecord<Queries[Name]> & { ...; }; } — Named SQL statements with typed parameters and result projections.
|
|
801
|
-
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
|
|
598
|
+
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.
|
|
802
599
|
defineDataIdentifiers.options.tables: Tables
|
|
803
600
|
defineDataIdentifiers.options.columns: Columns
|
|
804
|
-
defineDataQueryRoute (function, @altertable/data-app/contract): <Operations extends OperationContracts = OperationContracts>(operations: Operations): DataQueryRoute<Operations> — Omit contracts only in generic hosts such as the CLI shell, where Bun validates operations.
|
|
805
601
|
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.
|
|
806
602
|
defineDateRangeContract.options.minDate?: string
|
|
807
603
|
defineDateRangeContract.options.maxDate?: string | (() => string)
|
|
808
604
|
defineDateRangeContract.options.maxRangeDays: number
|
|
809
605
|
defineDateRangeContract.options.timeZone: string
|
|
810
606
|
defineDateRangeContract.options.completeDays?: boolean
|
|
811
|
-
defineMessageRoute (function, @altertable/data-app/contract): <Input, Output>(route: MessageRoute<Input, Output>): MessageRoute<Input, Output>
|
|
812
|
-
defineMessageRoute.route.input: (value: unknown) => Input
|
|
813
|
-
defineMessageRoute.route.output: (value: unknown, input: Input) => Output
|
|
814
607
|
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; }; }
|
|
815
608
|
defineOperation.operation.input: (value: unknown) => Input
|
|
816
609
|
defineOperation.operation.checks: readonly [Input, ...Input[]]
|
|
@@ -977,11 +770,6 @@ FunnelChartSeries.values: readonly number[] — Finite, nonnegative counts align
|
|
|
977
770
|
FunnelChartStep (type, @altertable/data-app-react/ui): Ordered step with a unique, nonblank ID.
|
|
978
771
|
FunnelChartStep.id: string
|
|
979
772
|
FunnelChartStep.label: string
|
|
980
|
-
getDataAppNavigation (function, @altertable/data-app/client): (frame: Window): DataAppNavigation | undefined — URL controls attach navigation on demand; bootstrap and data-only clients do not.
|
|
981
|
-
getDataAppNavigation.frame.…: plus props inherited from built-in
|
|
982
|
-
getDataAppTransport (function, @altertable/data-app/client): (frame: Window): { logger: DataAppLogger; request: (message: RoutedMessage, signal?: AbortSignal | undefined) => Promise<unknown>; transport: (operation: string, input: unknown, signal?: AbortSignal | undefined) => Promise<...>; ... 6 more ...; fail(cause?: unknown): void; } | undefined — The bootstrap installs this before executing app code. URL apps can install an explicit connection.
|
|
983
|
-
getDataAppTransport.frame.…: plus props inherited from built-in
|
|
984
|
-
getExampleDirectory (function, @altertable/data-app-examples): (id: DataAppExampleId): string — Absolute source directory. Use copyExample() to restore npm-excluded filenames.
|
|
985
773
|
GettingStarted (component, @altertable/data-app-react/ui): (props: {…}) — Query-backed connection state and next steps for a newly created app. Mount within `DataAppProvider` and register `connection: connectionCheck(app.queries)` on the server.
|
|
986
774
|
GettingStarted.dataContext: DataContext
|
|
987
775
|
GlossaryDefinition (component, @altertable/data-app-react/ui): (props: GlossaryDefinitionProps)
|
|
@@ -1044,36 +832,10 @@ IconButton.tooltipAlign?: 'center' | 'end' | 'start'
|
|
|
1044
832
|
IconButton.children?: ReactNode
|
|
1045
833
|
IconButton.…: plus props inherited from React
|
|
1046
834
|
IconButtonProps (type, @altertable/data-app-react): = props listed as IconButton.*
|
|
1047
|
-
IframeTransport (type, @altertable/data-app/client)
|
|
1048
|
-
IframeTransport.logger: DataAppLogger
|
|
1049
|
-
IframeTransport.request: (message: RoutedMessage, signal?: AbortSignal | undefined) => Promise<unknown>
|
|
1050
|
-
IframeTransport.transport: (operation: string, input: unknown, signal?: AbortSignal | undefined) => Promise<TransportResponse>
|
|
1051
|
-
IframeTransport.lakehouse: { queryAll(statement: string, { limit, signal, params }: { limit: number; signal: AbortSignal; name?: string | undefined; params?: Readonly<Record<string, QueryParameterValue>> | undefined; }): Promise<...>; }
|
|
1052
|
-
IframeTransport.dispose: () => void
|
|
1053
|
-
IframeTransport.mode: 'bundle' | 'url'
|
|
1054
|
-
IframeTransport.snapshot: () => unknown
|
|
1055
|
-
IframeTransport.subscribe: (listener: (state: unknown) => void) => () => void
|
|
1056
|
-
IframeTransport.ready: () => void
|
|
1057
|
-
IframeTransport.fail: (cause?: unknown) => void — Reports a fatal app failure; the cause reaches the host logger only.
|
|
1058
|
-
injectDataAppAnnotationStyles (function, @altertable/data-app-react): (options: DataAppStylesOptions): HTMLStyleElement — Install only the outer-frame annotation controls; leave host page typography and layout intact.
|
|
1059
|
-
injectDataAppAnnotationStyles.options.document?: Document — Defaults to the current browser document.
|
|
1060
|
-
injectDataAppAnnotationStyles.options.nonce?: string — Nonce permitted by the document's style-src CSP.
|
|
1061
835
|
injectDataAppStyles (function, @altertable/data-app-react, @altertable/data-app-react/ui): (options: DataAppStylesOptions): HTMLStyleElement — Install the complete UI stylesheet once per document, before mounting.
|
|
1062
836
|
injectDataAppStyles.options.document?: Document — Defaults to the current browser document.
|
|
1063
837
|
injectDataAppStyles.options.nonce?: string — Nonce permitted by the document's style-src CSP.
|
|
1064
838
|
InputOf (type, @altertable/data-app/client): <T> = T extends { input: (value: unknown) => infer Input; } ? Input : never
|
|
1065
|
-
installDataAppTransport (function, @altertable/data-app/client): (bridge: ReturnType<typeof createIframeTransport>, frame: Window): () => void — Install an explicitly trusted transport for hosted apps and their URL-backed controls.
|
|
1066
|
-
installDataAppTransport.bridge.logger: DataAppLogger
|
|
1067
|
-
installDataAppTransport.bridge.request: (message: RoutedMessage, signal?: AbortSignal | undefined) => Promise<unknown>
|
|
1068
|
-
installDataAppTransport.bridge.transport: (operation: string, input: unknown, signal?: AbortSignal | undefined) => Promise<TransportResponse>
|
|
1069
|
-
installDataAppTransport.bridge.lakehouse: { queryAll(statement: string, { limit, signal, params }: { limit: number; signal: AbortSignal; name?: string | undefined; params?: Readonly<Record<string, QueryParameterValue>> | undefined; }): Promise<...>; }
|
|
1070
|
-
installDataAppTransport.bridge.dispose: () => void
|
|
1071
|
-
installDataAppTransport.bridge.mode: 'bundle' | 'url'
|
|
1072
|
-
installDataAppTransport.bridge.snapshot: () => unknown
|
|
1073
|
-
installDataAppTransport.bridge.subscribe: (listener: (state: unknown) => void) => () => void
|
|
1074
|
-
installDataAppTransport.bridge.ready: () => void
|
|
1075
|
-
installDataAppTransport.bridge.fail: (cause?: unknown) => void — Reports a fatal app failure; the cause reaches the host logger only.
|
|
1076
|
-
installDataAppTransport.frame.…: plus props inherited from built-in
|
|
1077
839
|
isPlainKeyEvent (function, @altertable/data-app-react/ui): (event: KeyEvent, options: {…}): boolean — Keep local key actions separate from shortcuts and IME composition. Pass React's nativeEvent.
|
|
1078
840
|
isPlainKeyEvent.event.…: plus props inherited from built-in
|
|
1079
841
|
isPlainKeyEvent.options.allowShift?: boolean
|
|
@@ -1091,8 +853,6 @@ JourneyChartPath.count: number — Finite, nonnegative population following this
|
|
|
1091
853
|
JourneyChartPath.converted: boolean | null — True: converted; false: dropped off; null: no conversion classification.
|
|
1092
854
|
JourneyChartPath.truncated: boolean — Stops at the last loaded event, without adding an outcome or expand control.
|
|
1093
855
|
JourneyChartProps (type, @altertable/data-app-react/ui): = props listed as JourneyChart.*
|
|
1094
|
-
Lakehouse (type, @altertable/data-app/contract): Query interface supplied by a server adapter or an authorized iframe bridge.
|
|
1095
|
-
Lakehouse.queryAll: (statement: string, options: { limit: number; signal: AbortSignal; name?: string | undefined; params?: Readonly<Record<string, QueryParameterValue>> | undefined; }) => Promise<...>
|
|
1096
856
|
LineChart (component, @altertable/data-app-react/ui): <Row extends LineChartItem>(props: LineChartProps<Row>) — Equally spaced finite samples in supplied order; fill missing periods explicitly. Supports negative values, single points, and horizontal scrolling for long series.
|
|
1097
857
|
LineChart.items: readonly Row[] — Ordered samples; the chart validates IDs and values when rendering.
|
|
1098
858
|
LineChart.itemActions?: ItemActions<Row> — Actions available for each displayed item. Domain fields remain available to this callback.
|
|
@@ -1112,11 +872,10 @@ LiveControl.onIntervalChange: (seconds: LiveIntervalSeconds) => void
|
|
|
1112
872
|
LiveControl.…: plus props inherited from React
|
|
1113
873
|
LiveControlProps (type, @altertable/data-app-react/ui): = props listed as LiveControl.*
|
|
1114
874
|
LiveIntervalSeconds (type, @altertable/data-app-react/ui): = 30 | 60 | 300
|
|
1115
|
-
localLakehouse (function, @altertable/data-app-bun): (environment: Record<string, string | undefined>, request: typeof fetch): Lakehouse — Server-only SDK adapter. Local development uses the selected CLI profile's proxy.
|
|
1116
875
|
matchSearchText (function, @altertable/data-app-react/ui): (text: string, query: string): SearchMatchValue — Highlight literal query terms in supplied text without filtering or reordering results.
|
|
1117
876
|
Menu (component, @altertable/data-app-react/ui): <T extends object>(props: MenuProps<T>) — Actions by default; single selection creates radio items, multiple creates checkbox items.
|
|
1118
877
|
Menu.…: plus props inherited from @react-types/shared, react-aria, react-aria-components
|
|
1119
|
-
MenuButton (component, @altertable/data-app-react/ui): (props: Omit<ComponentPropsWithRef<typeof
|
|
878
|
+
MenuButton (component, @altertable/data-app-react/ui): (props: Omit<ComponentPropsWithRef<typeof import('react-aria-components').Button>, 'className'> & Pick<ButtonProps, 'variant' | 'size'> & { className?: string; }) — React Aria trigger behavior with the same presentation as the native Button.
|
|
1120
879
|
MenuButton.variant?: 'elevated' | 'ghost' | 'inline' | 'outline' | 'primary' — Inline actions retain button semantics without a padded control surface.
|
|
1121
880
|
MenuButton.size?: 'compact' | 'default' | 'icon' | 'icon-compact'
|
|
1122
881
|
MenuButton.className?: string
|
|
@@ -1131,24 +890,11 @@ MenuPopoverProps.…: plus props inherited from @react-types/shared, React, reac
|
|
|
1131
890
|
MenuProps (type, @altertable/data-app-react/ui): <T> = props listed as Menu.*
|
|
1132
891
|
MenuSection (function, @altertable/data-app-react/ui): <T>(props: MenuSectionProps<T> & React.RefAttributes<HTMLElement>): ReactElement<unknown, string | JSXElementConstructor<any>> | null — A MenuSection represents a section within a Menu.
|
|
1133
892
|
MenuSection.props.…: plus props inherited from @react-types/shared, React, react-aria-components
|
|
1134
|
-
MenuSeparator (component, @altertable/data-app-react/ui): (props: ComponentPropsWithRef<typeof Separator>)
|
|
893
|
+
MenuSeparator (component, @altertable/data-app-react/ui): (props: ComponentPropsWithRef<typeof import('react-aria-components').Separator>)
|
|
1135
894
|
MenuSeparator.…: plus props inherited from @react-types/shared, React, react-aria, react-aria-components
|
|
1136
895
|
MenuTrigger (component, @altertable/data-app-react/ui): (props: MenuTriggerProps)
|
|
1137
896
|
MenuTrigger.…: plus props inherited from react-aria-components, react-stately
|
|
1138
897
|
MenuTriggerProps (type, @altertable/data-app-react/ui): = props listed as MenuTrigger.*
|
|
1139
|
-
MessageContext (type, @altertable/data-app/contract)
|
|
1140
|
-
MessageContext.signal: AbortSignal
|
|
1141
|
-
MessageDispatcher (type, @altertable/data-app/contract): = (message: unknown, context: MessageContext) => Promise<unknown>
|
|
1142
|
-
MessageHandlers (type, @altertable/data-app/contract): <Routes> = { [Name in keyof Routes]: (payload: ReturnType<Routes[Name]['input']>, context: MessageContext) => Promise<ReturnType<Routes[Name]['output']>> | ReturnType<...>; }
|
|
1143
|
-
MessageInput (type, @altertable/data-app/contract): <Route> = Route['input'] extends (...args: any) => infer R ? R : any
|
|
1144
|
-
MessageOutput (type, @altertable/data-app/contract): <Route, Input> = Route extends DataQueryRoute<infer Operations extends OperationContracts> ? Input extends { operation: infer Name extends keyof Operations; } ? TransportResponse<...> : never : ReturnType<...>
|
|
1145
|
-
MessageRoute (type, @altertable/data-app/contract): <Input, Output> = props listed as defineMessageRoute.route.*
|
|
1146
|
-
MessageRoutes (type, @altertable/data-app/contract): = { [x: string]: { input: (value: unknown) => unknown; output: (value: unknown, input: never) => unknown; }; }
|
|
1147
|
-
MessageRoutingError (class, @altertable/data-app/contract): Only these deliberate, public failures cross the message boundary. Other errors stay private.
|
|
1148
|
-
MessageRoutingError.code: string
|
|
1149
|
-
MessageRoutingError.requestId?: string
|
|
1150
|
-
MessageRoutingError.…: plus props inherited from built-in
|
|
1151
|
-
MessageTransport (type, @altertable/data-app/contract): = (message: RoutedMessage, signal?: AbortSignal | undefined) => Promise<unknown>
|
|
1152
898
|
MetricDefinition (type, @altertable/data-app-react)
|
|
1153
899
|
MetricDefinition.id: string
|
|
1154
900
|
MetricDefinition.label: string
|
|
@@ -1225,24 +971,6 @@ MultiChoiceVariable.valid: (value: readonly string[]) => boolean
|
|
|
1225
971
|
MultiChoiceVariable.same: (left: readonly string[], right: readonly string[]) => boolean
|
|
1226
972
|
MultiChoiceVariable.options: readonly ChoiceOption[]
|
|
1227
973
|
MultiChoiceVariable.maxSelected: number
|
|
1228
|
-
NavigationUpdate (type, @altertable/data-app/contract)
|
|
1229
|
-
NavigationUpdate.search: string
|
|
1230
|
-
NavigationUpdate.hash: string
|
|
1231
|
-
NavigationUpdate.mode: HistoryMode
|
|
1232
|
-
NavigationUpdate.title?: string
|
|
1233
|
-
navigationUpdateRoute (const, @altertable/data-app/contract): MessageRoute<NavigationUpdate, null>
|
|
1234
|
-
navigationUpdateRoute.input: (value: unknown) => NavigationUpdate
|
|
1235
|
-
navigationUpdateRoute.output: (value: unknown, input: NavigationUpdate) => null
|
|
1236
|
-
normalizeAppearance (function, @altertable/data-app/appearance): (value: AppearanceOptions): AppearanceSettings — Resolve typed app settings without repeating authoring checks at runtime.
|
|
1237
|
-
normalizeAppearance.value.theme?: ThemePreference
|
|
1238
|
-
normalizeAppearance.value.baseColor?: 'neutral' | 'slate' | 'warm' — Palette for surfaces, text, and borders; independent of the accent.
|
|
1239
|
-
normalizeAppearance.value.accentColor?: string — Emphasis color for checked controls and selected dates; options use the base palette.
|
|
1240
|
-
normalizeAppearance.value.darkAccentColor?: string
|
|
1241
|
-
normalizeAppearance.value.chartColors?: string[]
|
|
1242
|
-
normalizeAppearance.value.density?: 'comfortable' | 'compact' | 'spacious'
|
|
1243
|
-
normalizeAppearance.value.cornerRadius?: 'large' | 'medium' | 'none' | 'small'
|
|
1244
|
-
normalizeAppearance.value.elevation?: 'flat' | 'raised' | 'subtle'
|
|
1245
|
-
normalizeAppearance.value.typography?: Partial<{ body: string; heading: string; }>
|
|
1246
974
|
NumberField (component, @altertable/data-app-react/ui): (props: NumberFieldProps) — Localized numeric entry. Empty input is null rather than zero.
|
|
1247
975
|
NumberField.label: string
|
|
1248
976
|
NumberField.value: number | null
|
|
@@ -1288,18 +1016,12 @@ NumberSelection.value: number [variant 2 of 3]
|
|
|
1288
1016
|
NumberSelection.kind: 'range' [variant 3 of 3]
|
|
1289
1017
|
NumberSelection.min?: number [variant 3 of 3]
|
|
1290
1018
|
NumberSelection.max?: number [variant 3 of 3]
|
|
1291
|
-
OperationContext (type, @altertable/data-app/contract)
|
|
1292
|
-
OperationContext.lakehouse: Lakehouse
|
|
1293
|
-
OperationContext.signal: AbortSignal
|
|
1294
|
-
OperationContext.queryParams?: Readonly<Record<string, QueryParameterValue>>
|
|
1295
|
-
OperationContracts (type, @altertable/data-app/contract): = { [x: string]: { input: (value: unknown) => unknown; }; }
|
|
1296
1019
|
OperationDefinition (type, @altertable/data-app/contract): <Input, Output, Queries> — Infer operation data from run().
|
|
1297
1020
|
OperationDefinition.input: (value: unknown) => Input
|
|
1298
1021
|
OperationDefinition.checks: readonly [Input, ...Input[]]
|
|
1299
1022
|
OperationDefinition.policy: { maxQueryRows: number; maxDurationMs: number; maxResponseBytes?: number | undefined; }
|
|
1300
1023
|
OperationDefinition.run: (context: Pick<OperationContext, 'signal'> & { query: RegisteredQuery<NoInfer<Queries>>; }, input: Input) => Promise<...>
|
|
1301
1024
|
OutputOf (type, @altertable/data-app/client): <T> = T extends { run: (...args: never[]) => Promise<infer Output>; } ? Output : unknown — An operation's data is what its `run` resolves to.
|
|
1302
|
-
parseAppearance (function, @altertable/data-app/appearance): (value: unknown): AppearanceSettings — Preserve supported external settings and use defaults for invalid fields.
|
|
1303
1025
|
parseBooleanSelection (function, @altertable/data-app/contract): (value: unknown, filter: BooleanFilter): BooleanSelection
|
|
1304
1026
|
parseBooleanSelection.filter.kind: 'booleanFilter'
|
|
1305
1027
|
parseBooleanSelection.filter.label: string
|
|
@@ -1314,7 +1036,6 @@ parseBooleanSelection.filter.write: (value: BooleanSelection) => Record<string,
|
|
|
1314
1036
|
parseBooleanSelection.filter.valid: (value: BooleanSelection) => boolean
|
|
1315
1037
|
parseBooleanSelection.filter.same: (left: BooleanSelection, right: BooleanSelection) => boolean
|
|
1316
1038
|
parseCount (function, @altertable/data-app/contract): (value: unknown): number — Accepts numeric strings from DuckDB; rejects negative, fractional, and unsafe integers.
|
|
1317
|
-
parseDataAppAnnotationDraft (function, @altertable/data-app/contract): (value: unknown): DataAppAnnotationDraft — Reconstruct at the boundary; discard extra fields and bound the entire JSON payload.
|
|
1318
1039
|
parseDateRangeInput (function, @altertable/data-app/contract): (value: unknown, options: {…}): DateRange — Validate calendar dates and a bounded inclusive range on the server.
|
|
1319
1040
|
parseDateRangeInput.options.minDate?: string
|
|
1320
1041
|
parseDateRangeInput.options.maxDate?: string
|
|
@@ -1411,14 +1132,14 @@ PresentStory.headerActions?: ReactNode
|
|
|
1411
1132
|
PresentStory.footer?: ReactNode
|
|
1412
1133
|
PresentStory.…: plus props inherited from React
|
|
1413
1134
|
PresentStoryProps (type, @altertable/data-app-react/ui): = props listed as PresentStory.*
|
|
1414
|
-
previousDateRange (function, @altertable/data-app/contract): (options:
|
|
1135
|
+
previousDateRange (function, @altertable/data-app/contract): (options: DateRange): DateRange — The immediately preceding, equally long set of calendar days.
|
|
1415
1136
|
previousDateRange.options.start: string
|
|
1416
1137
|
previousDateRange.options.end: string
|
|
1417
|
-
QueryDefinitions (type, @altertable/data-app, @altertable/data-app/
|
|
1418
|
-
QueryField (type, @altertable/data-app, @altertable/data-app/
|
|
1138
|
+
QueryDefinitions (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/contract): <Record<string, QueryDefinition>> = { readonly [x: string]: QueryDefinition; }
|
|
1139
|
+
QueryField (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/contract)
|
|
1419
1140
|
QueryField.type: keyof QueryValues
|
|
1420
1141
|
QueryField.nullable?: boolean
|
|
1421
|
-
QueryParameter (type, @altertable/data-app, @altertable/data-app/
|
|
1142
|
+
QueryParameter (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/contract): Typed scalar parameters with optional fallback values.
|
|
1422
1143
|
QueryParameter.type: 'boolean' [variants 1, 5 of 8]
|
|
1423
1144
|
QueryParameter.nullable?: false [variants 1, 2, 3, 4 of 8]
|
|
1424
1145
|
QueryParameter.defaultValue?: boolean [variant 1 of 8]
|
|
@@ -1433,14 +1154,14 @@ QueryParameter.defaultValue?: boolean | null [variant 5 of 8]
|
|
|
1433
1154
|
QueryParameter.defaultValue?: number | null [variant 7 of 8]
|
|
1434
1155
|
QueryParameter.defaultValue?: string | null [variant 8 of 8]
|
|
1435
1156
|
QueryParameters (type, @altertable/data-app/contract): <Record<string, QueryParameterValue>> = { readonly [x: string]: QueryParameterValue; } — Parameters are scalar SQL values, never identifiers or SQL fragments.
|
|
1436
|
-
QueryParameterValue (type, @altertable/data-app, @altertable/data-app/
|
|
1437
|
-
QueryProjections (type, @altertable/data-app, @altertable/data-app/
|
|
1157
|
+
QueryParameterValue (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/contract): = string | number | boolean | null
|
|
1158
|
+
QueryProjections (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/contract): <Record<string, QueryField>> = { readonly [x: string]: QueryField; }
|
|
1438
1159
|
QueryResult (type, @altertable/data-app/contract): <Row> — Lakehouse results contain positional unknown cells; registered queries supply decoded records.
|
|
1439
1160
|
QueryResult.columns: { name: string; type?: string | undefined; }[]
|
|
1440
1161
|
QueryResult.rows: Row[]
|
|
1441
1162
|
QueryResult.queryId?: string
|
|
1442
|
-
QueryRow (type, @altertable/data-app, @altertable/data-app/
|
|
1443
|
-
QueryValueType (type, @altertable/data-app, @altertable/data-app/
|
|
1163
|
+
QueryRow (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/contract): <Projections> = { -readonly [Name in keyof Projections]: QueryValue<Projections[Name]>; }
|
|
1164
|
+
QueryValueType (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/contract): = keyof QueryValues — Primitive values after decoding, independent of SQL storage types.
|
|
1444
1165
|
Radio (component, @altertable/data-app-react/ui): (props: RadioProps)
|
|
1445
1166
|
Radio.className?: string
|
|
1446
1167
|
Radio.…: plus props inherited from @react-types/shared, React, react-aria, react-aria-components
|
|
@@ -1461,7 +1182,7 @@ RankingItem.label: ReactNode
|
|
|
1461
1182
|
RankingItem.value: number
|
|
1462
1183
|
RankingItem.detail?: ReactNode
|
|
1463
1184
|
RankingProps (type, @altertable/data-app-react): = props listed as Ranking.*
|
|
1464
|
-
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>> ? [ParameterNames<Queries, Name>] extends [...] ? unknown : never : unknown), params?: ExactQueryParameters<...> | undefined
|
|
1185
|
+
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,…
|
|
1465
1186
|
ReportingPeriod (type, @altertable/data-app/contract, @altertable/data-app-react)
|
|
1466
1187
|
ReportingPeriod.kind: 'rolling' [variant 1 of 2]
|
|
1467
1188
|
ReportingPeriod.amount: number [variant 1 of 2]
|
|
@@ -1470,9 +1191,6 @@ ReportingPeriod.end: string
|
|
|
1470
1191
|
ReportingPeriod.kind: 'calendar' [variant 2 of 2]
|
|
1471
1192
|
ReportingPeriod.start: string [variant 2 of 2]
|
|
1472
1193
|
ReportingPeriod.timeZone: string [variant 2 of 2]
|
|
1473
|
-
RequestAccess (type, @altertable/data-app/server): Authorization result for one viewer request. A hosted adapter must scope its lakehouse client.
|
|
1474
|
-
RequestAccess.lakehouse: Lakehouse
|
|
1475
|
-
RequestAccess.queryParams?: Readonly<Record<string, QueryParameterValue>> — Trusted values shared across queries; each query uses only its declared keys.
|
|
1476
1194
|
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.
|
|
1477
1195
|
RetentionChart.ariaLabel: string — Accessible measure and scope description.
|
|
1478
1196
|
RetentionChart.unit: string — Population unit, such as users or sessions.
|
|
@@ -1491,9 +1209,6 @@ RetentionChartSeries.id: string — Unique, nonblank cohort or segment ID.
|
|
|
1491
1209
|
RetentionChartSeries.label: string
|
|
1492
1210
|
RetentionChartSeries.cohortSize: number — Finite, nonnegative starting population.
|
|
1493
1211
|
RetentionChartSeries.points: readonly RetentionChartPoint[]
|
|
1494
|
-
RoutedMessage (type, @altertable/data-app/contract)
|
|
1495
|
-
RoutedMessage.route: string
|
|
1496
|
-
RoutedMessage.payload: unknown
|
|
1497
1212
|
ScatterChart (component, @altertable/data-app-react/ui): (props: ScatterChartProps) — Independent finite X/Y observations on linear axes that include zero. Negative and constant coordinates are supported.
|
|
1498
1213
|
ScatterChart.items: readonly ScatterChartItem[]
|
|
1499
1214
|
ScatterChart.xLabel: string
|
|
@@ -1617,16 +1332,6 @@ Select.id?: string
|
|
|
1617
1332
|
Select.className?: string
|
|
1618
1333
|
Select.align?: 'end' | 'start' — Align the popup with the selection button. Defaults to start.
|
|
1619
1334
|
SelectProps (type, @altertable/data-app-react/ui): = props listed as Select.*
|
|
1620
|
-
serveAppFile (function, @altertable/data-app-bun/preview): (options: AppFilePreviewOptions): Promise<AppFilePreview> — Preview a single-file app in the hosted sandbox. Requires the Bun runtime.
|
|
1621
|
-
serveAppFile.options.file: string — Absolute path to the app source.
|
|
1622
|
-
serveAppFile.options.port?: number — Localhost port. Use 0 to select an available port. Defaults to 25837.
|
|
1623
|
-
serveAppFile.options.lakehouse: Lakehouse — Server-only query backend; the caller owns credentials and profile selection.
|
|
1624
|
-
serveAppFile.options.resolveDependency?: ((specifier: string) => string) — Override data-app and React import resolution, such as for checkout development.
|
|
1625
|
-
serveLocalApp (function, @altertable/data-app-bun): (options: {…}): Server<undefined> — Serve one app on localhost through the CLI's lakehouse proxy during development. Hosted servers must authorize every viewer and must use `createDataHandler` directly.
|
|
1626
|
-
serveLocalApp.options.page: HTMLBundle
|
|
1627
|
-
serveLocalApp.options.operations: DataOperations
|
|
1628
|
-
serveLocalApp.options.title: string
|
|
1629
|
-
serveLocalApp.options.port?: number
|
|
1630
1335
|
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.
|
|
1631
1336
|
Sheet.open: boolean
|
|
1632
1337
|
Sheet.onOpenChange: (open: boolean) => void
|
|
@@ -1641,25 +1346,19 @@ Sheet.side?: 'left' | 'right' — Edge for side placement. Defaults to right; sm
|
|
|
1641
1346
|
Sheet.returnFocus?: RefObject<HTMLElement | SVGElement | null>
|
|
1642
1347
|
Sheet.…: plus props inherited from React
|
|
1643
1348
|
SheetProps (type, @altertable/data-app-react/ui): = props listed as Sheet.*
|
|
1349
|
+
ShimmerText (component, @altertable/data-app-react/ui): (props: ShimmerTextProps) — Animated text for custom activity labels. Wrap in `<output>` to announce updates. Respects reduced motion.
|
|
1350
|
+
ShimmerText.children: string
|
|
1351
|
+
ShimmerText.…: plus props inherited from React
|
|
1352
|
+
ShimmerTextProps (type, @altertable/data-app-react/ui): = props listed as ShimmerText.*
|
|
1644
1353
|
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.
|
|
1645
1354
|
Skeleton.inline?: boolean — Align a text-sized placeholder with surrounding prose.
|
|
1646
1355
|
Skeleton.…: plus props inherited from React
|
|
1647
1356
|
SkeletonProps (type, @altertable/data-app-react): = props listed as Skeleton.*
|
|
1648
|
-
SqlQueryInput (type, @altertable/data-app/contract)
|
|
1649
|
-
SqlQueryInput.statement: string
|
|
1650
|
-
SqlQueryInput.limit: number
|
|
1651
|
-
SqlQueryInput.params?: Readonly<Record<string, QueryParameterValue>>
|
|
1652
|
-
sqlQueryRoute (const, @altertable/data-app/contract): MessageRoute<SqlQueryInput, QueryResult> — SQL delivery for browser-owned operations. Hosts must enforce backend access and resource limits.
|
|
1653
|
-
sqlQueryRoute.input: (value: unknown) => SqlQueryInput
|
|
1654
|
-
sqlQueryRoute.output: (value: unknown, input: SqlQueryInput) => QueryResult
|
|
1655
1357
|
Stack (component, @altertable/data-app-react): (props: StackProps) — Vertical layout for peer sections or request boundaries, with the page's section gap.
|
|
1656
1358
|
Stack.children: ReactNode
|
|
1657
1359
|
Stack.gap?: 'lg' | 'md' | 'sm'
|
|
1658
1360
|
Stack.…: plus props inherited from React
|
|
1659
1361
|
StackProps (type, @altertable/data-app-react): = props listed as Stack.*
|
|
1660
|
-
startDataAppBootstrap (function, @altertable/data-app-embed): (options: {…}): () => void — Run from a trusted bootstrap page in an allow-scripts-only iframe. CSP can prohibit network access.
|
|
1661
|
-
startDataAppBootstrap.options.parentOrigin: string
|
|
1662
|
-
startDataAppBootstrap.options.window?: Window
|
|
1663
1362
|
StoryFinding (type, @altertable/data-app-react/ui): One consequential, inspectable finding from the displayed result.
|
|
1664
1363
|
StoryFinding.id: string
|
|
1665
1364
|
StoryFinding.headline: string
|
|
@@ -1667,7 +1366,7 @@ StoryFinding.context?: string
|
|
|
1667
1366
|
StoryFinding.visual: ReactNode
|
|
1668
1367
|
StoryFinding.visualKind?: 'chart' | 'metric'
|
|
1669
1368
|
StoryFinding.evidence: MetricDefinition | WidgetEvidence
|
|
1670
|
-
Tab (component, @altertable/data-app-react/ui): (props: ComponentPropsWithRef<typeof
|
|
1369
|
+
Tab (component, @altertable/data-app-react/ui): (props: ComponentPropsWithRef<typeof import('react-aria-components/Tabs').Tab>)
|
|
1671
1370
|
Tab.…: plus props inherited from @react-types/shared, React, react-aria-components
|
|
1672
1371
|
TableIdentifier (type, @altertable/data-app-react)
|
|
1673
1372
|
TableIdentifier.catalog: string
|
|
@@ -1734,11 +1433,11 @@ TableWidgetSearch.mode?: 'fuzzy' | 'literal' — Literal filtering preserves sou
|
|
|
1734
1433
|
TableWidgetSearch.fuzzyThreshold?: number
|
|
1735
1434
|
TabList (component, @altertable/data-app-react/ui): <T>(props: TabListProps<T> & RefAttributes<HTMLDivElement>)
|
|
1736
1435
|
TabList.…: plus props inherited from @react-types/shared, React, react-aria-components
|
|
1737
|
-
TabPanel (component, @altertable/data-app-react/ui): (props: ComponentPropsWithRef<typeof
|
|
1436
|
+
TabPanel (component, @altertable/data-app-react/ui): (props: ComponentPropsWithRef<typeof import('react-aria-components/Tabs').TabPanel>)
|
|
1738
1437
|
TabPanel.…: plus props inherited from @react-types/shared, React, react-aria, react-aria-components
|
|
1739
1438
|
TabPanels (function, @altertable/data-app-react/ui): <T>(props: TabPanelsProps<T> & React.RefAttributes<HTMLDivElement>): ReactElement<unknown, string | JSXElementConstructor<any>> | null — Groups multiple `<TabPanel>` elements, and provides CSS variables for animated transitions.
|
|
1740
1439
|
TabPanels.props.…: plus props inherited from @react-types/shared, React, react-aria-components
|
|
1741
|
-
Tabs (component, @altertable/data-app-react/ui): (props: ComponentPropsWithRef<typeof
|
|
1440
|
+
Tabs (component, @altertable/data-app-react/ui): (props: ComponentPropsWithRef<typeof import('react-aria-components/Tabs').Tabs>)
|
|
1742
1441
|
Tabs.…: plus props inherited from @react-types/shared, React, react-aria, react-aria-components, react-stately
|
|
1743
1442
|
TextContent (component, @altertable/data-app-react): (props: TextContentProps) — Prose typography for page introductions, widget bodies, and inspection content.
|
|
1744
1443
|
TextContent.…: plus props inherited from React
|
|
@@ -1779,11 +1478,7 @@ TextWidget.children: ReactNode [variant 2 of 2]
|
|
|
1779
1478
|
TextWidget.…: plus props inherited from React
|
|
1780
1479
|
TextWidgetProps (type, @altertable/data-app-react): <Data, Input, Row> = props listed as TextWidget.*
|
|
1781
1480
|
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.
|
|
1782
|
-
Theme (type, @altertable/data-app/appearance): = 'dark' | 'light' —
|
|
1783
|
-
ThemeController (type, @altertable/data-app/appearance)
|
|
1784
|
-
ThemeController.getTheme: () => ThemePreference
|
|
1785
|
-
ThemeController.setTheme: (theme: ThemePreference) => void
|
|
1786
|
-
ThemeController.subscribe: (listener: () => void) => () => void
|
|
1481
|
+
Theme (type, @altertable/data-app/appearance): = 'dark' | 'light' — Appearance configured by app authors.
|
|
1787
1482
|
ThemePreference (type, @altertable/data-app/appearance): = 'system' | Theme
|
|
1788
1483
|
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.
|
|
1789
1484
|
Tooltip.content: ReactNode
|
|
@@ -1800,9 +1495,6 @@ TooltipProvider.children: ReactNode
|
|
|
1800
1495
|
TooltipProvider.delay?: number
|
|
1801
1496
|
TooltipProvider.skipDelayDuration?: number
|
|
1802
1497
|
TooltipProviderProps (type, @altertable/data-app-react, @altertable/data-app-react/ui): = props listed as TooltipProvider.*
|
|
1803
|
-
TransportResponse (type, @altertable/data-app/contract): <Body> — Delivery envelope shared by HTTP and iframe transports.
|
|
1804
|
-
TransportResponse.status: number
|
|
1805
|
-
TransportResponse.body: Body
|
|
1806
1498
|
UpdatedAt (component, @altertable/data-app-react): (props: UpdatedAtProps)
|
|
1807
1499
|
UpdatedAt.timestamp: number
|
|
1808
1500
|
UpdatedAt.locale?: string
|
|
@@ -1817,14 +1509,12 @@ UpdatedAt.onOpenChange?: ((open: boolean) => void)
|
|
|
1817
1509
|
UpdatedAt.timeZone?: string
|
|
1818
1510
|
UpdatedAtProps (type, @altertable/data-app-react): = props listed as UpdatedAt.*
|
|
1819
1511
|
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.
|
|
1820
|
-
useDataAppAnnotations (hook, @altertable/data-app-react): (): { requestSendAnnotations(options?: { signal?: AbortSignal | undefined; } | undefined): Promise<null>; reportAnnotationEditorState(state: { hasUnsavedChanges: boolean; }, options?: { ...; } | undefined): Promise<...>; addAnnotation(draft: DataAppAnnotationDraft, options?: { ...; } | undefined):… — Bind annotation delivery to this app's current iframe bridge. The host owns storage and submission.
|
|
1821
1512
|
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.
|
|
1822
1513
|
useDateFormatting.options.locale?: string
|
|
1823
1514
|
useDateFormatting.options.timeZone?: string
|
|
1824
1515
|
useDetailNavigation (hook, @altertable/data-app-react): (): DetailNavigation — Resolve a detail target from an interaction. The destination validates input before fetching.
|
|
1825
1516
|
useSvgId (hook, @altertable/data-app-react/ui): (): string — Stable React ID for SVG definitions and their URL references; safe with identifier prefixes.
|
|
1826
1517
|
useViewTab (hook, @altertable/data-app-react/ui): <View extends string>(views: readonly View[], fallback: View): [View, (key: string | number) => void] — Keep a page-level tab in `?view=`; reserve `?tab=` for the inspect sheet.
|
|
1827
|
-
validateLakehouseCredentials (function, @altertable/data-app-bun): (environment: Record<string, string | undefined>): void — Throw an actionable startup error when the selected lakehouse credentials are missing.
|
|
1828
1518
|
VariableBar (component, @altertable/data-app-react/ui): (props: VariableBarProps) — User-controlled inputs below the page header.
|
|
1829
1519
|
VariableBar.children: ReactNode
|
|
1830
1520
|
VariableBar.…: plus props inherited from React
|