@altertable/data-app 0.70.0 → 0.71.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 (277) hide show
  1. package/AGENTS.md +7 -1
  2. package/CONTRIBUTING.md +59 -26
  3. package/README.md +22 -26
  4. package/REFERENCE.md +1900 -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/filters.d.ts +1 -1
  40. package/dist/types/core/format.d.ts +1 -2
  41. package/dist/types/core/messages.d.ts +3 -3
  42. package/dist/types/core/operation-types.d.ts +1 -1
  43. package/dist/types/core/presentation.d.ts +1 -1
  44. package/dist/types/core/reading.d.ts +1 -1
  45. package/dist/types/internal.d.ts +22 -0
  46. package/dist/types/server/index.d.ts +1 -2
  47. package/docs/app-authoring.md +2 -1
  48. package/docs/contract.md +1 -1
  49. package/docs/data-context.md +3 -3
  50. package/docs/embed.md +4 -4
  51. package/docs/formatting-and-appearance.md +1 -1
  52. package/docs/hosted-apps.md +4 -0
  53. package/docs/react-embed.md +7 -6
  54. package/docs/react.md +5 -5
  55. package/docs/server-bun.md +5 -5
  56. package/docs/stories-and-export.md +3 -3
  57. package/docs/styling.md +2 -2
  58. package/docs/ui.md +6 -6
  59. package/docs/views.md +1 -1
  60. package/docs/widgets.md +4 -4
  61. package/docs/worker.md +4 -4
  62. package/examples/starter-data-app/index.tsx +1 -1
  63. package/examples/starter-local-data-app/AGENTS.md +1 -1
  64. package/examples/starter-local-data-app/README.md +12 -10
  65. package/examples/starter-local-data-app/package.json +3 -1
  66. package/examples/starter-local-data-app/src/App.tsx +1 -1
  67. package/examples/starter-local-data-app/src/data-context.ts +1 -1
  68. package/examples/starter-local-data-app/src/main.tsx +1 -1
  69. package/examples/starter-local-data-app/src/server.ts +1 -1
  70. package/package.json +16 -92
  71. package/THIRD_PARTY_NOTICES +0 -18
  72. package/dist/chunks/index-2ajhmsc4.js +0 -355
  73. package/dist/chunks/index-2ajhmsc4.js.map +0 -13
  74. package/dist/chunks/index-58kks6a8.js.map +0 -13
  75. package/dist/chunks/index-7q99hf1z.js +0 -87
  76. package/dist/chunks/index-7q99hf1z.js.map +0 -10
  77. package/dist/chunks/index-9zqbrv2z.js.map +0 -10
  78. package/dist/chunks/index-cv36cyna.js +0 -180
  79. package/dist/chunks/index-cv36cyna.js.map +0 -10
  80. package/dist/chunks/index-q1w84fv9.js.map +0 -15
  81. package/dist/chunks/index-rew95tbg.js +0 -272
  82. package/dist/chunks/index-rew95tbg.js.map +0 -13
  83. package/dist/chunks/index-vtpygsbq.js +0 -17270
  84. package/dist/chunks/index-vtpygsbq.js.map +0 -126
  85. package/dist/chunks/index-wjt6cavj.js.map +0 -10
  86. package/dist/chunks/index-wss3gd3h.js +0 -319
  87. package/dist/chunks/index-wss3gd3h.js.map +0 -13
  88. package/dist/chunks/index-xzb7sx6g.js +0 -221
  89. package/dist/chunks/index-xzb7sx6g.js.map +0 -12
  90. package/dist/embed/index.js +0 -138
  91. package/dist/embed/index.js.map +0 -12
  92. package/dist/local.js +0 -465
  93. package/dist/local.js.map +0 -16
  94. package/dist/preview.js +0 -1456
  95. package/dist/preview.js.map +0 -17
  96. package/dist/react/embed/index.js +0 -117
  97. package/dist/react/embed/index.js.map +0 -10
  98. package/dist/react/index.js +0 -2890
  99. package/dist/react/index.js.map +0 -23
  100. package/dist/react/ui/index.js +0 -3514
  101. package/dist/react/ui/index.js.map +0 -36
  102. package/dist/server.js +0 -334
  103. package/dist/server.js.map +0 -15
  104. package/dist/types/core/time-interval.d.ts +0 -96
  105. package/dist/types/embed/bootstrap.d.ts +0 -5
  106. package/dist/types/embed/bridge.d.ts +0 -12
  107. package/dist/types/embed/host.d.ts +0 -36
  108. package/dist/types/embed/index.d.ts +0 -14
  109. package/dist/types/embed/navigation.d.ts +0 -6
  110. package/dist/types/embed/runtime-html.d.ts +0 -2
  111. package/dist/types/embed/source.d.ts +0 -16
  112. package/dist/types/embed/sql.d.ts +0 -4
  113. package/dist/types/react/actions.d.ts +0 -53
  114. package/dist/types/react/annotations/AnnotationBar.d.ts +0 -30
  115. package/dist/types/react/annotations/AnnotationControls.d.ts +0 -10
  116. package/dist/types/react/annotations/AnnotationEditor.d.ts +0 -16
  117. package/dist/types/react/annotations/AnnotationMarkers.d.ts +0 -19
  118. package/dist/types/react/annotations/AnnotationSelectionLayer.d.ts +0 -12
  119. package/dist/types/react/annotations/AnnotationTarget.d.ts +0 -9
  120. package/dist/types/react/annotations/AnnotationTooltip.d.ts +0 -9
  121. package/dist/types/react/annotations/AnnotationTrigger.d.ts +0 -10
  122. package/dist/types/react/annotations/annotation-editor-state.d.ts +0 -58
  123. package/dist/types/react/annotations/annotation-screenshot.d.ts +0 -4
  124. package/dist/types/react/annotations/annotation-targets.d.ts +0 -34
  125. package/dist/types/react/annotations/getAnnotationProps.d.ts +0 -17
  126. package/dist/types/react/annotations/styles.d.ts +0 -3
  127. package/dist/types/react/annotations/useAnnotationGeometry.d.ts +0 -22
  128. package/dist/types/react/annotations/useDataAppAnnotations.d.ts +0 -22
  129. package/dist/types/react/app-context.d.ts +0 -3
  130. package/dist/types/react/bindings.d.ts +0 -169
  131. package/dist/types/react/content.d.ts +0 -36
  132. package/dist/types/react/date-formatting.d.ts +0 -12
  133. package/dist/types/react/details.d.ts +0 -46
  134. package/dist/types/react/embed/bridge.d.ts +0 -21
  135. package/dist/types/react/embed/index.d.ts +0 -7
  136. package/dist/types/react/exploration.d.ts +0 -44
  137. package/dist/types/react/hooks.d.ts +0 -113
  138. package/dist/types/react/index.d.ts +0 -78
  139. package/dist/types/react/injectStyles.d.ts +0 -7
  140. package/dist/types/react/mount.d.ts +0 -13
  141. package/dist/types/react/search-suggestions.d.ts +0 -8
  142. package/dist/types/react/source-owner.d.ts +0 -2
  143. package/dist/types/react/style-contract.d.ts +0 -88
  144. package/dist/types/react/style-validation.d.ts +0 -2
  145. package/dist/types/react/styles.d.ts +0 -8
  146. package/dist/types/react/ui/AboutData.d.ts +0 -73
  147. package/dist/types/react/ui/AltertableLogo.d.ts +0 -3
  148. package/dist/types/react/ui/AppFooter.d.ts +0 -6
  149. package/dist/types/react/ui/AppHeader.d.ts +0 -10
  150. package/dist/types/react/ui/AppLayout.d.ts +0 -10
  151. package/dist/types/react/ui/AppScope.d.ts +0 -7
  152. package/dist/types/react/ui/AppToolbar.d.ts +0 -30
  153. package/dist/types/react/ui/AreaChart.d.ts +0 -7
  154. package/dist/types/react/ui/BarChart.d.ts +0 -6
  155. package/dist/types/react/ui/Breakdown.d.ts +0 -13
  156. package/dist/types/react/ui/Button.d.ts +0 -12
  157. package/dist/types/react/ui/ChartLegend.d.ts +0 -32
  158. package/dist/types/react/ui/Checkbox.d.ts +0 -21
  159. package/dist/types/react/ui/CheckboxGroup.d.ts +0 -7
  160. package/dist/types/react/ui/ChoicePicker.d.ts +0 -39
  161. package/dist/types/react/ui/Comparison.d.ts +0 -14
  162. package/dist/types/react/ui/ComposedChart.d.ts +0 -41
  163. package/dist/types/react/ui/ComposedChartLegend.d.ts +0 -9
  164. package/dist/types/react/ui/ContentSkeleton.d.ts +0 -7
  165. package/dist/types/react/ui/DataApp.d.ts +0 -24
  166. package/dist/types/react/ui/DataAppFrame.d.ts +0 -52
  167. package/dist/types/react/ui/DataBoundary.d.ts +0 -14
  168. package/dist/types/react/ui/DataSection.d.ts +0 -14
  169. package/dist/types/react/ui/DataSectionBoundary.d.ts +0 -30
  170. package/dist/types/react/ui/DataTable.d.ts +0 -29
  171. package/dist/types/react/ui/DataValue.d.ts +0 -9
  172. package/dist/types/react/ui/DataViewToast.d.ts +0 -11
  173. package/dist/types/react/ui/DataWidget.d.ts +0 -37
  174. package/dist/types/react/ui/DateDisplay.d.ts +0 -9
  175. package/dist/types/react/ui/DateRangePicker.d.ts +0 -30
  176. package/dist/types/react/ui/DateTimeTooltip.d.ts +0 -10
  177. package/dist/types/react/ui/DimensionPicker.d.ts +0 -13
  178. package/dist/types/react/ui/EmptyState.d.ts +0 -6
  179. package/dist/types/react/ui/ExplorationActionControl.d.ts +0 -60
  180. package/dist/types/react/ui/ExportControl.d.ts +0 -4
  181. package/dist/types/react/ui/FilterActions.d.ts +0 -10
  182. package/dist/types/react/ui/FilterBar.d.ts +0 -3
  183. package/dist/types/react/ui/FunnelChart.d.ts +0 -20
  184. package/dist/types/react/ui/GettingStarted.d.ts +0 -6
  185. package/dist/types/react/ui/GlossaryDefinition.d.ts +0 -7
  186. package/dist/types/react/ui/GlossaryExplanation.d.ts +0 -16
  187. package/dist/types/react/ui/GradientScroll.d.ts +0 -23
  188. package/dist/types/react/ui/Grid.d.ts +0 -12
  189. package/dist/types/react/ui/GridItem.d.ts +0 -7
  190. package/dist/types/react/ui/HelpPopover.d.ts +0 -21
  191. package/dist/types/react/ui/IconButton.d.ts +0 -19
  192. package/dist/types/react/ui/InspectionContext.d.ts +0 -12
  193. package/dist/types/react/ui/InspectionProvider.d.ts +0 -29
  194. package/dist/types/react/ui/JourneyChart.d.ts +0 -10
  195. package/dist/types/react/ui/Kbd.d.ts +0 -7
  196. package/dist/types/react/ui/LineChart.d.ts +0 -7
  197. package/dist/types/react/ui/LiveControl.d.ts +0 -10
  198. package/dist/types/react/ui/Menu.d.ts +0 -13
  199. package/dist/types/react/ui/MetricWidget.d.ts +0 -51
  200. package/dist/types/react/ui/NumberField.d.ts +0 -27
  201. package/dist/types/react/ui/NumberFilterPicker.d.ts +0 -11
  202. package/dist/types/react/ui/PeriodSummary.d.ts +0 -17
  203. package/dist/types/react/ui/PickerField.d.ts +0 -23
  204. package/dist/types/react/ui/PieChart.d.ts +0 -11
  205. package/dist/types/react/ui/PopoverSurface.d.ts +0 -5
  206. package/dist/types/react/ui/PresentStory.d.ts +0 -30
  207. package/dist/types/react/ui/QueryList.d.ts +0 -14
  208. package/dist/types/react/ui/RadioGroup.d.ts +0 -18
  209. package/dist/types/react/ui/Ranking.d.ts +0 -13
  210. package/dist/types/react/ui/RefreshControl.d.ts +0 -9
  211. package/dist/types/react/ui/RequestHint.d.ts +0 -20
  212. package/dist/types/react/ui/RetentionChart.d.ts +0 -27
  213. package/dist/types/react/ui/ScatterChart.d.ts +0 -17
  214. package/dist/types/react/ui/SearchField.d.ts +0 -23
  215. package/dist/types/react/ui/SearchInput.d.ts +0 -10
  216. package/dist/types/react/ui/SearchMatch.d.ts +0 -6
  217. package/dist/types/react/ui/SearchTypeahead.d.ts +0 -15
  218. package/dist/types/react/ui/SectionHeading.d.ts +0 -8
  219. package/dist/types/react/ui/Select.d.ts +0 -22
  220. package/dist/types/react/ui/SelectionMark.d.ts +0 -5
  221. package/dist/types/react/ui/Sheet.d.ts +0 -21
  222. package/dist/types/react/ui/Skeleton.d.ts +0 -8
  223. package/dist/types/react/ui/Stack.d.ts +0 -7
  224. package/dist/types/react/ui/StaticDataApp.d.ts +0 -4
  225. package/dist/types/react/ui/StatusPanel.d.ts +0 -10
  226. package/dist/types/react/ui/TableWidget.d.ts +0 -67
  227. package/dist/types/react/ui/Tabs.d.ts +0 -10
  228. package/dist/types/react/ui/TextContent.d.ts +0 -4
  229. package/dist/types/react/ui/TextWidget.d.ts +0 -20
  230. package/dist/types/react/ui/ThemeSelector.d.ts +0 -12
  231. package/dist/types/react/ui/Toast.d.ts +0 -8
  232. package/dist/types/react/ui/Tooltip.d.ts +0 -23
  233. package/dist/types/react/ui/TooltipSurface.d.ts +0 -3
  234. package/dist/types/react/ui/TrendChart.d.ts +0 -5
  235. package/dist/types/react/ui/UpdatedAt.d.ts +0 -9
  236. package/dist/types/react/ui/VariableBar.d.ts +0 -6
  237. package/dist/types/react/ui/VisualizationWidget.d.ts +0 -43
  238. package/dist/types/react/ui/WidgetDisclosure.d.ts +0 -6
  239. package/dist/types/react/ui/WidgetEvidence.d.ts +0 -12
  240. package/dist/types/react/ui/WidgetViewTabs.d.ts +0 -16
  241. package/dist/types/react/ui/chart-data.d.ts +0 -36
  242. package/dist/types/react/ui/chart-date-axis.d.ts +0 -15
  243. package/dist/types/react/ui/chart-interaction.d.ts +0 -27
  244. package/dist/types/react/ui/chart-primitives.d.ts +0 -22
  245. package/dist/types/react/ui/chart-time.d.ts +0 -19
  246. package/dist/types/react/ui/chartColor.d.ts +0 -2
  247. package/dist/types/react/ui/classNames.d.ts +0 -1
  248. package/dist/types/react/ui/csv-export.d.ts +0 -19
  249. package/dist/types/react/ui/data-context.d.ts +0 -76
  250. package/dist/types/react/ui/data-identifiers.d.ts +0 -32
  251. package/dist/types/react/ui/icons.d.ts +0 -49
  252. package/dist/types/react/ui/index.d.ts +0 -111
  253. package/dist/types/react/ui/journey-flow.d.ts +0 -49
  254. package/dist/types/react/ui/keyboard.d.ts +0 -6
  255. package/dist/types/react/ui/metric-comparison.d.ts +0 -30
  256. package/dist/types/react/ui/metric.d.ts +0 -11
  257. package/dist/types/react/ui/presentation.d.ts +0 -25
  258. package/dist/types/react/ui/search.d.ts +0 -6
  259. package/dist/types/react/ui/searchItems.d.ts +0 -36
  260. package/dist/types/react/ui/shortcuts.d.ts +0 -45
  261. package/dist/types/react/ui/story.d.ts +0 -20
  262. package/dist/types/react/ui/use-chart-scroll-to-end.d.ts +0 -2
  263. package/dist/types/react/ui/useAppAppearance.d.ts +0 -3
  264. package/dist/types/react/ui/useDataAppPresentation.d.ts +0 -3
  265. package/dist/types/react/ui/useSvgId.d.ts +0 -2
  266. package/dist/types/react/ui/variables.d.ts +0 -38
  267. package/dist/types/react/ui/widget-views.d.ts +0 -3
  268. package/dist/types/react/view-control-bar.d.ts +0 -18
  269. package/dist/types/react/view-controls.d.ts +0 -20
  270. package/dist/types/react/view-runtime.d.ts +0 -34
  271. package/dist/types/react/view.d.ts +0 -87
  272. package/dist/types/react/widgets.d.ts +0 -90
  273. package/dist/types/server/local.d.ts +0 -19
  274. package/dist/types/server/preview/host.d.ts +0 -1
  275. package/dist/types/server/preview/index.d.ts +0 -16
  276. package/dist/types/server/reload-channel.d.ts +0 -6
  277. package/dist/worker.js +0 -106
