@altertable/data-app 0.70.0 → 0.72.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (291) hide show
  1. package/AGENTS.md +7 -1
  2. package/CONTRIBUTING.md +73 -33
  3. package/README.md +23 -26
  4. package/REFERENCE.md +1904 -0
  5. package/dist/chunks/index-5a27erdg.js +54 -0
  6. package/dist/chunks/index-5a27erdg.js.map +10 -0
  7. package/dist/chunks/{index-58kks6a8.js → index-9yxr7nmm.js} +330 -21
  8. package/dist/chunks/index-9yxr7nmm.js.map +17 -0
  9. package/dist/chunks/{index-wjt6cavj.js → index-j5q5n3ra.js} +5 -5
  10. package/dist/chunks/index-j5q5n3ra.js.map +10 -0
  11. package/dist/chunks/{index-22d576sn.js → index-q75zm3a7.js} +3 -3
  12. package/dist/chunks/{index-22d576sn.js.map → index-q75zm3a7.js.map} +3 -3
  13. package/dist/chunks/{index-9zqbrv2z.js → index-vhaec7m5.js} +4 -6
  14. package/dist/chunks/index-vhaec7m5.js.map +10 -0
  15. package/dist/chunks/{index-q1w84fv9.js → index-zp78caex.js} +345 -84
  16. package/dist/chunks/index-zp78caex.js.map +19 -0
  17. package/dist/client/index.js +284 -16
  18. package/dist/client/index.js.map +7 -3
  19. package/dist/core/appearance.js +181 -11
  20. package/dist/core/appearance.js.map +4 -3
  21. package/dist/core/config.js +3 -3
  22. package/dist/core/contract.js +10 -12
  23. package/dist/core/contract.js.map +1 -1
  24. package/dist/core/format.js +1 -1
  25. package/dist/index.js +4 -4
  26. package/dist/index.js.map +1 -1
  27. package/dist/internal.js +418 -0
  28. package/dist/internal.js.map +15 -0
  29. package/dist/server/index.js +102 -0
  30. package/dist/server/index.js.map +10 -0
  31. package/dist/types/client/annotations.d.ts +1 -1
  32. package/dist/types/client/iframe.d.ts +6 -6
  33. package/dist/types/client/index.d.ts +3 -4
  34. package/dist/types/client/location.d.ts +2 -2
  35. package/dist/types/client/logger.d.ts +1 -1
  36. package/dist/types/client/navigation.d.ts +1 -1
  37. package/dist/types/client/transport.d.ts +1 -1
  38. package/dist/types/core/bridge.d.ts +1 -1
  39. package/dist/types/core/config.d.ts +8 -9
  40. package/dist/types/core/filters.d.ts +1 -1
  41. package/dist/types/core/format.d.ts +1 -2
  42. package/dist/types/core/messages.d.ts +3 -3
  43. package/dist/types/core/operation-types.d.ts +1 -1
  44. package/dist/types/core/presentation.d.ts +1 -1
  45. package/dist/types/core/reading.d.ts +1 -1
  46. package/dist/types/internal.d.ts +22 -0
  47. package/dist/types/server/index.d.ts +1 -2
  48. package/docs/app-authoring.md +18 -1
  49. package/docs/client.md +1 -1
  50. package/docs/contract.md +1 -1
  51. package/docs/data-context.md +3 -3
  52. package/docs/embed.md +4 -4
  53. package/docs/formatting-and-appearance.md +1 -1
  54. package/docs/hosted-apps.md +16 -8
  55. package/docs/local-data-apps.md +1 -1
  56. package/docs/react-embed.md +7 -6
  57. package/docs/react.md +6 -6
  58. package/docs/server-bun.md +6 -6
  59. package/docs/stories-and-export.md +3 -3
  60. package/docs/styling.md +2 -2
  61. package/docs/ui.md +6 -6
  62. package/docs/views.md +2 -2
  63. package/docs/widgets.md +4 -4
  64. package/docs/worker.md +4 -4
  65. package/package.json +15 -92
  66. package/THIRD_PARTY_NOTICES +0 -18
  67. package/dist/chunks/index-2ajhmsc4.js +0 -355
  68. package/dist/chunks/index-2ajhmsc4.js.map +0 -13
  69. package/dist/chunks/index-58kks6a8.js.map +0 -13
  70. package/dist/chunks/index-7q99hf1z.js +0 -87
  71. package/dist/chunks/index-7q99hf1z.js.map +0 -10
  72. package/dist/chunks/index-9zqbrv2z.js.map +0 -10
  73. package/dist/chunks/index-cv36cyna.js +0 -180
  74. package/dist/chunks/index-cv36cyna.js.map +0 -10
  75. package/dist/chunks/index-q1w84fv9.js.map +0 -15
  76. package/dist/chunks/index-rew95tbg.js +0 -272
  77. package/dist/chunks/index-rew95tbg.js.map +0 -13
  78. package/dist/chunks/index-vtpygsbq.js +0 -17270
  79. package/dist/chunks/index-vtpygsbq.js.map +0 -126
  80. package/dist/chunks/index-wjt6cavj.js.map +0 -10
  81. package/dist/chunks/index-wss3gd3h.js +0 -319
  82. package/dist/chunks/index-wss3gd3h.js.map +0 -13
  83. package/dist/chunks/index-xzb7sx6g.js +0 -221
  84. package/dist/chunks/index-xzb7sx6g.js.map +0 -12
  85. package/dist/embed/index.js +0 -138
  86. package/dist/embed/index.js.map +0 -12
  87. package/dist/local.js +0 -465
  88. package/dist/local.js.map +0 -16
  89. package/dist/preview.js +0 -1456
  90. package/dist/preview.js.map +0 -17
  91. package/dist/react/embed/index.js +0 -117
  92. package/dist/react/embed/index.js.map +0 -10
  93. package/dist/react/index.js +0 -2890
  94. package/dist/react/index.js.map +0 -23
  95. package/dist/react/ui/index.js +0 -3514
  96. package/dist/react/ui/index.js.map +0 -36
  97. package/dist/server.js +0 -334
  98. package/dist/server.js.map +0 -15
  99. package/dist/types/core/time-interval.d.ts +0 -96
  100. package/dist/types/embed/bootstrap.d.ts +0 -5
  101. package/dist/types/embed/bridge.d.ts +0 -12
  102. package/dist/types/embed/host.d.ts +0 -36
  103. package/dist/types/embed/index.d.ts +0 -14
  104. package/dist/types/embed/navigation.d.ts +0 -6
  105. package/dist/types/embed/runtime-html.d.ts +0 -2
  106. package/dist/types/embed/source.d.ts +0 -16
  107. package/dist/types/embed/sql.d.ts +0 -4
  108. package/dist/types/react/actions.d.ts +0 -53
  109. package/dist/types/react/annotations/AnnotationBar.d.ts +0 -30
  110. package/dist/types/react/annotations/AnnotationControls.d.ts +0 -10
  111. package/dist/types/react/annotations/AnnotationEditor.d.ts +0 -16
  112. package/dist/types/react/annotations/AnnotationMarkers.d.ts +0 -19
  113. package/dist/types/react/annotations/AnnotationSelectionLayer.d.ts +0 -12
  114. package/dist/types/react/annotations/AnnotationTarget.d.ts +0 -9
  115. package/dist/types/react/annotations/AnnotationTooltip.d.ts +0 -9
  116. package/dist/types/react/annotations/AnnotationTrigger.d.ts +0 -10
  117. package/dist/types/react/annotations/annotation-editor-state.d.ts +0 -58
  118. package/dist/types/react/annotations/annotation-screenshot.d.ts +0 -4
  119. package/dist/types/react/annotations/annotation-targets.d.ts +0 -34
  120. package/dist/types/react/annotations/getAnnotationProps.d.ts +0 -17
  121. package/dist/types/react/annotations/styles.d.ts +0 -3
  122. package/dist/types/react/annotations/useAnnotationGeometry.d.ts +0 -22
  123. package/dist/types/react/annotations/useDataAppAnnotations.d.ts +0 -22
  124. package/dist/types/react/app-context.d.ts +0 -3
  125. package/dist/types/react/bindings.d.ts +0 -169
  126. package/dist/types/react/content.d.ts +0 -36
  127. package/dist/types/react/date-formatting.d.ts +0 -12
  128. package/dist/types/react/details.d.ts +0 -46
  129. package/dist/types/react/embed/bridge.d.ts +0 -21
  130. package/dist/types/react/embed/index.d.ts +0 -7
  131. package/dist/types/react/exploration.d.ts +0 -44
  132. package/dist/types/react/hooks.d.ts +0 -113
  133. package/dist/types/react/index.d.ts +0 -78
  134. package/dist/types/react/injectStyles.d.ts +0 -7
  135. package/dist/types/react/mount.d.ts +0 -13
  136. package/dist/types/react/search-suggestions.d.ts +0 -8
  137. package/dist/types/react/source-owner.d.ts +0 -2
  138. package/dist/types/react/style-contract.d.ts +0 -88
  139. package/dist/types/react/style-validation.d.ts +0 -2
  140. package/dist/types/react/styles.d.ts +0 -8
  141. package/dist/types/react/ui/AboutData.d.ts +0 -73
  142. package/dist/types/react/ui/AltertableLogo.d.ts +0 -3
  143. package/dist/types/react/ui/AppFooter.d.ts +0 -6
  144. package/dist/types/react/ui/AppHeader.d.ts +0 -10
  145. package/dist/types/react/ui/AppLayout.d.ts +0 -10
  146. package/dist/types/react/ui/AppScope.d.ts +0 -7
  147. package/dist/types/react/ui/AppToolbar.d.ts +0 -30
  148. package/dist/types/react/ui/AreaChart.d.ts +0 -7
  149. package/dist/types/react/ui/BarChart.d.ts +0 -6
  150. package/dist/types/react/ui/Breakdown.d.ts +0 -13
  151. package/dist/types/react/ui/Button.d.ts +0 -12
  152. package/dist/types/react/ui/ChartLegend.d.ts +0 -32
  153. package/dist/types/react/ui/Checkbox.d.ts +0 -21
  154. package/dist/types/react/ui/CheckboxGroup.d.ts +0 -7
  155. package/dist/types/react/ui/ChoicePicker.d.ts +0 -39
  156. package/dist/types/react/ui/Comparison.d.ts +0 -14
  157. package/dist/types/react/ui/ComposedChart.d.ts +0 -41
  158. package/dist/types/react/ui/ComposedChartLegend.d.ts +0 -9
  159. package/dist/types/react/ui/ContentSkeleton.d.ts +0 -7
  160. package/dist/types/react/ui/DataApp.d.ts +0 -24
  161. package/dist/types/react/ui/DataAppFrame.d.ts +0 -52
  162. package/dist/types/react/ui/DataBoundary.d.ts +0 -14
  163. package/dist/types/react/ui/DataSection.d.ts +0 -14
  164. package/dist/types/react/ui/DataSectionBoundary.d.ts +0 -30
  165. package/dist/types/react/ui/DataTable.d.ts +0 -29
  166. package/dist/types/react/ui/DataValue.d.ts +0 -9
  167. package/dist/types/react/ui/DataViewToast.d.ts +0 -11
  168. package/dist/types/react/ui/DataWidget.d.ts +0 -37
  169. package/dist/types/react/ui/DateDisplay.d.ts +0 -9
  170. package/dist/types/react/ui/DateRangePicker.d.ts +0 -30
  171. package/dist/types/react/ui/DateTimeTooltip.d.ts +0 -10
  172. package/dist/types/react/ui/DimensionPicker.d.ts +0 -13
  173. package/dist/types/react/ui/EmptyState.d.ts +0 -6
  174. package/dist/types/react/ui/ExplorationActionControl.d.ts +0 -60
  175. package/dist/types/react/ui/ExportControl.d.ts +0 -4
  176. package/dist/types/react/ui/FilterActions.d.ts +0 -10
  177. package/dist/types/react/ui/FilterBar.d.ts +0 -3
  178. package/dist/types/react/ui/FunnelChart.d.ts +0 -20
  179. package/dist/types/react/ui/GettingStarted.d.ts +0 -6
  180. package/dist/types/react/ui/GlossaryDefinition.d.ts +0 -7
  181. package/dist/types/react/ui/GlossaryExplanation.d.ts +0 -16
  182. package/dist/types/react/ui/GradientScroll.d.ts +0 -23
  183. package/dist/types/react/ui/Grid.d.ts +0 -12
  184. package/dist/types/react/ui/GridItem.d.ts +0 -7
  185. package/dist/types/react/ui/HelpPopover.d.ts +0 -21
  186. package/dist/types/react/ui/IconButton.d.ts +0 -19
  187. package/dist/types/react/ui/InspectionContext.d.ts +0 -12
  188. package/dist/types/react/ui/InspectionProvider.d.ts +0 -29
  189. package/dist/types/react/ui/JourneyChart.d.ts +0 -10
  190. package/dist/types/react/ui/Kbd.d.ts +0 -7
  191. package/dist/types/react/ui/LineChart.d.ts +0 -7
  192. package/dist/types/react/ui/LiveControl.d.ts +0 -10
  193. package/dist/types/react/ui/Menu.d.ts +0 -13
  194. package/dist/types/react/ui/MetricWidget.d.ts +0 -51
  195. package/dist/types/react/ui/NumberField.d.ts +0 -27
  196. package/dist/types/react/ui/NumberFilterPicker.d.ts +0 -11
  197. package/dist/types/react/ui/PeriodSummary.d.ts +0 -17
  198. package/dist/types/react/ui/PickerField.d.ts +0 -23
  199. package/dist/types/react/ui/PieChart.d.ts +0 -11
  200. package/dist/types/react/ui/PopoverSurface.d.ts +0 -5
  201. package/dist/types/react/ui/PresentStory.d.ts +0 -30
  202. package/dist/types/react/ui/QueryList.d.ts +0 -14
  203. package/dist/types/react/ui/RadioGroup.d.ts +0 -18
  204. package/dist/types/react/ui/Ranking.d.ts +0 -13
  205. package/dist/types/react/ui/RefreshControl.d.ts +0 -9
  206. package/dist/types/react/ui/RequestHint.d.ts +0 -20
  207. package/dist/types/react/ui/RetentionChart.d.ts +0 -27
  208. package/dist/types/react/ui/ScatterChart.d.ts +0 -17
  209. package/dist/types/react/ui/SearchField.d.ts +0 -23
  210. package/dist/types/react/ui/SearchInput.d.ts +0 -10
  211. package/dist/types/react/ui/SearchMatch.d.ts +0 -6
  212. package/dist/types/react/ui/SearchTypeahead.d.ts +0 -15
  213. package/dist/types/react/ui/SectionHeading.d.ts +0 -8
  214. package/dist/types/react/ui/Select.d.ts +0 -22
  215. package/dist/types/react/ui/SelectionMark.d.ts +0 -5
  216. package/dist/types/react/ui/Sheet.d.ts +0 -21
  217. package/dist/types/react/ui/Skeleton.d.ts +0 -8
  218. package/dist/types/react/ui/Stack.d.ts +0 -7
  219. package/dist/types/react/ui/StaticDataApp.d.ts +0 -4
  220. package/dist/types/react/ui/StatusPanel.d.ts +0 -10
  221. package/dist/types/react/ui/TableWidget.d.ts +0 -67
  222. package/dist/types/react/ui/Tabs.d.ts +0 -10
  223. package/dist/types/react/ui/TextContent.d.ts +0 -4
  224. package/dist/types/react/ui/TextWidget.d.ts +0 -20
  225. package/dist/types/react/ui/ThemeSelector.d.ts +0 -12
  226. package/dist/types/react/ui/Toast.d.ts +0 -8
  227. package/dist/types/react/ui/Tooltip.d.ts +0 -23
  228. package/dist/types/react/ui/TooltipSurface.d.ts +0 -3
  229. package/dist/types/react/ui/TrendChart.d.ts +0 -5
  230. package/dist/types/react/ui/UpdatedAt.d.ts +0 -9
  231. package/dist/types/react/ui/VariableBar.d.ts +0 -6
  232. package/dist/types/react/ui/VisualizationWidget.d.ts +0 -43
  233. package/dist/types/react/ui/WidgetDisclosure.d.ts +0 -6
  234. package/dist/types/react/ui/WidgetEvidence.d.ts +0 -12
  235. package/dist/types/react/ui/WidgetViewTabs.d.ts +0 -16
  236. package/dist/types/react/ui/chart-data.d.ts +0 -36
  237. package/dist/types/react/ui/chart-date-axis.d.ts +0 -15
  238. package/dist/types/react/ui/chart-interaction.d.ts +0 -27
  239. package/dist/types/react/ui/chart-primitives.d.ts +0 -22
  240. package/dist/types/react/ui/chart-time.d.ts +0 -19
  241. package/dist/types/react/ui/chartColor.d.ts +0 -2
  242. package/dist/types/react/ui/classNames.d.ts +0 -1
  243. package/dist/types/react/ui/csv-export.d.ts +0 -19
  244. package/dist/types/react/ui/data-context.d.ts +0 -76
  245. package/dist/types/react/ui/data-identifiers.d.ts +0 -32
  246. package/dist/types/react/ui/icons.d.ts +0 -49
  247. package/dist/types/react/ui/index.d.ts +0 -111
  248. package/dist/types/react/ui/journey-flow.d.ts +0 -49
  249. package/dist/types/react/ui/keyboard.d.ts +0 -6
  250. package/dist/types/react/ui/metric-comparison.d.ts +0 -30
  251. package/dist/types/react/ui/metric.d.ts +0 -11
  252. package/dist/types/react/ui/presentation.d.ts +0 -25
  253. package/dist/types/react/ui/search.d.ts +0 -6
  254. package/dist/types/react/ui/searchItems.d.ts +0 -36
  255. package/dist/types/react/ui/shortcuts.d.ts +0 -45
  256. package/dist/types/react/ui/story.d.ts +0 -20
  257. package/dist/types/react/ui/use-chart-scroll-to-end.d.ts +0 -2
  258. package/dist/types/react/ui/useAppAppearance.d.ts +0 -3
  259. package/dist/types/react/ui/useDataAppPresentation.d.ts +0 -3
  260. package/dist/types/react/ui/useSvgId.d.ts +0 -2
  261. package/dist/types/react/ui/variables.d.ts +0 -38
  262. package/dist/types/react/ui/widget-views.d.ts +0 -3
  263. package/dist/types/react/view-control-bar.d.ts +0 -18
  264. package/dist/types/react/view-controls.d.ts +0 -20
  265. package/dist/types/react/view-runtime.d.ts +0 -34
  266. package/dist/types/react/view.d.ts +0 -87
  267. package/dist/types/react/widgets.d.ts +0 -90
  268. package/dist/types/server/local.d.ts +0 -19
  269. package/dist/types/server/preview/host.d.ts +0 -1
  270. package/dist/types/server/preview/index.d.ts +0 -16
  271. package/dist/types/server/reload-channel.d.ts +0 -6
  272. package/dist/worker.js +0 -106
  273. package/examples/starter-data-app/index.tsx +0 -193
  274. package/examples/starter-local-data-app/.bun-version +0 -1
  275. package/examples/starter-local-data-app/.node-version +0 -1
  276. package/examples/starter-local-data-app/.oxfmtrc.json +0 -4
  277. package/examples/starter-local-data-app/.oxlintrc.json +0 -33
  278. package/examples/starter-local-data-app/AGENTS.md +0 -22
  279. package/examples/starter-local-data-app/README.md +0 -54
  280. package/examples/starter-local-data-app/app.ts +0 -28
  281. package/examples/starter-local-data-app/bunfig.toml +0 -2
  282. package/examples/starter-local-data-app/package.json +0 -33
  283. package/examples/starter-local-data-app/src/App.tsx +0 -8
  284. package/examples/starter-local-data-app/src/assets.d.ts +0 -1
  285. package/examples/starter-local-data-app/src/data-context.ts +0 -21
  286. package/examples/starter-local-data-app/src/favicon.svg +0 -13
  287. package/examples/starter-local-data-app/src/index.html +0 -14
  288. package/examples/starter-local-data-app/src/main.tsx +0 -7
  289. package/examples/starter-local-data-app/src/operations.ts +0 -6
  290. package/examples/starter-local-data-app/src/server.ts +0 -6
  291. package/examples/starter-local-data-app/tsconfig.json +0 -21
