@dudousxd/nestjs-catalog-react 0.34.2 → 0.36.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 (191) hide show
  1. package/README.md +1 -0
  2. package/dist/AccessConsole.d.ts +1 -1
  3. package/dist/AccessConsole.js +19 -19
  4. package/dist/CatalogManager.js +11 -11
  5. package/dist/ConnectionPanel.js +9 -9
  6. package/dist/CoverageLedger.js +1 -1
  7. package/dist/DashboardBoard.js +10 -10
  8. package/dist/EditableField.js +1 -1
  9. package/dist/FlowView.js +4 -4
  10. package/dist/GovernanceTimeline.d.ts +1 -1
  11. package/dist/GovernanceTimeline.js +10 -8
  12. package/dist/LoadExpectationSection.js +6 -6
  13. package/dist/LoadedBySection.d.ts +1 -1
  14. package/dist/LoadedBySection.js +4 -4
  15. package/dist/ObjectExplorer.js +20 -18
  16. package/dist/PipelineConsole.js +9 -9
  17. package/dist/QueryConsole.js +7 -7
  18. package/dist/SavedQueryPanel.js +7 -7
  19. package/dist/TraceExplorer.d.ts +3 -2
  20. package/dist/TraceExplorer.js +22 -14
  21. package/dist/TransformEditor.js +8 -8
  22. package/dist/WorkflowCanvas.js +30 -30
  23. package/dist/charts/bklit/area-chart-loading.d.ts +2 -2
  24. package/dist/charts/bklit/area-chart-loading.js +4 -4
  25. package/dist/charts/bklit/area-chart.d.ts +3 -3
  26. package/dist/charts/bklit/area-chart.js +7 -7
  27. package/dist/charts/bklit/area-gradient-defs.d.ts +1 -1
  28. package/dist/charts/bklit/area-gradient-defs.js +1 -1
  29. package/dist/charts/bklit/area.d.ts +4 -4
  30. package/dist/charts/bklit/area.js +11 -11
  31. package/dist/charts/bklit/bar-chart-loading.d.ts +1 -1
  32. package/dist/charts/bklit/bar-chart-loading.js +1 -1
  33. package/dist/charts/bklit/bar-chart.d.ts +2 -2
  34. package/dist/charts/bklit/bar-chart.js +12 -12
  35. package/dist/charts/bklit/bar-squares.d.ts +1 -1
  36. package/dist/charts/bklit/bar-squares.js +5 -5
  37. package/dist/charts/bklit/bar-x-axis.js +2 -2
  38. package/dist/charts/bklit/bar-y-axis.js +2 -2
  39. package/dist/charts/bklit/bar.js +4 -4
  40. package/dist/charts/bklit/chart-context.d.ts +4 -4
  41. package/dist/charts/bklit/chart-context.js +1 -1
  42. package/dist/charts/bklit/chart-loading-label.js +3 -3
  43. package/dist/charts/bklit/chart-reveal-clip.js +1 -1
  44. package/dist/charts/bklit/grid.js +3 -3
  45. package/dist/charts/bklit/highlight-segment-bounds.d.ts +2 -2
  46. package/dist/charts/bklit/line-chart-loading.d.ts +2 -2
  47. package/dist/charts/bklit/line-chart-loading.js +4 -4
  48. package/dist/charts/bklit/line-chart.d.ts +3 -3
  49. package/dist/charts/bklit/line-chart.js +6 -6
  50. package/dist/charts/bklit/line-loading-pulse.d.ts +1 -1
  51. package/dist/charts/bklit/line-loading-pulse.js +3 -3
  52. package/dist/charts/bklit/line-series-terminal-marker.js +2 -2
  53. package/dist/charts/bklit/line.d.ts +4 -4
  54. package/dist/charts/bklit/line.js +11 -11
  55. package/dist/charts/bklit/loading-sweep.js +2 -2
  56. package/dist/charts/bklit/motion-utils.js +1 -1
  57. package/dist/charts/bklit/pattern-area.js +1 -1
  58. package/dist/charts/bklit/pattern-preset.js +1 -1
  59. package/dist/charts/bklit/projection-config.d.ts +1 -1
  60. package/dist/charts/bklit/projection-config.js +3 -3
  61. package/dist/charts/bklit/projection-line-end-marker.d.ts +1 -1
  62. package/dist/charts/bklit/projection-line-end-marker.js +1 -1
  63. package/dist/charts/bklit/projection-line.d.ts +1 -1
  64. package/dist/charts/bklit/projection-line.js +2 -2
  65. package/dist/charts/bklit/reference-area-config.js +1 -1
  66. package/dist/charts/bklit/reference-area-registration-context.d.ts +1 -1
  67. package/dist/charts/bklit/series-dash-tail-overlay.js +2 -2
  68. package/dist/charts/bklit/series-highlight-layer.js +3 -3
  69. package/dist/charts/bklit/series-hover-dim.js +2 -2
  70. package/dist/charts/bklit/series-markers.d.ts +1 -1
  71. package/dist/charts/bklit/series-markers.js +4 -4
  72. package/dist/charts/bklit/series-point-marker.js +1 -1
  73. package/dist/charts/bklit/time-series-chart-shell.d.ts +2 -2
  74. package/dist/charts/bklit/time-series-chart-shell.js +20 -20
  75. package/dist/charts/bklit/tooltip/chart-tooltip.d.ts +4 -4
  76. package/dist/charts/bklit/tooltip/chart-tooltip.js +8 -8
  77. package/dist/charts/bklit/tooltip/index.d.ts +6 -6
  78. package/dist/charts/bklit/tooltip/index.js +6 -6
  79. package/dist/charts/bklit/tooltip/tooltip-box.d.ts +1 -1
  80. package/dist/charts/bklit/tooltip/tooltip-box.js +3 -3
  81. package/dist/charts/bklit/tooltip/tooltip-content.js +1 -1
  82. package/dist/charts/bklit/tooltip/tooltip-dot.d.ts +1 -1
  83. package/dist/charts/bklit/tooltip/tooltip-dot.js +2 -2
  84. package/dist/charts/bklit/tooltip/tooltip-indicator.d.ts +2 -2
  85. package/dist/charts/bklit/tooltip/tooltip-indicator.js +3 -3
  86. package/dist/charts/bklit/use-animated-series-path.js +2 -2
  87. package/dist/charts/bklit/use-animated-y-domains.d.ts +2 -2
  88. package/dist/charts/bklit/use-animated-y-domains.js +2 -2
  89. package/dist/charts/bklit/use-chart-interaction.d.ts +1 -1
  90. package/dist/charts/bklit/use-chart-interaction.js +2 -2
  91. package/dist/charts/bklit/use-chart-phase-orchestrator.d.ts +1 -1
  92. package/dist/charts/bklit/use-chart-phase-orchestrator.js +1 -1
  93. package/dist/charts/bklit/use-grid-shimmer.js +1 -1
  94. package/dist/charts/bklit/use-highlight-segment.js +3 -3
  95. package/dist/charts/bklit/use-mount-progress.js +1 -1
  96. package/dist/charts/bklit/x-axis.js +5 -5
  97. package/dist/charts/bklit/y-axis-scales.d.ts +1 -1
  98. package/dist/charts/bklit/y-domain-utils.d.ts +2 -2
  99. package/dist/charts/bklit/y-domain-utils.js +2 -2
  100. package/dist/charts/bklit.d.ts +1 -1
  101. package/dist/charts/bklit.js +11 -11
  102. package/dist/charts/body.js +4 -4
  103. package/dist/charts/components/shimmering-text.js +1 -1
  104. package/dist/charts/css.d.ts +2 -2
  105. package/dist/charts/css.js +1 -1
  106. package/dist/charts/recharts.d.ts +1 -1
  107. package/dist/charts/recharts.js +2 -2
  108. package/dist/charts/skeleton.js +1 -1
  109. package/dist/connection-form.js +3 -3
  110. package/dist/context.d.ts +50 -24
  111. package/dist/context.js +48 -16
  112. package/dist/diff/RevisionDiff.d.ts +1 -1
  113. package/dist/diff/RevisionDiff.js +7 -7
  114. package/dist/embed/EmbeddedChart.d.ts +2 -2
  115. package/dist/embed/EmbeddedChart.js +4 -4
  116. package/dist/embed/EmbeddedDashboard.d.ts +2 -2
  117. package/dist/embed/EmbeddedDashboard.js +6 -6
  118. package/dist/embed/actions.d.ts +1 -1
  119. package/dist/embed/actions.js +2 -2
  120. package/dist/embed/chart-card.d.ts +2 -2
  121. package/dist/embed/chart-card.js +7 -7
  122. package/dist/embed/index.d.ts +5 -5
  123. package/dist/embed/index.js +4 -4
  124. package/dist/embed/slots.js +1 -1
  125. package/dist/export/index.d.ts +6 -6
  126. package/dist/export/index.js +6 -6
  127. package/dist/export/pdf.d.ts +2 -2
  128. package/dist/export/pdf.js +2 -2
  129. package/dist/export/png.d.ts +1 -1
  130. package/dist/export/png.js +1 -1
  131. package/dist/export/serialize.js +1 -1
  132. package/dist/export/use-pdf-export.d.ts +2 -2
  133. package/dist/export/use-pdf-export.js +3 -3
  134. package/dist/export/use-png-export.d.ts +1 -1
  135. package/dist/export/use-png-export.js +1 -1
  136. package/dist/index.d.ts +46 -46
  137. package/dist/index.js +46 -46
  138. package/dist/routes.d.ts +3 -2
  139. package/dist/routes.js +4 -4
  140. package/dist/schema-discovery.js +2 -2
  141. package/dist/search-console.d.ts +2 -2
  142. package/dist/search-console.js +8 -8
  143. package/dist/sharing.js +2 -2
  144. package/dist/source-connection.d.ts +1 -1
  145. package/dist/source-connection.js +6 -6
  146. package/dist/source-fields.d.ts +2 -2
  147. package/dist/source-fields.js +6 -6
  148. package/dist/ui/button.js +1 -1
  149. package/dist/ui/chart.js +1 -1
  150. package/dist/ui/code-editor.d.ts +2 -2
  151. package/dist/ui/code-editor.js +2 -2
  152. package/dist/ui/combobox.js +1 -1
  153. package/dist/ui/data-table.js +1 -1
  154. package/dist/ui/dialog.js +1 -1
  155. package/dist/ui/field.js +1 -1
  156. package/dist/ui/rich-text-field.js +2 -2
  157. package/dist/ui/select.js +1 -1
  158. package/dist/ui/sheet.js +2 -2
  159. package/dist/ui/switch.js +1 -1
  160. package/dist/ui/tabs.js +1 -1
  161. package/dist/ui/tooltip.js +1 -1
  162. package/dist/workflow/canvas-menu.d.ts +1 -1
  163. package/dist/workflow/canvas-menu.js +4 -4
  164. package/dist/workflow/create.d.ts +1 -1
  165. package/dist/workflow/create.js +4 -4
  166. package/dist/workflow/edges.d.ts +1 -1
  167. package/dist/workflow/edges.js +1 -1
  168. package/dist/workflow/graph.d.ts +2 -2
  169. package/dist/workflow/graph.js +2 -2
  170. package/dist/workflow/history.d.ts +1 -1
  171. package/dist/workflow/history.js +6 -6
  172. package/dist/workflow/index.d.ts +4 -4
  173. package/dist/workflow/index.js +4 -4
  174. package/dist/workflow/lifecycle.d.ts +2 -2
  175. package/dist/workflow/lifecycle.js +8 -8
  176. package/dist/workflow/menu.d.ts +2 -2
  177. package/dist/workflow/menu.js +3 -3
  178. package/dist/workflow/nodes.d.ts +2 -2
  179. package/dist/workflow/nodes.js +3 -3
  180. package/dist/workflow/place.d.ts +1 -1
  181. package/dist/workflow/place.js +1 -1
  182. package/dist/workflow/removal.d.ts +1 -1
  183. package/dist/workflow/removal.js +1 -1
  184. package/dist/workflow/runs.js +6 -6
  185. package/dist/workflow/shape.d.ts +1 -1
  186. package/dist/workflow/shape.js +1 -1
  187. package/dist/workflow/validate.d.ts +1 -1
  188. package/dist/workflow/validate.js +3 -3
  189. package/dist/workflow/wiring.d.ts +1 -1
  190. package/dist/workflow/wiring.js +4 -4
  191. package/package.json +9 -6