@@ -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';
@@ -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';
@@ -76,6 +76,7 @@ refresh, and failure.
76
76
  | Export displayed data as CSV | [CSV export](stories-and-export.md#export-displayed-data-as-csv) |
77
77
  | Render widgets and custom visuals | [Widgets](widgets.md) |
78
78
  | Bind definitions and source evidence | [Data context](data-context.md#bind-evidence) |
79
+ | Look up props, signatures, and types | [API reference](../REFERENCE.md) |
79
80
 
80
81
  Declare reusable [datasets and metrics](widgets.md#declare-datasets-and-metrics)
81
82
  on the view so tables, exports, and stories share values and evidence.
@@ -89,7 +90,7 @@ Use the [standard layout](layout.md) and built-in toolbar actions.
89
90
  ### Organize the exploration
90
91
 
91
92
  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
93
+ side by side. Add app-level `<Tabs>` from `@altertable/data-app-react/ui` when the exploration has
93
94
  distinct analytical questions, such as Overview, Retention, and Segments, each
94
95
  with its own context and group of widgets. Lead with the most useful overview
95
96
  and label tabs by the question or subject they explore.
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.
@@ -15,6 +15,10 @@ Replace the sample app declaration, operations, filters, data context, CSV expor
15
15
  an exploration of the source data you inspected. The starter uses two SQL
16
16
  `VALUES` rows, so it needs no production table.
17
17
 
18
+ `defineDataApp()` requires `scope`, and `<DataApp>` from `/react` requires
19
+ `story` and `datasets`; the [API reference](../REFERENCE.md) marks every
20
+ optional prop with `?`.
21
+
18
22
  For execution details, see [browser-owned operations](client.md#browser-owned-operations-for-bundle-apps).
19
23
 
20
24
  ## Convert a local data app
@@ -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
 
@@ -4,11 +4,11 @@ Use this Bun server for local data apps. Start from the CLI scaffold or
4
4
  [local data app starter](https://github.com/altertable-ai/data-app/tree/main/examples/starter-local-data-app).
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](../examples/starter-data-app/index.tsx).
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>();
package/docs/widgets.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  ## Choose a widget
4
4
 
5
- Metrics, tables, and visualizations from `/react` consume view bindings and a source. For static displays, use
5
+ Metrics, tables, and visualizations from `@altertable/data-app-react` consume view bindings and a source. For static displays, use
6
6
  [direct UI composition](ui.md).
7
7
  Manage requests in the [view and section](views.md); show skeletons for loading
8
8
  readings without inventing values. Use `isEmpty` for the predicate and
@@ -24,8 +24,8 @@ Use [layout](layout.md) for `<Stack>`, `<Grid>`, and responsive `<GridItem>` spa
24
24
 
25
25
  Choose the component by the user's question. Compose dataset visuals inside
26
26
  `<VisualizationWidget>`; use `<MetricWidget>` for a headline value. Built-in
27
- charts come from `/react/ui`; `<Ranking>`, `<Breakdown>`, and `<Comparison>`
28
- are also available from `/react`.
27
+ charts come from `@altertable/data-app-react/ui`; `<Ranking>`, `<Breakdown>`, and `<Comparison>`
28
+ are also available from `@altertable/data-app-react`.
29
29
 
30
30
  | Question or need | Component | Guidance |
31
31
  | ------------------------------------------------------------------------- | ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
@@ -144,7 +144,7 @@ filtered data to the text and its related visualization.
144
144
  ## Custom visuals and controls
145
145
 
146
146
  `<Ranking>`, `<Breakdown>`, and `<Comparison>`
147
- compose inside authored widgets. Use [built-in charts](ui.md#charts) from `/react/ui`
147
+ compose inside authored widgets. Use [built-in charts](ui.md#charts) from `@altertable/data-app-react/ui`
148
148
  inside `<VisualizationWidget dataset={dataset} source={result}>` for displayed rows.
149
149
  The dataset owns evidence and empty copy; an empty row selection shows that fallback. A visualization's `views` declaration keeps
150
150
  alternate-view selection shared with its inspection sheet. Give views stable IDs
package/docs/worker.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Cloudflare Worker asset
2
2
 
3
- `@altertable/data-app/worker` resolves to a precompiled, self-contained ESM Worker
3
+ `@altertable/data-app-worker` resolves to a precompiled, self-contained ESM Worker
4
4
  script. Upload this one file as the deployment's main module. It includes the
5
5
  bootstrap and HTML; no bundling, HTML generation,
6
6
  runtime imports, or asset fetches are needed in the hosting backend.
@@ -13,7 +13,7 @@ its contents to your deployment tooling:
13
13
  import { readFile } from 'node:fs/promises';
14
14
 
15
15
  const workerScript = await readFile(
16
- new URL(import.meta.resolve('@altertable/data-app/worker')),
16
+ new URL(import.meta.resolve('@altertable/data-app-worker')),
17
17
  'utf8'
18
18
  );
19
19
  // Upload workerScript as worker.js, with main_module = "worker.js".
@@ -48,9 +48,9 @@ navigation. Bundle apps execute their operation registry in the browser and send
48
48
  SQL through the [host query route](embed.md#sql-query-route); the Worker does not
49
49
  resolve operation names or execute queries. Data requests require backend authorization.
50
50
 
51
- If Terraform reads a file, copy the resolved `/worker` asset unchanged to that
51
+ If Terraform reads a file, copy the resolved `@altertable/data-app-worker` asset unchanged to that
52
52
  file during deployment preparation. Configure `DOMAIN_NAME`, `PARENT_ORIGINS`,
53
53
  domains, routes, and deployment settings in Terraform. Upgrade the host package
54
54
  and Worker together for protocol changes.
55
55
  Custom hosts that bundle their own bootstrap can use `startDataAppBootstrap()` from
56
- [/embed](embed.md#trusted-bootstrap).
56
+ [the embed package](embed.md#trusted-bootstrap).
@@ -16,7 +16,7 @@ import {
16
16
  mountDataApp,
17
17
  MetricWidget,
18
18
  searchVariable,
19
- } from '@altertable/data-app/react';
19
+ } from '@altertable/data-app-react';
20
20
 
21
21
  const dataApp = defineDataApp({
22
22
  title: 'Sample counts',
@@ -16,7 +16,7 @@ See [README.md](README.md) for setup and checks.
16
16
  ## Focused guidance
17
17
 
18
18
  Read the installed package's `AGENTS.md` and `docs/app-authoring.md` before
19
- changing the app. Follow their task routes for views, variables, widgets, evidence,
19
+ changing the app. Search its `REFERENCE.md` for props and signatures. Follow their task routes for views, variables, widgets, evidence,
20
20
  and stories/export. Prefer generated controls and bound readings; keep static
21
21
  context visible during requests. Update this app's instructions when a reusable
22
22
  app-specific convention changes. Package internals remain dependencies.
@@ -3,11 +3,13 @@
3
3
  Use this starter with the [local authoring guide](https://github.com/altertable-ai/data-app/blob/main/docs/local-data-apps.md).
4
4
  See [AGENTS.md](AGENTS.md) for app-owned files.
5
5
 
6
- A Bun and React app that imports the public `@altertable/data-app` package.
6
+ A Bun and React starter for Altertable data apps using the published packages.
7
7
  It starts with a lakehouse connectivity check. Replace that check with bounded
8
8
  operations and views built from inspected data before sharing an analysis.
9
9
 
10
- ## Run from this repository
10
+ ## Usage
11
+
12
+ ### Run from this repository
11
13
 
12
14
  Use the Bun and Node versions in `.bun-version` and `.node-version`.
13
15
  From the repository root:
@@ -15,13 +17,10 @@ From the repository root:
15
17
  ```fish
16
18
  bun install --frozen-lockfile
17
19
  bun run build
18
- bun install --frozen-lockfile
19
20
  cd examples/starter-local-data-app
20
21
  bun run dev
21
22
  ```
22
23
 
23
- The second install refreshes the local file dependency with the built exports.
24
-
25
24
  Open <http://127.0.0.1:25837>. Missing credentials show the connection error state;
26
25
  the page still runs. Set server-only credentials before starting the server:
27
26
 
@@ -36,12 +35,11 @@ Alternatively, supply `ALTERTABLE_DATA_PROXY_URL` and
36
35
  `ALTERTABLE_DATA_PROXY_TOKEN` for an existing CLI proxy. These values must stay
37
36
  on the server. This local adapter does not authorize hosted viewers.
38
37
 
39
- ## Make it your app
38
+ ### Make it your app
40
39
 
41
- This checkout uses `file:../..` to exercise the built package before publication.
42
- When copying the starter elsewhere, replace that dependency with the published
43
- package using `bun add @altertable/data-app`, `npm install @altertable/data-app`,
44
- or `pnpm add @altertable/data-app`, then regenerate your lockfile.
40
+ This starter declares the published base, React, and Bun packages. Inside this
41
+ repository, Bun links their workspace builds. When copying the starter elsewhere,
42
+ run `bun install` to install those packages from npm.
45
43
 
46
44
  ```fish
47
45
  bun run check
@@ -52,3 +50,7 @@ and queries.
52
50
 
53
51
  `bun run build` typechecks the app, then bundles the browser page into `dist/`. That browser artifact
54
52
  still needs an authorized `/api/data` backend when hosted.
53
+
54
+ ## License
55
+
56
+ [MIT](../../LICENSE)