@texturehq/edges 1.6.2 → 1.6.3
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/components.manifest.json +2 -2
- package/dist/index.cjs +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +52 -52
- package/dist/index.d.ts +52 -52
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/server.d.cts +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/styles.css +3 -0
- package/dist/utilities.manifest.json +46 -32
- package/package.json +1 -1
- package/dist/{server-C20rH2CQ.d.cts → server-DDYwupsj.d.cts} +57 -57
- package/dist/{server-C20rH2CQ.d.ts → server-DDYwupsj.d.ts} +57 -57
package/dist/index.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Key, ValidationResult, BreadcrumbProps, BreadcrumbsProps, ButtonProps as ButtonProps$1, DateValue, CalendarProps as CalendarProps$1, CheckboxProps as CheckboxProps$1, CheckboxRenderProps, CheckboxGroupProps as CheckboxGroupProps$1, DateRangePickerProps as DateRangePickerProps$1, TextProps, FormProps, ListBoxProps as ListBoxProps$1, ListBoxItemProps, ModalOverlayProps, NumberFieldProps as NumberFieldProps$1, PopoverProps as PopoverProps$1, ProgressBarProps as ProgressBarProps$1, RadioProps, RadioGroupProps as RadioGroupProps$1, RangeCalendarProps as RangeCalendarProps$1, SelectProps as SelectProps$1, SwitchProps as SwitchProps$1, TabProps as TabProps$1, TabListProps as TabListProps$1, TabPanelProps, TabsProps as TabsProps$2, TextFieldProps as TextFieldProps$1, TimeFieldProps as TimeFieldProps$1, TimeValue, TooltipProps as TooltipProps$1 } from 'react-aria-components';
|
|
2
2
|
export { BreadcrumbProps, BreadcrumbsProps, DialogTrigger } from 'react-aria-components';
|
|
3
|
-
import { I as Icon, B as BaseDataPoint, Y as YFormatType, T as TooltipData, a as IconName$2, L as LayerSpec, C as CustomPinsSpec, G as GeoJsonLayerSpec, R as RasterLayerSpec, V as VectorLayerSpec } from './server-C20rH2CQ.cjs';
|
|
4
|
-
export { A as ActionItem, c as ActionMenu, b as ActionMenuProps, e as AppShell, d as AppShellProps, g as Avatar, f as AvatarProps, i as Badge, h as BadgeProps, l as Card, j as CardProps, k as CardVariant, a4 as ChartContext, a6 as ChartMargin, p as CodeEditor, m as CodeEditorProps, n as CodeLanguage, o as CodeTheme, u as ColorSpec, q as DateField, D as DateFieldProps, r as FileUpload, F as FileUploadProps, H as Heading, z as InteractiveMap, v as InteractiveMapProps, w as LayerFeature, x as LayerStyle, s as Loader, t as Logo, E as MAP_TYPES, M as MapPoint, N as Meter, K as MeterProps, y as RenderType, P as RichTextEditor, O as RichTextEditorProps, U as SegmentOption, W as SegmentedControl, Q as SegmentedControlProps, $ as SideNav, X as SideNavItem, _ as SideNavProps, J as StaticMap, S as StaticMapProps, a0 as TextLink, a3 as TooltipSeries, a2 as TopNav, a1 as TopNavProps, ab as YFormatSettings, Z as ZoomStops, ac as clearColorCache, ad as createCategoryColorMap, a7 as createXScale, a8 as createYScale, a9 as defaultMargin, ae as getContrastingTextColor, af as getDefaultChartColor, ag as getDefaultColors, ah as getResolvedColor, ai as getThemeCategoricalColors, aa as getYFormatSettings, aj as isLightColor, a5 as useChartContext } from './server-C20rH2CQ.cjs';
|
|
5
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
3
|
import * as React$1 from 'react';
|
|
7
4
|
import React__default, { ReactNode, ComponentProps, CSSProperties, ComponentType, Component, ErrorInfo } from 'react';
|
|
5
|
+
import { B as BaseDataPoint, I as Icon, Y as YFormatType, T as TooltipData, a as IconName$2, L as LayerSpec, C as CustomPinsSpec, G as GeoJsonLayerSpec, R as RasterLayerSpec, V as VectorLayerSpec } from './server-DDYwupsj.cjs';
|
|
6
|
+
export { A as ActionItem, c as ActionMenu, b as ActionMenuProps, e as AppShell, d as AppShellProps, g as Avatar, f as AvatarProps, i as Badge, h as BadgeProps, l as Card, j as CardProps, k as CardVariant, a4 as ChartContext, a6 as ChartMargin, p as CodeEditor, m as CodeEditorProps, n as CodeLanguage, o as CodeTheme, u as ColorSpec, q as DateField, D as DateFieldProps, r as FileUpload, F as FileUploadProps, H as Heading, z as InteractiveMap, v as InteractiveMapProps, w as LayerFeature, x as LayerStyle, s as Loader, t as Logo, E as MAP_TYPES, M as MapPoint, N as Meter, K as MeterProps, y as RenderType, P as RichTextEditor, O as RichTextEditorProps, U as SegmentOption, W as SegmentedControl, Q as SegmentedControlProps, $ as SideNav, X as SideNavItem, _ as SideNavProps, J as StaticMap, S as StaticMapProps, a0 as TextLink, a3 as TooltipSeries, a2 as TopNav, a1 as TopNavProps, ab as YFormatSettings, Z as ZoomStops, ac as clearColorCache, ad as createCategoryColorMap, a7 as createXScale, a8 as createYScale, a9 as defaultMargin, ae as getContrastingTextColor, af as getDefaultChartColor, ag as getDefaultColors, ah as getResolvedColor, ai as getThemeCategoricalColors, aa as getYFormatSettings, aj as isLightColor, a5 as useChartContext } from './server-DDYwupsj.cjs';
|
|
7
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
8
8
|
import { ScaleTime, ScaleLinear } from 'd3-scale';
|
|
9
9
|
import '@phosphor-icons/react';
|
|
10
10
|
import 'react-map-gl';
|
|
@@ -71,6 +71,55 @@ type UseBreakpointReturn = BreakpointState;
|
|
|
71
71
|
*/
|
|
72
72
|
declare function useBreakpoint(defaultBreakpoint?: Breakpoint | "base"): BreakpointState;
|
|
73
73
|
|
|
74
|
+
/**
|
|
75
|
+
* Chart export utilities for CSV, SVG, and PNG formats
|
|
76
|
+
* Provides comprehensive export functionality for chart visualizations
|
|
77
|
+
*/
|
|
78
|
+
|
|
79
|
+
type ExportType = "csv" | "svg" | "png";
|
|
80
|
+
interface ChartExportMetadata {
|
|
81
|
+
xLabel?: string;
|
|
82
|
+
yLabel?: string;
|
|
83
|
+
seriesLabels?: string[];
|
|
84
|
+
filename?: string;
|
|
85
|
+
timestamp?: boolean;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Main export function that handles all chart export types.
|
|
89
|
+
* Supports CSV, SVG, and PNG formats with automatic filename generation.
|
|
90
|
+
*
|
|
91
|
+
* @param type - Export format: "csv", "svg", or "png"
|
|
92
|
+
* @param datasets - Chart data as single array or array of arrays for multi-series
|
|
93
|
+
* @param metadata - Export metadata including labels and filename options
|
|
94
|
+
* @param svgRef - Reference to the chart's SVG element
|
|
95
|
+
* @returns Promise that resolves when export is complete
|
|
96
|
+
*
|
|
97
|
+
* @example
|
|
98
|
+
* ```typescript
|
|
99
|
+
* // Export single series as CSV
|
|
100
|
+
* await exportChart("csv", data, {
|
|
101
|
+
* xLabel: "Date",
|
|
102
|
+
* yLabel: "Value",
|
|
103
|
+
* filename: "sales-data"
|
|
104
|
+
* }, svgRef);
|
|
105
|
+
*
|
|
106
|
+
* // Export multi-series chart as PNG
|
|
107
|
+
* await exportChart("png", [series1, series2], {
|
|
108
|
+
* seriesLabels: ["Revenue", "Profit"],
|
|
109
|
+
* timestamp: false
|
|
110
|
+
* }, svgRef);
|
|
111
|
+
* ```
|
|
112
|
+
*/
|
|
113
|
+
declare function exportChart(type: ExportType, datasets: BaseDataPoint[][] | BaseDataPoint[], metadata: ChartExportMetadata | undefined, svgRef: React__default.RefObject<SVGSVGElement | null>): Promise<void>;
|
|
114
|
+
/**
|
|
115
|
+
* Utility to check if export is supported in the current environment
|
|
116
|
+
*/
|
|
117
|
+
declare function isExportSupported(type: ExportType): boolean;
|
|
118
|
+
/**
|
|
119
|
+
* Get human-readable export format name
|
|
120
|
+
*/
|
|
121
|
+
declare function getExportFormatName(type: ExportType): string;
|
|
122
|
+
|
|
74
123
|
declare function useDebounce<T>(value: T, delay?: number): T;
|
|
75
124
|
|
|
76
125
|
/**
|
|
@@ -1398,55 +1447,6 @@ declare const ChartAxis: {
|
|
|
1398
1447
|
Left: React__default.FC<AxisLeftProps>;
|
|
1399
1448
|
};
|
|
1400
1449
|
|
|
1401
|
-
/**
|
|
1402
|
-
* Chart export utilities for CSV, SVG, and PNG formats
|
|
1403
|
-
* Provides comprehensive export functionality for chart visualizations
|
|
1404
|
-
*/
|
|
1405
|
-
|
|
1406
|
-
type ExportType = "csv" | "svg" | "png";
|
|
1407
|
-
interface ChartExportMetadata {
|
|
1408
|
-
xLabel?: string;
|
|
1409
|
-
yLabel?: string;
|
|
1410
|
-
seriesLabels?: string[];
|
|
1411
|
-
filename?: string;
|
|
1412
|
-
timestamp?: boolean;
|
|
1413
|
-
}
|
|
1414
|
-
/**
|
|
1415
|
-
* Main export function that handles all chart export types.
|
|
1416
|
-
* Supports CSV, SVG, and PNG formats with automatic filename generation.
|
|
1417
|
-
*
|
|
1418
|
-
* @param type - Export format: "csv", "svg", or "png"
|
|
1419
|
-
* @param datasets - Chart data as single array or array of arrays for multi-series
|
|
1420
|
-
* @param metadata - Export metadata including labels and filename options
|
|
1421
|
-
* @param svgRef - Reference to the chart's SVG element
|
|
1422
|
-
* @returns Promise that resolves when export is complete
|
|
1423
|
-
*
|
|
1424
|
-
* @example
|
|
1425
|
-
* ```typescript
|
|
1426
|
-
* // Export single series as CSV
|
|
1427
|
-
* await exportChart("csv", data, {
|
|
1428
|
-
* xLabel: "Date",
|
|
1429
|
-
* yLabel: "Value",
|
|
1430
|
-
* filename: "sales-data"
|
|
1431
|
-
* }, svgRef);
|
|
1432
|
-
*
|
|
1433
|
-
* // Export multi-series chart as PNG
|
|
1434
|
-
* await exportChart("png", [series1, series2], {
|
|
1435
|
-
* seriesLabels: ["Revenue", "Profit"],
|
|
1436
|
-
* timestamp: false
|
|
1437
|
-
* }, svgRef);
|
|
1438
|
-
* ```
|
|
1439
|
-
*/
|
|
1440
|
-
declare function exportChart(type: ExportType, datasets: BaseDataPoint[][] | BaseDataPoint[], metadata: ChartExportMetadata | undefined, svgRef: React__default.RefObject<SVGSVGElement | null>): Promise<void>;
|
|
1441
|
-
/**
|
|
1442
|
-
* Utility to check if export is supported in the current environment
|
|
1443
|
-
*/
|
|
1444
|
-
declare function isExportSupported(type: ExportType): boolean;
|
|
1445
|
-
/**
|
|
1446
|
-
* Get human-readable export format name
|
|
1447
|
-
*/
|
|
1448
|
-
declare function getExportFormatName(type: ExportType): string;
|
|
1449
|
-
|
|
1450
1450
|
interface LegendItem {
|
|
1451
1451
|
category: string;
|
|
1452
1452
|
fill: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Key, ValidationResult, BreadcrumbProps, BreadcrumbsProps, ButtonProps as ButtonProps$1, DateValue, CalendarProps as CalendarProps$1, CheckboxProps as CheckboxProps$1, CheckboxRenderProps, CheckboxGroupProps as CheckboxGroupProps$1, DateRangePickerProps as DateRangePickerProps$1, TextProps, FormProps, ListBoxProps as ListBoxProps$1, ListBoxItemProps, ModalOverlayProps, NumberFieldProps as NumberFieldProps$1, PopoverProps as PopoverProps$1, ProgressBarProps as ProgressBarProps$1, RadioProps, RadioGroupProps as RadioGroupProps$1, RangeCalendarProps as RangeCalendarProps$1, SelectProps as SelectProps$1, SwitchProps as SwitchProps$1, TabProps as TabProps$1, TabListProps as TabListProps$1, TabPanelProps, TabsProps as TabsProps$2, TextFieldProps as TextFieldProps$1, TimeFieldProps as TimeFieldProps$1, TimeValue, TooltipProps as TooltipProps$1 } from 'react-aria-components';
|
|
2
2
|
export { BreadcrumbProps, BreadcrumbsProps, DialogTrigger } from 'react-aria-components';
|
|
3
|
-
import { I as Icon, B as BaseDataPoint, Y as YFormatType, T as TooltipData, a as IconName$2, L as LayerSpec, C as CustomPinsSpec, G as GeoJsonLayerSpec, R as RasterLayerSpec, V as VectorLayerSpec } from './server-C20rH2CQ.js';
|
|
4
|
-
export { A as ActionItem, c as ActionMenu, b as ActionMenuProps, e as AppShell, d as AppShellProps, g as Avatar, f as AvatarProps, i as Badge, h as BadgeProps, l as Card, j as CardProps, k as CardVariant, a4 as ChartContext, a6 as ChartMargin, p as CodeEditor, m as CodeEditorProps, n as CodeLanguage, o as CodeTheme, u as ColorSpec, q as DateField, D as DateFieldProps, r as FileUpload, F as FileUploadProps, H as Heading, z as InteractiveMap, v as InteractiveMapProps, w as LayerFeature, x as LayerStyle, s as Loader, t as Logo, E as MAP_TYPES, M as MapPoint, N as Meter, K as MeterProps, y as RenderType, P as RichTextEditor, O as RichTextEditorProps, U as SegmentOption, W as SegmentedControl, Q as SegmentedControlProps, $ as SideNav, X as SideNavItem, _ as SideNavProps, J as StaticMap, S as StaticMapProps, a0 as TextLink, a3 as TooltipSeries, a2 as TopNav, a1 as TopNavProps, ab as YFormatSettings, Z as ZoomStops, ac as clearColorCache, ad as createCategoryColorMap, a7 as createXScale, a8 as createYScale, a9 as defaultMargin, ae as getContrastingTextColor, af as getDefaultChartColor, ag as getDefaultColors, ah as getResolvedColor, ai as getThemeCategoricalColors, aa as getYFormatSettings, aj as isLightColor, a5 as useChartContext } from './server-C20rH2CQ.js';
|
|
5
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
3
|
import * as React$1 from 'react';
|
|
7
4
|
import React__default, { ReactNode, ComponentProps, CSSProperties, ComponentType, Component, ErrorInfo } from 'react';
|
|
5
|
+
import { B as BaseDataPoint, I as Icon, Y as YFormatType, T as TooltipData, a as IconName$2, L as LayerSpec, C as CustomPinsSpec, G as GeoJsonLayerSpec, R as RasterLayerSpec, V as VectorLayerSpec } from './server-DDYwupsj.js';
|
|
6
|
+
export { A as ActionItem, c as ActionMenu, b as ActionMenuProps, e as AppShell, d as AppShellProps, g as Avatar, f as AvatarProps, i as Badge, h as BadgeProps, l as Card, j as CardProps, k as CardVariant, a4 as ChartContext, a6 as ChartMargin, p as CodeEditor, m as CodeEditorProps, n as CodeLanguage, o as CodeTheme, u as ColorSpec, q as DateField, D as DateFieldProps, r as FileUpload, F as FileUploadProps, H as Heading, z as InteractiveMap, v as InteractiveMapProps, w as LayerFeature, x as LayerStyle, s as Loader, t as Logo, E as MAP_TYPES, M as MapPoint, N as Meter, K as MeterProps, y as RenderType, P as RichTextEditor, O as RichTextEditorProps, U as SegmentOption, W as SegmentedControl, Q as SegmentedControlProps, $ as SideNav, X as SideNavItem, _ as SideNavProps, J as StaticMap, S as StaticMapProps, a0 as TextLink, a3 as TooltipSeries, a2 as TopNav, a1 as TopNavProps, ab as YFormatSettings, Z as ZoomStops, ac as clearColorCache, ad as createCategoryColorMap, a7 as createXScale, a8 as createYScale, a9 as defaultMargin, ae as getContrastingTextColor, af as getDefaultChartColor, ag as getDefaultColors, ah as getResolvedColor, ai as getThemeCategoricalColors, aa as getYFormatSettings, aj as isLightColor, a5 as useChartContext } from './server-DDYwupsj.js';
|
|
7
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
8
8
|
import { ScaleTime, ScaleLinear } from 'd3-scale';
|
|
9
9
|
import '@phosphor-icons/react';
|
|
10
10
|
import 'react-map-gl';
|
|
@@ -71,6 +71,55 @@ type UseBreakpointReturn = BreakpointState;
|
|
|
71
71
|
*/
|
|
72
72
|
declare function useBreakpoint(defaultBreakpoint?: Breakpoint | "base"): BreakpointState;
|
|
73
73
|
|
|
74
|
+
/**
|
|
75
|
+
* Chart export utilities for CSV, SVG, and PNG formats
|
|
76
|
+
* Provides comprehensive export functionality for chart visualizations
|
|
77
|
+
*/
|
|
78
|
+
|
|
79
|
+
type ExportType = "csv" | "svg" | "png";
|
|
80
|
+
interface ChartExportMetadata {
|
|
81
|
+
xLabel?: string;
|
|
82
|
+
yLabel?: string;
|
|
83
|
+
seriesLabels?: string[];
|
|
84
|
+
filename?: string;
|
|
85
|
+
timestamp?: boolean;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Main export function that handles all chart export types.
|
|
89
|
+
* Supports CSV, SVG, and PNG formats with automatic filename generation.
|
|
90
|
+
*
|
|
91
|
+
* @param type - Export format: "csv", "svg", or "png"
|
|
92
|
+
* @param datasets - Chart data as single array or array of arrays for multi-series
|
|
93
|
+
* @param metadata - Export metadata including labels and filename options
|
|
94
|
+
* @param svgRef - Reference to the chart's SVG element
|
|
95
|
+
* @returns Promise that resolves when export is complete
|
|
96
|
+
*
|
|
97
|
+
* @example
|
|
98
|
+
* ```typescript
|
|
99
|
+
* // Export single series as CSV
|
|
100
|
+
* await exportChart("csv", data, {
|
|
101
|
+
* xLabel: "Date",
|
|
102
|
+
* yLabel: "Value",
|
|
103
|
+
* filename: "sales-data"
|
|
104
|
+
* }, svgRef);
|
|
105
|
+
*
|
|
106
|
+
* // Export multi-series chart as PNG
|
|
107
|
+
* await exportChart("png", [series1, series2], {
|
|
108
|
+
* seriesLabels: ["Revenue", "Profit"],
|
|
109
|
+
* timestamp: false
|
|
110
|
+
* }, svgRef);
|
|
111
|
+
* ```
|
|
112
|
+
*/
|
|
113
|
+
declare function exportChart(type: ExportType, datasets: BaseDataPoint[][] | BaseDataPoint[], metadata: ChartExportMetadata | undefined, svgRef: React__default.RefObject<SVGSVGElement | null>): Promise<void>;
|
|
114
|
+
/**
|
|
115
|
+
* Utility to check if export is supported in the current environment
|
|
116
|
+
*/
|
|
117
|
+
declare function isExportSupported(type: ExportType): boolean;
|
|
118
|
+
/**
|
|
119
|
+
* Get human-readable export format name
|
|
120
|
+
*/
|
|
121
|
+
declare function getExportFormatName(type: ExportType): string;
|
|
122
|
+
|
|
74
123
|
declare function useDebounce<T>(value: T, delay?: number): T;
|
|
75
124
|
|
|
76
125
|
/**
|
|
@@ -1398,55 +1447,6 @@ declare const ChartAxis: {
|
|
|
1398
1447
|
Left: React__default.FC<AxisLeftProps>;
|
|
1399
1448
|
};
|
|
1400
1449
|
|
|
1401
|
-
/**
|
|
1402
|
-
* Chart export utilities for CSV, SVG, and PNG formats
|
|
1403
|
-
* Provides comprehensive export functionality for chart visualizations
|
|
1404
|
-
*/
|
|
1405
|
-
|
|
1406
|
-
type ExportType = "csv" | "svg" | "png";
|
|
1407
|
-
interface ChartExportMetadata {
|
|
1408
|
-
xLabel?: string;
|
|
1409
|
-
yLabel?: string;
|
|
1410
|
-
seriesLabels?: string[];
|
|
1411
|
-
filename?: string;
|
|
1412
|
-
timestamp?: boolean;
|
|
1413
|
-
}
|
|
1414
|
-
/**
|
|
1415
|
-
* Main export function that handles all chart export types.
|
|
1416
|
-
* Supports CSV, SVG, and PNG formats with automatic filename generation.
|
|
1417
|
-
*
|
|
1418
|
-
* @param type - Export format: "csv", "svg", or "png"
|
|
1419
|
-
* @param datasets - Chart data as single array or array of arrays for multi-series
|
|
1420
|
-
* @param metadata - Export metadata including labels and filename options
|
|
1421
|
-
* @param svgRef - Reference to the chart's SVG element
|
|
1422
|
-
* @returns Promise that resolves when export is complete
|
|
1423
|
-
*
|
|
1424
|
-
* @example
|
|
1425
|
-
* ```typescript
|
|
1426
|
-
* // Export single series as CSV
|
|
1427
|
-
* await exportChart("csv", data, {
|
|
1428
|
-
* xLabel: "Date",
|
|
1429
|
-
* yLabel: "Value",
|
|
1430
|
-
* filename: "sales-data"
|
|
1431
|
-
* }, svgRef);
|
|
1432
|
-
*
|
|
1433
|
-
* // Export multi-series chart as PNG
|
|
1434
|
-
* await exportChart("png", [series1, series2], {
|
|
1435
|
-
* seriesLabels: ["Revenue", "Profit"],
|
|
1436
|
-
* timestamp: false
|
|
1437
|
-
* }, svgRef);
|
|
1438
|
-
* ```
|
|
1439
|
-
*/
|
|
1440
|
-
declare function exportChart(type: ExportType, datasets: BaseDataPoint[][] | BaseDataPoint[], metadata: ChartExportMetadata | undefined, svgRef: React__default.RefObject<SVGSVGElement | null>): Promise<void>;
|
|
1441
|
-
/**
|
|
1442
|
-
* Utility to check if export is supported in the current environment
|
|
1443
|
-
*/
|
|
1444
|
-
declare function isExportSupported(type: ExportType): boolean;
|
|
1445
|
-
/**
|
|
1446
|
-
* Get human-readable export format name
|
|
1447
|
-
*/
|
|
1448
|
-
declare function getExportFormatName(type: ExportType): string;
|
|
1449
|
-
|
|
1450
1450
|
interface LegendItem {
|
|
1451
1451
|
category: string;
|
|
1452
1452
|
fill: string;
|