@dudousxd/nestjs-catalog-react 0.34.2 → 0.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AccessConsole.d.ts +1 -1
- package/dist/AccessConsole.js +5 -5
- package/dist/CatalogManager.js +11 -11
- package/dist/ConnectionPanel.js +9 -9
- package/dist/CoverageLedger.js +1 -1
- package/dist/DashboardBoard.js +10 -10
- package/dist/EditableField.js +1 -1
- package/dist/FlowView.js +3 -3
- package/dist/GovernanceTimeline.d.ts +1 -1
- package/dist/GovernanceTimeline.js +5 -5
- package/dist/LoadExpectationSection.js +6 -6
- package/dist/LoadedBySection.d.ts +1 -1
- package/dist/LoadedBySection.js +4 -4
- package/dist/ObjectExplorer.js +5 -5
- package/dist/PipelineConsole.js +9 -9
- package/dist/QueryConsole.js +7 -7
- package/dist/SavedQueryPanel.js +7 -7
- package/dist/TraceExplorer.js +3 -3
- package/dist/TransformEditor.js +8 -8
- package/dist/WorkflowCanvas.js +30 -30
- package/dist/charts/bklit/area-chart-loading.d.ts +2 -2
- package/dist/charts/bklit/area-chart-loading.js +4 -4
- package/dist/charts/bklit/area-chart.d.ts +3 -3
- package/dist/charts/bklit/area-chart.js +7 -7
- package/dist/charts/bklit/area-gradient-defs.d.ts +1 -1
- package/dist/charts/bklit/area-gradient-defs.js +1 -1
- package/dist/charts/bklit/area.d.ts +4 -4
- package/dist/charts/bklit/area.js +11 -11
- package/dist/charts/bklit/bar-chart-loading.d.ts +1 -1
- package/dist/charts/bklit/bar-chart-loading.js +1 -1
- package/dist/charts/bklit/bar-chart.d.ts +2 -2
- package/dist/charts/bklit/bar-chart.js +12 -12
- package/dist/charts/bklit/bar-squares.d.ts +1 -1
- package/dist/charts/bklit/bar-squares.js +5 -5
- package/dist/charts/bklit/bar-x-axis.js +2 -2
- package/dist/charts/bklit/bar-y-axis.js +2 -2
- package/dist/charts/bklit/bar.js +4 -4
- package/dist/charts/bklit/chart-context.d.ts +4 -4
- package/dist/charts/bklit/chart-context.js +1 -1
- package/dist/charts/bklit/chart-loading-label.js +3 -3
- package/dist/charts/bklit/chart-reveal-clip.js +1 -1
- package/dist/charts/bklit/grid.js +3 -3
- package/dist/charts/bklit/highlight-segment-bounds.d.ts +2 -2
- package/dist/charts/bklit/line-chart-loading.d.ts +2 -2
- package/dist/charts/bklit/line-chart-loading.js +4 -4
- package/dist/charts/bklit/line-chart.d.ts +3 -3
- package/dist/charts/bklit/line-chart.js +6 -6
- package/dist/charts/bklit/line-loading-pulse.d.ts +1 -1
- package/dist/charts/bklit/line-loading-pulse.js +3 -3
- package/dist/charts/bklit/line-series-terminal-marker.js +2 -2
- package/dist/charts/bklit/line.d.ts +4 -4
- package/dist/charts/bklit/line.js +11 -11
- package/dist/charts/bklit/loading-sweep.js +2 -2
- package/dist/charts/bklit/motion-utils.js +1 -1
- package/dist/charts/bklit/pattern-area.js +1 -1
- package/dist/charts/bklit/pattern-preset.js +1 -1
- package/dist/charts/bklit/projection-config.d.ts +1 -1
- package/dist/charts/bklit/projection-config.js +3 -3
- package/dist/charts/bklit/projection-line-end-marker.d.ts +1 -1
- package/dist/charts/bklit/projection-line-end-marker.js +1 -1
- package/dist/charts/bklit/projection-line.d.ts +1 -1
- package/dist/charts/bklit/projection-line.js +2 -2
- package/dist/charts/bklit/reference-area-config.js +1 -1
- package/dist/charts/bklit/reference-area-registration-context.d.ts +1 -1
- package/dist/charts/bklit/series-dash-tail-overlay.js +2 -2
- package/dist/charts/bklit/series-highlight-layer.js +3 -3
- package/dist/charts/bklit/series-hover-dim.js +2 -2
- package/dist/charts/bklit/series-markers.d.ts +1 -1
- package/dist/charts/bklit/series-markers.js +4 -4
- package/dist/charts/bklit/series-point-marker.js +1 -1
- package/dist/charts/bklit/time-series-chart-shell.d.ts +2 -2
- package/dist/charts/bklit/time-series-chart-shell.js +20 -20
- package/dist/charts/bklit/tooltip/chart-tooltip.d.ts +4 -4
- package/dist/charts/bklit/tooltip/chart-tooltip.js +8 -8
- package/dist/charts/bklit/tooltip/index.d.ts +6 -6
- package/dist/charts/bklit/tooltip/index.js +6 -6
- package/dist/charts/bklit/tooltip/tooltip-box.d.ts +1 -1
- package/dist/charts/bklit/tooltip/tooltip-box.js +3 -3
- package/dist/charts/bklit/tooltip/tooltip-content.js +1 -1
- package/dist/charts/bklit/tooltip/tooltip-dot.d.ts +1 -1
- package/dist/charts/bklit/tooltip/tooltip-dot.js +2 -2
- package/dist/charts/bklit/tooltip/tooltip-indicator.d.ts +2 -2
- package/dist/charts/bklit/tooltip/tooltip-indicator.js +3 -3
- package/dist/charts/bklit/use-animated-series-path.js +2 -2
- package/dist/charts/bklit/use-animated-y-domains.d.ts +2 -2
- package/dist/charts/bklit/use-animated-y-domains.js +2 -2
- package/dist/charts/bklit/use-chart-interaction.d.ts +1 -1
- package/dist/charts/bklit/use-chart-interaction.js +2 -2
- package/dist/charts/bklit/use-chart-phase-orchestrator.d.ts +1 -1
- package/dist/charts/bklit/use-chart-phase-orchestrator.js +1 -1
- package/dist/charts/bklit/use-grid-shimmer.js +1 -1
- package/dist/charts/bklit/use-highlight-segment.js +3 -3
- package/dist/charts/bklit/use-mount-progress.js +1 -1
- package/dist/charts/bklit/x-axis.js +5 -5
- package/dist/charts/bklit/y-axis-scales.d.ts +1 -1
- package/dist/charts/bklit/y-domain-utils.d.ts +2 -2
- package/dist/charts/bklit/y-domain-utils.js +2 -2
- package/dist/charts/bklit.d.ts +1 -1
- package/dist/charts/bklit.js +11 -11
- package/dist/charts/body.js +4 -4
- package/dist/charts/components/shimmering-text.js +1 -1
- package/dist/charts/css.d.ts +2 -2
- package/dist/charts/css.js +1 -1
- package/dist/charts/recharts.d.ts +1 -1
- package/dist/charts/recharts.js +2 -2
- package/dist/charts/skeleton.js +1 -1
- package/dist/connection-form.js +3 -3
- package/dist/context.d.ts +3 -3
- package/dist/context.js +1 -1
- package/dist/diff/RevisionDiff.d.ts +1 -1
- package/dist/diff/RevisionDiff.js +7 -7
- package/dist/embed/EmbeddedChart.d.ts +2 -2
- package/dist/embed/EmbeddedChart.js +4 -4
- package/dist/embed/EmbeddedDashboard.d.ts +2 -2
- package/dist/embed/EmbeddedDashboard.js +6 -6
- package/dist/embed/actions.d.ts +1 -1
- package/dist/embed/actions.js +2 -2
- package/dist/embed/chart-card.d.ts +2 -2
- package/dist/embed/chart-card.js +7 -7
- package/dist/embed/index.d.ts +5 -5
- package/dist/embed/index.js +4 -4
- package/dist/embed/slots.js +1 -1
- package/dist/export/index.d.ts +6 -6
- package/dist/export/index.js +6 -6
- package/dist/export/pdf.d.ts +2 -2
- package/dist/export/pdf.js +2 -2
- package/dist/export/png.d.ts +1 -1
- package/dist/export/png.js +1 -1
- package/dist/export/serialize.js +1 -1
- package/dist/export/use-pdf-export.d.ts +2 -2
- package/dist/export/use-pdf-export.js +3 -3
- package/dist/export/use-png-export.d.ts +1 -1
- package/dist/export/use-png-export.js +1 -1
- package/dist/index.d.ts +46 -46
- package/dist/index.js +46 -46
- package/dist/schema-discovery.js +2 -2
- package/dist/search-console.js +3 -3
- package/dist/sharing.js +2 -2
- package/dist/source-connection.d.ts +1 -1
- package/dist/source-connection.js +6 -6
- package/dist/source-fields.d.ts +2 -2
- package/dist/source-fields.js +6 -6
- package/dist/ui/button.js +1 -1
- package/dist/ui/chart.js +1 -1
- package/dist/ui/code-editor.d.ts +2 -2
- package/dist/ui/code-editor.js +2 -2
- package/dist/ui/combobox.js +1 -1
- package/dist/ui/data-table.js +1 -1
- package/dist/ui/dialog.js +1 -1
- package/dist/ui/field.js +1 -1
- package/dist/ui/rich-text-field.js +2 -2
- package/dist/ui/select.js +1 -1
- package/dist/ui/sheet.js +2 -2
- package/dist/ui/switch.js +1 -1
- package/dist/ui/tabs.js +1 -1
- package/dist/ui/tooltip.js +1 -1
- package/dist/workflow/canvas-menu.d.ts +1 -1
- package/dist/workflow/canvas-menu.js +4 -4
- package/dist/workflow/create.d.ts +1 -1
- package/dist/workflow/create.js +4 -4
- package/dist/workflow/edges.d.ts +1 -1
- package/dist/workflow/edges.js +1 -1
- package/dist/workflow/graph.d.ts +2 -2
- package/dist/workflow/graph.js +2 -2
- package/dist/workflow/history.d.ts +1 -1
- package/dist/workflow/history.js +6 -6
- package/dist/workflow/index.d.ts +4 -4
- package/dist/workflow/index.js +4 -4
- package/dist/workflow/lifecycle.d.ts +2 -2
- package/dist/workflow/lifecycle.js +8 -8
- package/dist/workflow/menu.d.ts +2 -2
- package/dist/workflow/menu.js +3 -3
- package/dist/workflow/nodes.d.ts +2 -2
- package/dist/workflow/nodes.js +3 -3
- package/dist/workflow/place.d.ts +1 -1
- package/dist/workflow/place.js +1 -1
- package/dist/workflow/removal.d.ts +1 -1
- package/dist/workflow/removal.js +1 -1
- package/dist/workflow/runs.js +5 -5
- package/dist/workflow/shape.d.ts +1 -1
- package/dist/workflow/shape.js +1 -1
- package/dist/workflow/validate.d.ts +1 -1
- package/dist/workflow/validate.js +3 -3
- package/dist/workflow/wiring.d.ts +1 -1
- package/dist/workflow/wiring.js +4 -4
- package/package.json +6 -3
|
@@ -12,14 +12,14 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
|
|
|
12
12
|
import { motion, useSpring } from 'motion/react';
|
|
13
13
|
import { memo, useEffect, useMemo, useState } from 'react';
|
|
14
14
|
import { createPortal } from 'react-dom';
|
|
15
|
-
import { resolveTooltipBoxMotion, useChartConfig, } from '../chart-config-context';
|
|
16
|
-
import { chartCssVars, useChart, useChartStable } from '../chart-context';
|
|
17
|
-
import { weekdayDateFmt } from '../chart-formatters';
|
|
18
|
-
import { DateTicker } from './date-ticker';
|
|
19
|
-
import { TooltipBox } from './tooltip-box';
|
|
20
|
-
import { TooltipContent } from './tooltip-content';
|
|
21
|
-
import { TooltipDot } from './tooltip-dot';
|
|
22
|
-
import { TooltipIndicator } from './tooltip-indicator';
|
|
15
|
+
import { resolveTooltipBoxMotion, useChartConfig, } from '../chart-config-context.js';
|
|
16
|
+
import { chartCssVars, useChart, useChartStable } from '../chart-context.js';
|
|
17
|
+
import { weekdayDateFmt } from '../chart-formatters.js';
|
|
18
|
+
import { DateTicker } from './date-ticker.js';
|
|
19
|
+
import { TooltipBox } from './tooltip-box.js';
|
|
20
|
+
import { TooltipContent } from './tooltip-content.js';
|
|
21
|
+
import { TooltipDot } from './tooltip-dot.js';
|
|
22
|
+
import { TooltipIndicator } from './tooltip-indicator.js';
|
|
23
23
|
const ChartTooltipInner = memo(function ChartTooltipInner({ showDatePill = true, showCrosshair = true, showDots = true, dotVariant = 'dot', dotSize = 5, dotRadiusFraction, dotScale = 1, dotStrokeWidth, indicatorColor: indicatorColorProp, content, rows: rowsRenderer, dotColor: dotColorProp, children, className = '', container, springConfig, matchCrosshair = false, damping, indicatorDasharray, indicatorFadeEdges, indicatorFadeLength, boxSpringConfig, panelStyle, backgroundColor, }) {
|
|
24
24
|
const { tooltipData, width, height, innerHeight, margin, columnWidth, lines, xAccessor, dateLabels, containerRef, orientation, barXAccessor, bandWidth, squareSnap, } = useChart();
|
|
25
25
|
const { tooltipSpring } = useChartConfig();
|
|
@@ -7,9 +7,9 @@
|
|
|
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
|
-
export { ChartTooltip, type ChartTooltipProps } from './chart-tooltip';
|
|
11
|
-
export { DateTicker, type DateTickerProps } from './date-ticker';
|
|
12
|
-
export { TooltipBox, type TooltipBoxProps } from './tooltip-box';
|
|
13
|
-
export { TooltipContent, type TooltipContentProps, type TooltipRow, } from './tooltip-content';
|
|
14
|
-
export { TooltipDot, type TooltipDotProps } from './tooltip-dot';
|
|
15
|
-
export { type IndicatorWidth, TooltipIndicator, type TooltipIndicatorProps, } from './tooltip-indicator';
|
|
10
|
+
export { ChartTooltip, type ChartTooltipProps } from './chart-tooltip.js';
|
|
11
|
+
export { DateTicker, type DateTickerProps } from './date-ticker.js';
|
|
12
|
+
export { TooltipBox, type TooltipBoxProps } from './tooltip-box.js';
|
|
13
|
+
export { TooltipContent, type TooltipContentProps, type TooltipRow, } from './tooltip-content.js';
|
|
14
|
+
export { TooltipDot, type TooltipDotProps } from './tooltip-dot.js';
|
|
15
|
+
export { type IndicatorWidth, TooltipIndicator, type TooltipIndicatorProps, } from './tooltip-indicator.js';
|
|
@@ -7,9 +7,9 @@
|
|
|
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
|
-
export { ChartTooltip } from './chart-tooltip';
|
|
11
|
-
export { DateTicker } from './date-ticker';
|
|
12
|
-
export { TooltipBox } from './tooltip-box';
|
|
13
|
-
export { TooltipContent, } from './tooltip-content';
|
|
14
|
-
export { TooltipDot } from './tooltip-dot';
|
|
15
|
-
export { TooltipIndicator, } from './tooltip-indicator';
|
|
10
|
+
export { ChartTooltip } from './chart-tooltip.js';
|
|
11
|
+
export { DateTicker } from './date-ticker.js';
|
|
12
|
+
export { TooltipBox } from './tooltip-box.js';
|
|
13
|
+
export { TooltipContent, } from './tooltip-content.js';
|
|
14
|
+
export { TooltipDot } from './tooltip-dot.js';
|
|
15
|
+
export { TooltipIndicator, } from './tooltip-indicator.js';
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
*/
|
|
10
10
|
import { useSpring } from 'motion/react';
|
|
11
11
|
import type { RefObject } from 'react';
|
|
12
|
-
import { type SpringConfig } from '../chart-config-context';
|
|
12
|
+
import { type SpringConfig } from '../chart-config-context.js';
|
|
13
13
|
export interface TooltipBoxProps {
|
|
14
14
|
/** X position in pixels (relative to container) */
|
|
15
15
|
x: number;
|
|
@@ -12,9 +12,9 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
12
12
|
import { motion, useSpring } from 'motion/react';
|
|
13
13
|
import { useEffect, useLayoutEffect, useRef, useState } from 'react';
|
|
14
14
|
import { createPortal } from 'react-dom';
|
|
15
|
-
import { cn } from '../../../cn';
|
|
16
|
-
import { useChartConfig } from '../chart-config-context';
|
|
17
|
-
import { chartCssVars } from '../chart-context';
|
|
15
|
+
import { cn } from '../../../cn.js';
|
|
16
|
+
import { useChartConfig } from '../chart-config-context.js';
|
|
17
|
+
import { chartCssVars } from '../chart-context.js';
|
|
18
18
|
// Inner-only-on-visible so `useSpring` initializes at the cursor's actual x/y
|
|
19
19
|
// instead of (0, 0) on first hover.
|
|
20
20
|
export function TooltipBox(props) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { intFmt } from '../chart-formatters';
|
|
3
|
+
import { intFmt } from '../chart-formatters.js';
|
|
4
4
|
export function TooltipContent({ title, rows, children }) {
|
|
5
5
|
return (_jsx("div", { className: "overflow-hidden", children: _jsxs("div", { className: "px-3 py-2.5", children: [title && (_jsx("div", { className: "mb-2 text-left font-medium text-chart-tooltip-foreground text-xs", children: title })), _jsx("div", { className: "space-y-1.5", children: rows.map((row) => (_jsxs("div", { className: "flex items-center justify-between gap-4", children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx("span", { className: "h-2.5 w-2.5 shrink-0 rounded-full", style: { backgroundColor: row.color } }), _jsx("span", { className: "text-chart-tooltip-muted text-sm", children: row.label })] }), _jsx("span", { className: "font-medium text-chart-tooltip-foreground text-sm tabular-nums", children: typeof row.value === 'number' ? intFmt(row.value) : row.value })] }, `${row.label}-${row.color}`))) }), children && (_jsx("div", { className: "mt-2 transition-opacity duration-200 ease-out", children: children }))] }) }));
|
|
6
6
|
}
|
|
@@ -10,8 +10,8 @@ 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, useSpring, useTransform } from 'motion/react';
|
|
13
|
-
import { useChartConfig } from '../chart-config-context';
|
|
14
|
-
import { chartCssVars } from '../chart-context';
|
|
13
|
+
import { useChartConfig } from '../chart-config-context.js';
|
|
14
|
+
import { chartCssVars } from '../chart-context.js';
|
|
15
15
|
function ringCornerRadius(halfExtent, cornerRadiusFraction) {
|
|
16
16
|
const side = halfExtent * 2;
|
|
17
17
|
return side * Math.max(0, Math.min(0.5, cornerRadiusFraction));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type SpringConfig } from '../chart-config-context';
|
|
2
|
-
import { type IndicatorFadeEdges } from '../indicator-fade';
|
|
1
|
+
import { type SpringConfig } from '../chart-config-context.js';
|
|
2
|
+
import { type IndicatorFadeEdges } from '../indicator-fade.js';
|
|
3
3
|
export type IndicatorWidth = number | 'line' | 'thin' | 'medium' | 'thick';
|
|
4
4
|
export interface TooltipIndicatorProps {
|
|
5
5
|
/** X position in pixels (center of the indicator) */
|
|
@@ -11,9 +11,9 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
11
11
|
*/
|
|
12
12
|
import { motion, useSpring } from 'motion/react';
|
|
13
13
|
import { useEffect } from 'react';
|
|
14
|
-
import { useChartConfig } from '../chart-config-context';
|
|
15
|
-
import { chartCssVars } from '../chart-context';
|
|
16
|
-
import { indicatorFadeGradientStops, resolveVerticalFadeSides, } from '../indicator-fade';
|
|
14
|
+
import { useChartConfig } from '../chart-config-context.js';
|
|
15
|
+
import { chartCssVars } from '../chart-context.js';
|
|
16
|
+
import { indicatorFadeGradientStops, resolveVerticalFadeSides, } from '../indicator-fade.js';
|
|
17
17
|
function resolveWidth(width) {
|
|
18
18
|
if (typeof width === 'number') {
|
|
19
19
|
return width;
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import { animate, useReducedMotion } from 'motion/react';
|
|
12
12
|
import { useEffect, useMemo, useRef, useState } from 'react';
|
|
13
|
-
import { LINE_LOADING_PULSE_EASE } from './line-loading-timing';
|
|
14
|
-
import { computeSeriesPathPoints, interpolateSeriesPathPoints, seriesPathFromPoints, seriesPathTransitionSignature, } from './series-path-utils';
|
|
13
|
+
import { LINE_LOADING_PULSE_EASE } from './line-loading-timing.js';
|
|
14
|
+
import { computeSeriesPathPoints, interpolateSeriesPathPoints, seriesPathFromPoints, seriesPathTransitionSignature, } from './series-path-utils.js';
|
|
15
15
|
export function useAnimatedSeriesPath({ renderData, xAccessor, xScale, yScale, dataKey, curve, chartPhase, durationMs, innerWidth, enabled, }) {
|
|
16
16
|
const reducedMotion = useReducedMotion();
|
|
17
17
|
const [animatedPoints, setAnimatedPoints] = useState(null);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ChartPhase } from './chart-phase';
|
|
2
|
-
import { type YDomain } from './y-domain-utils';
|
|
1
|
+
import type { ChartPhase } from './chart-phase.js';
|
|
2
|
+
import { type YDomain } from './y-domain-utils.js';
|
|
3
3
|
export interface UseAnimatedYDomainsOptions {
|
|
4
4
|
enabled: boolean;
|
|
5
5
|
durationMs: number;
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import { animate, useReducedMotion } from 'motion/react';
|
|
12
12
|
import { useEffect, useRef, useState } from 'react';
|
|
13
|
-
import { LINE_LOADING_PULSE_EASE } from './line-loading-timing';
|
|
14
|
-
import { domainsEqual, isYDomainTweenPhase, resolveAnimatedYDestinationDomains, shouldTweenYDomain, } from './y-domain-utils';
|
|
13
|
+
import { LINE_LOADING_PULSE_EASE } from './line-loading-timing.js';
|
|
14
|
+
import { domainsEqual, isYDomainTweenPhase, resolveAnimatedYDestinationDomains, shouldTweenYDomain, } from './y-domain-utils.js';
|
|
15
15
|
function lerpDomain(from, to, progress) {
|
|
16
16
|
return [from[0] + (to[0] - from[0]) * progress, from[1] + (to[1] - from[1]) * progress];
|
|
17
17
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { scaleLinear, scaleTime } from '@visx/scale';
|
|
2
|
-
import type { LineConfig, Margin, TooltipData } from './chart-context';
|
|
2
|
+
import type { LineConfig, Margin, TooltipData } from './chart-context.js';
|
|
3
3
|
type ScaleTime = ReturnType<typeof scaleTime<number>>;
|
|
4
4
|
type ScaleLinear = ReturnType<typeof scaleLinear<number>>;
|
|
5
5
|
export interface ChartSelection {
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import { localPoint } from '@visx/event';
|
|
12
12
|
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
13
|
-
import { useScheduledTooltip } from './use-scheduled-tooltip';
|
|
14
|
-
import { normalizeYAxisId } from './y-axis-scales';
|
|
13
|
+
import { useScheduledTooltip } from './use-scheduled-tooltip.js';
|
|
14
|
+
import { normalizeYAxisId } from './y-axis-scales.js';
|
|
15
15
|
export function useChartInteraction({ xScale, yScale, yScales, data, lines, margin, xAccessor, bisectDate, canInteract, }) {
|
|
16
16
|
const [selection, setSelection] = useState(null);
|
|
17
17
|
const { tooltipData, setTooltipData, scheduleTooltip, clearTooltip, resetTooltipDedupe } = useScheduledTooltip();
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* with upstream stays a diff rather than a merge.
|
|
10
10
|
*/
|
|
11
11
|
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
12
|
-
import { resolveRestingChartPhase } from './chart-phase';
|
|
12
|
+
import { resolveRestingChartPhase } from './chart-phase.js';
|
|
13
13
|
export function useChartPhaseOrchestrator({ chartStatus, targetData, skeletonData, animationDuration, yDomainTweenDuration, revealSignature = '', skipEnterReveal = false, }) {
|
|
14
14
|
const [chartPhase, setChartPhase] = useState(() => resolveRestingChartPhase(chartStatus));
|
|
15
15
|
const [plotData, setPlotData] = useState(() => chartStatus === 'loading' ? skeletonData : targetData);
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import { animate, useMotionValue, useReducedMotion, useTransform } from 'motion/react';
|
|
12
12
|
import { useEffect } from 'react';
|
|
13
|
-
import { LINE_LOADING_LOOP_PAUSE_MS, LINE_LOADING_PULSE_CYCLE_S, LINE_LOADING_PULSE_EASE, } from './line-loading-timing';
|
|
13
|
+
import { LINE_LOADING_LOOP_PAUSE_MS, LINE_LOADING_PULSE_CYCLE_S, LINE_LOADING_PULSE_EASE, } from './line-loading-timing.js';
|
|
14
14
|
export function useGridShimmer({ innerWidth, shimmer, shimmerLength, shimmerSpeed, shimmerSync, active, oneShot = false, }) {
|
|
15
15
|
const progress = useMotionValue(0);
|
|
16
16
|
const reducedMotion = useReducedMotion();
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import { useSpring } from 'motion/react';
|
|
12
12
|
import { useMemo, useRef } from 'react';
|
|
13
|
-
import { useChartConfig } from './chart-config-context';
|
|
14
|
-
import { useChartHover, useChartStable } from './chart-context';
|
|
15
|
-
import { INACTIVE_SEGMENT, computeSegmentBounds } from './highlight-segment-bounds';
|
|
13
|
+
import { useChartConfig } from './chart-config-context.js';
|
|
14
|
+
import { useChartHover, useChartStable } from './chart-context.js';
|
|
15
|
+
import { INACTIVE_SEGMENT, computeSegmentBounds } from './highlight-segment-bounds.js';
|
|
16
16
|
/**
|
|
17
17
|
* @param enabled set false when there is no stroke to highlight (e.g. an area
|
|
18
18
|
* with `showLine={false}`); defaults true.
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import { animate, useMotionValue } from 'motion/react';
|
|
12
12
|
import { useEffect, useRef } from 'react';
|
|
13
|
-
import { DEFAULT_CHART_ENTER_TRANSITION } from './animation';
|
|
13
|
+
import { DEFAULT_CHART_ENTER_TRANSITION } from './animation.js';
|
|
14
14
|
/** Drives 0→1 enter progress using the studio motion transition (spring or tween). */
|
|
15
15
|
export function useMountProgress(enterTransition, delaySeconds, replayKey) {
|
|
16
16
|
const progress = useMotionValue(0);
|
|
@@ -11,11 +11,11 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
11
11
|
*/
|
|
12
12
|
import { memo, useEffect, useMemo, useState } from 'react';
|
|
13
13
|
import { createPortal } from 'react-dom';
|
|
14
|
-
import { cn } from '../../cn';
|
|
15
|
-
import { useChart, useChartStable } from './chart-context';
|
|
16
|
-
import { shortDateFmt } from './chart-formatters';
|
|
17
|
-
import { DEFAULT_Y_DOMAIN_TWEEN_MS } from './chart-phase';
|
|
18
|
-
import { LINE_LOADING_PULSE_EASE } from './line-loading-timing';
|
|
14
|
+
import { cn } from '../../cn.js';
|
|
15
|
+
import { useChart, useChartStable } from './chart-context.js';
|
|
16
|
+
import { shortDateFmt } from './chart-formatters.js';
|
|
17
|
+
import { DEFAULT_Y_DOMAIN_TWEEN_MS } from './chart-phase.js';
|
|
18
|
+
import { LINE_LOADING_PULSE_EASE } from './line-loading-timing.js';
|
|
19
19
|
const X_AXIS_POSITION_TWEEN_MS = DEFAULT_Y_DOMAIN_TWEEN_MS;
|
|
20
20
|
function XAxisLabel({ label, x, crosshairX, hoveredLabel, isHovering, tickerHalfWidth, animatePosition, }) {
|
|
21
21
|
const fadeBuffer = 20;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* with upstream stays a diff rather than a merge.
|
|
9
9
|
*/
|
|
10
10
|
import { scaleLinear } from '@visx/scale';
|
|
11
|
-
import type { LineConfig } from './chart-context';
|
|
11
|
+
import type { LineConfig } from './chart-context.js';
|
|
12
12
|
/** Default axis id when `yAxisId` is omitted (Recharts-style `0` / primary left axis). */
|
|
13
13
|
export declare const DEFAULT_Y_AXIS_ID = "left";
|
|
14
14
|
export type YAxisOrientation = 'left' | 'right';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { LineConfig } from './chart-context';
|
|
2
|
-
import { type ChartPhase } from './chart-phase';
|
|
1
|
+
import type { LineConfig } from './chart-context.js';
|
|
2
|
+
import { type ChartPhase } from './chart-phase.js';
|
|
3
3
|
export type YDomain = [number, number];
|
|
4
4
|
/** Apply visx `nice()` to raw domain endpoints for stable grid ticks. */
|
|
5
5
|
export declare function niceYDomain(domain: YDomain): YDomain;
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
* with upstream stays a diff rather than a merge.
|
|
9
9
|
*/
|
|
10
10
|
import { scaleLinear } from '@visx/scale';
|
|
11
|
-
import { Y_DOMAIN_TWEEN_SKIP_THRESHOLD } from './chart-phase';
|
|
12
|
-
import { groupLinesByYAxisId, normalizeYAxisId } from './y-axis-scales';
|
|
11
|
+
import { Y_DOMAIN_TWEEN_SKIP_THRESHOLD } from './chart-phase.js';
|
|
12
|
+
import { groupLinesByYAxisId, normalizeYAxisId } from './y-axis-scales.js';
|
|
13
13
|
/** Apply visx `nice()` to raw domain endpoints for stable grid ticks. */
|
|
14
14
|
export function niceYDomain(domain) {
|
|
15
15
|
const scale = scaleLinear({ domain, range: [0, 1], nice: true });
|
package/dist/charts/bklit.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { type ChartRendererProps } from './registry';
|
|
1
|
+
import { type ChartRendererProps } from './registry.js';
|
|
2
2
|
export declare function BklitRenderer({ result, visualization, height }: ChartRendererProps): import("react").JSX.Element;
|
package/dist/charts/bklit.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo } from 'react';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { Grid } from './bklit/grid';
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { ChartTooltip } from './bklit/tooltip';
|
|
11
|
-
import { XAxis } from './bklit/x-axis';
|
|
12
|
-
import { CssBarChart, looksLikeTimeSeries } from './css';
|
|
13
|
-
import { CHART_COLORS, seriesFrom } from './registry';
|
|
3
|
+
import { AreaChart } from './bklit/area-chart.js';
|
|
4
|
+
import { Area } from './bklit/area.js';
|
|
5
|
+
import { BarChart } from './bklit/bar-chart.js';
|
|
6
|
+
import { Bar } from './bklit/bar.js';
|
|
7
|
+
import { Grid } from './bklit/grid.js';
|
|
8
|
+
import { LineChart } from './bklit/line-chart.js';
|
|
9
|
+
import { Line } from './bklit/line.js';
|
|
10
|
+
import { ChartTooltip } from './bklit/tooltip/index.js';
|
|
11
|
+
import { XAxis } from './bklit/x-axis.js';
|
|
12
|
+
import { CssBarChart, looksLikeTimeSeries } from './css.js';
|
|
13
|
+
import { CHART_COLORS, seriesFrom } from './registry.js';
|
|
14
14
|
/**
|
|
15
15
|
* The bklit-ui renderer.
|
|
16
16
|
*
|
package/dist/charts/body.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo } from 'react';
|
|
3
|
-
import { DataTable, renderUnknown } from '../ui/data-table';
|
|
4
|
-
import { CssBarChart } from './css';
|
|
5
|
-
import { getChartRenderer } from './registry';
|
|
6
|
-
import { ChartEmpty } from './skeleton';
|
|
3
|
+
import { DataTable, renderUnknown } from '../ui/data-table.js';
|
|
4
|
+
import { CssBarChart } from './css.js';
|
|
5
|
+
import { getChartRenderer } from './registry.js';
|
|
6
|
+
import { ChartEmpty } from './skeleton.js';
|
|
7
7
|
export function ChartBody({ result, visualization, height = 200, maxColumns, maxRows, }) {
|
|
8
8
|
// Held at the chart's own height rather than collapsing to one line, so a
|
|
9
9
|
// card that matched nothing does not resize the grid around it — and said in
|
|
@@ -11,7 +11,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
11
11
|
*/
|
|
12
12
|
import { motion, useReducedMotion } from 'motion/react';
|
|
13
13
|
import { useCallback } from 'react';
|
|
14
|
-
import { cn } from '../../cn';
|
|
14
|
+
import { cn } from '../../cn.js';
|
|
15
15
|
export function ShimmeringText({ text, duration = 1, isStopped = false, paused = false, className, ...props }) {
|
|
16
16
|
const reducedMotion = useReducedMotion();
|
|
17
17
|
const stopped = isStopped || paused || reducedMotion === true;
|
package/dist/charts/css.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CatalogQueryResult } from '@dudousxd/nestjs-catalog/client';
|
|
2
|
-
import { seriesFrom } from './registry';
|
|
3
|
-
import type { ChartRendererProps } from './registry';
|
|
2
|
+
import { seriesFrom } from './registry.js';
|
|
3
|
+
import type { ChartRendererProps } from './registry.js';
|
|
4
4
|
/**
|
|
5
5
|
* A bar chart in CSS, not a charting library.
|
|
6
6
|
*
|
package/dist/charts/css.js
CHANGED
package/dist/charts/recharts.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Area, AreaChart, Bar, BarChart, CartesianGrid, Line, LineChart, XAxis, YAxis, } from 'recharts';
|
|
3
|
-
import { ChartContainer, ChartLegend, ChartLegendContent, ChartTooltip, ChartTooltipContent, } from '../ui/chart';
|
|
4
|
-
import { seriesFrom } from './registry';
|
|
3
|
+
import { ChartContainer, ChartLegend, ChartLegendContent, ChartTooltip, ChartTooltipContent, } from '../ui/chart.js';
|
|
4
|
+
import { seriesFrom } from './registry.js';
|
|
5
5
|
/**
|
|
6
6
|
* The shadcn/ui chart renderer.
|
|
7
7
|
*
|
package/dist/charts/skeleton.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { cn } from '../cn';
|
|
2
|
+
import { cn } from '../cn.js';
|
|
3
3
|
/** Deterministic, so the skeleton does not reshuffle on every render. */
|
|
4
4
|
function heights(count) {
|
|
5
5
|
const pattern = [0.55, 0.8, 0.42, 0.95, 0.62, 0.74, 0.35, 0.86, 0.5, 0.68];
|
package/dist/connection-form.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { CONNECTOR_KINDS, REDACTED_SECRET } from '@dudousxd/nestjs-catalog/client';
|
|
3
3
|
import { CircleCheck, CircleX } from 'lucide-react';
|
|
4
|
-
import { cn } from './cn';
|
|
5
|
-
import { FieldGroup, TextField } from './ui/field';
|
|
6
|
-
import { Switch } from './ui/switch';
|
|
4
|
+
import { cn } from './cn.js';
|
|
5
|
+
import { FieldGroup, TextField } from './ui/field.js';
|
|
6
|
+
import { Switch } from './ui/switch.js';
|
|
7
7
|
/**
|
|
8
8
|
* Describing where a *shared address* lives, in one place.
|
|
9
9
|
*
|
package/dist/context.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { CallableWorkflowRef, CatalogAuditEvent, CatalogConnection, CatalogConnector, CatalogObjectPage, CatalogQueryRelation, CatalogQueryResult, CatalogReusableNode, CatalogRevision, CatalogSearchResult, CatalogSnapshot, CatalogTrace, CatalogTraceList, CatalogTransform, ConnectionCheck, ConnectorRun, Dashboard, DashboardCard, DeleteReconciliation, LoadExpectation, LoadExpectationInput, ObjectQueryParams, PropertyPatch, ResolvedLoadExpectation, ReusableNodeBody, RowCountBound, SaveQueryInput, SavedQuery, SnapshotRef, StoredLoadExpectation, TraceQuery, TransformLanguage, TransformMode, TransformResult, TypePatch } from '@dudousxd/nestjs-catalog/client';
|
|
2
2
|
import { type ReactNode } from 'react';
|
|
3
|
-
import type { EmbeddedChartPayload, EmbeddedDashboardPayload } from './embed/payload';
|
|
4
|
-
import { type PeopleQuery } from './routes';
|
|
5
|
-
import type { CatalogWorkflow, CatalogWorkflowRelease, StorageAvailability, WorkflowDurability, WorkflowInput, WorkflowRun } from './workflow/model';
|
|
3
|
+
import type { EmbeddedChartPayload, EmbeddedDashboardPayload } from './embed/payload.js';
|
|
4
|
+
import { type PeopleQuery } from './routes.js';
|
|
5
|
+
import type { CatalogWorkflow, CatalogWorkflowRelease, StorageAvailability, WorkflowDurability, WorkflowInput, WorkflowRun } from './workflow/model.js';
|
|
6
6
|
/**
|
|
7
7
|
* How these screens talk to the server.
|
|
8
8
|
*
|
package/dist/context.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { catalogRoutes } from '@dudousxd/nestjs-catalog/client';
|
|
3
3
|
import { createContext, useContext, useMemo } from 'react';
|
|
4
|
-
import { DEFAULT_ACCESS_BASE_PATH, DEFAULT_PIPELINE_BASE_PATH, DEFAULT_PUBLISH_BASE_PATH, accessRoutes, embedRoutes, pipelineRoutes, } from './routes';
|
|
4
|
+
import { DEFAULT_ACCESS_BASE_PATH, DEFAULT_PIPELINE_BASE_PATH, DEFAULT_PUBLISH_BASE_PATH, accessRoutes, embedRoutes, pipelineRoutes, } from './routes.js';
|
|
5
5
|
const CatalogContext = createContext(null);
|
|
6
6
|
export function CatalogProvider({ transport, pipelineBasePath = DEFAULT_PIPELINE_BASE_PATH, publishBasePath = DEFAULT_PUBLISH_BASE_PATH, accessBasePath = DEFAULT_ACCESS_BASE_PATH, children, }) {
|
|
7
7
|
const client = useMemo(() => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CatalogCodeLanguage } from '../ui/code-languages';
|
|
1
|
+
import type { CatalogCodeLanguage } from '../ui/code-languages.js';
|
|
2
2
|
/** Which of the two editable things in this catalog is being compared. */
|
|
3
3
|
export type RevisionSubjectKind = 'transform' | 'saved-query';
|
|
4
4
|
export interface RevisionSubject {
|
|
@@ -5,13 +5,13 @@ import { MultiFileDiff } from '@pierre/diffs/react';
|
|
|
5
5
|
import { useQuery } from '@tanstack/react-query';
|
|
6
6
|
import { GitCompare, History } from 'lucide-react';
|
|
7
7
|
import { useMemo, useState } from 'react';
|
|
8
|
-
import { cn } from '../cn';
|
|
9
|
-
import { catalogQueryKeys, useCatalogClient } from '../context';
|
|
10
|
-
import { Button } from '../ui/button';
|
|
11
|
-
import { codeOptions } from '../ui/code-editor';
|
|
12
|
-
import { useCodeThemeType } from '../ui/code-theme';
|
|
13
|
-
import { SelectField } from '../ui/select';
|
|
14
|
-
import { Sheet } from '../ui/sheet';
|
|
8
|
+
import { cn } from '../cn.js';
|
|
9
|
+
import { catalogQueryKeys, useCatalogClient } from '../context.js';
|
|
10
|
+
import { Button } from '../ui/button.js';
|
|
11
|
+
import { codeOptions } from '../ui/code-editor.js';
|
|
12
|
+
import { useCodeThemeType } from '../ui/code-theme.js';
|
|
13
|
+
import { SelectField } from '../ui/select.js';
|
|
14
|
+
import { Sheet } from '../ui/sheet.js';
|
|
15
15
|
/**
|
|
16
16
|
* Why a load came out different from the last one.
|
|
17
17
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { EmbedActions } from './actions';
|
|
2
|
-
import { type EmbedFailureSlot, type EmbedLoadingSlot } from './slots';
|
|
1
|
+
import type { EmbedActions } from './actions.js';
|
|
2
|
+
import { type EmbedFailureSlot, type EmbedLoadingSlot } from './slots.js';
|
|
3
3
|
/**
|
|
4
4
|
* One shared chart, for a host application's own page.
|
|
5
5
|
*
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useQuery } from '@tanstack/react-query';
|
|
3
|
-
import { cn } from '../cn';
|
|
4
|
-
import { catalogQueryKeys, useCatalogClient } from '../context';
|
|
5
|
-
import { EmbeddedChartCard } from './chart-card';
|
|
6
|
-
import { renderFailure, renderLoading, } from './slots';
|
|
3
|
+
import { cn } from '../cn.js';
|
|
4
|
+
import { catalogQueryKeys, useCatalogClient } from '../context.js';
|
|
5
|
+
import { EmbeddedChartCard } from './chart-card.js';
|
|
6
|
+
import { renderFailure, renderLoading, } from './slots.js';
|
|
7
7
|
export function EmbeddedChart({ chartId, actions, loading, failure, height = 200, className, }) {
|
|
8
8
|
const client = useCatalogClient();
|
|
9
9
|
const { data, isPending, error } = useQuery({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
-
import type { EmbedActions } from './actions';
|
|
3
|
-
import { type EmbedFailureSlot, type EmbedLoadingSlot } from './slots';
|
|
2
|
+
import type { EmbedActions } from './actions.js';
|
|
3
|
+
import { type EmbedFailureSlot, type EmbedLoadingSlot } from './slots.js';
|
|
4
4
|
/**
|
|
5
5
|
* A whole shared dashboard, in a host application's own page.
|
|
6
6
|
*
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useQuery } from '@tanstack/react-query';
|
|
3
|
-
import { CHART_GRID, chartSpan } from '../charts/grid';
|
|
4
|
-
import { cn } from '../cn';
|
|
5
|
-
import { catalogQueryKeys, useCatalogClient } from '../context';
|
|
6
|
-
import { EmbeddedChartCard } from './chart-card';
|
|
7
|
-
import { chartsInLayoutOrder } from './payload';
|
|
8
|
-
import { renderFailure, renderLoading, } from './slots';
|
|
3
|
+
import { CHART_GRID, chartSpan } from '../charts/grid.js';
|
|
4
|
+
import { cn } from '../cn.js';
|
|
5
|
+
import { catalogQueryKeys, useCatalogClient } from '../context.js';
|
|
6
|
+
import { EmbeddedChartCard } from './chart-card.js';
|
|
7
|
+
import { chartsInLayoutOrder } from './payload.js';
|
|
8
|
+
import { renderFailure, renderLoading, } from './slots.js';
|
|
9
9
|
export function EmbeddedDashboard({ dashboardId, actions, loading, failure, height = 200, empty, className, }) {
|
|
10
10
|
const client = useCatalogClient();
|
|
11
11
|
const { data, isPending, error } = useQuery({
|
package/dist/embed/actions.d.ts
CHANGED
package/dist/embed/actions.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { usePdfExport } from '../export/use-pdf-export';
|
|
2
|
-
import { useHasExportableSvg } from '../export/use-png-export';
|
|
1
|
+
import { usePdfExport } from '../export/use-pdf-export.js';
|
|
2
|
+
import { useHasExportableSvg } from '../export/use-png-export.js';
|
|
3
3
|
/**
|
|
4
4
|
* Every action, in the order a toolbar draws them.
|
|
5
5
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type EmbedActions } from './actions';
|
|
2
|
-
import type { EmbeddedChartPayload } from './payload';
|
|
1
|
+
import { type EmbedActions } from './actions.js';
|
|
2
|
+
import type { EmbeddedChartPayload } from './payload.js';
|
|
3
3
|
/**
|
|
4
4
|
* One embedded chart, drawn from a payload that has already arrived.
|
|
5
5
|
*
|
package/dist/embed/chart-card.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Download, FileDown, ImageDown } from 'lucide-react';
|
|
3
3
|
import { useRef } from 'react';
|
|
4
|
-
import { ChartBody } from '../charts/body';
|
|
5
|
-
import { cn } from '../cn';
|
|
6
|
-
import { useCatalogClient } from '../context';
|
|
7
|
-
import { usePdfExport } from '../export/use-pdf-export';
|
|
8
|
-
import { usePngExport } from '../export/use-png-export';
|
|
9
|
-
import { useAvailableEmbedActions } from './actions';
|
|
10
|
-
import { resultFromEmbed } from './payload';
|
|
4
|
+
import { ChartBody } from '../charts/body.js';
|
|
5
|
+
import { cn } from '../cn.js';
|
|
6
|
+
import { useCatalogClient } from '../context.js';
|
|
7
|
+
import { usePdfExport } from '../export/use-pdf-export.js';
|
|
8
|
+
import { usePngExport } from '../export/use-png-export.js';
|
|
9
|
+
import { useAvailableEmbedActions } from './actions.js';
|
|
10
|
+
import { resultFromEmbed } from './payload.js';
|
|
11
11
|
const MUTED = 'text-zinc-400 dark:text-zinc-500';
|
|
12
12
|
/**
|
|
13
13
|
* One embedded chart, drawn from a payload that has already arrived.
|
package/dist/embed/index.d.ts
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* same drawing code (`charts/body.tsx`), and differ in exactly one way: nothing
|
|
6
6
|
* here can change anything. See `actions.ts` for what that rules out and why.
|
|
7
7
|
*/
|
|
8
|
-
export { EMBED_ACTIONS, type EmbedAction, type EmbedActions, resolveEmbedActions, } from './actions';
|
|
9
|
-
export { EmbeddedChart, type EmbeddedChartProps } from './EmbeddedChart';
|
|
10
|
-
export { EmbeddedDashboard, type EmbeddedDashboardProps } from './EmbeddedDashboard';
|
|
11
|
-
export { chartsInLayoutOrder, type EmbeddedChartPayload, type EmbeddedDashboardPayload, } from './payload';
|
|
12
|
-
export type { EmbedFailureSlot, EmbedLoadingSlot } from './slots';
|
|
8
|
+
export { EMBED_ACTIONS, type EmbedAction, type EmbedActions, resolveEmbedActions, } from './actions.js';
|
|
9
|
+
export { EmbeddedChart, type EmbeddedChartProps } from './EmbeddedChart.js';
|
|
10
|
+
export { EmbeddedDashboard, type EmbeddedDashboardProps } from './EmbeddedDashboard.js';
|
|
11
|
+
export { chartsInLayoutOrder, type EmbeddedChartPayload, type EmbeddedDashboardPayload, } from './payload.js';
|
|
12
|
+
export type { EmbedFailureSlot, EmbedLoadingSlot } from './slots.js';
|
package/dist/embed/index.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* same drawing code (`charts/body.tsx`), and differ in exactly one way: nothing
|
|
6
6
|
* here can change anything. See `actions.ts` for what that rules out and why.
|
|
7
7
|
*/
|
|
8
|
-
export { EMBED_ACTIONS, resolveEmbedActions, } from './actions';
|
|
9
|
-
export { EmbeddedChart } from './EmbeddedChart';
|
|
10
|
-
export { EmbeddedDashboard } from './EmbeddedDashboard';
|
|
11
|
-
export { chartsInLayoutOrder, } from './payload';
|
|
8
|
+
export { EMBED_ACTIONS, resolveEmbedActions, } from './actions.js';
|
|
9
|
+
export { EmbeddedChart } from './EmbeddedChart.js';
|
|
10
|
+
export { EmbeddedDashboard } from './EmbeddedDashboard.js';
|
|
11
|
+
export { chartsInLayoutOrder, } from './payload.js';
|
package/dist/embed/slots.js
CHANGED