@altertable/data-app 0.69.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 (289) hide show
  1. package/AGENTS.md +11 -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-2sbp9h2b.js → index-9yxr7nmm.js} +330 -21
  8. package/dist/chunks/index-9yxr7nmm.js.map +17 -0
  9. package/dist/chunks/{index-r7b1ftwy.js → index-j5q5n3ra.js} +8 -6
  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-kwnqycjt.js → index-vhaec7m5.js} +8 -6
  14. package/dist/chunks/index-vhaec7m5.js.map +10 -0
  15. package/dist/chunks/index-zp78caex.js +1047 -0
  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 +13 -15
  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/data-client.d.ts +21 -10
  33. package/dist/types/client/iframe.d.ts +6 -6
  34. package/dist/types/client/index.d.ts +3 -4
  35. package/dist/types/client/location.d.ts +2 -2
  36. package/dist/types/client/logger.d.ts +1 -1
  37. package/dist/types/client/navigation.d.ts +1 -1
  38. package/dist/types/client/transport.d.ts +1 -1
  39. package/dist/types/core/bridge.d.ts +1 -1
  40. package/dist/types/core/config.d.ts +20 -17
  41. package/dist/types/core/contract.d.ts +23 -13
  42. package/dist/types/core/dimension-source.d.ts +64 -0
  43. package/dist/types/core/dimension.d.ts +31 -23
  44. package/dist/types/core/facets.d.ts +13 -0
  45. package/dist/types/core/filters.d.ts +1 -1
  46. package/dist/types/core/format.d.ts +1 -2
  47. package/dist/types/core/keys.d.ts +2 -0
  48. package/dist/types/core/messages.d.ts +3 -3
  49. package/dist/types/core/operation-types.d.ts +7 -6
  50. package/dist/types/core/presentation.d.ts +1 -1
  51. package/dist/types/core/queries.d.ts +75 -7
  52. package/dist/types/core/reading.d.ts +1 -1
  53. package/dist/types/core/variables.d.ts +38 -12
  54. package/dist/types/index.d.ts +1 -1
  55. package/dist/types/internal.d.ts +22 -0
  56. package/dist/types/server/index.d.ts +1 -2
  57. package/docs/app-authoring.md +12 -4
  58. package/docs/client.md +5 -6
  59. package/docs/composition.md +84 -0
  60. package/docs/contract.md +41 -21
  61. package/docs/data-context.md +5 -3
  62. package/docs/embed.md +4 -4
  63. package/docs/formatting-and-appearance.md +1 -1
  64. package/docs/hosted-apps.md +4 -0
  65. package/docs/react-embed.md +7 -6
  66. package/docs/react.md +5 -5
  67. package/docs/server-bun.md +5 -5
  68. package/docs/server.md +1 -1
  69. package/docs/stories-and-export.md +3 -3
  70. package/docs/styling.md +6 -2
  71. package/docs/ui.md +18 -7
  72. package/docs/variables.md +83 -11
  73. package/docs/views.md +57 -3
  74. package/docs/widgets.md +97 -4
  75. package/docs/worker.md +4 -4
  76. package/examples/starter-data-app/index.tsx +11 -23
  77. package/examples/starter-local-data-app/AGENTS.md +1 -1
  78. package/examples/starter-local-data-app/README.md +12 -10
  79. package/examples/starter-local-data-app/app.ts +7 -1
  80. package/examples/starter-local-data-app/package.json +3 -1
  81. package/examples/starter-local-data-app/src/App.tsx +1 -1
  82. package/examples/starter-local-data-app/src/data-context.ts +1 -1
  83. package/examples/starter-local-data-app/src/main.tsx +1 -1
  84. package/examples/starter-local-data-app/src/server.ts +1 -1
  85. package/examples/starter-local-data-app/tsconfig.json +7 -1
  86. package/package.json +16 -92
  87. package/THIRD_PARTY_NOTICES +0 -18
  88. package/dist/chunks/index-2sbp9h2b.js.map +0 -13
  89. package/dist/chunks/index-ap60vggk.js +0 -80
  90. package/dist/chunks/index-ap60vggk.js.map +0 -10
  91. package/dist/chunks/index-cv36cyna.js +0 -180
  92. package/dist/chunks/index-cv36cyna.js.map +0 -10
  93. package/dist/chunks/index-k766wwwr.js +0 -643
  94. package/dist/chunks/index-k766wwwr.js.map +0 -13
  95. package/dist/chunks/index-kwnqycjt.js.map +0 -10
  96. package/dist/chunks/index-m0gbxtgp.js +0 -355
  97. package/dist/chunks/index-m0gbxtgp.js.map +0 -13
  98. package/dist/chunks/index-qhzdzca2.js +0 -15869
  99. package/dist/chunks/index-qhzdzca2.js.map +0 -118
  100. package/dist/chunks/index-r7b1ftwy.js.map +0 -10
  101. package/dist/chunks/index-sx488hvs.js +0 -221
  102. package/dist/chunks/index-sx488hvs.js.map +0 -12
  103. package/dist/chunks/index-wss3gd3h.js +0 -319
  104. package/dist/chunks/index-wss3gd3h.js.map +0 -13
  105. package/dist/chunks/index-zcqxfwdq.js +0 -197
  106. package/dist/chunks/index-zcqxfwdq.js.map +0 -13
  107. package/dist/embed/index.js +0 -138
  108. package/dist/embed/index.js.map +0 -12
  109. package/dist/local.js +0 -432
  110. package/dist/local.js.map +0 -14
  111. package/dist/preview.js +0 -1456
  112. package/dist/preview.js.map +0 -17
  113. package/dist/react/embed/index.js +0 -117
  114. package/dist/react/embed/index.js.map +0 -10
  115. package/dist/react/index.js +0 -2948
  116. package/dist/react/index.js.map +0 -26
  117. package/dist/react/ui/index.js +0 -3142
  118. package/dist/react/ui/index.js.map +0 -35
  119. package/dist/server.js +0 -301
  120. package/dist/server.js.map +0 -13
  121. package/dist/types/core/time-interval.d.ts +0 -96
  122. package/dist/types/embed/bootstrap.d.ts +0 -5
  123. package/dist/types/embed/bridge.d.ts +0 -12
  124. package/dist/types/embed/host.d.ts +0 -36
  125. package/dist/types/embed/index.d.ts +0 -14
  126. package/dist/types/embed/navigation.d.ts +0 -6
  127. package/dist/types/embed/runtime-html.d.ts +0 -2
  128. package/dist/types/embed/source.d.ts +0 -16
  129. package/dist/types/embed/sql.d.ts +0 -4
  130. package/dist/types/react/annotations/AnnotationBar.d.ts +0 -30
  131. package/dist/types/react/annotations/AnnotationControls.d.ts +0 -10
  132. package/dist/types/react/annotations/AnnotationEditor.d.ts +0 -16
  133. package/dist/types/react/annotations/AnnotationMarkers.d.ts +0 -19
  134. package/dist/types/react/annotations/AnnotationSelectionLayer.d.ts +0 -12
  135. package/dist/types/react/annotations/AnnotationTarget.d.ts +0 -9
  136. package/dist/types/react/annotations/AnnotationTooltip.d.ts +0 -9
  137. package/dist/types/react/annotations/AnnotationTrigger.d.ts +0 -10
  138. package/dist/types/react/annotations/annotation-editor-state.d.ts +0 -58
  139. package/dist/types/react/annotations/annotation-screenshot.d.ts +0 -4
  140. package/dist/types/react/annotations/annotation-targets.d.ts +0 -34
  141. package/dist/types/react/annotations/getAnnotationProps.d.ts +0 -17
  142. package/dist/types/react/annotations/styles.d.ts +0 -3
  143. package/dist/types/react/annotations/useAnnotationGeometry.d.ts +0 -22
  144. package/dist/types/react/annotations/useDataAppAnnotations.d.ts +0 -22
  145. package/dist/types/react/app-context.d.ts +0 -3
  146. package/dist/types/react/bindings.d.ts +0 -133
  147. package/dist/types/react/content.d.ts +0 -36
  148. package/dist/types/react/date-formatting.d.ts +0 -12
  149. package/dist/types/react/embed/bridge.d.ts +0 -21
  150. package/dist/types/react/embed/index.d.ts +0 -7
  151. package/dist/types/react/hooks.d.ts +0 -75
  152. package/dist/types/react/index.d.ts +0 -75
  153. package/dist/types/react/injectStyles.d.ts +0 -7
  154. package/dist/types/react/mount.d.ts +0 -13
  155. package/dist/types/react/search-suggestions.d.ts +0 -8
  156. package/dist/types/react/source-owner.d.ts +0 -2
  157. package/dist/types/react/style-contract.d.ts +0 -88
  158. package/dist/types/react/style-validation.d.ts +0 -2
  159. package/dist/types/react/styles.d.ts +0 -8
  160. package/dist/types/react/ui/AboutData.d.ts +0 -68
  161. package/dist/types/react/ui/AltertableLogo.d.ts +0 -3
  162. package/dist/types/react/ui/AppFooter.d.ts +0 -6
  163. package/dist/types/react/ui/AppHeader.d.ts +0 -10
  164. package/dist/types/react/ui/AppLayout.d.ts +0 -10
  165. package/dist/types/react/ui/AppScope.d.ts +0 -7
  166. package/dist/types/react/ui/AppToolbar.d.ts +0 -30
  167. package/dist/types/react/ui/AreaChart.d.ts +0 -7
  168. package/dist/types/react/ui/BarChart.d.ts +0 -6
  169. package/dist/types/react/ui/Breakdown.d.ts +0 -13
  170. package/dist/types/react/ui/Button.d.ts +0 -11
  171. package/dist/types/react/ui/ChartLegend.d.ts +0 -32
  172. package/dist/types/react/ui/Checkbox.d.ts +0 -21
  173. package/dist/types/react/ui/CheckboxGroup.d.ts +0 -7
  174. package/dist/types/react/ui/ChoicePicker.d.ts +0 -39
  175. package/dist/types/react/ui/Comparison.d.ts +0 -14
  176. package/dist/types/react/ui/ComposedChart.d.ts +0 -41
  177. package/dist/types/react/ui/ComposedChartLegend.d.ts +0 -8
  178. package/dist/types/react/ui/ContentSkeleton.d.ts +0 -7
  179. package/dist/types/react/ui/DataApp.d.ts +0 -21
  180. package/dist/types/react/ui/DataAppFrame.d.ts +0 -52
  181. package/dist/types/react/ui/DataBoundary.d.ts +0 -14
  182. package/dist/types/react/ui/DataSection.d.ts +0 -14
  183. package/dist/types/react/ui/DataSectionBoundary.d.ts +0 -30
  184. package/dist/types/react/ui/DataTable.d.ts +0 -29
  185. package/dist/types/react/ui/DataValue.d.ts +0 -9
  186. package/dist/types/react/ui/DataViewToast.d.ts +0 -11
  187. package/dist/types/react/ui/DataWidget.d.ts +0 -34
  188. package/dist/types/react/ui/DateDisplay.d.ts +0 -9
  189. package/dist/types/react/ui/DateRangePicker.d.ts +0 -30
  190. package/dist/types/react/ui/DateTimeTooltip.d.ts +0 -10
  191. package/dist/types/react/ui/DimensionPicker.d.ts +0 -13
  192. package/dist/types/react/ui/EmptyState.d.ts +0 -6
  193. package/dist/types/react/ui/ExportControl.d.ts +0 -4
  194. package/dist/types/react/ui/FilterActions.d.ts +0 -10
  195. package/dist/types/react/ui/FilterBar.d.ts +0 -3
  196. package/dist/types/react/ui/FunnelChart.d.ts +0 -20
  197. package/dist/types/react/ui/GettingStarted.d.ts +0 -6
  198. package/dist/types/react/ui/GlossaryDefinition.d.ts +0 -7
  199. package/dist/types/react/ui/GlossaryExplanation.d.ts +0 -16
  200. package/dist/types/react/ui/GradientScroll.d.ts +0 -23
  201. package/dist/types/react/ui/Grid.d.ts +0 -12
  202. package/dist/types/react/ui/GridItem.d.ts +0 -7
  203. package/dist/types/react/ui/HelpPopover.d.ts +0 -21
  204. package/dist/types/react/ui/IconButton.d.ts +0 -19
  205. package/dist/types/react/ui/InspectionContext.d.ts +0 -12
  206. package/dist/types/react/ui/InspectionProvider.d.ts +0 -29
  207. package/dist/types/react/ui/JourneyChart.d.ts +0 -10
  208. package/dist/types/react/ui/Kbd.d.ts +0 -7
  209. package/dist/types/react/ui/LineChart.d.ts +0 -7
  210. package/dist/types/react/ui/LiveControl.d.ts +0 -10
  211. package/dist/types/react/ui/Menu.d.ts +0 -12
  212. package/dist/types/react/ui/MetricWidget.d.ts +0 -49
  213. package/dist/types/react/ui/NumberField.d.ts +0 -27
  214. package/dist/types/react/ui/NumberFilterPicker.d.ts +0 -11
  215. package/dist/types/react/ui/PeriodSummary.d.ts +0 -17
  216. package/dist/types/react/ui/PickerField.d.ts +0 -15
  217. package/dist/types/react/ui/PieChart.d.ts +0 -11
  218. package/dist/types/react/ui/PopoverSurface.d.ts +0 -5
  219. package/dist/types/react/ui/PresentStory.d.ts +0 -30
  220. package/dist/types/react/ui/QueryList.d.ts +0 -14
  221. package/dist/types/react/ui/RadioGroup.d.ts +0 -18
  222. package/dist/types/react/ui/Ranking.d.ts +0 -13
  223. package/dist/types/react/ui/RefreshControl.d.ts +0 -9
  224. package/dist/types/react/ui/RequestHint.d.ts +0 -20
  225. package/dist/types/react/ui/RetentionChart.d.ts +0 -27
  226. package/dist/types/react/ui/ScatterChart.d.ts +0 -17
  227. package/dist/types/react/ui/SearchField.d.ts +0 -23
  228. package/dist/types/react/ui/SearchInput.d.ts +0 -10
  229. package/dist/types/react/ui/SearchMatch.d.ts +0 -6
  230. package/dist/types/react/ui/SearchTypeahead.d.ts +0 -15
  231. package/dist/types/react/ui/SectionHeading.d.ts +0 -8
  232. package/dist/types/react/ui/Select.d.ts +0 -18
  233. package/dist/types/react/ui/SelectionMark.d.ts +0 -5
  234. package/dist/types/react/ui/Sheet.d.ts +0 -21
  235. package/dist/types/react/ui/Skeleton.d.ts +0 -8
  236. package/dist/types/react/ui/Stack.d.ts +0 -7
  237. package/dist/types/react/ui/StaticDataApp.d.ts +0 -4
  238. package/dist/types/react/ui/StatusPanel.d.ts +0 -10
  239. package/dist/types/react/ui/TableWidget.d.ts +0 -67
  240. package/dist/types/react/ui/Tabs.d.ts +0 -10
  241. package/dist/types/react/ui/TextContent.d.ts +0 -4
  242. package/dist/types/react/ui/TextWidget.d.ts +0 -20
  243. package/dist/types/react/ui/ThemeSelector.d.ts +0 -12
  244. package/dist/types/react/ui/Toast.d.ts +0 -8
  245. package/dist/types/react/ui/Tooltip.d.ts +0 -23
  246. package/dist/types/react/ui/TooltipSurface.d.ts +0 -3
  247. package/dist/types/react/ui/TrendChart.d.ts +0 -5
  248. package/dist/types/react/ui/UpdatedAt.d.ts +0 -9
  249. package/dist/types/react/ui/VariableBar.d.ts +0 -6
  250. package/dist/types/react/ui/VisualizationWidget.d.ts +0 -43
  251. package/dist/types/react/ui/WidgetDisclosure.d.ts +0 -6
  252. package/dist/types/react/ui/WidgetEvidence.d.ts +0 -12
  253. package/dist/types/react/ui/WidgetViewTabs.d.ts +0 -16
  254. package/dist/types/react/ui/chart-data.d.ts +0 -34
  255. package/dist/types/react/ui/chart-date-axis.d.ts +0 -15
  256. package/dist/types/react/ui/chart-interaction.d.ts +0 -21
  257. package/dist/types/react/ui/chart-primitives.d.ts +0 -22
  258. package/dist/types/react/ui/chart-time.d.ts +0 -16
  259. package/dist/types/react/ui/chartColor.d.ts +0 -2
  260. package/dist/types/react/ui/classNames.d.ts +0 -1
  261. package/dist/types/react/ui/csv-export.d.ts +0 -19
  262. package/dist/types/react/ui/data-context.d.ts +0 -76
  263. package/dist/types/react/ui/data-identifiers.d.ts +0 -32
  264. package/dist/types/react/ui/icons.d.ts +0 -47
  265. package/dist/types/react/ui/index.d.ts +0 -109
  266. package/dist/types/react/ui/journey-flow.d.ts +0 -49
  267. package/dist/types/react/ui/keyboard.d.ts +0 -6
  268. package/dist/types/react/ui/metric-comparison.d.ts +0 -30
  269. package/dist/types/react/ui/metric.d.ts +0 -11
  270. package/dist/types/react/ui/presentation.d.ts +0 -25
  271. package/dist/types/react/ui/search.d.ts +0 -6
  272. package/dist/types/react/ui/searchItems.d.ts +0 -36
  273. package/dist/types/react/ui/shortcuts.d.ts +0 -45
  274. package/dist/types/react/ui/story.d.ts +0 -20
  275. package/dist/types/react/ui/useAppAppearance.d.ts +0 -3
  276. package/dist/types/react/ui/useDataAppPresentation.d.ts +0 -3
  277. package/dist/types/react/ui/useSvgId.d.ts +0 -2
  278. package/dist/types/react/ui/variables.d.ts +0 -38
  279. package/dist/types/react/ui/widget-views.d.ts +0 -3
  280. package/dist/types/react/view-control-bar.d.ts +0 -16
  281. package/dist/types/react/view-controls.d.ts +0 -20
  282. package/dist/types/react/view-runtime.d.ts +0 -31
  283. package/dist/types/react/view.d.ts +0 -78
  284. package/dist/types/react/widgets.d.ts +0 -79
  285. package/dist/types/server/local.d.ts +0 -19
  286. package/dist/types/server/preview/host.d.ts +0 -1
  287. package/dist/types/server/preview/index.d.ts +0 -16
  288. package/dist/types/server/reload-channel.d.ts +0 -6
  289. package/dist/worker.js +0 -106