@@ -8,7 +8,7 @@ export declare function createIframeTransport({ parentOrigin, window: frame, tim
8
8
  mode?: 'url' | 'bundle';
9
9
  loadScript?: (javascript: string) => void;
10
10
  }): {
11
- logger: import(".").DataAppLogger;
11
+ logger: import("./index.js").DataAppLogger;
12
12
  request: (message: RoutedMessage, signal?: AbortSignal) => Promise<unknown>;
13
13
  transport: (operation: string, input: unknown, signal?: AbortSignal) => Promise<TransportResponse>;
14
14
  lakehouse: {
@@ -16,8 +16,8 @@ export declare function createIframeTransport({ parentOrigin, window: frame, tim
16
16
  limit: number;
17
17
  signal: AbortSignal;
18
18
  name?: string;
19
- params?: import("../core/contract.js").QueryParameters;
20
- }): Promise<import("../core/contract.js").QueryResult>;
19
+ params?: import("../core/queries.js").QueryParameters;
20
+ }): Promise<import("../core/operation-types.js").QueryResult>;
21
21
  };
22
22
  dispose: () => void;
23
23
  mode: "bundle" | "url";
@@ -37,7 +37,7 @@ export declare function localFrameBridge(window?: Window): LocalBridge | undefin
37
37
  export declare function installDataAppTransport(bridge: ReturnType<typeof createIframeTransport>, frame?: Window): () => void;
