@altertable/data-app 0.72.0 → 0.73.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 +93 -180
- package/README.md +3 -4
- package/REFERENCE.md +30 -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/format-BdFlv_xa.js +148 -0
- package/dist/chunks/format-BdFlv_xa.js.map +1 -0
- package/dist/chunks/iframe-C3uCZEXh.js +809 -0
- package/dist/chunks/iframe-C3uCZEXh.js.map +1 -0
- package/dist/chunks/operation-CBxhjNhK.js +131 -0
- package/dist/chunks/operation-CBxhjNhK.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 +253 -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 +189 -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 +72 -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/embed.md +83 -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 +68 -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.
|
|
@@ -324,12 +247,12 @@ ComposedChart.Dot: (props: DotProps & { active?: boolean; })
|
|
|
324
247
|
ComposedChart.Area: <Row = unknown, Value = number | null>(props: AreaProps<Row, Value>)
|
|
325
248
|
ComposedChart.Bar: <Row = unknown, Value = number | null>(props: BarProps<Row, Value>)
|
|
326
249
|
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>>)
|
|
250
|
+
ComposedChart.Scatter: <Row = unknown, Value = number>(props: ComponentProps<typeof import('recharts').Scatter<Row, Value>>)
|
|
251
|
+
ComposedChart.XAxis: <Row = unknown, Value = string | number | Date>(props: ComponentProps<typeof import('recharts').XAxis<Row, Value>>)
|
|
252
|
+
ComposedChart.YAxis: <Row = unknown, Value = number>(props: ComponentProps<typeof import('recharts').YAxis<Row, Value>>)
|
|
330
253
|
ComposedChart.ZAxis: <DataPointType = any, DataValueType = any>(outsideProps: Props<DataPointType, DataValueType>)
|
|
331
|
-
ComposedChart.CartesianGrid: (props: ComponentProps<typeof CartesianGrid>)
|
|
332
|
-
ComposedChart.Tooltip: (props: ComponentProps<typeof Tooltip>)
|
|
254
|
+
ComposedChart.CartesianGrid: (props: ComponentProps<typeof import('recharts').CartesianGrid>)
|
|
255
|
+
ComposedChart.Tooltip: (props: ComponentProps<typeof import('recharts').Tooltip>)
|
|
333
256
|
ComposedChart.Legend: (props: ComposedChartLegendProps)
|
|
334
257
|
ComposedChart.ReferenceLine: <XValueType extends ReferenceCoordinateValue = any, YValueType extends ReferenceCoordinateValue = any>(outsideProps: Props<XValueType, YValueType>)
|
|
335
258
|
ComposedChart.ReferenceArea: <XValueType extends ReferenceCoordinateValue = any, YValueType extends ReferenceCoordinateValue = any>(outsideProps: Props<XValueType, YValueType>)
|
|
@@ -351,11 +274,6 @@ ConnectionOperation.run: (context: OperationContext, input: Record<string, never
|
|
|
351
274
|
ConnectionOperation.checks: readonly [Record<string, never>, ...Record<string, never>[]]
|
|
352
275
|
ConnectionOperation.policy: { maxQueryRows: number; maxDurationMs: number; maxResponseBytes?: number | undefined; }
|
|
353
276
|
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
277
|
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
278
|
createDataClient.options.transport?: DataTransport [variant 1 of 2]
|
|
361
279
|
createDataClient.options.endpoint?: string [variant 1 of 2]
|
|
@@ -366,25 +284,8 @@ createDataClient.options.transport?: DataTransport
|
|
|
366
284
|
createDataClient.options.endpoint?: string
|
|
367
285
|
createDataClient.options.fetch?: typeof fetch
|
|
368
286
|
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
287
|
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
288
|
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
289
|
CsvCell (type, @altertable/data-app-react): = string | number | boolean | null | undefined
|
|
389
290
|
CsvExport (type, @altertable/data-app-react/ui): All distinct datasets in the displayed result; filename names the download.
|
|
390
291
|
CsvExport.filename: string
|
|
@@ -415,36 +316,6 @@ DataApp.footerActions?: ReactNode
|
|
|
415
316
|
DataApp.footer?: ReactNode — Optional source, coverage, or methodology note below the app content. Compose prose and inline components; typography and spacing are provided.
|
|
416
317
|
DataApp.csvExport?: CsvExport
|
|
417
318
|
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
319
|
DataAppConfig (type, @altertable/data-app, @altertable/data-app/config): <Queries>
|
|
449
320
|
DataAppConfig.title: string
|
|
450
321
|
DataAppConfig.scope: { organization: string; environment: string; } — Display labels; scope does not grant data access.
|
|
@@ -452,11 +323,6 @@ DataAppConfig.description: string — Explain what the app helps readers explore
|
|
|
452
323
|
DataAppConfig.appearance?: AppearanceOptions — Omit to use the standard appearance.
|
|
453
324
|
DataAppConfig.dateFormatting?: { locale?: string | undefined; timeZone?: string | undefined; } — Shared date display defaults. Reporting views and individual fields may override the time zone.
|
|
454
325
|
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
326
|
DataAppDefinition (type, @altertable/data-app, @altertable/data-app/config): <Queries> — An app declaration with operations bound to its query registry.
|
|
461
327
|
DataAppDefinition.title: string
|
|
462
328
|
DataAppDefinition.scope: { organization: string; environment: string; } — Display labels; scope does not grant data access.
|
|
@@ -466,46 +332,10 @@ DataAppDefinition.dateFormatting?: { locale?: string | undefined; timeZone?: str
|
|
|
466
332
|
DataAppDefinition.queries: QuerySnapshot<Queries>
|
|
467
333
|
DataAppDefinition.defineDimension: <const Type extends 'string' | 'number'>(config: DimensionSourceConfig<Type> & { source: { query: DimensionSourceQueryName<Queries, NoInfer<Type>>; }; }) => SourceDimensionVariable<...>
|
|
468
334
|
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
335
|
DataAppError (class, @altertable/data-app/client)
|
|
481
336
|
DataAppError.code: string
|
|
482
337
|
DataAppError.requestId?: string
|
|
483
338
|
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
339
|
DataAppProps (type, @altertable/data-app-react): <Data, Input> = props listed as DataApp.*
|
|
510
340
|
DataAppProps (type, @altertable/data-app-react/ui)
|
|
511
341
|
DataAppProps.children: ReactNode
|
|
@@ -519,16 +349,6 @@ DataAppProps.queries?: DisclosedQuery[]
|
|
|
519
349
|
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
350
|
DataAppProvider.app: DataAppDefinition<Queries>
|
|
521
351
|
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
352
|
DataAppStyle (type, @altertable/data-app-react, @altertable/data-app-react/ui): React style properties with checked public Altertable custom properties.
|
|
533
353
|
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
354
|
DataAppStyle.…: plus props inherited from csstype
|
|
@@ -539,9 +359,6 @@ DataAppStylesOptions (type, @altertable/data-app-react)
|
|
|
539
359
|
DataAppStylesOptions.document?: Document — Defaults to the current browser document.
|
|
540
360
|
DataAppStylesOptions.nonce?: string — Nonce permitted by the document's style-src CSP.
|
|
541
361
|
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
362
|
DataClient (type, @altertable/data-app/client): <Operations> = props listed as createDataHooks.client.*
|
|
546
363
|
DataClientOptions (type, @altertable/data-app/client): <Operations> = props listed as createDataClient.options.* — Browser operations and named-operation delivery are mutually exclusive.
|
|
547
364
|
DataContext (type, @altertable/data-app-react)
|
|
@@ -563,18 +380,6 @@ DataOperation.run: (context: OperationContext, input: Input) => Promise<Output>
|
|
|
563
380
|
DataOperation.checks: readonly [Input, ...Input[]]
|
|
564
381
|
DataOperation.queryNames?: Readonly<Record<string, string>>
|
|
565
382
|
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
383
|
DataReading (type, @altertable/data-app-react/ui): <Value>
|
|
579
384
|
DataReading.loading: true [variant 1 of 2]
|
|
580
385
|
DataReading.loading: false [variant 2 of 2]
|
|
@@ -615,11 +420,6 @@ DatasetSuggestionOptions (type, @altertable/data-app-react): <Row>
|
|
|
615
420
|
DatasetSuggestionOptions.title: (row: Row) => string
|
|
616
421
|
DatasetSuggestionOptions.description?: ((row: Row) => string)
|
|
617
422
|
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
423
|
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
424
|
DataTable.searchable?: DataTableSearch
|
|
625
425
|
DataTable.…: plus props inherited from React
|
|
@@ -647,7 +447,6 @@ DataTableTimestamp.timeZone?: string
|
|
|
647
447
|
DataTableTimestamp.locale?: string
|
|
648
448
|
DataTableTimestamp.precision?: 'minute' | 'second'
|
|
649
449
|
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
450
|
DataValue (component, @altertable/data-app-react): <Data, Input, Row>(props: DataValueProps<Data, Input, Row>)
|
|
652
451
|
DataValue.loadingFallback?: ReactNode
|
|
653
452
|
DataValue.scope: DataReading<string> [variant 1 of 3]
|
|
@@ -788,29 +587,22 @@ DateTimeTooltip.panelProps?: HelpPopoverPanelProps
|
|
|
788
587
|
DateTimeTooltip.open?: boolean
|
|
789
588
|
DateTimeTooltip.onOpenChange?: ((open: boolean) => void)
|
|
790
589
|
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.
|
|
590
|
+
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
591
|
defineDataApp.config.title: string
|
|
796
592
|
defineDataApp.config.scope: { organization: string; environment: string; } — Display labels; scope does not grant data access.
|
|
797
593
|
defineDataApp.config.description: string — Explain what the app helps readers explore.
|
|
798
594
|
defineDataApp.config.appearance?: AppearanceOptions — Omit to use the standard appearance.
|
|
799
595
|
defineDataApp.config.dateFormatting?: { locale?: string | undefined; timeZone?: string | undefined; } — Shared date display defaults. Reporting views and individual fields may override the time zone.
|
|
800
596
|
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
|
|
597
|
+
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
598
|
defineDataIdentifiers.options.tables: Tables
|
|
803
599
|
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
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.
|
|
806
601
|
defineDateRangeContract.options.minDate?: string
|
|
807
602
|
defineDateRangeContract.options.maxDate?: string | (() => string)
|
|
808
603
|
defineDateRangeContract.options.maxRangeDays: number
|
|
809
604
|
defineDateRangeContract.options.timeZone: string
|
|
810
605
|
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
606
|
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
607
|
defineOperation.operation.input: (value: unknown) => Input
|
|
816
608
|
defineOperation.operation.checks: readonly [Input, ...Input[]]
|
|
@@ -977,11 +769,6 @@ FunnelChartSeries.values: readonly number[] — Finite, nonnegative counts align
|
|
|
977
769
|
FunnelChartStep (type, @altertable/data-app-react/ui): Ordered step with a unique, nonblank ID.
|
|
978
770
|
FunnelChartStep.id: string
|
|
979
771
|
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
772
|
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
773
|
GettingStarted.dataContext: DataContext
|
|
987
774
|
GlossaryDefinition (component, @altertable/data-app-react/ui): (props: GlossaryDefinitionProps)
|
|
@@ -1044,36 +831,10 @@ IconButton.tooltipAlign?: 'center' | 'end' | 'start'
|
|
|
1044
831
|
IconButton.children?: ReactNode
|
|
1045
832
|
IconButton.…: plus props inherited from React
|
|
1046
833
|
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
834
|
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
835
|
injectDataAppStyles.options.document?: Document — Defaults to the current browser document.
|
|
1063
836
|
injectDataAppStyles.options.nonce?: string — Nonce permitted by the document's style-src CSP.
|
|
1064
837
|
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
838
|
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
839
|
isPlainKeyEvent.event.…: plus props inherited from built-in
|
|
1079
840
|
isPlainKeyEvent.options.allowShift?: boolean
|
|
@@ -1091,8 +852,6 @@ JourneyChartPath.count: number — Finite, nonnegative population following this
|
|
|
1091
852
|
JourneyChartPath.converted: boolean | null — True: converted; false: dropped off; null: no conversion classification.
|
|
1092
853
|
JourneyChartPath.truncated: boolean — Stops at the last loaded event, without adding an outcome or expand control.
|
|
1093
854
|
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
855
|
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
856
|
LineChart.items: readonly Row[] — Ordered samples; the chart validates IDs and values when rendering.
|
|
1098
857
|
LineChart.itemActions?: ItemActions<Row> — Actions available for each displayed item. Domain fields remain available to this callback.
|
|
@@ -1112,11 +871,10 @@ LiveControl.onIntervalChange: (seconds: LiveIntervalSeconds) => void
|
|
|
1112
871
|
LiveControl.…: plus props inherited from React
|
|
1113
872
|
LiveControlProps (type, @altertable/data-app-react/ui): = props listed as LiveControl.*
|
|
1114
873
|
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
874
|
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
875
|
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
876
|
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
|
|
877
|
+
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
878
|
MenuButton.variant?: 'elevated' | 'ghost' | 'inline' | 'outline' | 'primary' — Inline actions retain button semantics without a padded control surface.
|
|
1121
879
|
MenuButton.size?: 'compact' | 'default' | 'icon' | 'icon-compact'
|
|
1122
880
|
MenuButton.className?: string
|
|
@@ -1131,24 +889,11 @@ MenuPopoverProps.…: plus props inherited from @react-types/shared, React, reac
|
|
|
1131
889
|
MenuProps (type, @altertable/data-app-react/ui): <T> = props listed as Menu.*
|
|
1132
890
|
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
891
|
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>)
|
|
892
|
+
MenuSeparator (component, @altertable/data-app-react/ui): (props: ComponentPropsWithRef<typeof import('react-aria-components').Separator>)
|
|
1135
893
|
MenuSeparator.…: plus props inherited from @react-types/shared, React, react-aria, react-aria-components
|
|
1136
894
|
MenuTrigger (component, @altertable/data-app-react/ui): (props: MenuTriggerProps)
|
|
1137
895
|
MenuTrigger.…: plus props inherited from react-aria-components, react-stately
|
|
1138
896
|
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
897
|
MetricDefinition (type, @altertable/data-app-react)
|
|
1153
898
|
MetricDefinition.id: string
|
|
1154
899
|
MetricDefinition.label: string
|
|
@@ -1225,24 +970,6 @@ MultiChoiceVariable.valid: (value: readonly string[]) => boolean
|
|
|
1225
970
|
MultiChoiceVariable.same: (left: readonly string[], right: readonly string[]) => boolean
|
|
1226
971
|
MultiChoiceVariable.options: readonly ChoiceOption[]
|
|
1227
972
|
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
973
|
NumberField (component, @altertable/data-app-react/ui): (props: NumberFieldProps) — Localized numeric entry. Empty input is null rather than zero.
|
|
1247
974
|
NumberField.label: string
|
|
1248
975
|
NumberField.value: number | null
|
|
@@ -1288,18 +1015,12 @@ NumberSelection.value: number [variant 2 of 3]
|
|
|
1288
1015
|
NumberSelection.kind: 'range' [variant 3 of 3]
|
|
1289
1016
|
NumberSelection.min?: number [variant 3 of 3]
|
|
1290
1017
|
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
1018
|
OperationDefinition (type, @altertable/data-app/contract): <Input, Output, Queries> — Infer operation data from run().
|
|
1297
1019
|
OperationDefinition.input: (value: unknown) => Input
|
|
1298
1020
|
OperationDefinition.checks: readonly [Input, ...Input[]]
|
|
1299
1021
|
OperationDefinition.policy: { maxQueryRows: number; maxDurationMs: number; maxResponseBytes?: number | undefined; }
|
|
1300
1022
|
OperationDefinition.run: (context: Pick<OperationContext, 'signal'> & { query: RegisteredQuery<NoInfer<Queries>>; }, input: Input) => Promise<...>
|
|
1301
1023
|
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
1024
|
parseBooleanSelection (function, @altertable/data-app/contract): (value: unknown, filter: BooleanFilter): BooleanSelection
|
|
1304
1025
|
parseBooleanSelection.filter.kind: 'booleanFilter'
|
|
1305
1026
|
parseBooleanSelection.filter.label: string
|
|
@@ -1314,7 +1035,6 @@ parseBooleanSelection.filter.write: (value: BooleanSelection) => Record<string,
|
|
|
1314
1035
|
parseBooleanSelection.filter.valid: (value: BooleanSelection) => boolean
|
|
1315
1036
|
parseBooleanSelection.filter.same: (left: BooleanSelection, right: BooleanSelection) => boolean
|
|
1316
1037
|
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
1038
|
parseDateRangeInput (function, @altertable/data-app/contract): (value: unknown, options: {…}): DateRange — Validate calendar dates and a bounded inclusive range on the server.
|
|
1319
1039
|
parseDateRangeInput.options.minDate?: string
|
|
1320
1040
|
parseDateRangeInput.options.maxDate?: string
|
|
@@ -1411,14 +1131,14 @@ PresentStory.headerActions?: ReactNode
|
|
|
1411
1131
|
PresentStory.footer?: ReactNode
|
|
1412
1132
|
PresentStory.…: plus props inherited from React
|
|
1413
1133
|
PresentStoryProps (type, @altertable/data-app-react/ui): = props listed as PresentStory.*
|
|
1414
|
-
previousDateRange (function, @altertable/data-app/contract): (options:
|
|
1134
|
+
previousDateRange (function, @altertable/data-app/contract): (options: DateRange): DateRange — The immediately preceding, equally long set of calendar days.
|
|
1415
1135
|
previousDateRange.options.start: string
|
|
1416
1136
|
previousDateRange.options.end: string
|
|
1417
|
-
QueryDefinitions (type, @altertable/data-app, @altertable/data-app/
|
|
1418
|
-
QueryField (type, @altertable/data-app, @altertable/data-app/
|
|
1137
|
+
QueryDefinitions (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/contract): <Record<string, QueryDefinition>> = { readonly [x: string]: QueryDefinition; }
|
|
1138
|
+
QueryField (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/contract)
|
|
1419
1139
|
QueryField.type: keyof QueryValues
|
|
1420
1140
|
QueryField.nullable?: boolean
|
|
1421
|
-
QueryParameter (type, @altertable/data-app, @altertable/data-app/
|
|
1141
|
+
QueryParameter (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/contract): Typed scalar parameters with optional fallback values.
|
|
1422
1142
|
QueryParameter.type: 'boolean' [variants 1, 5 of 8]
|
|
1423
1143
|
QueryParameter.nullable?: false [variants 1, 2, 3, 4 of 8]
|
|
1424
1144
|
QueryParameter.defaultValue?: boolean [variant 1 of 8]
|
|
@@ -1433,14 +1153,14 @@ QueryParameter.defaultValue?: boolean | null [variant 5 of 8]
|
|
|
1433
1153
|
QueryParameter.defaultValue?: number | null [variant 7 of 8]
|
|
1434
1154
|
QueryParameter.defaultValue?: string | null [variant 8 of 8]
|
|
1435
1155
|
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/
|
|
1156
|
+
QueryParameterValue (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/contract): = string | number | boolean | null
|
|
1157
|
+
QueryProjections (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/contract): <Record<string, QueryField>> = { readonly [x: string]: QueryField; }
|
|
1438
1158
|
QueryResult (type, @altertable/data-app/contract): <Row> — Lakehouse results contain positional unknown cells; registered queries supply decoded records.
|
|
1439
1159
|
QueryResult.columns: { name: string; type?: string | undefined; }[]
|
|
1440
1160
|
QueryResult.rows: Row[]
|
|
1441
1161
|
QueryResult.queryId?: string
|
|
1442
|
-
QueryRow (type, @altertable/data-app, @altertable/data-app/
|
|
1443
|
-
QueryValueType (type, @altertable/data-app, @altertable/data-app/
|
|
1162
|
+
QueryRow (type, @altertable/data-app, @altertable/data-app/config, @altertable/data-app/contract): <Projections> = { -readonly [Name in keyof Projections]: QueryValue<Projections[Name]>; }
|
|
1163
|
+
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
1164
|
Radio (component, @altertable/data-app-react/ui): (props: RadioProps)
|
|
1445
1165
|
Radio.className?: string
|
|
1446
1166
|
Radio.…: plus props inherited from @react-types/shared, React, react-aria, react-aria-components
|
|
@@ -1461,7 +1181,7 @@ RankingItem.label: ReactNode
|
|
|
1461
1181
|
RankingItem.value: number
|
|
1462
1182
|
RankingItem.detail?: ReactNode
|
|
1463
1183
|
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
|
|
1184
|
+
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
1185
|
ReportingPeriod (type, @altertable/data-app/contract, @altertable/data-app-react)
|
|
1466
1186
|
ReportingPeriod.kind: 'rolling' [variant 1 of 2]
|
|
1467
1187
|
ReportingPeriod.amount: number [variant 1 of 2]
|
|
@@ -1470,9 +1190,6 @@ ReportingPeriod.end: string
|
|
|
1470
1190
|
ReportingPeriod.kind: 'calendar' [variant 2 of 2]
|
|
1471
1191
|
ReportingPeriod.start: string [variant 2 of 2]
|
|
1472
1192
|
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
1193
|
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
1194
|
RetentionChart.ariaLabel: string — Accessible measure and scope description.
|
|
1478
1195
|
RetentionChart.unit: string — Population unit, such as users or sessions.
|
|
@@ -1491,9 +1208,6 @@ RetentionChartSeries.id: string — Unique, nonblank cohort or segment ID.
|
|
|
1491
1208
|
RetentionChartSeries.label: string
|
|
1492
1209
|
RetentionChartSeries.cohortSize: number — Finite, nonnegative starting population.
|
|
1493
1210
|
RetentionChartSeries.points: readonly RetentionChartPoint[]
|
|
1494
|
-
RoutedMessage (type, @altertable/data-app/contract)
|
|
1495
|
-
RoutedMessage.route: string
|
|
1496
|
-
RoutedMessage.payload: unknown
|
|
1497
1211
|
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
1212
|
ScatterChart.items: readonly ScatterChartItem[]
|
|
1499
1213
|
ScatterChart.xLabel: string
|
|
@@ -1617,16 +1331,6 @@ Select.id?: string
|
|
|
1617
1331
|
Select.className?: string
|
|
1618
1332
|
Select.align?: 'end' | 'start' — Align the popup with the selection button. Defaults to start.
|
|
1619
1333
|
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
1334
|
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
1335
|
Sheet.open: boolean
|
|
1632
1336
|
Sheet.onOpenChange: (open: boolean) => void
|
|
@@ -1645,21 +1349,11 @@ Skeleton (component, @altertable/data-app-react): (props: SkeletonProps) — Dec
|
|
|
1645
1349
|
Skeleton.inline?: boolean — Align a text-sized placeholder with surrounding prose.
|
|
1646
1350
|
Skeleton.…: plus props inherited from React
|
|
1647
1351
|
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
1352
|
Stack (component, @altertable/data-app-react): (props: StackProps) — Vertical layout for peer sections or request boundaries, with the page's section gap.
|
|
1656
1353
|
Stack.children: ReactNode
|
|
1657
1354
|
Stack.gap?: 'lg' | 'md' | 'sm'
|
|
1658
1355
|
Stack.…: plus props inherited from React
|
|
1659
1356
|
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
1357
|
StoryFinding (type, @altertable/data-app-react/ui): One consequential, inspectable finding from the displayed result.
|
|
1664
1358
|
StoryFinding.id: string
|
|
1665
1359
|
StoryFinding.headline: string
|
|
@@ -1667,7 +1361,7 @@ StoryFinding.context?: string
|
|
|
1667
1361
|
StoryFinding.visual: ReactNode
|
|
1668
1362
|
StoryFinding.visualKind?: 'chart' | 'metric'
|
|
1669
1363
|
StoryFinding.evidence: MetricDefinition | WidgetEvidence
|
|
1670
|
-
Tab (component, @altertable/data-app-react/ui): (props: ComponentPropsWithRef<typeof
|
|
1364
|
+
Tab (component, @altertable/data-app-react/ui): (props: ComponentPropsWithRef<typeof import('react-aria-components/Tabs').Tab>)
|
|
1671
1365
|
Tab.…: plus props inherited from @react-types/shared, React, react-aria-components
|
|
1672
1366
|
TableIdentifier (type, @altertable/data-app-react)
|
|
1673
1367
|
TableIdentifier.catalog: string
|
|
@@ -1734,11 +1428,11 @@ TableWidgetSearch.mode?: 'fuzzy' | 'literal' — Literal filtering preserves sou
|
|
|
1734
1428
|
TableWidgetSearch.fuzzyThreshold?: number
|
|
1735
1429
|
TabList (component, @altertable/data-app-react/ui): <T>(props: TabListProps<T> & RefAttributes<HTMLDivElement>)
|
|
1736
1430
|
TabList.…: plus props inherited from @react-types/shared, React, react-aria-components
|
|
1737
|
-
TabPanel (component, @altertable/data-app-react/ui): (props: ComponentPropsWithRef<typeof
|
|
1431
|
+
TabPanel (component, @altertable/data-app-react/ui): (props: ComponentPropsWithRef<typeof import('react-aria-components/Tabs').TabPanel>)
|
|
1738
1432
|
TabPanel.…: plus props inherited from @react-types/shared, React, react-aria, react-aria-components
|
|
1739
1433
|
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
1434
|
TabPanels.props.…: plus props inherited from @react-types/shared, React, react-aria-components
|
|
1741
|
-
Tabs (component, @altertable/data-app-react/ui): (props: ComponentPropsWithRef<typeof
|
|
1435
|
+
Tabs (component, @altertable/data-app-react/ui): (props: ComponentPropsWithRef<typeof import('react-aria-components/Tabs').Tabs>)
|
|
1742
1436
|
Tabs.…: plus props inherited from @react-types/shared, React, react-aria, react-aria-components, react-stately
|
|
1743
1437
|
TextContent (component, @altertable/data-app-react): (props: TextContentProps) — Prose typography for page introductions, widget bodies, and inspection content.
|
|
1744
1438
|
TextContent.…: plus props inherited from React
|
|
@@ -1779,11 +1473,7 @@ TextWidget.children: ReactNode [variant 2 of 2]
|
|
|
1779
1473
|
TextWidget.…: plus props inherited from React
|
|
1780
1474
|
TextWidgetProps (type, @altertable/data-app-react): <Data, Input, Row> = props listed as TextWidget.*
|
|
1781
1475
|
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
|
|
1476
|
+
Theme (type, @altertable/data-app/appearance): = 'dark' | 'light' — Appearance configured by app authors.
|
|
1787
1477
|
ThemePreference (type, @altertable/data-app/appearance): = 'system' | Theme
|
|
1788
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.
|
|
1789
1479
|
Tooltip.content: ReactNode
|
|
@@ -1800,9 +1490,6 @@ TooltipProvider.children: ReactNode
|
|
|
1800
1490
|
TooltipProvider.delay?: number
|
|
1801
1491
|
TooltipProvider.skipDelayDuration?: number
|
|
1802
1492
|
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
1493
|
UpdatedAt (component, @altertable/data-app-react): (props: UpdatedAtProps)
|
|
1807
1494
|
UpdatedAt.timestamp: number
|
|
1808
1495
|
UpdatedAt.locale?: string
|
|
@@ -1817,14 +1504,12 @@ UpdatedAt.onOpenChange?: ((open: boolean) => void)
|
|
|
1817
1504
|
UpdatedAt.timeZone?: string
|
|
1818
1505
|
UpdatedAtProps (type, @altertable/data-app-react): = props listed as UpdatedAt.*
|
|
1819
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.
|
|
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
1507
|
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
1508
|
useDateFormatting.options.locale?: string
|
|
1823
1509
|
useDateFormatting.options.timeZone?: string
|
|
1824
1510
|
useDetailNavigation (hook, @altertable/data-app-react): (): DetailNavigation — Resolve a detail target from an interaction. The destination validates input before fetching.
|
|
1825
1511
|
useSvgId (hook, @altertable/data-app-react/ui): (): string — Stable React ID for SVG definitions and their URL references; safe with identifier prefixes.
|
|
1826
1512
|
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
1513
|
VariableBar (component, @altertable/data-app-react/ui): (props: VariableBarProps) — User-controlled inputs below the page header.
|
|
1829
1514
|
VariableBar.children: ReactNode
|
|
1830
1515
|
VariableBar.…: plus props inherited from React
|