@@ -10,36 +10,36 @@ import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query';
10
10
  import { ArrowRight, ChevronDown, CircleAlert, CircleDashed, Code2, Combine, Database, ExternalLink, Filter, GitBranch, Info, LayoutGrid, Loader2, Maximize2, Minimize2, PanelRight, Plug, Plus, Repeat, Save, Sigma, TextCursorInput, Trash2, TriangleAlert, Unplug, X, } from 'lucide-react';
11
11
  import { AnimatePresence, motion, useReducedMotion } from 'motion/react';
12
12
  import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
13
- import { connectionOptionsFor } from './ConnectionPanel';
14
- import { TransformEditor } from './TransformEditor';
15
- import { cn } from './cn';
16
- import { catalogQueryKeys, useCatalogClient } from './context';
17
- import { SchemaDiscoveryPanel, narrowDiscovery, } from './schema-discovery';
18
- import { SourceConnectionCreator } from './source-connection';
19
- import { INLINE_CONNECTION, KIND_OPTIONS, ReadModeFields, SourceFields, readsIncrementally, sourceConfigFrom, sourceDraftFrom, toConnectorKind, usesConnection, } from './source-fields';
20
- import { Button } from './ui/button';
21
- import { ComboboxField } from './ui/combobox';
22
- import { ConfirmDialog } from './ui/dialog';
23
- import { FieldGroup, TextAreaField, TextField } from './ui/field';
24
- import { Select, SelectField } from './ui/select';
25
- import { Sheet } from './ui/sheet';
26
- import { Switch } from './ui/switch';
27
- import { Tooltip, TooltipProvider } from './ui/tooltip';
28
- import { buildCanvasMenu, deleteCost, } from './workflow/canvas-menu';
29
- import { graphWithNodeBetween, newEdge, newKindsFrom, newNodeOfKind, nodeBetween, uniqueName, } from './workflow/create';
30
- import { WorkflowEdgeProvider, workflowEdgeTypes } from './workflow/edges';
31
- import { defaultLabel, describeFilterPredicate, flowingEdgeIds, layout, layoutIfUnarranged, nextPosition, toFlowEdges, toFlowNodes, } from './workflow/graph';
32
- import { HistoryControls, keepKnown, namesOf, nodeEditAction, reverted, snapshotOf, undone, useUndoShortcut, useUnsavedGuard, withEdit, } from './workflow/history';
33
- import { PublishControls, RunControls, SchedulePanel, ShrinkRefusalNote, WorkflowStatusBadge, } from './workflow/lifecycle';
34
- import { CanvasContextMenu, NodeActionsToolbar } from './workflow/menu';
35
- import { WORKFLOW_AGGREGATE_FUNCTIONS, WORKFLOW_AGGREGATE_MAX_AGGREGATES, WORKFLOW_AGGREGATE_MAX_GROUP_BY, WORKFLOW_BRANCH_LABELS, WORKFLOW_CALL_MODES, WORKFLOW_FILTER_MAX_DEPTH, WORKFLOW_FILTER_MAX_VALUES, WORKFLOW_FILTER_OPERATORS, WORKFLOW_LOOKUP_MAX_FIELDS, WORKFLOW_LOOKUP_MAX_REFERENCE_ROWS, WORKFLOW_NODE_KINDS, WORKFLOW_RENAME_MAX_COLUMNS, aggregateRefusals, callableWorkflowBlock, describeDurability, isWorkflowAggregateFunction, isWorkflowBranchLabel, isWorkflowFilterOperator, isWorkflowFilterPredicateKind, isWorkflowLookupUnmatched, isWorkflowNodeKind, isWorkflowPredicateKind, isWorkflowRenameUnnamed, lookupConfigRefusals, newLocalId, nodeName, producedTypes, renameColumnRefusals, unreachableFilterPredicateKind, unreachableNodeKind, unreachablePredicateKind, workflowAggregateMaxGroups, workflowAggregateNeedsColumn, workflowAggregateOutputColumns, workflowCallMode, workflowKnownColumns, workflowLookupColumns, workflowLookupUnmatched, workflowNarrowedTypes, workflowRenameUnnamed, } from './workflow/model';
36
- import { WORKFLOW_NAME } from './workflow/name';
37
- import { WorkflowNodeProvider, workflowNodeTypes } from './workflow/nodes';
38
- import { freeSpot, placeNextTo } from './workflow/place';
39
- import { removeNodes, wiresOn } from './workflow/removal';
40
- import { RunsAsPanel } from './workflow/runs';
41
- import { canConnect, edgeId, hasBlockingProblem, problemsByNode, validateWorkflow, } from './workflow/validate';
42
- import { PendingWireLine, WiringHint, useClickWiring, } from './workflow/wiring';
13
+ import { connectionOptionsFor } from './ConnectionPanel.js';
14
+ import { TransformEditor } from './TransformEditor.js';
15
+ import { cn } from './cn.js';
16
+ import { catalogQueryKeys, useCatalogClient } from './context.js';
17
+ import { SchemaDiscoveryPanel, narrowDiscovery, } from './schema-discovery.js';
18
+ import { SourceConnectionCreator } from './source-connection.js';
19
+ import { INLINE_CONNECTION, KIND_OPTIONS, ReadModeFields, SourceFields, readsIncrementally, sourceConfigFrom, sourceDraftFrom, toConnectorKind, usesConnection, } from './source-fields.js';
20
+ import { Button } from './ui/button.js';
21
+ import { ComboboxField } from './ui/combobox.js';
22
+ import { ConfirmDialog } from './ui/dialog.js';
23
+ import { FieldGroup, TextAreaField, TextField } from './ui/field.js';
24
+ import { Select, SelectField } from './ui/select.js';
25
+ import { Sheet } from './ui/sheet.js';
26
+ import { Switch } from './ui/switch.js';
27
+ import { Tooltip, TooltipProvider } from './ui/tooltip.js';
28
+ import { buildCanvasMenu, deleteCost, } from './workflow/canvas-menu.js';
29
+ import { graphWithNodeBetween, newEdge, newKindsFrom, newNodeOfKind, nodeBetween, uniqueName, } from './workflow/create.js';
30
+ import { WorkflowEdgeProvider, workflowEdgeTypes } from './workflow/edges.js';
31
+ import { defaultLabel, describeFilterPredicate, flowingEdgeIds, layout, layoutIfUnarranged, nextPosition, toFlowEdges, toFlowNodes, } from './workflow/graph.js';
32
+ import { HistoryControls, keepKnown, namesOf, nodeEditAction, reverted, snapshotOf, undone, useUndoShortcut, useUnsavedGuard, withEdit, } from './workflow/history.js';
33
+ import { PublishControls, RunControls, SchedulePanel, ShrinkRefusalNote, WorkflowStatusBadge, } from './workflow/lifecycle.js';
34
+ import { CanvasContextMenu, NodeActionsToolbar } from './workflow/menu.js';
35
+ import { WORKFLOW_AGGREGATE_FUNCTIONS, WORKFLOW_AGGREGATE_MAX_AGGREGATES, WORKFLOW_AGGREGATE_MAX_GROUP_BY, WORKFLOW_BRANCH_LABELS, WORKFLOW_CALL_MODES, WORKFLOW_FILTER_MAX_DEPTH, WORKFLOW_FILTER_MAX_VALUES, WORKFLOW_FILTER_OPERATORS, WORKFLOW_LOOKUP_MAX_FIELDS, WORKFLOW_LOOKUP_MAX_REFERENCE_ROWS, WORKFLOW_NODE_KINDS, WORKFLOW_RENAME_MAX_COLUMNS, aggregateRefusals, callableWorkflowBlock, describeDurability, isWorkflowAggregateFunction, isWorkflowBranchLabel, isWorkflowFilterOperator, isWorkflowFilterPredicateKind, isWorkflowLookupUnmatched, isWorkflowNodeKind, isWorkflowPredicateKind, isWorkflowRenameUnnamed, lookupConfigRefusals, newLocalId, nodeName, producedTypes, renameColumnRefusals, unreachableFilterPredicateKind, unreachableNodeKind, unreachablePredicateKind, workflowAggregateMaxGroups, workflowAggregateNeedsColumn, workflowAggregateOutputColumns, workflowCallMode, workflowKnownColumns, workflowLookupColumns, workflowLookupUnmatched, workflowNarrowedTypes, workflowRenameUnnamed, } from './workflow/model.js';
36
+ import { WORKFLOW_NAME } from './workflow/name.js';
37
+ import { WorkflowNodeProvider, workflowNodeTypes } from './workflow/nodes.js';
38
+ import { freeSpot, placeNextTo } from './workflow/place.js';
39
+ import { removeNodes, wiresOn } from './workflow/removal.js';
40
+ import { RunsAsPanel } from './workflow/runs.js';
41
+ import { canConnect, edgeId, hasBlockingProblem, problemsByNode, validateWorkflow, } from './workflow/validate.js';
42
+ import { PendingWireLine, WiringHint, useClickWiring, } from './workflow/wiring.js';
43
43
  const MUTED = 'text-zinc-400 dark:text-zinc-500';