38
38
  /** The bootstrap installs this before executing app code. URL apps can install an explicit connection. */
39
39
  export declare function getDataAppTransport(frame?: Window): {
40
- logger: import(".").DataAppLogger;
40
+ logger: import("./index.js").DataAppLogger;
41
41
  request: (message: RoutedMessage, signal?: AbortSignal) => Promise<unknown>;
42
42
  transport: (operation: string, input: unknown, signal?: AbortSignal) => Promise<TransportResponse>;
43
43
  lakehouse: {
@@ -45,8 +45,8 @@ export declare function getDataAppTransport(frame?: Window): {
45
45
  limit: number;
46
46
  signal: AbortSignal;
47
47
  name?: string;
48
- params?: import("../core/contract.js").QueryParameters;
49
- }): Promise<import("../core/contract.js").QueryResult>;
48
+ params?: import("../core/queries.js").QueryParameters;
49
+ }): Promise<import("../core/operation-types.js").QueryResult>;
50
50
  };
51
51
  dispose: () => void;
52
52
  mode: "bundle" | "url";
@@ -3,12 +3,11 @@
3
3
  * @module @altertable/data-app/client
4
4
  * @see https://github.com/altertable-ai/data-app/blob/main/docs/client.md
5
5
  */
6
- export { createDataClient } from './data-client.js';
7
- export type { InputOf, OutputOf, DataResponse, DataClient, DataClientOptions, } from './data-client.js';
8
- export type { DataAppLocation, AppLocation } from './location.js';
6
+ export { createDataClient, type InputOf, type OutputOf, type DataResponse, type DataClient, type DataClientOptions, } from './data-client.js';
7
+ export { type DataAppLocation, type AppLocation } from './location.js';
9
8
  export { createDataAppNavigation, getDataAppNavigation, type DataAppNavigation, } from './navigation.js';
