@altertable/data-app 0.71.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 -173
- package/README.md +3 -3
- package/REFERENCE.md +30 -341
- 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 +44 -48
- 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 -112
- 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 +12 -15
- 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 +3 -28
- 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 -3
- 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/examples/starter-data-app/index.tsx +0 -193
- package/examples/starter-local-data-app/.bun-version +0 -1
- package/examples/starter-local-data-app/.node-version +0 -1
- package/examples/starter-local-data-app/.oxfmtrc.json +0 -4
- package/examples/starter-local-data-app/.oxlintrc.json +0 -33
- package/examples/starter-local-data-app/AGENTS.md +0 -22
- package/examples/starter-local-data-app/README.md +0 -56
- package/examples/starter-local-data-app/app.ts +0 -28
- package/examples/starter-local-data-app/bunfig.toml +0 -2
- package/examples/starter-local-data-app/package.json +0 -35
- package/examples/starter-local-data-app/src/App.tsx +0 -8
- package/examples/starter-local-data-app/src/assets.d.ts +0 -1
- package/examples/starter-local-data-app/src/data-context.ts +0 -21
- package/examples/starter-local-data-app/src/favicon.svg +0 -13
- package/examples/starter-local-data-app/src/index.html +0 -14
- package/examples/starter-local-data-app/src/main.tsx +0 -7
- package/examples/starter-local-data-app/src/operations.ts +0 -6
- package/examples/starter-local-data-app/src/server.ts +0 -6
- package/examples/starter-local-data-app/tsconfig.json +0 -21
package/REFERENCE.md
CHANGED
|
@@ -1,26 +1,14 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Data app API reference
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
edit. Each of the 417 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,10 +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
|
-
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.
|
|
355
|
-
createDataAppNavigation (function, @altertable/data-app/client): (options: {…}): DataAppNavigation — Attach app URL behavior to an already authenticated bridge.
|
|
356
|
-
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; }
|
|
357
|
-
createDataAppNavigation.options.window?: Window
|
|
358
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.
|
|
359
278
|
createDataClient.options.transport?: DataTransport [variant 1 of 2]
|
|
360
279
|
createDataClient.options.endpoint?: string [variant 1 of 2]
|
|
@@ -365,25 +284,8 @@ createDataClient.options.transport?: DataTransport
|
|
|
365
284
|
createDataClient.options.endpoint?: string
|
|
366
285
|
createDataClient.options.fetch?: typeof fetch
|
|
367
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.
|
|
368
|
-
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.
|
|
369
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.
|
|
370
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<...>
|
|
371
|
-
createHttpTransport (function, @altertable/data-app/client): (options: {…}): DataTransport
|
|
372
|
-
createHttpTransport.options.endpoint?: string
|
|
373
|
-
createHttpTransport.options.fetch?: typeof fetch
|
|
374
|
-
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.
|
|
375
|
-
createIframeTransport.options.parentOrigin: string
|
|
376
|
-
createIframeTransport.options.window?: Window
|
|
377
|
-
createIframeTransport.options.timeoutMs?: number
|
|
378
|
-
createIframeTransport.options.mode?: 'bundle' | 'url'
|
|
379
|
-
createIframeTransport.options.loadScript?: ((javascript: string) => void)
|
|
380
|
-
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.
|
|
381
|
-
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.
|
|
382
|
-
createNavigationHandler (function, @altertable/data-app-embed): (options: {…}): (input: NavigationUpdate) => null — Override this handler for framework routers. Reserved host parameters survive app navigation.
|
|
383
|
-
createNavigationHandler.options.window?: Window
|
|
384
|
-
createNavigationHandler.options.reservedSearchParams?: readonly string[]
|
|
385
|
-
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.
|
|
386
|
-
createThemeController (function, @altertable/data-app/appearance): (initialTheme: ThemePreference): ThemeController — Persist a viewer theme preference. Applying appearance belongs to the UI owner.
|
|
387
289
|
CsvCell (type, @altertable/data-app-react): = string | number | boolean | null | undefined
|
|
388
290
|
CsvExport (type, @altertable/data-app-react/ui): All distinct datasets in the displayed result; filename names the download.
|
|
389
291
|
CsvExport.filename: string
|
|
@@ -414,36 +316,6 @@ DataApp.footerActions?: ReactNode
|
|
|
414
316
|
DataApp.footer?: ReactNode — Optional source, coverage, or methodology note below the app content. Compose prose and inline components; typography and spacing are provided.
|
|
415
317
|
DataApp.csvExport?: CsvExport
|
|
416
318
|
DataApp.queries?: DisclosedQuery[]
|
|
417
|
-
DataAppAnnotationDraft (type, @altertable/data-app/contract)
|
|
418
|
-
DataAppAnnotationDraft.id: string
|
|
419
|
-
DataAppAnnotationDraft.target: { id: string; label: string; kind: 'app' | 'element' | 'widget'; text: string; queryNames: string[]; glossaryIds: string[]; }
|
|
420
|
-
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…
|
|
421
|
-
DataAppAnnotationDraft.comment: string
|
|
422
|
-
DataAppAnnotationPresentation (type, @altertable/data-app/contract)
|
|
423
|
-
DataAppAnnotationPresentation.enabled: boolean
|
|
424
|
-
DataAppAnnotationPresentation.active?: boolean — When provided, the host owns the mode and renders the annotation trigger.
|
|
425
|
-
DataAppAnnotationPresentation.pinsVisible?: boolean
|
|
426
|
-
DataAppAnnotationPresentation.showHint?: boolean
|
|
427
|
-
DataAppAnnotationPresentation.readOnly?: boolean
|
|
428
|
-
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; }[]
|
|
429
|
-
DataAppAnnotationPresentation.selectedAnnotationId?: string
|
|
430
|
-
DataAppAnnotationPresentation.selectedTargetId?: string
|
|
431
|
-
DataAppAnnotationPresentation.selectionId?: string
|
|
432
|
-
DataAppAnnotationPresentation.dismissal?: { id: string; occurredAt: number; } — Confirmed host click outside the iframe; occurredAt is epoch milliseconds.
|
|
433
|
-
DataAppBridge (component, @altertable/data-app-embed/react): (props: DataAppBridgeProps) — Owns iframe setup and delivery. The consuming shell owns loading, error UI, and retries.
|
|
434
|
-
DataAppBridge.presentation?: DataAppPresentation
|
|
435
|
-
DataAppBridge.logger?: DataAppLogger
|
|
436
|
-
DataAppBridge.onStatusChange?: ((status: DataAppStatus) => void)
|
|
437
|
-
DataAppBridge.onDiagnostic?: ((event: DataAppDiagnostic) => void)
|
|
438
|
-
DataAppBridge.onMessage: MessageDispatcher
|
|
439
|
-
DataAppBridge.source: DataAppSource [variant 1 of 2]
|
|
440
|
-
DataAppBridge.title: string [variant 1 of 2]
|
|
441
|
-
DataAppBridge.startupTimeoutMs?: number [variant 1 of 2]
|
|
442
|
-
DataAppBridge.iframeProps?: Omit<Omit<DetailedHTMLProps<IframeHTMLAttributes<HTMLIFrameElement>, HTMLIFrameElement>, 'ref'>, 'children' | ... 5 more ... | 'title'> [variant 1 of 2]
|
|
443
|
-
DataAppBridge.iframe: HTMLIFrameElement | null [variant 2 of 2]
|
|
444
|
-
DataAppBridge.connection: DataAppConnection [variant 2 of 2]
|
|
445
|
-
DataAppBridgeOptions (type, @altertable/data-app-embed): = props listed as attachDataAppBridge.options.*
|
|
446
|
-
DataAppBridgeProps (type, @altertable/data-app-embed/react): = props listed as DataAppBridge.*
|
|
447
319
|
DataAppConfig (type, @altertable/data-app, @altertable/data-app/config): <Queries>
|
|
448
320
|
DataAppConfig.title: string
|
|
449
321
|
DataAppConfig.scope: { organization: string; environment: string; } — Display labels; scope does not grant data access.
|
|
@@ -451,11 +323,6 @@ DataAppConfig.description: string — Explain what the app helps readers explore
|
|
|
451
323
|
DataAppConfig.appearance?: AppearanceOptions — Omit to use the standard appearance.
|
|
452
324
|
DataAppConfig.dateFormatting?: { locale?: string | undefined; timeZone?: string | undefined; } — Shared date display defaults. Reporting views and individual fields may override the time zone.
|
|
453
325
|
DataAppConfig.queries: Queries — Named SQL statements with typed parameters and result projections.
|
|
454
|
-
DataAppConnection (type, @altertable/data-app-embed)
|
|
455
|
-
DataAppConnection.type: 'origin' [variant 1 of 2]
|
|
456
|
-
DataAppConnection.origin: string [variant 1 of 2]
|
|
457
|
-
DataAppConnection.type: 'opaque' [variant 2 of 2]
|
|
458
|
-
DataAppConnection.token: string [variant 2 of 2]
|
|
459
326
|
DataAppDefinition (type, @altertable/data-app, @altertable/data-app/config): <Queries> — An app declaration with operations bound to its query registry.
|
|
460
327
|
DataAppDefinition.title: string
|
|
461
328
|
DataAppDefinition.scope: { organization: string; environment: string; } — Display labels; scope does not grant data access.
|
|
@@ -465,44 +332,10 @@ DataAppDefinition.dateFormatting?: { locale?: string | undefined; timeZone?: str
|
|
|
465
332
|
DataAppDefinition.queries: QuerySnapshot<Queries>
|
|
466
333
|
DataAppDefinition.defineDimension: <const Type extends 'string' | 'number'>(config: DimensionSourceConfig<Type> & { source: { query: DimensionSourceQueryName<Queries, NoInfer<Type>>; }; }) => SourceDimensionVariable<...>
|
|
467
334
|
DataAppDefinition.defineOperation: <Input, Output>(operation: OperationDefinition<Input, Output, Queries>) => Omit<DataOperation<Input, Output>, 'queryNames'> & { ...; }
|
|
468
|
-
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.
|
|
469
|
-
DataAppDiagnostic.direction: 'drop' [variant 1 of 2]
|
|
470
|
-
DataAppDiagnostic.type?: string [variant 1 of 2]
|
|
471
|
-
DataAppDiagnostic.reason: BridgeDropReason [variant 1 of 2]
|
|
472
|
-
DataAppDiagnostic.durationMs?: number
|
|
473
|
-
DataAppDiagnostic.direction: 'receive' | 'send' [variant 2 of 2]
|
|
474
|
-
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]
|
|
475
|
-
DataAppDiagnostic.id?: string [variant 2 of 2]
|
|
476
|
-
DataAppDiagnostic.route?: string [variant 2 of 2]
|
|
477
|
-
DataAppDiagnostic.operation?: string [variant 2 of 2]
|
|
478
|
-
DataAppDiagnostic.error?: { code: string; message: string; requestId?: string | undefined; } [variant 2 of 2]
|
|
479
335
|
DataAppError (class, @altertable/data-app/client)
|
|
480
336
|
DataAppError.code: string
|
|
481
337
|
DataAppError.requestId?: string
|
|
482
338
|
DataAppError.…: plus props inherited from built-in
|
|
483
|
-
DataAppHost (type, @altertable/data-app-embed)
|
|
484
|
-
DataAppHost.dispose: () => void
|
|
485
|
-
DataAppHost.setPresentation: (presentation?: DataAppPresentation | undefined) => void
|
|
486
|
-
DataAppHost.setLogger: (logger?: DataAppLogger | undefined) => void
|
|
487
|
-
DataAppLocation (type, @altertable/data-app/client)
|
|
488
|
-
DataAppLocation.snapshot: () => AppLocation
|
|
489
|
-
DataAppLocation.subscribe: (listener: () => void) => () => void
|
|
490
|
-
DataAppLocation.update: (location: AppLocation, mode?: HistoryMode | undefined) => void
|
|
491
|
-
DataAppLogger (type, @altertable/data-app/client, @altertable/data-app-embed): Host-owned log sink; compatible with console and frontend createLogger().
|
|
492
|
-
DataAppLogger.log: (...args: unknown[]) => void
|
|
493
|
-
DataAppLogger.info: (...args: unknown[]) => void
|
|
494
|
-
DataAppLogger.warn: (...args: unknown[]) => void
|
|
495
|
-
DataAppLogger.error: (...args: unknown[]) => void
|
|
496
|
-
DataAppNavigation (type, @altertable/data-app/client)
|
|
497
|
-
DataAppNavigation.snapshot: () => AppLocation
|
|
498
|
-
DataAppNavigation.subscribe: (listener: () => void) => () => void
|
|
499
|
-
DataAppNavigation.update: (location: AppLocation, mode?: HistoryMode | undefined) => void
|
|
500
|
-
DataAppNavigation.publish: (mode?: HistoryMode | undefined) => void — Publish URL changes made outside the adapter, including the document title.
|
|
501
|
-
DataAppNavigation.dispose: () => void
|
|
502
|
-
DataAppPresentation (type, @altertable/data-app-embed): Presentation owned by the parent shell, delivered only over a trusted bridge.
|
|
503
|
-
DataAppPresentation.surface: 'embedded' | 'standalone'
|
|
504
|
-
DataAppPresentation.theme: Theme
|
|
505
|
-
DataAppPresentation.annotations?: DataAppAnnotationPresentation
|
|
506
339
|
DataAppProps (type, @altertable/data-app-react): <Data, Input> = props listed as DataApp.*
|
|
507
340
|
DataAppProps (type, @altertable/data-app-react/ui)
|
|
508
341
|
DataAppProps.children: ReactNode
|
|
@@ -516,16 +349,6 @@ DataAppProps.queries?: DisclosedQuery[]
|
|
|
516
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.
|
|
517
350
|
DataAppProvider.app: DataAppDefinition<Queries>
|
|
518
351
|
DataAppProvider.children: ReactNode
|
|
519
|
-
dataAppRoutes (const, @altertable/data-app/contract)
|
|
520
|
-
dataAppRoutes.data:query: DataQueryRoute<OperationContracts>
|
|
521
|
-
dataAppRoutes.navigation:update: MessageRoute<NavigationUpdate, null>
|
|
522
|
-
DataAppSource (type, @altertable/data-app-embed)
|
|
523
|
-
DataAppSource.type: 'url' [variant 1 of 2]
|
|
524
|
-
DataAppSource.url: string [variant 1 of 2]
|
|
525
|
-
DataAppSource.type: 'bundle' [variant 2 of 2]
|
|
526
|
-
DataAppSource.bootstrapUrl?: string [variant 2 of 2] — Omit to use the packaged, network-isolated data document.
|
|
527
|
-
DataAppSource.javascript: string [variant 2 of 2]
|
|
528
|
-
DataAppStatus (type, @altertable/data-app-embed): = 'connected' | 'connecting' | 'disconnected' | 'failed' | 'ready'
|
|
529
352
|
DataAppStyle (type, @altertable/data-app-react, @altertable/data-app-react/ui): React style properties with checked public Altertable custom properties.
|
|
530
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
|
|
531
354
|
DataAppStyle.…: plus props inherited from csstype
|
|
@@ -536,9 +359,6 @@ DataAppStylesOptions (type, @altertable/data-app-react)
|
|
|
536
359
|
DataAppStylesOptions.document?: Document — Defaults to the current browser document.
|
|
537
360
|
DataAppStylesOptions.nonce?: string — Nonce permitted by the document's style-src CSP.
|
|
538
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'
|
|
539
|
-
dataAppTitle (function, @altertable/data-app, @altertable/data-app/config): (config: Pick<DataAppConfig, 'title' | 'scope'>): string
|
|
540
|
-
dataAppTitle.config.title: string
|
|
541
|
-
dataAppTitle.config.scope: { organization: string; environment: string; } — Display labels; scope does not grant data access.
|
|
542
362
|
DataClient (type, @altertable/data-app/client): <Operations> = props listed as createDataHooks.client.*
|
|
543
363
|
DataClientOptions (type, @altertable/data-app/client): <Operations> = props listed as createDataClient.options.* — Browser operations and named-operation delivery are mutually exclusive.
|
|
544
364
|
DataContext (type, @altertable/data-app-react)
|
|
@@ -560,18 +380,6 @@ DataOperation.run: (context: OperationContext, input: Input) => Promise<Output>
|
|
|
560
380
|
DataOperation.checks: readonly [Input, ...Input[]]
|
|
561
381
|
DataOperation.queryNames?: Readonly<Record<string, string>>
|
|
562
382
|
DataOperation.policy: { maxQueryRows: number; maxDurationMs: number; maxResponseBytes?: number | undefined; }
|
|
563
|
-
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.
|
|
564
|
-
DataQueryBody (type, @altertable/data-app/contract): <Output>
|
|
565
|
-
DataQueryBody.data: Output
|
|
566
|
-
DataQueryBody.requestId: string
|
|
567
|
-
DataQueryBody.queriedAt: string
|
|
568
|
-
DataQueryBody.queryIds: string[]
|
|
569
|
-
DataQueryBody.queries?: DisclosedQuery[]
|
|
570
|
-
DataQueryInput (type, @altertable/data-app/contract): <Operations> = { [Name in keyof Operations & string]: { operation: Name; input: InputOf<Operations[Name]>; }; }[keyof Operations & string]
|
|
571
|
-
DataQueryRoute (type, @altertable/data-app/contract): <Operations>
|
|
572
|
-
DataQueryRoute.input: (value: unknown) => DataQueryInput<Operations>
|
|
573
|
-
DataQueryRoute.output: (value: unknown, input: DataQueryInput<Operations>) => TransportResponse
|
|
574
|
-
DataQueryRoute.operations: Operations | undefined
|
|
575
383
|
DataReading (type, @altertable/data-app-react/ui): <Value>
|
|
576
384
|
DataReading.loading: true [variant 1 of 2]
|
|
577
385
|
DataReading.loading: false [variant 2 of 2]
|
|
@@ -612,11 +420,6 @@ DatasetSuggestionOptions (type, @altertable/data-app-react): <Row>
|
|
|
612
420
|
DatasetSuggestionOptions.title: (row: Row) => string
|
|
613
421
|
DatasetSuggestionOptions.description?: ((row: Row) => string)
|
|
614
422
|
DatasetSuggestionOptions.onSelect?: ((row: Row) => void) — Override query completion with an app action.
|
|
615
|
-
DataSourceError (class, @altertable/data-app/contract)
|
|
616
|
-
DataSourceError.reason: 'forbidden' | 'query_rejected' | 'rate_limited' | 'unauthorized' | 'unavailable'
|
|
617
|
-
DataSourceError.status?: number
|
|
618
|
-
DataSourceError.queryName?: string
|
|
619
|
-
DataSourceError.…: plus props inherited from built-in
|
|
620
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.
|
|
621
424
|
DataTable.searchable?: DataTableSearch
|
|
622
425
|
DataTable.…: plus props inherited from React
|
|
@@ -644,7 +447,6 @@ DataTableTimestamp.timeZone?: string
|
|
|
644
447
|
DataTableTimestamp.locale?: string
|
|
645
448
|
DataTableTimestamp.precision?: 'minute' | 'second'
|
|
646
449
|
DataTableTimestampProps (type, @altertable/data-app-react/ui): = props listed as DataTableTimestamp.*
|
|
647
|
-
DataTransport (type, @altertable/data-app/client): = (operation: string, input: unknown, signal?: AbortSignal | undefined) => Promise<TransportResponse>
|
|
648
450
|
DataValue (component, @altertable/data-app-react): <Data, Input, Row>(props: DataValueProps<Data, Input, Row>)
|
|
649
451
|
DataValue.loadingFallback?: ReactNode
|
|
650
452
|
DataValue.scope: DataReading<string> [variant 1 of 3]
|
|
@@ -785,29 +587,22 @@ DateTimeTooltip.panelProps?: HelpPopoverPanelProps
|
|
|
785
587
|
DateTimeTooltip.open?: boolean
|
|
786
588
|
DateTimeTooltip.onOpenChange?: ((open: boolean) => void)
|
|
787
589
|
DateTimeTooltipProps (type, @altertable/data-app-react): = props listed as DateTimeTooltip.*
|
|
788
|
-
|
|
789
|
-
default.runtimeHtml: (parentOrigin: string) => string
|
|
790
|
-
default.fetch: (request: Request, env: WorkerBindings) => Response
|
|
791
|
-
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.
|
|
792
591
|
defineDataApp.config.title: string
|
|
793
592
|
defineDataApp.config.scope: { organization: string; environment: string; } — Display labels; scope does not grant data access.
|
|
794
593
|
defineDataApp.config.description: string — Explain what the app helps readers explore.
|
|
795
594
|
defineDataApp.config.appearance?: AppearanceOptions — Omit to use the standard appearance.
|
|
796
595
|
defineDataApp.config.dateFormatting?: { locale?: string | undefined; timeZone?: string | undefined; } — Shared date display defaults. Reporting views and individual fields may override the time zone.
|
|
797
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.
|
|
798
|
-
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.
|
|
799
598
|
defineDataIdentifiers.options.tables: Tables
|
|
800
599
|
defineDataIdentifiers.options.columns: Columns
|
|
801
|
-
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.
|
|
802
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.
|
|
803
601
|
defineDateRangeContract.options.minDate?: string
|
|
804
602
|
defineDateRangeContract.options.maxDate?: string | (() => string)
|
|
805
603
|
defineDateRangeContract.options.maxRangeDays: number
|
|
806
604
|
defineDateRangeContract.options.timeZone: string
|
|
807
605
|
defineDateRangeContract.options.completeDays?: boolean
|
|
808
|
-
defineMessageRoute (function, @altertable/data-app/contract): <Input, Output>(route: MessageRoute<Input, Output>): MessageRoute<Input, Output>
|
|
809
|
-
defineMessageRoute.route.input: (value: unknown) => Input
|
|
810
|
-
defineMessageRoute.route.output: (value: unknown, input: Input) => Output
|
|
811
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; }; }
|
|
812
607
|
defineOperation.operation.input: (value: unknown) => Input
|
|
813
608
|
defineOperation.operation.checks: readonly [Input, ...Input[]]
|
|
@@ -974,10 +769,6 @@ FunnelChartSeries.values: readonly number[] — Finite, nonnegative counts align
|
|
|
974
769
|
FunnelChartStep (type, @altertable/data-app-react/ui): Ordered step with a unique, nonblank ID.
|
|
975
770
|
FunnelChartStep.id: string
|
|
976
771
|
FunnelChartStep.label: string
|
|
977
|
-
getDataAppNavigation (function, @altertable/data-app/client): (frame: Window): DataAppNavigation | undefined — URL controls attach navigation on demand; bootstrap and data-only clients do not.
|
|
978
|
-
getDataAppNavigation.frame.…: plus props inherited from built-in
|
|
979
|
-
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.
|
|
980
|
-
getDataAppTransport.frame.…: plus props inherited from built-in
|
|
981
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.
|
|
982
773
|
GettingStarted.dataContext: DataContext
|
|
983
774
|
GlossaryDefinition (component, @altertable/data-app-react/ui): (props: GlossaryDefinitionProps)
|
|
@@ -1040,36 +831,10 @@ IconButton.tooltipAlign?: 'center' | 'end' | 'start'
|
|
|
1040
831
|
IconButton.children?: ReactNode
|
|
1041
832
|
IconButton.…: plus props inherited from React
|
|
1042
833
|
IconButtonProps (type, @altertable/data-app-react): = props listed as IconButton.*
|
|
1043
|
-
IframeTransport (type, @altertable/data-app/client)
|
|
1044
|
-
IframeTransport.logger: DataAppLogger
|
|
1045
|
-
IframeTransport.request: (message: RoutedMessage, signal?: AbortSignal | undefined) => Promise<unknown>
|
|
1046
|
-
IframeTransport.transport: (operation: string, input: unknown, signal?: AbortSignal | undefined) => Promise<TransportResponse>
|
|
1047
|
-
IframeTransport.lakehouse: { queryAll(statement: string, { limit, signal, params }: { limit: number; signal: AbortSignal; name?: string | undefined; params?: Readonly<Record<string, QueryParameterValue>> | undefined; }): Promise<...>; }
|
|
1048
|
-
IframeTransport.dispose: () => void
|
|
1049
|
-
IframeTransport.mode: 'bundle' | 'url'
|
|
1050
|
-
IframeTransport.snapshot: () => unknown
|
|
1051
|
-
IframeTransport.subscribe: (listener: (state: unknown) => void) => () => void
|
|
1052
|
-
IframeTransport.ready: () => void
|
|
1053
|
-
IframeTransport.fail: (cause?: unknown) => void — Reports a fatal app failure; the cause reaches the host logger only.
|
|
1054
|
-
injectDataAppAnnotationStyles (function, @altertable/data-app-react): (options: DataAppStylesOptions): HTMLStyleElement — Install only the outer-frame annotation controls; leave host page typography and layout intact.
|
|
1055
|
-
injectDataAppAnnotationStyles.options.document?: Document — Defaults to the current browser document.
|
|
1056
|
-
injectDataAppAnnotationStyles.options.nonce?: string — Nonce permitted by the document's style-src CSP.
|
|
1057
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.
|
|
1058
835
|
injectDataAppStyles.options.document?: Document — Defaults to the current browser document.
|
|
1059
836
|
injectDataAppStyles.options.nonce?: string — Nonce permitted by the document's style-src CSP.
|
|
1060
837
|
InputOf (type, @altertable/data-app/client): <T> = T extends { input: (value: unknown) => infer Input; } ? Input : never
|
|
1061
|
-
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.
|
|
1062
|
-
installDataAppTransport.bridge.logger: DataAppLogger
|
|
1063
|
-
installDataAppTransport.bridge.request: (message: RoutedMessage, signal?: AbortSignal | undefined) => Promise<unknown>
|
|
1064
|
-
installDataAppTransport.bridge.transport: (operation: string, input: unknown, signal?: AbortSignal | undefined) => Promise<TransportResponse>
|
|
1065
|
-
installDataAppTransport.bridge.lakehouse: { queryAll(statement: string, { limit, signal, params }: { limit: number; signal: AbortSignal; name?: string | undefined; params?: Readonly<Record<string, QueryParameterValue>> | undefined; }): Promise<...>; }
|
|
1066
|
-
installDataAppTransport.bridge.dispose: () => void
|
|
1067
|
-
installDataAppTransport.bridge.mode: 'bundle' | 'url'
|
|
1068
|
-
installDataAppTransport.bridge.snapshot: () => unknown
|
|
1069
|
-
installDataAppTransport.bridge.subscribe: (listener: (state: unknown) => void) => () => void
|
|
1070
|
-
installDataAppTransport.bridge.ready: () => void
|
|
1071
|
-
installDataAppTransport.bridge.fail: (cause?: unknown) => void — Reports a fatal app failure; the cause reaches the host logger only.
|
|
1072
|
-
installDataAppTransport.frame.…: plus props inherited from built-in
|
|
1073
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.
|
|
1074
839
|
isPlainKeyEvent.event.…: plus props inherited from built-in
|
|
1075
840
|
isPlainKeyEvent.options.allowShift?: boolean
|
|
@@ -1087,8 +852,6 @@ JourneyChartPath.count: number — Finite, nonnegative population following this
|
|
|
1087
852
|
JourneyChartPath.converted: boolean | null — True: converted; false: dropped off; null: no conversion classification.
|
|
1088
853
|
JourneyChartPath.truncated: boolean — Stops at the last loaded event, without adding an outcome or expand control.
|
|
1089
854
|
JourneyChartProps (type, @altertable/data-app-react/ui): = props listed as JourneyChart.*
|
|
1090
|
-
Lakehouse (type, @altertable/data-app/contract): Query interface supplied by a server adapter or an authorized iframe bridge.
|
|
1091
|
-
Lakehouse.queryAll: (statement: string, options: { limit: number; signal: AbortSignal; name?: string | undefined; params?: Readonly<Record<string, QueryParameterValue>> | undefined; }) => Promise<...>
|
|
1092
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.
|
|
1093
856
|
LineChart.items: readonly Row[] — Ordered samples; the chart validates IDs and values when rendering.
|
|
1094
857
|
LineChart.itemActions?: ItemActions<Row> — Actions available for each displayed item. Domain fields remain available to this callback.
|
|
@@ -1108,11 +871,10 @@ LiveControl.onIntervalChange: (seconds: LiveIntervalSeconds) => void
|
|
|
1108
871
|
LiveControl.…: plus props inherited from React
|
|
1109
872
|
LiveControlProps (type, @altertable/data-app-react/ui): = props listed as LiveControl.*
|
|
1110
873
|
LiveIntervalSeconds (type, @altertable/data-app-react/ui): = 30 | 60 | 300
|
|
1111
|
-
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.
|
|
1112
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.
|
|
1113
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.
|
|
1114
876
|
Menu.…: plus props inherited from @react-types/shared, react-aria, react-aria-components
|
|
1115
|
-
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.
|
|
1116
878
|
MenuButton.variant?: 'elevated' | 'ghost' | 'inline' | 'outline' | 'primary' — Inline actions retain button semantics without a padded control surface.
|
|
1117
879
|
MenuButton.size?: 'compact' | 'default' | 'icon' | 'icon-compact'
|
|
1118
880
|
MenuButton.className?: string
|
|
@@ -1127,24 +889,11 @@ MenuPopoverProps.…: plus props inherited from @react-types/shared, React, reac
|
|
|
1127
889
|
MenuProps (type, @altertable/data-app-react/ui): <T> = props listed as Menu.*
|
|
1128
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.
|
|
1129
891
|
MenuSection.props.…: plus props inherited from @react-types/shared, React, react-aria-components
|
|
1130
|
-
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>)
|
|
1131
893
|
MenuSeparator.…: plus props inherited from @react-types/shared, React, react-aria, react-aria-components
|
|
1132
894
|
MenuTrigger (component, @altertable/data-app-react/ui): (props: MenuTriggerProps)
|
|
1133
895
|
MenuTrigger.…: plus props inherited from react-aria-components, react-stately
|
|
1134
896
|
MenuTriggerProps (type, @altertable/data-app-react/ui): = props listed as MenuTrigger.*
|
|
1135
|
-
MessageContext (type, @altertable/data-app/contract)
|
|
1136
|
-
MessageContext.signal: AbortSignal
|
|
1137
|
-
MessageDispatcher (type, @altertable/data-app/contract): = (message: unknown, context: MessageContext) => Promise<unknown>
|
|
1138
|
-
MessageHandlers (type, @altertable/data-app/contract): <Routes> = { [Name in keyof Routes]: (payload: ReturnType<Routes[Name]['input']>, context: MessageContext) => Promise<ReturnType<Routes[Name]['output']>> | ReturnType<...>; }
|
|
1139
|
-
MessageInput (type, @altertable/data-app/contract): <Route> = Route['input'] extends (...args: any) => infer R ? R : any
|
|
1140
|
-
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<...>
|
|
1141
|
-
MessageRoute (type, @altertable/data-app/contract): <Input, Output> = props listed as defineMessageRoute.route.*
|
|
1142
|
-
MessageRoutes (type, @altertable/data-app/contract): = { [x: string]: { input: (value: unknown) => unknown; output: (value: unknown, input: never) => unknown; }; }
|
|
1143
|
-
MessageRoutingError (class, @altertable/data-app/contract): Only these deliberate, public failures cross the message boundary. Other errors stay private.
|
|
1144
|
-
MessageRoutingError.code: string
|
|
1145
|
-
MessageRoutingError.requestId?: string
|
|
1146
|
-
MessageRoutingError.…: plus props inherited from built-in
|
|
1147
|
-
MessageTransport (type, @altertable/data-app/contract): = (message: RoutedMessage, signal?: AbortSignal | undefined) => Promise<unknown>
|
|
1148
897
|
MetricDefinition (type, @altertable/data-app-react)
|
|
1149
898
|
MetricDefinition.id: string
|
|
1150
899
|
MetricDefinition.label: string
|
|
@@ -1221,24 +970,6 @@ MultiChoiceVariable.valid: (value: readonly string[]) => boolean
|
|
|
1221
970
|
MultiChoiceVariable.same: (left: readonly string[], right: readonly string[]) => boolean
|
|
1222
971
|
MultiChoiceVariable.options: readonly ChoiceOption[]
|
|
1223
972
|
MultiChoiceVariable.maxSelected: number
|
|
1224
|
-
NavigationUpdate (type, @altertable/data-app/contract)
|
|
1225
|
-
NavigationUpdate.search: string
|
|
1226
|
-
NavigationUpdate.hash: string
|
|
1227
|
-
NavigationUpdate.mode: HistoryMode
|
|
1228
|
-
NavigationUpdate.title?: string
|
|
1229
|
-
navigationUpdateRoute (const, @altertable/data-app/contract): MessageRoute<NavigationUpdate, null>
|
|
1230
|
-
navigationUpdateRoute.input: (value: unknown) => NavigationUpdate
|
|
1231
|
-
navigationUpdateRoute.output: (value: unknown, input: NavigationUpdate) => null
|
|
1232
|
-
normalizeAppearance (function, @altertable/data-app/appearance): (value: AppearanceOptions): AppearanceSettings — Resolve typed app settings without repeating authoring checks at runtime.
|
|
1233
|
-
normalizeAppearance.value.theme?: ThemePreference
|
|
1234
|
-
normalizeAppearance.value.baseColor?: 'neutral' | 'slate' | 'warm' — Palette for surfaces, text, and borders; independent of the accent.
|
|
1235
|
-
normalizeAppearance.value.accentColor?: string — Emphasis color for checked controls and selected dates; options use the base palette.
|
|
1236
|
-
normalizeAppearance.value.darkAccentColor?: string
|
|
1237
|
-
normalizeAppearance.value.chartColors?: string[]
|
|
1238
|
-
normalizeAppearance.value.density?: 'comfortable' | 'compact' | 'spacious'
|
|
1239
|
-
normalizeAppearance.value.cornerRadius?: 'large' | 'medium' | 'none' | 'small'
|
|
1240
|
-
normalizeAppearance.value.elevation?: 'flat' | 'raised' | 'subtle'
|
|
1241
|
-
normalizeAppearance.value.typography?: Partial<{ body: string; heading: string; }>
|
|
1242
973
|
NumberField (component, @altertable/data-app-react/ui): (props: NumberFieldProps) — Localized numeric entry. Empty input is null rather than zero.
|
|
1243
974
|
NumberField.label: string
|
|
1244
975
|
NumberField.value: number | null
|
|
@@ -1284,18 +1015,12 @@ NumberSelection.value: number [variant 2 of 3]
|
|
|
1284
1015
|
NumberSelection.kind: 'range' [variant 3 of 3]
|
|
1285
1016
|
NumberSelection.min?: number [variant 3 of 3]
|
|
1286
1017
|
NumberSelection.max?: number [variant 3 of 3]
|
|
1287
|
-
OperationContext (type, @altertable/data-app/contract)
|
|
1288
|
-
OperationContext.lakehouse: Lakehouse
|
|
1289
|
-
OperationContext.signal: AbortSignal
|
|
1290
|
-
OperationContext.queryParams?: Readonly<Record<string, QueryParameterValue>>
|
|
1291
|
-
OperationContracts (type, @altertable/data-app/contract): = { [x: string]: { input: (value: unknown) => unknown; }; }
|
|
1292
1018
|
OperationDefinition (type, @altertable/data-app/contract): <Input, Output, Queries> — Infer operation data from run().
|
|
1293
1019
|
OperationDefinition.input: (value: unknown) => Input
|
|
1294
1020
|
OperationDefinition.checks: readonly [Input, ...Input[]]
|
|
1295
1021
|
OperationDefinition.policy: { maxQueryRows: number; maxDurationMs: number; maxResponseBytes?: number | undefined; }
|
|
1296
1022
|
OperationDefinition.run: (context: Pick<OperationContext, 'signal'> & { query: RegisteredQuery<NoInfer<Queries>>; }, input: Input) => Promise<...>
|
|
1297
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.
|
|
1298
|
-
parseAppearance (function, @altertable/data-app/appearance): (value: unknown): AppearanceSettings — Preserve supported external settings and use defaults for invalid fields.
|
|
1299
1024
|
parseBooleanSelection (function, @altertable/data-app/contract): (value: unknown, filter: BooleanFilter): BooleanSelection
|
|
1300
1025
|
parseBooleanSelection.filter.kind: 'booleanFilter'
|
|
1301
1026
|
parseBooleanSelection.filter.label: string
|
|
@@ -1310,7 +1035,6 @@ parseBooleanSelection.filter.write: (value: BooleanSelection) => Record<string,
|
|
|
1310
1035
|
parseBooleanSelection.filter.valid: (value: BooleanSelection) => boolean
|
|
1311
1036
|
parseBooleanSelection.filter.same: (left: BooleanSelection, right: BooleanSelection) => boolean
|
|
1312
1037
|
parseCount (function, @altertable/data-app/contract): (value: unknown): number — Accepts numeric strings from DuckDB; rejects negative, fractional, and unsafe integers.
|
|
1313
|
-
parseDataAppAnnotationDraft (function, @altertable/data-app/contract): (value: unknown): DataAppAnnotationDraft — Reconstruct at the boundary; discard extra fields and bound the entire JSON payload.
|
|
1314
1038
|
parseDateRangeInput (function, @altertable/data-app/contract): (value: unknown, options: {…}): DateRange — Validate calendar dates and a bounded inclusive range on the server.
|
|
1315
1039
|
parseDateRangeInput.options.minDate?: string
|
|
1316
1040
|
parseDateRangeInput.options.maxDate?: string
|
|
@@ -1407,14 +1131,14 @@ PresentStory.headerActions?: ReactNode
|
|
|
1407
1131
|
PresentStory.footer?: ReactNode
|
|
1408
1132
|
PresentStory.…: plus props inherited from React
|
|
1409
1133
|
PresentStoryProps (type, @altertable/data-app-react/ui): = props listed as PresentStory.*
|
|
1410
|
-
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.
|
|
1411
1135
|
previousDateRange.options.start: string
|
|
1412
1136
|
previousDateRange.options.end: string
|
|
1413
|
-
QueryDefinitions (type, @altertable/data-app, @altertable/data-app/
|
|
1414
|
-
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)
|
|
1415
1139
|
QueryField.type: keyof QueryValues
|
|
1416
1140
|
QueryField.nullable?: boolean
|
|
1417
|
-
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.
|
|
1418
1142
|
QueryParameter.type: 'boolean' [variants 1, 5 of 8]
|
|
1419
1143
|
QueryParameter.nullable?: false [variants 1, 2, 3, 4 of 8]
|
|
1420
1144
|
QueryParameter.defaultValue?: boolean [variant 1 of 8]
|
|
@@ -1429,14 +1153,14 @@ QueryParameter.defaultValue?: boolean | null [variant 5 of 8]
|
|
|
1429
1153
|
QueryParameter.defaultValue?: number | null [variant 7 of 8]
|
|
1430
1154
|
QueryParameter.defaultValue?: string | null [variant 8 of 8]
|
|
1431
1155
|
QueryParameters (type, @altertable/data-app/contract): <Record<string, QueryParameterValue>> = { readonly [x: string]: QueryParameterValue; } — Parameters are scalar SQL values, never identifiers or SQL fragments.
|
|
1432
|
-
QueryParameterValue (type, @altertable/data-app, @altertable/data-app/
|
|
1433
|
-
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; }
|
|
1434
1158
|
QueryResult (type, @altertable/data-app/contract): <Row> — Lakehouse results contain positional unknown cells; registered queries supply decoded records.
|
|
1435
1159
|
QueryResult.columns: { name: string; type?: string | undefined; }[]
|
|
1436
1160
|
QueryResult.rows: Row[]
|
|
1437
1161
|
QueryResult.queryId?: string
|
|
1438
|
-
QueryRow (type, @altertable/data-app, @altertable/data-app/
|
|
1439
|
-
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.
|
|
1440
1164
|
Radio (component, @altertable/data-app-react/ui): (props: RadioProps)
|
|
1441
1165
|
Radio.className?: string
|
|
1442
1166
|
Radio.…: plus props inherited from @react-types/shared, React, react-aria, react-aria-components
|
|
@@ -1457,7 +1181,7 @@ RankingItem.label: ReactNode
|
|
|
1457
1181
|
RankingItem.value: number
|
|
1458
1182
|
RankingItem.detail?: ReactNode
|
|
1459
1183
|
RankingProps (type, @altertable/data-app-react): = props listed as Ranking.*
|
|
1460
|
-
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,…
|
|
1461
1185
|
ReportingPeriod (type, @altertable/data-app/contract, @altertable/data-app-react)
|
|
1462
1186
|
ReportingPeriod.kind: 'rolling' [variant 1 of 2]
|
|
1463
1187
|
ReportingPeriod.amount: number [variant 1 of 2]
|
|
@@ -1466,9 +1190,6 @@ ReportingPeriod.end: string
|
|
|
1466
1190
|
ReportingPeriod.kind: 'calendar' [variant 2 of 2]
|
|
1467
1191
|
ReportingPeriod.start: string [variant 2 of 2]
|
|
1468
1192
|
ReportingPeriod.timeZone: string [variant 2 of 2]
|
|
1469
|
-
RequestAccess (type, @altertable/data-app/server): Authorization result for one viewer request. A hosted adapter must scope its lakehouse client.
|
|
1470
|
-
RequestAccess.lakehouse: Lakehouse
|
|
1471
|
-
RequestAccess.queryParams?: Readonly<Record<string, QueryParameterValue>> — Trusted values shared across queries; each query uses only its declared keys.
|
|
1472
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.
|
|
1473
1194
|
RetentionChart.ariaLabel: string — Accessible measure and scope description.
|
|
1474
1195
|
RetentionChart.unit: string — Population unit, such as users or sessions.
|
|
@@ -1487,9 +1208,6 @@ RetentionChartSeries.id: string — Unique, nonblank cohort or segment ID.
|
|
|
1487
1208
|
RetentionChartSeries.label: string
|
|
1488
1209
|
RetentionChartSeries.cohortSize: number — Finite, nonnegative starting population.
|
|
1489
1210
|
RetentionChartSeries.points: readonly RetentionChartPoint[]
|
|
1490
|
-
RoutedMessage (type, @altertable/data-app/contract)
|
|
1491
|
-
RoutedMessage.route: string
|
|
1492
|
-
RoutedMessage.payload: unknown
|
|
1493
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.
|
|
1494
1212
|
ScatterChart.items: readonly ScatterChartItem[]
|
|
1495
1213
|
ScatterChart.xLabel: string
|
|
@@ -1613,16 +1331,6 @@ Select.id?: string
|
|
|
1613
1331
|
Select.className?: string
|
|
1614
1332
|
Select.align?: 'end' | 'start' — Align the popup with the selection button. Defaults to start.
|
|
1615
1333
|
SelectProps (type, @altertable/data-app-react/ui): = props listed as Select.*
|
|
1616
|
-
serveAppFile (function, @altertable/data-app-bun/preview): (options: AppFilePreviewOptions): Promise<AppFilePreview> — Preview a single-file app in the hosted sandbox. Requires the Bun runtime.
|
|
1617
|
-
serveAppFile.options.file: string — Absolute path to the app source.
|
|
1618
|
-
serveAppFile.options.port?: number — Localhost port. Use 0 to select an available port. Defaults to 25837.
|
|
1619
|
-
serveAppFile.options.lakehouse: Lakehouse — Server-only query backend; the caller owns credentials and profile selection.
|
|
1620
|
-
serveAppFile.options.resolveDependency?: ((specifier: string) => string) — Override data-app and React import resolution, such as for checkout development.
|
|
1621
|
-
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.
|
|
1622
|
-
serveLocalApp.options.page: HTMLBundle
|
|
1623
|
-
serveLocalApp.options.operations: DataOperations
|
|
1624
|
-
serveLocalApp.options.title: string
|
|
1625
|
-
serveLocalApp.options.port?: number
|
|
1626
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.
|
|
1627
1335
|
Sheet.open: boolean
|
|
1628
1336
|
Sheet.onOpenChange: (open: boolean) => void
|
|
@@ -1641,21 +1349,11 @@ Skeleton (component, @altertable/data-app-react): (props: SkeletonProps) — Dec
|
|
|
1641
1349
|
Skeleton.inline?: boolean — Align a text-sized placeholder with surrounding prose.
|
|
1642
1350
|
Skeleton.…: plus props inherited from React
|
|
1643
1351
|
SkeletonProps (type, @altertable/data-app-react): = props listed as Skeleton.*
|
|
1644
|
-
SqlQueryInput (type, @altertable/data-app/contract)
|
|
1645
|
-
SqlQueryInput.statement: string
|
|
1646
|
-
SqlQueryInput.limit: number
|
|
1647
|
-
SqlQueryInput.params?: Readonly<Record<string, QueryParameterValue>>
|
|
1648
|
-
sqlQueryRoute (const, @altertable/data-app/contract): MessageRoute<SqlQueryInput, QueryResult> — SQL delivery for browser-owned operations. Hosts must enforce backend access and resource limits.
|
|
1649
|
-
sqlQueryRoute.input: (value: unknown) => SqlQueryInput
|
|
1650
|
-
sqlQueryRoute.output: (value: unknown, input: SqlQueryInput) => QueryResult
|
|
1651
1352
|
Stack (component, @altertable/data-app-react): (props: StackProps) — Vertical layout for peer sections or request boundaries, with the page's section gap.
|
|
1652
1353
|
Stack.children: ReactNode
|
|
1653
1354
|
Stack.gap?: 'lg' | 'md' | 'sm'
|
|
1654
1355
|
Stack.…: plus props inherited from React
|
|
1655
1356
|
StackProps (type, @altertable/data-app-react): = props listed as Stack.*
|
|
1656
|
-
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.
|
|
1657
|
-
startDataAppBootstrap.options.parentOrigin: string
|
|
1658
|
-
startDataAppBootstrap.options.window?: Window
|
|
1659
1357
|
StoryFinding (type, @altertable/data-app-react/ui): One consequential, inspectable finding from the displayed result.
|
|
1660
1358
|
StoryFinding.id: string
|
|
1661
1359
|
StoryFinding.headline: string
|
|
@@ -1663,7 +1361,7 @@ StoryFinding.context?: string
|
|
|
1663
1361
|
StoryFinding.visual: ReactNode
|
|
1664
1362
|
StoryFinding.visualKind?: 'chart' | 'metric'
|
|
1665
1363
|
StoryFinding.evidence: MetricDefinition | WidgetEvidence
|
|
1666
|
-
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>)
|
|
1667
1365
|
Tab.…: plus props inherited from @react-types/shared, React, react-aria-components
|
|
1668
1366
|
TableIdentifier (type, @altertable/data-app-react)
|
|
1669
1367
|
TableIdentifier.catalog: string
|
|
@@ -1730,11 +1428,11 @@ TableWidgetSearch.mode?: 'fuzzy' | 'literal' — Literal filtering preserves sou
|
|
|
1730
1428
|
TableWidgetSearch.fuzzyThreshold?: number
|
|
1731
1429
|
TabList (component, @altertable/data-app-react/ui): <T>(props: TabListProps<T> & RefAttributes<HTMLDivElement>)
|
|
1732
1430
|
TabList.…: plus props inherited from @react-types/shared, React, react-aria-components
|
|
1733
|
-
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>)
|
|
1734
1432
|
TabPanel.…: plus props inherited from @react-types/shared, React, react-aria, react-aria-components
|
|
1735
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.
|
|
1736
1434
|
TabPanels.props.…: plus props inherited from @react-types/shared, React, react-aria-components
|
|
1737
|
-
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>)
|
|
1738
1436
|
Tabs.…: plus props inherited from @react-types/shared, React, react-aria, react-aria-components, react-stately
|
|
1739
1437
|
TextContent (component, @altertable/data-app-react): (props: TextContentProps) — Prose typography for page introductions, widget bodies, and inspection content.
|
|
1740
1438
|
TextContent.…: plus props inherited from React
|
|
@@ -1775,11 +1473,7 @@ TextWidget.children: ReactNode [variant 2 of 2]
|
|
|
1775
1473
|
TextWidget.…: plus props inherited from React
|
|
1776
1474
|
TextWidgetProps (type, @altertable/data-app-react): <Data, Input, Row> = props listed as TextWidget.*
|
|
1777
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.
|
|
1778
|
-
Theme (type, @altertable/data-app/appearance): = 'dark' | 'light' —
|
|
1779
|
-
ThemeController (type, @altertable/data-app/appearance)
|
|
1780
|
-
ThemeController.getTheme: () => ThemePreference
|
|
1781
|
-
ThemeController.setTheme: (theme: ThemePreference) => void
|
|
1782
|
-
ThemeController.subscribe: (listener: () => void) => () => void
|
|
1476
|
+
Theme (type, @altertable/data-app/appearance): = 'dark' | 'light' — Appearance configured by app authors.
|
|
1783
1477
|
ThemePreference (type, @altertable/data-app/appearance): = 'system' | Theme
|
|
1784
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.
|
|
1785
1479
|
Tooltip.content: ReactNode
|
|
@@ -1796,9 +1490,6 @@ TooltipProvider.children: ReactNode
|
|
|
1796
1490
|
TooltipProvider.delay?: number
|
|
1797
1491
|
TooltipProvider.skipDelayDuration?: number
|
|
1798
1492
|
TooltipProviderProps (type, @altertable/data-app-react, @altertable/data-app-react/ui): = props listed as TooltipProvider.*
|
|
1799
|
-
TransportResponse (type, @altertable/data-app/contract): <Body> — Delivery envelope shared by HTTP and iframe transports.
|
|
1800
|
-
TransportResponse.status: number
|
|
1801
|
-
TransportResponse.body: Body
|
|
1802
1493
|
UpdatedAt (component, @altertable/data-app-react): (props: UpdatedAtProps)
|
|
1803
1494
|
UpdatedAt.timestamp: number
|
|
1804
1495
|
UpdatedAt.locale?: string
|
|
@@ -1813,14 +1504,12 @@ UpdatedAt.onOpenChange?: ((open: boolean) => void)
|
|
|
1813
1504
|
UpdatedAt.timeZone?: string
|
|
1814
1505
|
UpdatedAtProps (type, @altertable/data-app-react): = props listed as UpdatedAt.*
|
|
1815
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.
|
|
1816
|
-
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.
|
|
1817
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.
|
|
1818
1508
|
useDateFormatting.options.locale?: string
|
|
1819
1509
|
useDateFormatting.options.timeZone?: string
|
|
1820
1510
|
useDetailNavigation (hook, @altertable/data-app-react): (): DetailNavigation — Resolve a detail target from an interaction. The destination validates input before fetching.
|
|
1821
1511
|
useSvgId (hook, @altertable/data-app-react/ui): (): string — Stable React ID for SVG definitions and their URL references; safe with identifier prefixes.
|
|
1822
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.
|
|
1823
|
-
validateLakehouseCredentials (function, @altertable/data-app-bun): (environment: Record<string, string | undefined>): void — Throw an actionable startup error when the selected lakehouse credentials are missing.
|
|
1824
1513
|
VariableBar (component, @altertable/data-app-react/ui): (props: VariableBarProps) — User-controlled inputs below the page header.
|
|
1825
1514
|
VariableBar.children: ReactNode
|
|
1826
1515
|
VariableBar.…: plus props inherited from React
|