44
44
  const RULE = 'border-zinc-200 dark:border-zinc-800';
45
45
  const PANEL = 'bg-white dark:bg-zinc-900';
@@ -1,5 +1,5 @@
1
- import type { Margin } from './chart-context';
2
- import type { LoadingStyle } from './chart-phase';
1
+ import type { Margin } from './chart-context.js';
2
+ import type { LoadingStyle } from './chart-phase.js';
3
3
  export interface AreaChartLoadingProps {
4
4
  /** Chart margins */
5
5
  margin?: Partial<Margin>;
@@ -11,10 +11,10 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
11
  */
12
12
  import { curveNatural } from '@visx/curve';
13
13
  import { useMemo } from 'react';
14
- import { Area } from './area';
15
- import { AreaChart } from './area-chart';
16
- import { DEFAULT_SKELETON_DATA_KEY, DEFAULT_SKELETON_POINT_COUNT, generateChartSkeletonData, } from './generate-chart-skeleton-data';
17
- import { Grid } from './grid';
14
+ import { AreaChart } from './area-chart.js';
15
+ import { Area } from './area.js';
16
+ import { DEFAULT_SKELETON_DATA_KEY, DEFAULT_SKELETON_POINT_COUNT, generateChartSkeletonData, } from './generate-chart-skeleton-data.js';
17
+ import { Grid } from './grid.js';
18
18
  const LOADING_DATA_KEY = DEFAULT_SKELETON_DATA_KEY;
19
19
  const DEFAULT_LOADING_STROKE = 'var(--foreground)';
20
20
  const DEFAULT_LOADING_GRID_STROKE = 'color-mix(in oklch, var(--chart-grid) 50%, transparent)';
@@ -1,7 +1,7 @@
1
1
  import type { Transition } from 'motion/react';
2
2
  import { type CSSProperties, type ReactNode } from 'react';
3
- import type { Margin } from './chart-context';
4
- import { type ChartPhase, type ChartStatus } from './chart-phase';
3
+ import type { Margin } from './chart-context.js';
4
+ import { type ChartPhase, type ChartStatus } from './chart-phase.js';
5
5
  export interface AreaChartProps {
6
6
  /** Data array - each item should have a date field and numeric values */
7
7
  data: Record<string, unknown>[];
@@ -43,5 +43,5 @@ export interface AreaChartProps {
43
43
  children: ReactNode;
44
44
  }
45
45
  export declare function AreaChart({ data, xDataKey, margin: marginProp, animationDuration, animationEasing, enterTransition, revealSignature, aspectRatio, className, status, loadingLabel, yDomainTweenDuration, yDomainTween, xDomain, xDomainSlotCount, tweenYDomainOnXDomainChange, style, onPhaseChange, children, }: AreaChartProps): import("react").JSX.Element;
46
- export { Area, type AreaProps } from './area';
46
+ export { Area, type AreaProps } from './area.js';
47
47
  export default AreaChart;
@@ -11,12 +11,12 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
11
  */
12
12
  import { ParentSize } from '@visx/responsive';
13
13
  import { Children, isValidElement, useCallback, useMemo, useRef, useState, } from 'react';
14
- import { cn } from '../../cn';
15
- import { Area } from './area';
16
- import { ChartLoadingLabel } from './chart-loading-label';
17
- import { DEFAULT_CHART_STATUS, DEFAULT_Y_DOMAIN_TWEEN_MS, resolveRestingChartPhase, } from './chart-phase';
18
- import { PatternArea } from './pattern-area';
19
- import { TimeSeriesChartInner } from './time-series-chart-shell';
14
+ import { cn } from '../../cn.js';
15
+ import { Area } from './area.js';
16
+ import { ChartLoadingLabel } from './chart-loading-label.js';
17
+ import { DEFAULT_CHART_STATUS, DEFAULT_Y_DOMAIN_TWEEN_MS, resolveRestingChartPhase, } from './chart-phase.js';
18
+ import { PatternArea } from './pattern-area.js';
19
+ import { TimeSeriesChartInner } from './time-series-chart-shell.js';
20
20
  const DEFAULT_MARGIN = { top: 40, right: 40, bottom: 40, left: 40 };
21
21
  function extractAreaConfigs(children) {
22
22
  const configs = [];
@@ -61,5 +61,5 @@ export function AreaChart({ data, xDataKey = 'date', margin: marginProp, animati
61
61
  chartPhase === 'revealingLoading'));
62
62
  return (_jsxs("div", { className: cn('relative w-full', className), ref: containerRef, style: { aspectRatio, touchAction: 'none', ...style }, children: [_jsx(ParentSize, { debounceTime: 10, children: ({ width, height }) => (_jsx(ChartInner, { animationDuration: animationDuration, animationEasing: animationEasing, chartStatus: status, containerRef: containerRef, data: data, enterTransition: enterTransition, height: height, loadingLabel: loadingLabel, margin: margin, onPhaseChange: handlePhaseChange, revealSignature: revealSignature, tweenYDomainOnXDomainChange: tweenYDomainOnXDomainChange, width: width, xDataKey: xDataKey, xDomain: xDomain, xDomainSlotCount: xDomainSlotCount, yDomainTween: yDomainTween, yDomainTweenDuration: yDomainTweenDuration, children: children })) }), showLoadingLabel ? (_jsx(ChartLoadingLabel, { exiting: chartPhase !== 'loading', text: loadingLabel })) : null] }));
63
63
  }
64
- export { Area } from './area';
64
+ export { Area } from './area.js';
65
65
  export default AreaChart;
@@ -7,7 +7,7 @@
7
7
  * `cn`, which is the same function. Nothing else is modified, so re-syncing
8
8
  * with upstream stays a diff rather than a merge.
9
9
  */
10
- import { type FadeEdges } from './fade-edges';
10
+ import { type FadeEdges } from './fade-edges.js';
11
11
  interface AreaGradientDefsProps {
12
12
  gradientId: string;
13
13
  strokeGradientId: string;
@@ -8,7 +8,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
8
8
  * `cn`, which is the same function. Nothing else is modified, so re-syncing
9
9
  * with upstream stays a diff rather than a merge.
10
10
  */
11
- import { fadeGradientStops, resolveFadeSides, viewportFadeGradientAttrs, } from './fade-edges';
11
+ import { fadeGradientStops, resolveFadeSides, viewportFadeGradientAttrs, } from './fade-edges.js';
12
12
  export function AreaGradientDefs({ gradientId, strokeGradientId, edgeMaskId, edgeGradientId, fill, fillOpacity, gradientToOpacity, gradientSpan = 1, resolvedStroke, isPatternFill, fadeEdges, innerWidth, innerHeight, }) {
13
13
  const sides = resolveFadeSides(fadeEdges);
14
14
  // Stroke gradient mirrors the area's edge fade so the line doesn't pop in
@@ -1,8 +1,8 @@
1
1
  type CurveFactory = any;
2
- import type { LoadingStyle } from './chart-phase';
3
- import { type FadeEdges } from './fade-edges';
4
- import { type LineLoadingPulseMode } from './line-loading-pulse';
5
- import type { SeriesPointMarkerStyle } from './series-point-marker';
2
+ import type { LoadingStyle } from './chart-phase.js';
3
+ import { type FadeEdges } from './fade-edges.js';
4
+ import { type LineLoadingPulseMode } from './line-loading-pulse.js';
5
+ import type { SeriesPointMarkerStyle } from './series-point-marker.js';
6
6
  export interface AreaProps {
7
7
  /** Key in data to use for y values */
8
8
  dataKey: string;
@@ -12,17 +12,17 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
12
12
  import { curveMonotoneX } from '@visx/curve';
13
13
  import { AreaClosed, LinePath } from '@visx/shape';
14
14
  import { useCallback, useId, useMemo, useRef, useState } from 'react';
15
- import { AreaGradientDefs } from './area-gradient-defs';
16
- import { chartCssVars, useChartStable, useYScale } from './chart-context';
17
- import { resolveFadeSides } from './fade-edges';
18
- import { LineLoadingPulseStroke, resolveLineLoadingPulseMode, } from './line-loading-pulse';
19
- import { LINE_LOADING_LOOP_PAUSE_MS } from './line-loading-timing';
20
- import { LineLoadingSweep } from './loading-sweep';
21
- import { resolveDashTailBounds, usePathStrokeMetrics } from './path-stroke-utils';
22
- import { SeriesDashTailOverlay } from './series-dash-tail-overlay';
23
- import { SeriesHighlightLayer } from './series-highlight-layer';
24
- import { SeriesHoverDim } from './series-hover-dim';
25
- import { SeriesMarkers } from './series-markers';
15
+ import { AreaGradientDefs } from './area-gradient-defs.js';
16
+ import { chartCssVars, useChartStable, useYScale } from './chart-context.js';
17
+ import { resolveFadeSides } from './fade-edges.js';
18
+ import { LineLoadingPulseStroke, resolveLineLoadingPulseMode, } from './line-loading-pulse.js';
19
+ import { LINE_LOADING_LOOP_PAUSE_MS } from './line-loading-timing.js';
20
+ import { LineLoadingSweep } from './loading-sweep.js';
21
+ import { resolveDashTailBounds, usePathStrokeMetrics } from './path-stroke-utils.js';
22
+ import { SeriesDashTailOverlay } from './series-dash-tail-overlay.js';
23
+ import { SeriesHighlightLayer } from './series-highlight-layer.js';
24
+ import { SeriesHoverDim } from './series-hover-dim.js';
25
+ import { SeriesMarkers } from './series-markers.js';
26
26
  function useAreaLoadingPulseState(chartPhase, loading, loadingPulseMode, notifyLoadingPulseComplete) {
27
27
  const phasePulseMode = resolveLineLoadingPulseMode(chartPhase);
28
28
  const pulseMode = loading === false ? null : (loadingPulseMode ?? (loading === true ? 'loop' : phasePulseMode));
@@ -1,4 +1,4 @@
1
- import type { Margin } from './chart-context';
1
+ import type { Margin } from './chart-context.js';
2
2
  export interface BarChartLoadingProps {
3
3
  /** Chart margins. */
4
4
  margin?: Partial<Margin>;
@@ -9,7 +9,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
9
9
  * `cn`, which is the same function. Nothing else is modified, so re-syncing
10
10
  * with upstream stays a diff rather than a merge.
11
11
  */
12
- import { BarChart } from './bar-chart';
12
+ import { BarChart } from './bar-chart.js';
13
13
  const EMPTY_DATA = [];
14
14
  /**
15
15
  * Turnkey loading skeleton for bar charts, a thin shortcut for
@@ -1,7 +1,7 @@
1
1
  import type { Transition } from 'motion/react';
2
2
  import { type ReactNode } from 'react';
3
- import { type Margin } from './chart-context';
4
- import { type ChartPhase, type ChartStatus } from './chart-phase';
3
+ import { type Margin } from './chart-context.js';
4
+ import { type ChartPhase, type ChartStatus } from './chart-phase.js';
5
5
  export type BarOrientation = 'vertical' | 'horizontal';
6
6
  export interface BarChartProps {
7
7
  /** Data array - each item should have an x-axis key and numeric values */
@@ -13,18 +13,18 @@ import { localPoint } from '@visx/event';
13
13
  import { ParentSize } from '@visx/responsive';
14
14
  import { scaleBand, scaleLinear } from '@visx/scale';
15
15
  import { memo, useCallback, useEffect, useMemo, useRef, useState, } from 'react';
16
- import { cn } from '../../cn';
17
- import { DEFAULT_ANIMATION_EASING } from './animation';
18
- import { topSquareCenterY } from './bar-squares-layout';
19
- import { forEachChartChild, isChartClipPassthrough, isClipExcludedComponent, isPostOverlayComponent, isUnderlayComponent, renderKeyedChartLayers, resolveChartChildElement, } from './chart-child-passthrough';
20
- import { ChartProvider } from './chart-context';
21
- import { isGradientDefComponent, isPatternDefComponent } from './chart-defs';
22
- import { shortDateFmt } from './chart-formatters';
23
- import { DEFAULT_CHART_LIFECYCLE, resolveRestingChartPhase, } from './chart-phase';
24
- import { BarLoadingSkeleton } from './loading-sweep';
25
- import { extractReferenceAreaConfigs } from './reference-area-config';
26
- import { useScheduledTooltip } from './use-scheduled-tooltip';
27
- import { buildYScalesForLines, getPrimaryYScale, normalizeYAxisId, wrapSingleYScale, } from './y-axis-scales';
16
+ import { cn } from '../../cn.js';
17
+ import { DEFAULT_ANIMATION_EASING } from './animation.js';
18
+ import { topSquareCenterY } from './bar-squares-layout.js';
19
+ import { forEachChartChild, isChartClipPassthrough, isClipExcludedComponent, isPostOverlayComponent, isUnderlayComponent, renderKeyedChartLayers, resolveChartChildElement, } from './chart-child-passthrough.js';
20
+ import { ChartProvider } from './chart-context.js';
21
+ import { isGradientDefComponent, isPatternDefComponent } from './chart-defs.js';
22
+ import { shortDateFmt } from './chart-formatters.js';
23
+ import { DEFAULT_CHART_LIFECYCLE, resolveRestingChartPhase, } from './chart-phase.js';
24
+ import { BarLoadingSkeleton } from './loading-sweep.js';
25
+ import { extractReferenceAreaConfigs } from './reference-area-config.js';
26
+ import { useScheduledTooltip } from './use-scheduled-tooltip.js';
27
+ import { buildYScalesForLines, getPrimaryYScale, normalizeYAxisId, wrapSingleYScale, } from './y-axis-scales.js';
28
28
  /** Skeleton bars to show when `status="loading"` and `data` is empty. */
29
29
  const FALLBACK_LOADING_BARS = 12;
30
30
  const DEFAULT_MARGIN = { top: 40, right: 40, bottom: 40, left: 40 };
@@ -1,4 +1,4 @@
1
- import { type PatternPresetId } from './pattern-preset';
1
+ import { type PatternPresetId } from './pattern-preset.js';
2
2
  export interface GradientStop {
3
3
  offset: number;
4
4
  color: string;
@@ -2,11 +2,11 @@
2
2
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
3
  import { motion } from 'motion/react';
4
4
  import { memo, useId, useMemo } from 'react';
5
- import { computeSquareColumn } from './bar-squares-layout';
6
- import { chartCssVars, useChart, useChartStable, useYScale } from './chart-context';
7
- import { useChartLegendHover } from './chart-legend-hover';
8
- import { transitionWithDelay } from './motion-utils';
9
- import { renderPatternPreset } from './pattern-preset';
5
+ import { computeSquareColumn } from './bar-squares-layout.js';
6
+ import { chartCssVars, useChart, useChartStable, useYScale } from './chart-context.js';
7
+ import { useChartLegendHover } from './chart-legend-hover.js';
8
+ import { transitionWithDelay } from './motion-utils.js';
9
+ import { renderPatternPreset } from './pattern-preset.js';
10
10
  function isPatternFill(fill) {
11
11
  return fill.startsWith('url(');
12
12
  }
@@ -12,8 +12,8 @@ import { jsx as _jsx } from "react/jsx-runtime";
12
12
  import { motion } from 'motion/react';
13
13
  import { memo, useEffect, useMemo, useState } from 'react';
14
14
  import { createPortal } from 'react-dom';
15
- import { cn } from '../../cn';
16
- import { useChart, useChartStable } from './chart-context';
15
+ import { cn } from '../../cn.js';
16
+ import { useChart, useChartStable } from './chart-context.js';
17
17
  function BarXAxisLabel({ label, x, crosshairX, isHovering, tickerHalfWidth }) {
18
18
  const fadeBuffer = 20;
19
19
  const fadeRadius = tickerHalfWidth + fadeBuffer;
@@ -12,8 +12,8 @@ import { jsx as _jsx } from "react/jsx-runtime";
12
12
  import { motion } from 'motion/react';
13
13
  import { memo, useEffect, useMemo, useState } from 'react';
14
14
  import { createPortal } from 'react-dom';
15
- import { cn } from '../../cn';
16
- import { useChart, useChartStable } from './chart-context';
15
+ import { cn } from '../../cn.js';
16
+ import { useChart, useChartStable } from './chart-context.js';
17
17
  function BarYAxisLabel({ label, y, bandHeight, isHovered }) {
18
18
  return (_jsx("div", { className: "absolute right-0 flex items-center justify-end pr-2", style: {
19
19
  top: y,
@@ -2,10 +2,10 @@
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import { motion } from 'motion/react';
4
4
  import { memo, useId, useMemo } from 'react';
5
- import { barDepthAndRise, barDepthMaxDepth } from './bar-depth-geometry';
6
- import { chartCssVars, useChart, useChartStable, useYScale } from './chart-context';
7
- import { useChartLegendHover } from './chart-legend-hover';
8
- import { transitionWithDelay } from './motion-utils';
5
+ import { barDepthAndRise, barDepthMaxDepth } from './bar-depth-geometry.js';
6
+ import { chartCssVars, useChart, useChartStable, useYScale } from './chart-context.js';
7
+ import { useChartLegendHover } from './chart-legend-hover.js';
8
+ import { transitionWithDelay } from './motion-utils.js';
9
9
  // ── Bar-depth perspective trim ───────────────────────────────────────────
10
10
  // Uses the SHARED geometry (`bar-depth-geometry.ts`) so a
11
11
  // `<Bar perspective>` front face lines up exactly with
@@ -15,10 +15,10 @@ type ScaleBand<Domain extends {
15
15
  }> = ReturnType<typeof scaleBand<Domain>>;
16
16
  import type { Transition } from 'motion/react';
17
17
  import { type Dispatch, type ReactNode, type RefObject, type SetStateAction } from 'react';
18
- import type { ChartPhase, ChartStatus } from './chart-phase';
19
- import type { ReferenceAreaConfig } from './reference-area-config';
20
- import type { ChartSelection } from './use-chart-interaction';
21
- import type { YDomain } from './y-domain-utils';
18
+ import type { ChartPhase, ChartStatus } from './chart-phase.js';
19
+ import type { ReferenceAreaConfig } from './reference-area-config.js';
20
+ import type { ChartSelection } from './use-chart-interaction.js';
21
+ import type { YDomain } from './y-domain-utils.js';
22
22
  export declare const chartCssVars: {
23
23
  background: string;
24
24
  foreground: string;
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import { createContext, useContext, useMemo, } from 'react';
4
- import { DEFAULT_Y_AXIS_ID } from './y-axis-scales';
4
+ import { DEFAULT_Y_AXIS_ID } from './y-axis-scales.js';
5
5
  // CSS variable references for theming
6
6
  export const chartCssVars = {
7
7
  background: 'var(--chart-background)',
@@ -10,9 +10,9 @@ import { jsx as _jsx } from "react/jsx-runtime";
10
10
  * with upstream stays a diff rather than a merge.
11
11
  */
12
12
  import { motion } from 'motion/react';
13
- import { cn } from '../../cn';
14
- import { ShimmeringText } from '../components/shimmering-text';
15
- import { LINE_LOADING_PULSE_EASE, LOADING_LABEL_EXIT_S, LOADING_LABEL_EXIT_Y_PX, } from './line-loading-timing';
13
+ import { cn } from '../../cn.js';
14
+ import { ShimmeringText } from '../components/shimmering-text.js';
15
+ import { LINE_LOADING_PULSE_EASE, LOADING_LABEL_EXIT_S, LOADING_LABEL_EXIT_Y_PX, } from './line-loading-timing.js';
16
16
  export function ChartLoadingLabel({ text = 'Loading', className, exiting = false, }) {
17
17
  if (!text.trim()) {
18
18
  return null;
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import { motion } from 'motion/react';
4
- import { clipRevealTransition } from './animation';
4
+ import { clipRevealTransition } from './animation.js';
5
5
  /**
6
6
  * Left-to-right clip reveal for cartesian series.
7
7
  * Grows clip rect width from 0 → full (true LTR; scaleX is avoided — it reveals from center).
@@ -12,9 +12,9 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
12
12
  import { GridColumns, GridRows } from '@visx/grid';
13
13
  import { motion } from 'motion/react';
14
14
  import { useId } from 'react';
15
- import { chartCssVars, useChartStable, useYScale } from './chart-context';
16
- import { useGridShimmer } from './use-grid-shimmer';
17
- import { isLoadingChromePhase, isLoadingGridChromePhase } from './y-domain-utils';
15
+ import { chartCssVars, useChartStable, useYScale } from './chart-context.js';
16
+ import { useGridShimmer } from './use-grid-shimmer.js';
17
+ import { isLoadingChromePhase, isLoadingGridChromePhase } from './y-domain-utils.js';
18
18
  const DEFAULT_SHIMMER_LENGTH_PX = 140;
19
19
  const DEFAULT_SHIMMER_SPEED = 1;
20
20
  const DEFAULT_SHIMMER_STROKE = 'color-mix(in oklch, var(--foreground) 68%, transparent)';
@@ -7,8 +7,8 @@
7
7
  * `cn`, which is the same function. Nothing else is modified, so re-syncing
8
8
  * with upstream stays a diff rather than a merge.
9
9
  */
10
- import type { TooltipData } from './chart-context';
11
- import type { ChartSelection } from './use-chart-interaction';
10
+ import type { TooltipData } from './chart-context.js';
11
+ import type { ChartSelection } from './use-chart-interaction.js';
12
12
  export interface SegmentBounds {
13
13
  /** Left edge of the highlight band, in pixels. */
14
14
  x: number;
@@ -1,5 +1,5 @@
1
- import type { Margin } from './chart-context';
2
- import type { LoadingStyle } from './chart-phase';
1
+ import type { Margin } from './chart-context.js';
2
+ import type { LoadingStyle } from './chart-phase.js';
3
3
  export interface LineChartLoadingProps {
4
4
  /** Chart margins */
5
5
  margin?: Partial<Margin>;
@@ -11,10 +11,10 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
11
  */
12
12
  import { curveNatural } from '@visx/curve';
13
13
  import { useMemo } from 'react';
14
- import { DEFAULT_SKELETON_DATA_KEY, DEFAULT_SKELETON_POINT_COUNT, generateChartSkeletonData, } from './generate-chart-skeleton-data';
15
- import { Grid } from './grid';
16
- import { Line } from './line';
17
- import { LineChart } from './line-chart';
14
+ import { DEFAULT_SKELETON_DATA_KEY, DEFAULT_SKELETON_POINT_COUNT, generateChartSkeletonData, } from './generate-chart-skeleton-data.js';
15
+ import { Grid } from './grid.js';
16
+ import { LineChart } from './line-chart.js';
17
+ import { Line } from './line.js';
18
18
  const LOADING_DATA_KEY = DEFAULT_SKELETON_DATA_KEY;
19
19
  const DEFAULT_LOADING_STROKE = 'var(--foreground)';
20
20
  const DEFAULT_LOADING_GRID_STROKE = 'color-mix(in oklch, var(--chart-grid) 50%, transparent)';
@@ -1,7 +1,7 @@
1
1
  import type { Transition } from 'motion/react';
2
2
  import { type CSSProperties, type ReactNode } from 'react';
3
- import type { Margin } from './chart-context';
4
- import { type ChartPhase, type ChartStatus } from './chart-phase';
3
+ import type { Margin } from './chart-context.js';
4
+ import { type ChartPhase, type ChartStatus } from './chart-phase.js';
5
5
  export interface LineChartProps {
6
6
  /** Data array - each item should have a date field and numeric values */
7
7
  data: Record<string, unknown>[];
@@ -41,5 +41,5 @@ export interface LineChartProps {
41
41
  children: ReactNode;
42
42
  }
43
43
  export declare function LineChart({ data, xDataKey, margin: marginProp, animationDuration, animationEasing, enterTransition, revealSignature, aspectRatio, className, status, loadingLabel, yDomainTweenDuration, yDomainTween, xDomain, xDomainSlotCount, tweenYDomainOnXDomainChange, style, onPhaseChange, children, }: LineChartProps): import("react").JSX.Element;
44
- export { Line, type LineProps } from './line';
44
+ export { Line, type LineProps } from './line.js';
45
45
  export default LineChart;
@@ -11,11 +11,11 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
11
  */
12
12
  import { ParentSize } from '@visx/responsive';
13
13
  import { Children, isValidElement, useCallback, useMemo, useRef, useState, } from 'react';
14
- import { cn } from '../../cn';
15
- import { ChartLoadingLabel } from './chart-loading-label';
16
- import { DEFAULT_CHART_STATUS, DEFAULT_Y_DOMAIN_TWEEN_MS, resolveRestingChartPhase, } from './chart-phase';
17
- import { Line } from './line';
18
- import { TimeSeriesChartInner } from './time-series-chart-shell';
14
+ import { cn } from '../../cn.js';
15
+ import { ChartLoadingLabel } from './chart-loading-label.js';
16
+ import { DEFAULT_CHART_STATUS, DEFAULT_Y_DOMAIN_TWEEN_MS, resolveRestingChartPhase, } from './chart-phase.js';
17
+ import { Line } from './line.js';
18
+ import { TimeSeriesChartInner } from './time-series-chart-shell.js';
19
19
  const DEFAULT_MARGIN = { top: 40, right: 40, bottom: 40, left: 40 };
20
20
  /** Series renderers that carry a dataKey but must not drive the shared y-domain. */
21
21
  const LINE_DOMAIN_EXCLUDED_NAMES = new Set([
@@ -95,5 +95,5 @@ export function LineChart({ data, xDataKey = 'date', margin: marginProp, animati
95
95
  ...style,
96
96
  }, children: [_jsx(ParentSize, { debounceTime: 10, children: ({ width, height }) => (_jsx(ChartInner, { animationDuration: animationDuration, animationEasing: animationEasing, chartStatus: status, containerRef: containerRef, data: data, enterTransition: enterTransition, height: height, loadingLabel: loadingLabel, margin: margin, onPhaseChange: handlePhaseChange, revealSignature: revealSignature, tweenYDomainOnXDomainChange: tweenYDomainOnXDomainChange, width: width, xDataKey: xDataKey, xDomain: xDomain, xDomainSlotCount: xDomainSlotCount, yDomainTween: yDomainTween, yDomainTweenDuration: yDomainTweenDuration, children: children })) }), showLoadingLabel ? (_jsx(ChartLoadingLabel, { exiting: chartPhase !== 'loading', text: loadingLabel })) : null] }));
97
97
  }
98
- export { Line } from './line';
98
+ export { Line } from './line.js';
99
99
  export default LineChart;
@@ -1,4 +1,4 @@
1
- import type { ChartPhase } from './chart-phase';
1
+ import type { ChartPhase } from './chart-phase.js';
2
2
  export type LineLoadingPulseMode = 'loop' | 'exit' | 'enter';
3
3
  export declare function resolveLineLoadingPulseMode(phase: ChartPhase): LineLoadingPulseMode | null;
4
4
  export interface LineLoadingPulseStrokeProps {
@@ -11,9 +11,9 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
11
11
  */
12
12
  import { animate, motion, useMotionValue, useTransform } from 'motion/react';
13
13
  import { useEffect, useId } from 'react';
14
- import { chartCssVars, useChartStable } from './chart-context';
15
- import { fadeGradientStops, resolveFadeSides, viewportFadeGradientAttrs } from './fade-edges';
16
- import { LINE_LOADING_PULSE_CYCLE_S, LINE_LOADING_PULSE_EASE } from './line-loading-timing';
14
+ import { chartCssVars, useChartStable } from './chart-context.js';
15
+ import { fadeGradientStops, resolveFadeSides, viewportFadeGradientAttrs } from './fade-edges.js';
16
+ import { LINE_LOADING_PULSE_CYCLE_S, LINE_LOADING_PULSE_EASE } from './line-loading-timing.js';
17
17
  const CLIP_PADDING = 10;
18
18
  export function resolveLineLoadingPulseMode(phase) {
19
19
  switch (phase) {
@@ -11,8 +11,8 @@ import { jsx as _jsx } from "react/jsx-runtime";
11
11
  */
12
12
  import { motion } from 'motion/react';
13
13
  import { useMemo } from 'react';
14
- import { useChartStable, useYScale } from './chart-context';
15
- import { StaticSeriesPointMarker } from './series-point-marker';
14
+ import { useChartStable, useYScale } from './chart-context.js';
15
+ import { StaticSeriesPointMarker } from './series-point-marker.js';
16
16
  function isTerminalMarkerPhaseVisible(phase) {
17
17
  return phase === 'ready' || phase === 'exitingReady';
18
18
  }
@@ -1,8 +1,8 @@
1
1
  type CurveFactory = any;
2
- import type { LoadingStyle } from './chart-phase';
3
- import { type FadeEdges } from './fade-edges';
4
- import { type LineLoadingPulseMode } from './line-loading-pulse';
5
- import type { SeriesPointMarkerStyle } from './series-point-marker';
2
+ import type { LoadingStyle } from './chart-phase.js';
3
+ import { type FadeEdges } from './fade-edges.js';
4
+ import { type LineLoadingPulseMode } from './line-loading-pulse.js';
5
+ import type { SeriesPointMarkerStyle } from './series-point-marker.js';
6
6
  export interface LineProps {
7
7
  /** Key in data to use for y values */
8
8
  dataKey: string;
@@ -12,17 +12,17 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
12
12
  import { curveNatural } from '@visx/curve';
13
13
  import { LinePath } from '@visx/shape';
14
14
  import { useCallback, useId, useMemo, useRef, useState } from 'react';
15
- import { chartCssVars, useChartStable, useYScale } from './chart-context';
16
- import { fadeGradientStops, resolveFadeSides, viewportFadeGradientAttrs, } from './fade-edges';
17
- import { LineLoadingPulseStroke, resolveLineLoadingPulseMode, } from './line-loading-pulse';
18
- import { LINE_LOADING_LOOP_PAUSE_MS } from './line-loading-timing';
19
- import { LineLoadingSweep } from './loading-sweep';
20
- import { resolveDashTailBounds, usePathStrokeMetrics } from './path-stroke-utils';
21
- import { SeriesDashTailOverlay } from './series-dash-tail-overlay';
22
- import { SeriesHighlightLayer } from './series-highlight-layer';
23
- import { SeriesHoverDim } from './series-hover-dim';
24
- import { SeriesMarkers } from './series-markers';
25
- import { useAnimatedSeriesPath } from './use-animated-series-path';
15
+ import { chartCssVars, useChartStable, useYScale } from './chart-context.js';
16
+ import { fadeGradientStops, resolveFadeSides, viewportFadeGradientAttrs, } from './fade-edges.js';
17
+ import { LineLoadingPulseStroke, resolveLineLoadingPulseMode, } from './line-loading-pulse.js';
18
+ import { LINE_LOADING_LOOP_PAUSE_MS } from './line-loading-timing.js';
19
+ import { LineLoadingSweep } from './loading-sweep.js';
20
+ import { resolveDashTailBounds, usePathStrokeMetrics } from './path-stroke-utils.js';
21
+ import { SeriesDashTailOverlay } from './series-dash-tail-overlay.js';
22
+ import { SeriesHighlightLayer } from './series-highlight-layer.js';
23
+ import { SeriesHoverDim } from './series-hover-dim.js';
24
+ import { SeriesMarkers } from './series-markers.js';
25
+ import { useAnimatedSeriesPath } from './use-animated-series-path.js';
26
26
  function LineSeriesStroke({ animatedPathD, curve, getY, pathRef, renderData, strokeWidth, useDataTransitionPath, visibleStroke, xAccessor, xScale, }) {
27
27
  if (useDataTransitionPath && animatedPathD) {
28
28
  return (_jsx("path", { d: animatedPathD, fill: "none", ref: pathRef, stroke: visibleStroke, strokeLinecap: "round", strokeWidth: strokeWidth }));
@@ -13,8 +13,8 @@ import { scaleLinear } from '@visx/scale';
13
13
  import { AreaClosed, LinePath } from '@visx/shape';
14
14
  import { motion, useReducedMotion } from 'motion/react';
15
15
  import { useCallback, useEffect, useId, useMemo, useRef, useState } from 'react';
16
- import { chartCssVars, useChartStable } from './chart-context';
17
- import { LINE_LOADING_PULSE_EASE, LOADING_LABEL_EXIT_S } from './line-loading-timing';
16
+ import { chartCssVars, useChartStable } from './chart-context.js';
17
+ import { LINE_LOADING_PULSE_EASE, LOADING_LABEL_EXIT_S } from './line-loading-timing.js';
18
18
  /** One shimmer sweep, in seconds. */
19
19
  const DEFAULT_SWEEP_DURATION_S = 2;
20
20
  /** Sweep travel in objectBoundingBox space: off the left edge to off the right. */
@@ -1,4 +1,4 @@
1
- import { DEFAULT_CHART_ENTER_TRANSITION } from './animation';
1
+ import { DEFAULT_CHART_ENTER_TRANSITION } from './animation.js';
2
2
  export function transitionWithDelay(transition, delaySeconds, fallback = DEFAULT_CHART_ENTER_TRANSITION) {
3
3
  const base = transition ?? fallback;
4
4
  return { ...base, delay: delaySeconds };
@@ -11,7 +11,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
11
11
  */
12
12
  import { curveMonotoneX } from '@visx/curve';
13
13
  import { AreaClosed } from '@visx/shape';
14
- import { useChartStable } from './chart-context';
14
+ import { useChartStable } from './chart-context.js';
15
15
  /**
16
16
  * Filled area using an SVG pattern (`url(#id)`).
17
17
  * Pair with `PatternLines` in `AreaChart` children and an `Area` with `fillOpacity={0}` for the stroke line.
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
- import { PatternCircles, PatternLines } from './visx-pattern';
3
+ import { PatternCircles, PatternLines } from './visx-pattern.js';
4
4
  export const PATTERN_PRESET_IDS = [
5
5
  'none',
6
6
  'diagonal',