10
9
  export { createHttpTransport, DataAppError, type DataTransport, } from './transport.js';
11
10
  export { createIframeTransport, installDataAppTransport, getDataAppTransport, type IframeTransport, } from './iframe.js';
12
11
  export { createMessageClient } from './messages.js';
13
- export type { DataAppLogger } from '../core/logger.js';
12
+ export { type DataAppLogger } from '../core/logger.js';
14
13
  export { createAnnotationClient } from './annotations.js';
@@ -1,5 +1,5 @@
1
- import type { AppLocation, HistoryMode } from '../core/navigation.js';
2
- export type { AppLocation } from '../core/navigation.js';
1
+ import { type AppLocation, type HistoryMode } from '../core/navigation.js';
2
+ export { type AppLocation } from '../core/navigation.js';
3
3
  export type DataAppLocation = {
4
4
  snapshot(): AppLocation;
5
5
  subscribe(listener: () => void): () => void;
@@ -1,4 +1,4 @@
1
- import type { BridgeDiagnostic } from '../core/bridge.js';
1
+ import { type BridgeDiagnostic } from '../core/bridge.js';
2
2
  import { type DataAppLogger, type LogEntry } from '../core/logger.js';
3
3
  /** Lazy arguments run in the iframe; only resolved values cross the bridge. */
4
4
  export declare function createBridgeLogger(enabled: () => boolean, send: (entry: LogEntry) => void): DataAppLogger;
@@ -1,4 +1,4 @@
1
- import type { HistoryMode } from '../core/navigation.js';
1
+ import { type HistoryMode } from '../core/navigation.js';
2
2
  import { type DataAppLocation } from './location.js';
3
3
  import { type IframeTransport } from './iframe.js';
4
4
  export type DataAppNavigation = DataAppLocation & {
@@ -1,4 +1,4 @@
1
- import type { TransportResponse } from '../core/bridge.js';
1
+ import { type TransportResponse } from '../core/bridge.js';
2
2
  export type DataTransport = (operation: string, input: unknown, signal?: AbortSignal) => Promise<TransportResponse>;
3
3
  declare const errorBrand: unique symbol;
4
4
  export declare class DataAppError extends Error {
@@ -5,7 +5,7 @@ export declare const PARENT_PARAM = "__altertable_parent";
5
5
  * The host enforces its own limit because frames can send messages directly. */
6
6
  export declare const MAX_PENDING = 128;
7
7
  export declare const REQUEST_TIMEOUT_MS = 60000;
8
- export type { TransportResponse } from './operation-types.js';
8
+ export { type TransportResponse } from './operation-types.js';
9
9
  export declare function validId(value: unknown): value is string;
10
10
  type Fields = Record<string, unknown>;
11
11
  export type BridgeRole = 'host' | 'app';
@@ -46,15 +46,14 @@ export type DataAppDefinition<Queries extends QueryDefinitions = QueryDefinition
46
46
  * The app owns an immutable snapshot of its registry; later input mutations do not change it.
47
47
  * This declaration does not execute queries or mount UI. Static apps use `queries: {}`.
48
48
  *
49
- * Declare exactly one module-level const initialized with `defineDataApp({ ... })` in the app's
50
- * declaration source. For the future backend extractor, the argument is read before bundling
51
- * by resolving the named `defineDataApp` import from `@altertable/data-app`, including aliases.
52
- * Variable name is arbitrary;
53
- * export only for imports by other modules. The argument must be a direct object literal
54
- * containing schema-valid objects, arrays, strings (including templates without interpolation),
55
- * finite signed numbers, booleans, and null. No spreads, computed keys, references, calls,
56
- * or callbacks inside it. Extraction must validate data without evaluating app code.
57
- * TypeScript checks the shape, not AST syntax. Keep executable composition outside the call.
49
+ * Declare the app once at module scope using the named import from `@altertable/data-app`.
50
+ * Import aliases are allowed. Prefer a `const` initializer; top-level variable
51
+ * initializers, default exports, and standalone calls are supported.
52
+ * Use literal objects, arrays, strings (including templates without interpolation),
53
+ * finite signed numbers, booleans, and null. Parentheses, `as`, and `satisfies` are
54
+ * allowed. Keep executable composition outside the call; omit spreads, computed keys,
55
+ * references, and callbacks. Extraction reads literals without executing app code.
56
+ * TypeScript and runtime query rules own configuration validation.
58
57
  *
59
58
  * SQL passes unchanged to the backend, which interprets placeholders such as `$orgId`.
60
59
  * Declare each parameter's type and optional defaultValue.
@@ -1,4 +1,4 @@
1
- import type { AppVariable, HistoryMode, VariablePresentation } from './variables.js';
1
+ import { type AppVariable, type HistoryMode, type VariablePresentation } from './variables.js';
2
2
  export type NumberOperator = 'eq' | 'ne' | 'gt' | 'gte' | 'lt' | 'lte';
3
3
  export type NumberSelection = {
4
4
  kind: 'all';
@@ -1,6 +1,5 @@
1
1
  import { type DateFormatOptions } from './date-format.js';
2
- export { formatDate, formatDateTime, formatTime, parseDateTime, } from './date-format.js';
3
- export type { DateFormat, DateFormatOptions, DateTimeFormatOptions, } from './date-format.js';
2
+ export { formatDate, formatDateTime, formatTime, parseDateTime, type DateFormat, type DateFormatOptions, type DateTimeFormatOptions, } from './date-format.js';
4
3
  /**
5
4
  * Date and number formatting with explicit units and missing-value behavior.
6
5
  * @module @altertable/data-app/format
@@ -1,8 +1,8 @@
1
1
  import { type QueryParameters } from './queries.js';
2
- import type { TransportResponse, QueryResult, OperationContracts, DataQueryInput, DataQueryBody, OutputOf } from './operation-types.js';
3
- export type { OperationContracts, DataQueryInput, DataQueryBody, } from './operation-types.js';
2
+ import { type TransportResponse, type QueryResult, type OperationContracts, type DataQueryInput, type DataQueryBody, type OutputOf } from './operation-types.js';
3
+ export { type OperationContracts, type DataQueryInput, type DataQueryBody, } from './operation-types.js';
4
4
  import { type NavigationUpdate } from './navigation.js';
5
- export type { NavigationUpdate } from './navigation.js';
5
+ export { type NavigationUpdate } from './navigation.js';
6
6
  export type MessageContext = {
7
7
  signal: AbortSignal;
8
8
  };
@@ -1,5 +1,5 @@
1
1
  /** Shared operation, query, and response contracts; independent of delivery adapters. */
2
- import type { QueryParameters } from './queries.js';
2
+ import { type QueryParameters } from './queries.js';
3
3
  export type OperationContracts = Record<string, {
4
4
  input: (value: unknown) => unknown;
5
5
  }>;
@@ -1,5 +1,5 @@
1
1
  import { type DataAppAnnotationPresentation } from './annotations.js';
2
- import type { Theme } from './appearance.js';
2
+ import { type Theme } from './appearance.js';
3
3
  /** Presentation owned by the parent shell, delivered only over a trusted bridge. */
4
4
  export type DataAppPresentation = {
5
5
  surface: 'embedded' | 'standalone';
@@ -1,4 +1,4 @@
1
- import type { DateRangeRequest } from './contract.js';
1
+ import { type DateRangeRequest } from './contract.js';
2
2
  export type DataReading<Value> = {
3
3
  loading: true;
4
4
  value?: never;
@@ -0,0 +1,22 @@
1
+ /** Shared implementation for the coordinated data-app packages; not an app authoring API. */
2
+ export { downloadBlob } from './client/download.js';
3
+ export { localFrameBridge } from './client/iframe.js';
4
+ export { createBridgeEndpoint } from './core/bridge-endpoint.js';
5
+ export { type BridgeDiagnostic, type BridgeEventMessage, MAX_PENDING, PARENT_PARAM, REQUEST_TIMEOUT_MS, validId, } from './core/bridge.js';
6
+ export { type DataView, type DisplayedSnapshot, displayedSnapshot, resolveDataView, } from './core/data-view.js';
7
+ export { type DatePreset, type DatePresetId, type DateRange, availableDatePresets, inclusiveDays, withinBounds, } from './core/date-range.js';
8
+ export { type DimensionFilterSettings, type DimensionValue, dimensionMemberKey, } from './core/dimension.js';
9
+ export { numberOperatorLabels } from './core/filters.js';
10
+ export { invariant } from './core/invariant.js';
11
+ export { toDataOperationFailure } from './core/operation.js';
12
+ export { type DataAppPresentation, isDataAppPresentation, } from './core/presentation.js';
13
+ export { type DataReading, type MetricReading, type MetricValues, } from './core/reading.js';
14
+ export { randomUuid } from './core/uuid.js';
15
+ export { type AppVariable, type AppVariableValues, type ChoiceOption, type ChoiceVariable, type DateRangeSelection, type DateRangeVariable, type DateRangeVariableOptions, type HistoryMode, type MultiChoiceVariable, type SearchVariable, type VariableCollection, type VariablePresentation, choiceVariable, dateRangeVariable, defineAppVariables, multiChoiceVariable, searchVariable, validateChoiceOptions, } from './core/variables.js';
16
+ export { RequestBodyTooLargeError, readRequestBody, } from './server/request-body.js';
17
+ export { KEY_SEPARATOR } from './core/keys.js';
18
+ export { type CheckedFacetContexts, type CheckedVariableDeclarations, } from './core/variables.js';
19
+ export { type IsUnion } from './core/queries.js';
20
+ export { facetSource, type FacetVariable } from './core/facets.js';
21
+ export { createDimensionFilter, type DimensionSelectionVariable, } from './core/dimension.js';
22
+ export { dimensionSource, type SourceDimensionVariable, } from './core/dimension-source.js';
@@ -3,5 +3,4 @@
3
3
  * @module @altertable/data-app/server
4
4
  * @see https://github.com/altertable-ai/data-app/blob/main/docs/server.md
5
5
  */
6
- export { createDataHandler } from './handler.js';
7
- export type { RequestAccess } from './handler.js';
6
+ export { createDataHandler, type RequestAccess } from './handler.js';
@@ -42,6 +42,22 @@ Choose the execution path:
42
42
  | Data app (hosted / remote / cloud) | [Single-file authoring](hosted-apps.md) |
43
43
  | Local data app | [Local authoring](local-data-apps.md) |
44
44
 
45
+ ### Use release-matched starters
46
+
47
+ Install `@altertable/data-app-examples` at the same exact version as
48
+ `@altertable/data-app`. Use its installed templates when authoring an app:
49
+
50
+ - Hosted app: `node_modules/@altertable/data-app-examples/templates/starter-data-app/index.tsx`.
51
+ - Local app: `node_modules/@altertable/data-app-examples/templates/starter-local-data-app`.
52
+ Use `copyExample()` from the examples package to copy the local starter and
53
+ restore its `.gitignore`; see the installed examples package's README.
54
+
55
+ Browse the latest [hosted starter](https://github.com/altertable-ai/data-app/blob/main/packages/data-app-examples/templates/starter-data-app/index.tsx)
56
+ and [local starter](https://github.com/altertable-ai/data-app/tree/main/packages/data-app-examples/templates/starter-local-data-app)
57
+ on GitHub. These browsing links track `main`; the installed templates match your SDK release.
58
+
59
+ ### Compose the app
60
+
45
61
  Lead with a supported finding and expose the relevant fields as filter variables. Use a date filter for questions worth exploring over time,
46
62
  or a fixed period snapshot for a deliberate historical analysis.
47
63
 
@@ -76,6 +92,7 @@ refresh, and failure.
76
92
  | Export displayed data as CSV | [CSV export](stories-and-export.md#export-displayed-data-as-csv) |
77
93
  | Render widgets and custom visuals | [Widgets](widgets.md) |
78
94
  | Bind definitions and source evidence | [Data context](data-context.md#bind-evidence) |
95
+ | Look up props, signatures, and types | [API reference](../REFERENCE.md) |
79
96
 
80
97
  Declare reusable [datasets and metrics](widgets.md#declare-datasets-and-metrics)
81
98
  on the view so tables, exports, and stories share values and evidence.
@@ -89,7 +106,7 @@ Use the [standard layout](layout.md) and built-in toolbar actions.
89
106
  ### Organize the exploration
90
107
 
91
108
  Use sections for a focused question and for findings users should compare
92
- side by side. Add app-level `<Tabs>` from `/react/ui` when the exploration has
109
+ side by side. Add app-level `<Tabs>` from `@altertable/data-app-react/ui` when the exploration has
93
110
  distinct analytical questions, such as Overview, Retention, and Segments, each
94
111
  with its own context and group of widgets. Lead with the most useful overview
95
112
  and label tabs by the question or subject they explore.
package/docs/client.md CHANGED
@@ -37,7 +37,7 @@ See [contracts](contract.md), [server handlers](server.md), and
37
37
 
38
38
  ## Browser-owned operations for bundle apps
39
39
 
40
- Start with the complete [single-file example](../examples/starter-data-app/index.tsx)
40
+ Start with the complete [single-file example](app-authoring.md#use-release-matched-starters)
41
41
  and [data app authoring guide](hosted-apps.md).
42
42
  Bundle apps pass their operation registry as a value:
43
43
 
package/docs/contract.md CHANGED
@@ -113,7 +113,7 @@ import {
113
113
  defineMessageRoute,
114
114
  navigationUpdateRoute,
115
115
  } from '@altertable/data-app/contract';
116
- import { createNavigationHandler } from '@altertable/data-app/embed';
116
+ import { createNavigationHandler } from '@altertable/data-app-embed';
117
117
 
118
118
  const routes = {
119
119
  'demo:echo': defineMessageRoute({ input: parseString, output: parseString }),
@@ -12,12 +12,12 @@ to their execution evidence. Keep all three explicit.
12
12
 
13
13
  ## Register source identifiers
14
14
 
15
- Use `defineDataIdentifiers()` from `/react` to register exact catalog, schema,
15
+ Use `defineDataIdentifiers()` from `@altertable/data-app-react` to register exact catalog, schema,
16
16
  table, and field names. Use `<DataIdentifier>` in descriptions and glossary
17
17
  entries to render those source references consistently.
18
18
 
19
19
  ```tsx
20
- import { defineDataIdentifiers } from '@altertable/data-app/react';
20
+ import { defineDataIdentifiers } from '@altertable/data-app-react';
21
21
 
22
22
  const identifiers = defineDataIdentifiers({
23
23
  tables: {
@@ -85,7 +85,7 @@ const finding = context.finding({
85
85
 
86
86
  Query inspection shows the executed SQL and resolved parameters; copy actions include both.
87
87
 
88
- Import context and identifier factories from `/react`. Use the operation’s derived `queryNames` for evidence.
88
+ Import context and identifier factories from `@altertable/data-app-react`. Use the operation’s derived `queryNames` for evidence.
89
89
 
90
90
  Use `view.metric(definition, select)` to register and bind a metric in one call.
91
91
  Declare dataset evidence references inside `view.dataset()`; the view registers
package/docs/embed.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Embed a data app
2
2
 
3
- Import framework-neutral host APIs from `@altertable/data-app/embed`. For React
3
+ Import framework-neutral host APIs from `@altertable/data-app-embed`. For React
4
4
  hosts, see [React embedding](react-embed.md). Neither embedding entry requires the
5
5
  app UI stylesheet.
6
6
 
@@ -10,7 +10,7 @@ app UI stylesheet.
10
10
  message delivery. The host supplies an iframe and a validated message dispatcher:
11
11
 
12
12
  ```ts
13
- import { attachDataAppBridge } from '@altertable/data-app/embed';
13
+ import { attachDataAppBridge } from '@altertable/data-app-embed';
14
14
 
15
15
  const host = attachDataAppBridge({
16
16
  iframe,
@@ -59,7 +59,7 @@ For other hosts that own their HTML and security policy, bundle this initializer
59
59
  into the bootstrap document before any app code:
60
60
 
61
61
  ```ts
62
- import { startDataAppBootstrap } from '@altertable/data-app/embed';
62
+ import { startDataAppBootstrap } from '@altertable/data-app-embed';
63
63
 
64
64
  const dispose = startDataAppBootstrap({
65
65
  parentOrigin: 'https://host.example.com',
@@ -121,7 +121,7 @@ import {
121
121
  createMessageRouter,
122
122
  sqlQueryRoute,
123
123
  } from '@altertable/data-app/contract';
124
- import { createSqlQueryHandler } from '@altertable/data-app/embed';
124
+ import { createSqlQueryHandler } from '@altertable/data-app-embed';
125
125
 
126
126
  const router = createMessageRouter(
127
127
  { 'data:sql': sqlQueryRoute },
@@ -35,7 +35,7 @@ formatCount(2_200_000); // "2,200,000"
35
35
  For signed or fractional measures, use `formatNumber()` with
36
36
  `notation: 'compact'` and preserve the measure's units.
37
37
 
38
- Import `chartColor()` from `/react` to select colors from the configured palette.
38
+ Import `chartColor()` from `@altertable/data-app-react` to select colors from the configured palette.
39
39
  `<PeriodSummary>` describes reporting periods; `<UpdatedAt>` and
40
40
  `<DateTimeTooltip>` expose readable timestamps with exact-date details.
41
41
  `<DataTableTimestamp>` and `<DataTableShare>` format custom table cells.
@@ -1,27 +1,35 @@
1
1
  # Author a data app
2
2
 
3
- Follow the [shared authoring flow](app-authoring.md) using [index.tsx](../examples/starter-data-app/index.tsx) for a hosted / remote / cloud data app. Keep the app in
3
+ Follow the [shared authoring flow](app-authoring.md) using [index.tsx](app-authoring.md#use-release-matched-starters) for a hosted / remote / cloud data app. Keep the app in
4
4
  one file with public package imports; omit server files, HTML, credentials, and
5
5
  relative or app-alias imports.
6
6
 
7
- Declare exactly one top-level const initialized with `defineDataApp({ ... })`, imported
8
- from `@altertable/data-app`. Keep executable composition outside its literal argument.
9
- For the future backend extractor, use schema-valid literals without spreads, computed keys,
10
- references, calls, or template interpolation. Extraction will read and validate the argument
11
- before bundling, without evaluating app code or parsing SQL. Import aliases and any variable
12
- name are allowed; export only for other modules. Static apps use `queries: {}`.
7
+ Declare the app once at module scope with the named `defineDataApp` import from
8
+ `@altertable/data-app`. Prefer `const app = defineDataApp({ ... })`; import aliases
9
+ and any variable name are allowed. Export only for other modules.
10
+
11
+ Keep the argument literal: objects, arrays, strings (including templates without
12
+ interpolation), finite signed numbers, booleans, and null. Parentheses, `as`, and
13
+ `satisfies` are allowed. Keep executable composition outside the call; omit spreads,
14
+ computed keys, references, and callbacks. Static apps use `queries: {}`.
15
+ TypeScript checks configuration shape. Static extraction reads the literal data
16
+ without executing app code or interpreting SQL.
13
17
 
14
18
  Replace the sample app declaration, operations, filters, data context, CSV export, and story with
15
19
  an exploration of the source data you inspected. The starter uses two SQL
16
20
  `VALUES` rows, so it needs no production table.
17
21
 
22
+ `defineDataApp()` requires `scope`, and `<DataApp>` from `/react` requires
23
+ `story` and `datasets`; the [API reference](../REFERENCE.md) marks every
24
+ optional prop with `?`.
25
+
18
26
  For execution details, see [browser-owned operations](client.md#browser-owned-operations-for-bundle-apps).
19
27
 
20
28
  ## Convert a local data app
21
29
 
22
30
  1. Combine the app's operations and parsers, data context, views, story,
23
31
  CSV export, app declaration, and browser entry into one `index.tsx`, following the
24
- [single-file starter](../examples/starter-data-app/index.tsx).
32
+ [single-file starter](app-authoring.md#use-release-matched-starters).
25
33
  2. Replace the HTTP client with `createDataClient({ operations })`, using the
26
34
  operation registry as a value. See [browser-owned operations](client.md#browser-owned-operations-for-bundle-apps)
27
35
  for execution through the host.
@@ -1,6 +1,6 @@
1
1
  # Author a local data app
2
2
 
3
- Start from the CLI scaffold or the [local starter](https://github.com/altertable-ai/data-app/tree/main/examples/starter-local-data-app).
3
+ Start from the CLI scaffold or the [local starter](app-authoring.md#use-release-matched-starters).
4
4
  Use the starter's README for setup and its AGENTS.md to find app-owned files.
5
5
  Replace the connectivity screen with the exploration, CSV export, and story from the
6
6
  [shared authoring flow](app-authoring.md).
@@ -1,8 +1,9 @@
1
1
  # React embedding
2
2
 
3
- Import `<DataAppBridge>` from `@altertable/data-app/react/embed`. This entry depends
3
+ Import `<DataAppBridge>` from `@altertable/data-app-embed/react`. This entry depends
4
4
  on React and the embedding engine, and does not load the app's widgets, React
5
- Query, or CSS.
5
+ Query, or CSS. `@altertable/data-app-react` builds the UI inside the iframe;
6
+ neither package imports the other. Both use the base package's contracts.
6
7
 
7
8
  The bridge owns iframe setup and `postMessage()` communication. The consuming
8
9
  frontend or CLI owns its shell: fetching a bundle, subscriptions, layout, loading
@@ -16,8 +17,8 @@ only the iframe; it adds no loading, error, or retry UI and does not hide the fr
16
17
 
17
18
  ```tsx
18
19
  import { useReducer, useState } from 'react';
19
- import { DataAppBridge } from '@altertable/data-app/react/embed';
20
- import type { DataAppStatus } from '@altertable/data-app/embed';
20
+ import { DataAppBridge } from '@altertable/data-app-embed/react';
21
+ import type { DataAppStatus } from '@altertable/data-app-embed';
21
22
 
22
23
  function Shell() {
23
24
  const [status, setStatus] = useState<DataAppStatus>('connecting');
@@ -69,7 +70,7 @@ owns a loaded iframe and its security policy:
69
70
 
70
71
  ```tsx
71
72
  import { useState, type ComponentRef } from 'react';
72
- import { DataAppBridge } from '@altertable/data-app/react/embed';
73
+ import { DataAppBridge } from '@altertable/data-app-embed/react';
73
74
 
74
75
  function Host() {
75
76
  const [iframe, setIframe] = useState<ComponentRef<'iframe'> | null>(null);
@@ -95,7 +96,7 @@ are mutually exclusive.
95
96
  ## Loading an embedded app
96
97
 
97
98
  The host owns loading and generation UI while an app starts. Use a neutral
98
- status that does not imply a particular app layout. `/react/embed` remains
99
+ status that does not imply a particular app layout. `@altertable/data-app-embed/react` remains
99
100
  independent of UI components and styles. Once the app loads, its query and
100
101
  widget loading states describe the content they replace.
101
102
 
package/docs/react.md CHANGED
@@ -1,16 +1,16 @@
1
1
  # React
2
2
 
3
- Import hooks, components, and UI helpers from `@altertable/data-app/react`.
3
+ Import hooks, components, and UI helpers from `@altertable/data-app-react`.
4
4
  React 19.2 or newer and React DOM 19.2 or newer are peer dependencies.
5
5
 
6
6
  ## Mount the app
7
7
 
8
8
  Use `mountDataApp({ app, component })` to mount into `#root`. When mounting
9
- through another framework, wrap the root in `<DataAppProvider app={app}>` from `/react/ui`.
9
+ through another framework, wrap the root in `<DataAppProvider app={app}>` from `@altertable/data-app-react/ui`.
10
10
  `<DataApp>` inherits identity and appearance from that root.
11
11
 
12
12
  ```tsx
13
- import { injectDataAppStyles, mountDataApp } from '@altertable/data-app/react';
13
+ import { injectDataAppStyles, mountDataApp } from '@altertable/data-app-react';
14
14
 
15
15
  injectDataAppStyles();
16
16
  mountDataApp({ app, component: App });
@@ -20,8 +20,8 @@ Call `injectDataAppStyles()` before mounting; no separate stylesheet is needed.
20
20
  For a restrictive CSP, pass the permitted nonce on the first call.
21
21
  See [Styling](styling.md) for appearance, CSS tokens, and overrides.
22
22
 
23
- Use `/react` for declared views, bound widgets, and layouts. Use
24
- [`/react/ui`](ui.md) for setup/static screens and direct UI composition.
23
+ Use `@altertable/data-app-react` for declared views, bound widgets, and layouts. Use
24
+ [`@altertable/data-app-react/ui`](ui.md) for setup/static screens and direct UI composition.
25
25
 
26
26
  ## Choose a task
27
27
 
@@ -37,4 +37,4 @@ Use `/react` for declared views, bound widgets, and layouts. Use
37
37
  | Host an iframe from React | [React embed](react-embed.md) |
38
38
 
39
39
  Start with [app authoring](app-authoring.md) and the
40
- [single-file starter](../examples/starter-data-app/index.tsx).
40
+ [single-file starter](app-authoring.md#use-release-matched-starters).
@@ -1,14 +1,14 @@
1
1
  # Local Bun server
2
2
 
3
3
  Use this Bun server for local data apps. Start from the CLI scaffold or
4
- [local data app starter](https://github.com/altertable-ai/data-app/tree/main/examples/starter-local-data-app).
4
+ [local data app starter](app-authoring.md#use-release-matched-starters).
5
5
 
6
6
  Import `serveLocalApp()` and `localLakehouse()` from
7
- `@altertable/data-app/server/bun`. This entry requires Bun; install `@types/bun`
7
+ `@altertable/data-app-bun`. This entry requires Bun; install `@types/bun`
8
8
  when typechecking a Bun app.
9
9
 
10
10
  ```ts
11
- import { serveLocalApp } from '@altertable/data-app/server/bun';
11
+ import { serveLocalApp } from '@altertable/data-app-bun';
12
12
  import page from './index.html';
13
13
  import { operations } from './operations';
14
14
 
@@ -30,13 +30,13 @@ hosting an app for other people.
30
30
 
31
31
  ## Preview a single-file app
32
32
 
33
- Import `serveAppFile()` from `@altertable/data-app/server/bun/preview` to preview
33
+ Import `serveAppFile()` from `@altertable/data-app-bun/preview` to preview
34
34
  an app in the hosted sandbox. The caller supplies the server-only lakehouse.
35
35
  The runtime owns bundling, imported-file watching, reloads, navigation, and exports.
36
36
 
37
37
  ```ts
38
- import { serveAppFile } from '@altertable/data-app/server/bun/preview';
39
- import { localLakehouse } from '@altertable/data-app/server/bun';
38
+ import { serveAppFile } from '@altertable/data-app-bun/preview';
39
+ import { localLakehouse } from '@altertable/data-app-bun';
40
40
 
41
41
  const preview = await serveAppFile({
42
42
  file: '/absolute/path/index.tsx',
@@ -1,14 +1,14 @@
1
1
  # Stories and CSV export
2
2
 
3
- Every `<DataApp>` from `/react` supplies both `story` and `datasets`, derived from
3
+ Every `<DataApp>` from `@altertable/data-app-react` supplies both `story` and `datasets`, derived from
4
4
  the displayed snapshot. Story and export selectors do not run before a result is available.
5
- Setup and static screens use `<DataApp>` from `/react/ui`; they may omit both
5
+ Setup and static screens use `<DataApp>` from `@altertable/data-app-react/ui`; they may omit both
6
6
  or pass a direct `CsvExport` object.
7
7
 
8
8
  ## Present data with stories
9
9
 
10
10
  Set `story` on `<DataApp>` to enable **Present story** in the toolbar.
11
- For custom shells, `/react/ui` provides `<PresentStory>`; see [direct UI composition](ui.md). Start from the [data app starter](../examples/starter-data-app/index.tsx).
11
+ For custom shells, `@altertable/data-app-react/ui` provides `<PresentStory>`; see [direct UI composition](ui.md). Start from the [data app starter](app-authoring.md#use-release-matched-starters).
12
12
 
13
13
  Return one to four findings with a headline, a visual, and registered source
14
14
  evidence. Set `evidence` to the registered dataset or metric binding. The app
package/docs/styling.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Use components and typed props first: `<Stack>` for sections, `<Grid>` for peers,
4
4
  and `<TextContent>` for prose. Standard widgets use [views and bindings](widgets.md);
5
- custom controls and direct widget shells use [`/react/ui`](ui.md).
5
+ custom controls and direct widget shells use [`@altertable/data-app-react/ui`](ui.md).
6
6
 
7
7
  Configure theme, palette, accent, typography, density, radius, and elevation through
8
8
  `app.appearance`; see [appearance](formatting-and-appearance.md). Call
@@ -12,7 +12,7 @@ Configure theme, palette, accent, typography, density, radius, and elevation thr
12
12
 
13
13
  Add app-owned classes through `className`. Render package components rather than copying their classes onto markup;
14
14
  private descendants are not customization hooks. Public names and stable roots
15
- are listed in the [typed contract](https://github.com/altertable-ai/data-app/blob/main/src/react/style-contract.ts).
15
+ are listed in the [typed contract](https://github.com/altertable-ai/data-app/blob/main/packages/data-app-react/src/style-contract.ts).
16
16
 
17
17
  ```css
18
18
  .app-action {
package/docs/ui.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Direct UI composition
2
2
 
3
- Import from `@altertable/data-app/react/ui` for setup/static screens, custom
3
+ Import from `@altertable/data-app-react/ui` for setup/static screens, custom
4
4
  controls, or a deliberately custom shell. Standard data apps use declared views
5
- and bound widgets from `/react`.
5
+ and bound widgets from `@altertable/data-app-react`.
6
6
 
7
7
  `<DataApp>` here renders a static screen and accepts optional direct CSV data.
8
8
  Direct widget forms accept local values or rows. `<DataWidget>` supplies a generic
@@ -30,7 +30,7 @@ styles.
30
30
 
31
31
  ## Keyboard actions
32
32
 
33
- Use `isPlainKeyEvent()` from `/react/ui` in custom key handlers so local actions
33
+ Use `isPlainKeyEvent()` from `@altertable/data-app-react/ui` in custom key handlers so local actions
34
34
  leave shortcut modifiers and IME composition untouched:
35
35
 
36
36
  ```tsx
@@ -91,7 +91,7 @@ markup to single-choice items.
91
91
 
92
92
  Choose a chart using the [visualization guide](widgets.md#choose-a-visualization).
93
93
  Import `<BarChart>`, `<LineChart>`, `<AreaChart>`, `<PieChart>`, or `<ScatterChart>` from
94
- `/react/ui`; `<ComposedChart>` exposes the series primitives for custom plots.
94
+ `@altertable/data-app-react/ui`; `<ComposedChart>` exposes the series primitives for custom plots.
95
95
  Compose the visual inside `<VisualizationWidget dataset={dataset} source={result}>`
96
96
  so rows, loading state, evidence, and inspection come from that dataset.
97
97
  Pass ordered items with unique, nonblank IDs and finite numbers. Bar and pie
@@ -108,7 +108,7 @@ Use `useSvgId()` for stable IDs when composing custom SVG definitions.
108
108
 
109
109
  ### Product analytics charts
110
110
 
111
- Use `<FunnelChart>`, `<RetentionChart>`, and `<JourneyChart>` from `/react/ui`
111
+ Use `<FunnelChart>`, `<RetentionChart>`, and `<JourneyChart>` from `@altertable/data-app-react/ui`
112
112
  inside `<VisualizationWidget>`. Derive inputs from the displayed rows; the
113
113
  binding owns loading, evidence, CSV, and story content. The query owns counting,
114
114
  conversion windows, and cohort definitions; these components visualize results.
@@ -127,7 +127,7 @@ constraints before adapting displayed rows.
127
127
 
128
128
  ### Composed charts
129
129
 
130
- Use `<ComposedChart>` from `/react/ui` for multiple series or mixed marks inside
130
+ Use `<ComposedChart>` from `@altertable/data-app-react/ui` for multiple series or mixed marks inside
131
131
  `<VisualizationWidget>`. Pass the displayed rows and select fields with `dataKey`.
132
132
  `<ComposedChart.Bar>`, `<ComposedChart.Line>`, and `<ComposedChart.Area>` share the
133
133
  standalone charts' themed series primitives; axes, scatter, tooltip, and reference
package/docs/views.md CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  createDataHooks,
9
9
  DataApp,
10
10
  DataSection,
11
- } from '@altertable/data-app/react';
11
+ } from '@altertable/data-app-react';
12
12
  import type { operations } from '#app/operations.ts';
13
13
 
14
14
  const client = createDataClient<typeof operations>();
@@ -41,7 +41,7 @@ to derive their bindings. Other input shapes require typed
41
41
  inside the operation rather than replacing the selections in the view input.
42
42
  The operation and `ActivityWidgets` are app-owned. The bound widgets derive
43
43
  loading content from their source; see [widgets](widgets.md) and the
44
- [complete starter](../examples/starter-data-app/index.tsx). Define
44
+ [complete starter](app-authoring.md#use-release-matched-starters). Define
45
45
  [filters](variables.md), [context and evidence](data-context.md), and
46
46
  [story and datasets](stories-and-export.md) for the app's question.
47
47