@@ -1,16 +0,0 @@
1
- import type { ComponentRef, CSSProperties, Ref } from 'react';
2
- import type { AnnotationEditorState } from './annotation-editor-state.js';
3
- type AnnotationEditorProps = {
4
- editor: AnnotationEditorState;
5
- editorRef: Ref<ComponentRef<'section'>>;
6
- textareaRef: Ref<ComponentRef<'textarea'>>;
7
- style: CSSProperties;
8
- disabled: boolean;
9
- onCommentChange: (comment: string) => void;
10
- onSubmit: () => void;
11
- onSend: () => void;
12
- onRetryScreenshot: () => void;
13
- onShakeEnd: () => void;
14
- };
15
- export declare function AnnotationEditor({ editor, editorRef, textareaRef, style, disabled, onCommentChange, onSubmit, onSend, onRetryScreenshot, onShakeEnd, }: AnnotationEditorProps): import("react").JSX.Element;
16
- export {};
@@ -1,19 +0,0 @@
1
- import type { AnnotationPoint, AnnotationRect } from './annotation-targets.js';
2
- export type AnnotationPin = {
3
- id: string;
4
- number: number;
5
- anchor: AnnotationPoint;
6
- rect: AnnotationRect;
7
- };
8
- type AnnotationMarkersProps = {
9
- outline?: AnnotationRect;
10
- rounded: boolean;
11
- pins: AnnotationPin[];
12
- pinsVisible: boolean;
13
- disabled: boolean;
14
- showHint: boolean;
15
- hasDuplicateIds: boolean;
16
- onOpenAnnotation: (id: string) => void;
17
- };
18
- export declare function AnnotationMarkers({ outline, rounded, pins, pinsVisible, disabled, showHint, hasDuplicateIds, onOpenAnnotation, }: AnnotationMarkersProps): import("react").JSX.Element;
19
- export {};
@@ -1,12 +0,0 @@
1
- import type { AnnotationTargetElement, AnnotationPoint, AnnotationRect } from './annotation-targets.js';
2
- type AnnotationSelectionLayerProps = {
3
- scope: HTMLElement;
4
- targets: AnnotationTargetElement[];
5
- onHover: (target: AnnotationTargetElement | undefined) => void;
6
- onSelect: (target: AnnotationTargetElement, point?: AnnotationPoint, region?: AnnotationRect) => void;
7
- disabled: boolean;
8
- editing: boolean;
9
- };
10
- /** Own pointer selection and keyboard focus while the app underneath is inert. */
11
- export declare function AnnotationSelectionLayer({ scope, targets, onHover, onSelect, disabled, editing, }: AnnotationSelectionLayerProps): import("react").JSX.Element;
12
- export {};
@@ -1,9 +0,0 @@
1
- import type { ComponentPropsWithRef } from 'react';
2
- import type { WidgetEvidence } from '../ui/WidgetEvidence.js';
3
- export type AnnotationTargetProps = ComponentPropsWithRef<'div'> & {
4
- annotationId: string;
5
- label: string;
6
- evidence?: WidgetEvidence;
7
- };
8
- /** A stable feedback target for app-owned content outside the built-in widgets. */
9
- export declare function AnnotationTarget({ annotationId, label, evidence, ...props }: AnnotationTargetProps): import("react").JSX.Element;
@@ -1,9 +0,0 @@
1
- import type { ReactNode } from 'react';
2
- import type { Theme } from '../../core/appearance.js';
3
- type AnnotationTooltipProps = {
4
- content: ReactNode;
5
- children: ReactNode;
6
- theme?: Theme;
7
- };
8
- export declare function AnnotationTooltip({ content, children, theme, }: AnnotationTooltipProps): import("react").JSX.Element;
9
- export {};
@@ -1,10 +0,0 @@
1
- import type { ComponentRef, Ref } from 'react';
2
- type AnnotationTriggerProps = {
3
- buttonRef: Ref<ComponentRef<'button'>>;
4
- active: boolean;
5
- disabled: boolean;
6
- count: number;
7
- onToggle: () => void;
8
- };
9
- export declare function AnnotationTrigger({ buttonRef, active, disabled, count, onToggle, }: AnnotationTriggerProps): import("react").JSX.Element;
10
- export {};
@@ -1,58 +0,0 @@
1
- import type { DataAppAnnotationDraft } from '../../core/annotations.js';
2
- import type { AnnotationTargetElement } from './annotation-targets.js';
3
- export type AnnotationEditorState = {
4
- target: AnnotationTargetElement;
5
- draft: DataAppAnnotationDraft;
6
- annotationId?: string;
7
- /** Epoch milliseconds, comparable to host interaction timestamps. */
8
- openedAt: number;
9
- comment: string;
10
- captureStatus: 'capturing' | 'ready' | 'failed';
11
- error: string;
12
- discardArmed: boolean;
13
- shaking: boolean;
14
- };
15
- type AnnotationControlsState = {
16
- annotationModeActive: boolean;
17
- observedActive: boolean;
18
- hoveredTarget?: AnnotationTargetElement;
19
- editor?: AnnotationEditorState;
20
- saving: boolean;
21
- };
22
- type AnnotationControlsAction = {
23
- type: 'annotationModeChanged';
24
- active: boolean;
25
- } | {
26
- type: 'externalModeObserved';
27
- active: boolean;
28
- } | {
29
- type: 'targetHovered';
30
- target?: AnnotationTargetElement;
31
- } | {
32
- type: 'editorOpened';
33
- editor: AnnotationEditorState;
34
- } | {
35
- type: 'editorClosed';
36
- } | {
37
- type: 'commentChanged';
38
- comment: string;
39
- } | {
40
- type: 'captureCompleted';
41
- draftId: string;
42
- succeeded: boolean;
43
- } | {
44
- type: 'editorEscaped';
45
- hasUnsavedChanges: boolean;
46
- } | {
47
- type: 'shakeFinished';
48
- } | {
49
- type: 'saveStarted';
50
- } | {
51
- type: 'saveFailed';
52
- error: string;
53
- } | {
54
- type: 'saveFinished';
55
- };
56
- export declare function createAnnotationControlsState(active: boolean): AnnotationControlsState;
57
- export declare function annotationControlsReducer(state: AnnotationControlsState, action: AnnotationControlsAction): AnnotationControlsState;
58
- export {};
@@ -1,4 +0,0 @@
1
- import type { AnnotationRect } from './annotation-targets.js';
2
- import type { DataAppAnnotationDraft } from '../../core/annotations.js';
3
- /** Capture the visible target at selection time; never include annotation controls. */
4
- export declare function captureAnnotationScreenshot(element: HTMLElement, region?: AnnotationRect): Promise<NonNullable<DataAppAnnotationDraft['context']['screenshot']>>;
@@ -1,34 +0,0 @@
1
- export type AnnotationPoint = {
2
- x: number;
3
- y: number;
4
- };
5
- export type AnnotationRect = {
6
- x: number;
7
- y: number;
8
- width: number;
9
- height: number;
10
- };
11
- export type AnnotationTargetElement = {
12
- element: HTMLElement;
13
- id: string;
14
- label: string;
15
- kind: 'widget' | 'element' | 'app';
16
- };
17
- export declare function discoverAnnotationTargets(root: HTMLElement | null): {
18
- targets: AnnotationTargetElement[];
19
- hasDuplicateIds: boolean;
20
- };
21
- export declare function annotationGeometry(element: HTMLElement): AnnotationRect;
22
- export declare function annotationPoint(rect: AnnotationRect, point?: AnnotationPoint): {
23
- cursor: AnnotationPoint;
24
- anchor: {
25
- x: number;
26
- y: number;
27
- };
28
- };
29
- /** The iframe document is a crop surface, never a selectable global-layout target. */
30
- export declare function annotationRoot(root: HTMLElement | null): AnnotationTargetElement | undefined;
31
- export declare function indexAnnotationTargets(root: HTMLElement | null): Map<string, AnnotationTargetElement>;
32
- export declare function findAnnotationTarget(root: HTMLElement | null, id: string | undefined): AnnotationTargetElement | undefined;
33
- export declare function normalizeAnnotationRect(area: AnnotationRect, target: AnnotationRect): AnnotationRect;
34
- export declare function projectAnnotationRect(area: AnnotationRect, target: AnnotationRect): AnnotationRect;
@@ -1,17 +0,0 @@
1
- import type { WidgetEvidence } from '../ui/WidgetEvidence.js';
2
- type AnnotationPropsOptions = {
3
- id: string;
4
- label?: string;
5
- fallbackId?: string;
6
- evidence?: WidgetEvidence;
7
- kind?: 'widget' | 'element';
8
- };
9
- export declare function getAnnotationProps({ id, label, fallbackId, evidence, kind, }: AnnotationPropsOptions): {
10
- 'data-annotation-id': string;
11
- 'data-annotation-fallback-id': string | undefined;
12
- 'data-annotation-label': string | undefined;
13
- 'data-annotation-kind': "element" | "widget";
14
- 'data-annotation-queries': string;
15
- 'data-annotation-glossary': string;
16
- };
17
- export {};
@@ -1,3 +0,0 @@
1
- import type { DataAppStylesOptions } from '../styles.js';
2
- /** Install only the outer-frame annotation controls; leave host page typography and layout intact. */
3
- export declare function injectDataAppAnnotationStyles(options?: DataAppStylesOptions): HTMLStyleElement;
@@ -1,22 +0,0 @@
1
- import { type ComponentRef, type RefObject } from 'react';
2
- import type { DataAppAnnotationPresentation } from '../../core/annotations.js';
3
- import { type AnnotationRect, type AnnotationTargetElement } from './annotation-targets.js';
4
- import type { AnnotationPin } from './AnnotationMarkers.js';
5
- type AnnotationRootRef = RefObject<ComponentRef<'div'> | null>;
6
- export declare function useAnnotationTargets(rootRef: AnnotationRootRef, active: boolean): {
7
- targets: AnnotationTargetElement[];
8
- hasDuplicateIds: boolean;
9
- } & {
10
- scope?: HTMLElement;
11
- };
12
- type AnnotationGeometryOptions = {
13
- rootRef: AnnotationRootRef;
14
- target?: AnnotationTargetElement;
15
- region?: AnnotationRect;
16
- annotations: DataAppAnnotationPresentation['targets'];
17
- };
18
- export declare function useAnnotationGeometry({ rootRef, target, region, annotations, }: AnnotationGeometryOptions): {
19
- pins: AnnotationPin[];
20
- outline?: AnnotationRect;
21
- };
22
- export {};
@@ -1,22 +0,0 @@
1
- /** Bind annotation delivery to this app's current iframe bridge. The host owns storage and submission. */
2
- export declare function useDataAppAnnotations(): {
3
- requestSendAnnotations(options?: {
4
- signal?: AbortSignal;
5
- }): Promise<null>;
6
- reportAnnotationEditorState(state: {
7
- hasUnsavedChanges: boolean;
8
- }, options?: {
9
- signal?: AbortSignal;
10
- }): Promise<null>;
11
- addAnnotation(draft: import("../../core/annotations.js").DataAppAnnotationDraft, options?: {
12
- signal?: AbortSignal;
13
- }): Promise<null>;
14
- updateAnnotation(id: string, comment: string, options?: {
15
- signal?: AbortSignal;
16
- }): Promise<null>;
17
- requestAnnotationModeChange(request: {
18
- active: boolean;
19
- }, options?: {
20
- signal?: AbortSignal;
21
- }): Promise<null>;
22
- };
@@ -1,3 +0,0 @@
1
- import type { DataAppConfig } from '../core/config.js';
2
- export declare const DataAppContext: import("react").Context<DataAppConfig | null>;
3
- export declare function useDataApp(): DataAppConfig;
@@ -1,133 +0,0 @@
1
- import type { EvidenceDeclaration } from './ui/data-context.js';
2
- import type { SearchSuggestion } from './ui/SearchTypeahead.js';
3
- import { type ReactNode } from 'react';
4
- import type { DateFormat } from '../core/format.js';
5
- import type { DateRangeRequest } from '../core/contract.js';
6
- import type { DataView, DisplayedSnapshot } from '../core/data-view.js';
7
- import type { MetricFormat } from '../core/format.js';
8
- import type { DataReading, MetricValues } from '../core/reading.js';
9
- import type { CsvCell, CsvTable, CsvExport } from './ui/csv-export.js';
10
- import type { MetricDefinition } from './ui/metric.js';
11
- import type { EmptyContent } from './ui/presentation.js';
12
- import type { TableWidgetColumn } from './ui/TableWidget.js';
13
- import type { WidgetEvidence } from './ui/WidgetEvidence.js';
14
- /** Displayed data, or an initial loading reading. Pending filter values are never a source. */
15
- export type ViewSource<Data, Input> = {
16
- loading: true;
17
- } | {
18
- loading?: false;
19
- data: Data;
20
- input: Input;
21
- };
22
- type SourceReading<Source, Value> = Source extends {
23
- loading: true;
24
- } ? {
25
- loading: true;
26
- } : {
27
- loading: false;
28
- value: Value;
29
- };
30
- /** Keys supply IDs; accessors supply raw CSV values. Formats affect display only. */
31
- export type DatasetColumn<Row> = {
32
- label?: string;
33
- } & ({
34
- value: (row: Row) => CsvCell;
35
- format?: (row: Row) => ReactNode;
36
- } | {
37
- value: (row: Row) => number | null | undefined;
38
- format: MetricFormat;
39
- } | {
40
- value: (row: Row) => string | number | null | undefined;
41
- format: Extract<DateFormat, {
42
- kind: 'dateTime';
43
- }>;
44
- } | {
45
- value: (row: Row) => string | null | undefined;
46
- format: Extract<DateFormat, {
47
- kind: 'date';
48
- }>;
49
- });
50
- export type DatasetDefinition<Data, Input, Row, Evidence = WidgetEvidence> = {
51
- name: string;
52
- select: (data: Data, input: Input) => readonly Row[];
53
- columns: Record<string, DatasetColumn<NoInfer<Row>>>;
54
- rowKey: (row: NoInfer<Row>) => string | number;
55
- evidence: Evidence;
56
- emptyFallback?: EmptyContent;
57
- /** Declare for records whose titles are useful query completions; omit for aggregate rows. */
58
- suggestions?: DatasetSuggestionOptions<Row>;
59
- };
60
- export type DatasetSuggestionOptions<Row> = {
61
- title: (row: Row) => string;
62
- description?: (row: Row) => string;
63
- /** Override query completion with an app action. */
64
- onSelect?: (row: Row) => void;
65
- };
66
- /** Authoring references are registered by the owning view. */
67
- export type DatasetDeclaration<Data, Input, Row> = DatasetDefinition<Data, Input, Row, EvidenceDeclaration>;
68
- /** Real view ownership and registered references, shared by metrics and datasets. */
69
- export declare class RegisteredBinding {
70
- #private;
71
- constructor(owner?: object, evidence?: WidgetEvidence);
72
- protected assertSource(source: object): void;
73
- static evidence(binding: RegisteredBinding, owner: object): WidgetEvidence;
74
- }
75
- export declare function registeredEvidence(binding: RegisteredBinding, owner: object): WidgetEvidence;
76
- export declare class ExportDataset<Data, Input> extends RegisteredBinding {
77
- #private;
78
- readonly name: string;
79
- /** @internal Undefined means this dataset declares no record suggestions. */
80
- readSearchSuggestions(_source: ViewSource<Data, Input>): DataReading<readonly SearchSuggestion[]> | undefined;
81
- constructor(name: string, csv: (snapshot: DisplayedSnapshot<Data, Input>) => CsvTable, owner?: object, evidence?: WidgetEvidence);
82
- static csv<Data, Input>(dataset: ExportDataset<Data, Input>, snapshot: DisplayedSnapshot<Data, Input>): CsvTable;
83
- }
84
- export declare class Dataset<Data, Input, Row> extends ExportDataset<Data, Input> {
85
- #private;
86
- readonly evidence: WidgetEvidence;
87
- constructor(definition: DatasetDefinition<Data, Input, Row>, owner?: object, timeZone?: string);
88
- readSearchSuggestions(source: ViewSource<Data, Input>): DataReading<readonly SearchSuggestion[]> | undefined;
89
- read: <Source extends ViewSource<Data, Input>>(source: Source) => SourceReading<Source, readonly Row[]>;
90
- static table<Data, Input, Row>(dataset: Dataset<Data, Input, Row>, source: ViewSource<Data, Input>): {
91
- title: string;
92
- columns: [TableWidgetColumn<Row>, ...TableWidgetColumn<Row>[]];
93
- rowKey: (row: Row) => string | number;
94
- evidence: WidgetEvidence;
95
- emptyFallback: EmptyContent;
96
- reading: {
97
- loading: true;
98
- } | {
99
- loading: false;
100
- value: readonly Row[];
101
- };
102
- };
103
- }
104
- export declare function bindDataset<Data, Input, Row>(definition: DatasetDefinition<Data, Input, Row>, owner?: object, timeZone?: string): Dataset<Data, Input, Row>;
105
- export declare function datasetTable<Data, Input, Row>(dataset: Dataset<Data, Input, Row>, source: ViewSource<Data, Input>): {
106
- title: string;
107
- columns: [TableWidgetColumn<Row>, ...TableWidgetColumn<Row>[]];
108
- rowKey: (row: Row) => string | number;
109
- evidence: WidgetEvidence;
110
- emptyFallback: EmptyContent;
111
- reading: {
112
- loading: true;
113
- } | {
114
- loading: false;
115
- value: readonly Row[];
116
- };
117
- };
118
- export declare function datasetCsv<Data, Input>(dataset: ExportDataset<Data, Input>, snapshot: DisplayedSnapshot<Data, Input>): CsvTable;
119
- export declare class Metric<Data, Input> extends RegisteredBinding {
120
- #private;
121
- readonly definition: MetricDefinition;
122
- constructor(definition: MetricDefinition, select: (data: Data, input: Input) => MetricValues, date?: (input: Input) => DateRangeRequest, owner?: object);
123
- read: <Source extends ViewSource<Data, Input>>(source: Source) => SourceReading<Source, MetricValues & {
124
- period?: DateRangeRequest;
125
- }>;
126
- }
127
- export declare function bindMetric<Data, Input>(definition: MetricDefinition, select: (data: Data, input: Input) => MetricValues, date?: (input: Input) => DateRangeRequest, owner?: object): Metric<Data, Input>;
128
- export declare function displayedScope<Data, Input>(view: DataView<Data, Input>, describeInput: (input: Input) => string): DataReading<string>;
129
- export declare function exportDatasets<Data, Input>(datasets: readonly [
130
- ExportDataset<Data, Input>,
131
- ...ExportDataset<Data, Input>[]
132
- ], snapshot: DisplayedSnapshot<Data, Input>, scope: string, appTitle: string): CsvExport;
133
- export {};
@@ -1,36 +0,0 @@
1
- import type { DeclaredView } from './view-runtime.js';
2
- import type { ReactNode } from 'react';
3
- import type { DataReading } from '../core/reading.js';
4
- export type DataContentState<Data, Input> = {
5
- scope: DataReading<string>;
6
- } & ({
7
- loading: true;
8
- data?: never;
9
- input?: never;
10
- } | {
11
- loading: false;
12
- data: Data;
13
- input: Input;
14
- });
15
- /** Content receives only displayed data, its original input, and the derived scope. */
16
- export declare function defineDataContent<Data, Input>(render: (state: DataContentState<Data, Input>) => ReactNode, options?: {
17
- describeInput?: (input: Input) => string;
18
- }): {
19
- loadingFallback: ReactNode;
20
- children(this: void, data: Data, input: Input): ReactNode;
21
- };
22
- /** A section's request owner and render layout are declared together. */
23
- export declare class ViewContent<Data, Input> {
24
- #private;
25
- constructor(view: DeclaredView<Data, Input>, render: (source: DataContentState<Data, Input>) => ReactNode, describeInput: (input: Input) => string);
26
- static section<Data, Input>(content: ViewContent<Data, Input>): {
27
- loadingFallback: ReactNode;
28
- children(this: void, data: Data, input: Input): ReactNode;
29
- view: DeclaredView<Data, Input, unknown>;
30
- };
31
- }
32
- export declare function sectionContent<Data, Input>(content: ViewContent<Data, Input>): {
33
- loadingFallback: ReactNode;
34
- children(this: void, data: Data, input: Input): ReactNode;
35
- view: DeclaredView<Data, Input, unknown>;
36
- };
@@ -1,12 +0,0 @@
1
- /** The reporting zone belongs to the displayed view, not the browser. */
2
- export declare const DateFormattingContext: import("react").Context<{
3
- timeZone?: string;
4
- }>;
5
- /** Resolve date display defaults for custom charts and narrative. Explicit options override the view and app. */
6
- export declare function useDateFormatting(options?: {
7
- locale?: string;
8
- timeZone?: string;
9
- }): {
10
- locale: string;
11
- timeZone: string;
12
- };
@@ -1,21 +0,0 @@
1
- import { type ComponentRef, type ComponentPropsWithoutRef } from 'react';
2
- import { type DataAppBridgeOptions } from '../../embed/bridge.js';
3
- import type { DataAppConnection } from '../../embed/host.js';
4
- import type { DataAppSource } from '../../embed/source.js';
5
- export type DataAppBridgeProps = Pick<DataAppBridgeOptions, 'onMessage' | 'onStatusChange' | 'onDiagnostic' | 'presentation' | 'logger'> & ({
6
- source: DataAppSource;
7
- title: string;
8
- startupTimeoutMs?: number;
9
- iframeProps?: Omit<ComponentPropsWithoutRef<'iframe'>, 'src' | 'srcDoc' | 'sandbox' | 'referrerPolicy' | 'loading' | 'children' | 'title'>;
10
- iframe?: never;
11
- connection?: never;
12
- } | {
13
- iframe: ComponentRef<'iframe'> | null;
14
- connection: DataAppConnection;
15
- source?: never;
16
- title?: never;
17
- startupTimeoutMs?: never;
18
- iframeProps?: never;
19
- });
20
- /** Owns iframe setup and delivery. The consuming shell owns loading, error UI, and retries. */
21
- export declare function DataAppBridge(props: DataAppBridgeProps): import("react").JSX.Element;
@@ -1,7 +0,0 @@
1
- /**
2
- * React iframe hosts; independent of the app UI and its stylesheet.
3
- * @module @altertable/data-app/react/embed
4
- * @see https://github.com/altertable-ai/data-app/blob/main/docs/react-embed.md
5
- */
6
- export { DataAppBridge } from './bridge.js';
7
- export type { DataAppBridgeProps } from './bridge.js';
@@ -1,75 +0,0 @@
1
- import { DeclaredView } from './view-runtime.js';
2
- import { type DatasetDefinition } from './bindings.js';
3
- import type { AuthoringDataContext } from './ui/data-context.js';
4
- import type { MetricValues } from '../core/reading.js';
5
- import type { DisplayedSnapshot } from '../core/data-view.js';
6
- import { type ReactNode } from 'react';
7
- import type { DataOperations, DateRangeRequest } from '../core/contract.js';
8
- import type { DataClient } from '../client/data-client.js';
9
- import type { InputOf, OutputOf } from '../core/operation-types.js';
10
- import { type VariableCollection } from '../core/variables.js';
11
- import { dateRangeVariable, type DateRangeVariable, type DateRangeVariableOptions } from './ui/variables.js';
12
- import { type DimensionFilterOptions, type DimensionOption, type DimensionValue } from '../core/dimension.js';
13
- import type { EmptyContent } from './ui/presentation.js';
14
- import { ViewContent, type DataContentState } from './content.js';
15
- import { type DataViewDefinition, type ResolvedVariables, type ViewBindingOptions } from './view.js';
16
- type TimeVariables<Additional extends VariableCollection> = {
17
- period: ReturnType<typeof dateRangeVariable>;
18
- } & Additional;
19
- type TimeInput<Additional extends VariableCollection> = keyof Additional extends never ? DateRangeRequest : ResolvedVariables<TimeVariables<Additional>>;
20
- type TimeInputMapping<Additional extends VariableCollection, Input> = TimeInput<Additional> extends Input ? {
21
- input?: (values: ResolvedVariables<TimeVariables<Additional>>) => Input;
22
- } : {
23
- input: (values: ResolvedVariables<TimeVariables<Additional>>) => Input;
24
- };
25
- /** Match the period reader's precedence for each possible operation input. */
26
- type RequiredPeriodBinding<Input> = Input extends unknown ? 'period' extends keyof Input ? Input extends {
27
- period: DateRangeRequest;
28
- } ? never : 'period' : Input extends DateRangeRequest ? never : 'period' : never;
29
- /** Bind declared operations to URL variables, displayed readings, and request feedback. */
30
- export declare function createDataHooks<Operations extends DataOperations>(client: DataClient<Operations>): {
31
- defineDataView: <Name extends keyof Operations & string, const Variables extends VariableCollection = {}, const Context extends AuthoringDataContext = AuthoringDataContext>(definition: DataViewDefinition<Name, Variables, InputOf<Operations[Name]>, OutputOf<Operations[Name]>> & {
32
- dataContext: Context;
33
- }) => DeclaredView<OutputOf<Operations[Name]>, InputOf<Operations[Name]>, Omit<DataViewDefinition<Name, Variables, InputOf<Operations[Name]>, OutputOf<Operations[Name]>>, "input" | "variables"> & {
34
- variables: Variables;
35
- input: (values: ResolvedVariables<NoInfer<Variables>>) => InputOf<Operations[Name]>;
36
- describeInput: (input: InputOf<Operations[Name]>) => string;
37
- }> & {
38
- dataset<Row>(dataset: DatasetDefinition<OutputOf<Operations[Name]>, InputOf<Operations[Name]>, Row, Parameters<Context['evidence']>[0]>): import("./bindings.js").Dataset<OutputOf<Operations[Name]>, InputOf<Operations[Name]>, Row>;
39
- metric(metric: Parameters<Context['metric']>[0], select: (data: OutputOf<Operations[Name]>, input: InputOf<Operations[Name]>) => MetricValues): import("./bindings.js").Metric<OutputOf<Operations[Name]>, InputOf<Operations[Name]>>;
40
- scope(snapshot: DisplayedSnapshot<OutputOf<Operations[Name]>, InputOf<Operations[Name]>>): string;
41
- content(render: (state: DataContentState<OutputOf<Operations[Name]>, InputOf<Operations[Name]>>) => ReactNode): ViewContent<OutputOf<Operations[Name]>, InputOf<Operations[Name]>>;
42
- };
43
- defineTimeView: <Name extends keyof Operations & string, const Additional extends VariableCollection = {}, const Context extends AuthoringDataContext = AuthoringDataContext>(definition: {
44
- operation: Name;
45
- dataContext: Context;
46
- time: Omit<DateRangeVariableOptions, 'key'>;
47
- variables?: Additional & {
48
- period?: never;
49
- };
50
- isEmpty: (data: OutputOf<Operations[Name]>) => boolean;
51
- emptyFallback: EmptyContent;
52
- } & TimeInputMapping<NoInfer<Additional>, InputOf<Operations[Name]>> & ViewBindingOptions<TimeVariables<NoInfer<Additional>>, InputOf<Operations[Name]>, RequiredPeriodBinding<InputOf<Operations[Name]>>>) => DeclaredView<OutputOf<Operations[Name]>, InputOf<Operations[Name]>, Omit<DataViewDefinition<Name, {
53
- period: DateRangeVariable;
54
- } & Additional, InputOf<Operations[Name]>, OutputOf<Operations[Name]>>, "input" | "variables"> & {
55
- variables: {
56
- period: DateRangeVariable;
57
- } & Additional;
58
- input: (values: ResolvedVariables<NoInfer<{
59
- period: DateRangeVariable;
60
- } & Additional>>) => InputOf<Operations[Name]>;
61
- describeInput: (input: InputOf<Operations[Name]>) => string;
62
- }> & {
63
- dataset<Row>(dataset: DatasetDefinition<OutputOf<Operations[Name]>, InputOf<Operations[Name]>, Row, Parameters<Context["evidence"]>[0]>): import("./bindings.js").Dataset<OutputOf<Operations[Name]>, InputOf<Operations[Name]>, Row>;
64
- metric(metric: Parameters<Context["metric"]>[0], select: (data: OutputOf<Operations[Name]>, input: InputOf<Operations[Name]>) => MetricValues): import("./bindings.js").Metric<OutputOf<Operations[Name]>, InputOf<Operations[Name]>>;
65
- scope(snapshot: DisplayedSnapshot<OutputOf<Operations[Name]>, InputOf<Operations[Name]>>): string;
66
- content(render: (state: DataContentState<OutputOf<Operations[Name]>, InputOf<Operations[Name]>>) => ReactNode): ViewContent<OutputOf<Operations[Name]>, InputOf<Operations[Name]>>;
67
- };
68
- defineFacetFilter: <Name extends keyof Operations & string, const T extends DimensionValue>(config: Omit<DimensionFilterOptions<T>, 'options' | 'facet'> & {
69
- facet: {
70
- operation: Name;
71
- input: (values: Record<string, unknown>) => InputOf<Operations[Name]>;
72
- };
73
- } & (OutputOf<Operations[Name]> extends readonly DimensionOption<T>[] ? object : never)) => import("../core/dimension.js").DimensionVariable<T>;
74
- };
75
- export {};
@@ -1,75 +0,0 @@
1
- /** Declared views, bound widgets, and layouts for data-app authoring. */
2
- export type { DatasetColumn, DatasetSuggestionOptions, DatasetDeclaration as DatasetDefinition, } from './bindings.js';
3
- export { injectDataAppStyles } from './styles.js';
4
- export type { DataAppStylesOptions } from './styles.js';
5
- export type { DataAppStyle, DataAppStyleToken, DataAppStyleHooks, } from './style-contract.js';
6
- export { mountDataApp } from './mount.js';
7
- export { createDataHooks } from './hooks.js';
8
- export type { CsvCell } from './ui/csv-export.js';
9
- export { DataApp } from './ui/DataApp.js';
10
- export type { DataAppProps } from './ui/DataApp.js';
11
- export { Stack } from './ui/Stack.js';
12
- export type { StackProps } from './ui/Stack.js';
13
- export { Grid } from './ui/Grid.js';
14
- export type { GridProps } from './ui/Grid.js';
15
- export { GridItem } from './ui/GridItem.js';
16
- export type { GridItemProps } from './ui/GridItem.js';
17
- export type { WidgetEvidence } from './ui/WidgetEvidence.js';
18
- export { TextContent } from './ui/TextContent.js';
19
- export type { TextContentProps } from './ui/TextContent.js';
20
- export { DataValue } from './widgets.js';
21
- export type { DataValueProps } from './widgets.js';
22
- export { TextWidget } from './widgets.js';
23
- export type { TextWidgetProps } from './widgets.js';
24
- export { VisualizationWidget } from './widgets.js';
25
- export type { VisualizationWidgetProps } from './widgets.js';
26
- export type { VisualizationWidgetView } from './widgets.js';
27
- export { TableWidget } from './widgets.js';
28
- export type { TableWidgetProps } from './widgets.js';
29
- export type { TableWidgetSearch } from './ui/TableWidget.js';
30
- export { chartColor } from './ui/chartColor.js';
31
- export { Breakdown } from './ui/Breakdown.js';
32
- export type { BreakdownItem, BreakdownProps } from './ui/Breakdown.js';
33
- export { Ranking } from './ui/Ranking.js';
34
- export type { RankingItem, RankingProps } from './ui/Ranking.js';
35
- export { Comparison } from './ui/Comparison.js';
36
- export type { ComparisonProps } from './ui/Comparison.js';
37
- export { MetricWidget } from './widgets.js';
38
- export type { MetricWidgetProps } from './widgets.js';
39
- export { EmptyState } from './ui/EmptyState.js';
40
- export type { EmptyStateProps } from './ui/EmptyState.js';
41
- export { Skeleton } from './ui/Skeleton.js';
42
- export type { SkeletonProps } from './ui/Skeleton.js';
43
- export { DataSection } from './ui/DataSection.js';
44
- export type { DataSectionProps } from './ui/DataSection.js';
45
- export { UpdatedAt } from './ui/UpdatedAt.js';
46
- export type { UpdatedAtProps } from './ui/UpdatedAt.js';
47
- export { DateTimeTooltip } from './ui/DateTimeTooltip.js';
48
- export type { DateTimeTooltipProps } from './ui/DateTimeTooltip.js';
49
- export { searchVariable, choiceVariable, multiChoiceVariable, dateRangeVariable, } from './ui/variables.js';
50
- export type { AppVariable, VariablePresentation, AppVariableValues, ChoiceOption, ChoiceVariable, MultiChoiceVariable, SearchVariable, DateRangeSelection, DateRangeVariable, DateRangeVariableOptions, } from './ui/variables.js';
51
- export { PeriodSummary } from './ui/PeriodSummary.js';
52
- export type { ReportingPeriod, PeriodComparison, PeriodSummaryProps, } from './ui/PeriodSummary.js';
53
- export { createDataContext } from './ui/data-context.js';
54
- export type { DataContext, GlossaryEntry } from './ui/data-context.js';
55
- export { defineDataIdentifiers } from './ui/data-identifiers.js';
56
- export type { DataIdentifierDefinition, TableIdentifier, ColumnIdentifier, } from './ui/data-identifiers.js';
57
- export { IconButton } from './ui/IconButton.js';
58
- export type { IconButtonProps } from './ui/IconButton.js';
59
- export { Tooltip, TooltipProvider } from './ui/Tooltip.js';
60
- export type { TooltipProps, TooltipProviderProps, } from './ui/Tooltip.js';
61
- export { Button } from './ui/Button.js';
62
- export type { ButtonProps } from './ui/Button.js';
63
- export type { MetricDefinition } from './ui/metric.js';
64
- export type { MetricValues } from '../core/reading.js';
65
- export { AnnotationTarget } from './annotations/AnnotationTarget.js';
66
- export type { AnnotationTargetProps } from './annotations/AnnotationTarget.js';
67
- export { useDataAppAnnotations } from './annotations/useDataAppAnnotations.js';
68
- export { AnnotationBar } from './annotations/AnnotationBar.js';
69
- export type { AnnotationBarHandle, AnnotationBarProps, } from './annotations/AnnotationBar.js';
70
- export { injectDataAppAnnotationStyles } from './annotations/styles.js';
71
- export { SectionHeading } from './ui/SectionHeading.js';
72
- export type { SectionHeadingProps } from './ui/SectionHeading.js';
73
- export { DateDisplay } from './ui/DateDisplay.js';
74
- export type { DateDisplayProps } from './ui/DateDisplay.js';
75
- export { useDateFormatting } from './date-formatting.js';
@@ -1,7 +0,0 @@
1
- import type { DataAppStylesOptions } from './styles.js';
2
- export declare function injectStyles({ name, attribute, css, options, }: {
3
- name: string;
4
- attribute: string;
5
- css: string;
6
- options: DataAppStylesOptions;
7
- }): HTMLStyleElement;