diff --git a/packages/react/autogen/component.ts b/packages/react/autogen/component.ts index 9fc1b6c9d..1bc8055a4 100644 --- a/packages/react/autogen/component.ts +++ b/packages/react/autogen/component.ts @@ -30,6 +30,8 @@ export type Vis${componentName}Props${genericsDefStr} = ${componentName}ConfigIn ref?: Ref } +export const Vis${componentName}Selectors = ${componentName}.selectors + // eslint-disable-next-line @typescript-eslint/naming-convention function Vis${componentName}FC${genericsDefStr} (props: Vis${componentName}Props${genericsStr}, fRef: ForwardedRef): JSX.Element { const ref = useRef>(null) diff --git a/packages/react/src/components/area/index.tsx b/packages/react/src/components/area/index.tsx index 10a8c8b45..2290bded8 100644 --- a/packages/react/src/components/area/index.tsx +++ b/packages/react/src/components/area/index.tsx @@ -17,6 +17,8 @@ export type VisAreaProps = AreaConfigInterface & { ref?: Ref>; } +export const VisAreaSelectors = Area.selectors + // eslint-disable-next-line @typescript-eslint/naming-convention function VisAreaFC (props: VisAreaProps, fRef: ForwardedRef>): JSX.Element { const ref = useRef>>(null) diff --git a/packages/react/src/components/axis/index.tsx b/packages/react/src/components/axis/index.tsx index 207985ace..ca2a1656c 100644 --- a/packages/react/src/components/axis/index.tsx +++ b/packages/react/src/components/axis/index.tsx @@ -17,6 +17,8 @@ export type VisAxisProps = AxisConfigInterface & { ref?: Ref>; } +export const VisAxisSelectors = Axis.selectors + // eslint-disable-next-line @typescript-eslint/naming-convention function VisAxisFC (props: VisAxisProps, fRef: ForwardedRef>): JSX.Element { const ref = useRef>>(null) diff --git a/packages/react/src/components/brush/index.tsx b/packages/react/src/components/brush/index.tsx index b4f5a3fef..f0a036f40 100644 --- a/packages/react/src/components/brush/index.tsx +++ b/packages/react/src/components/brush/index.tsx @@ -17,6 +17,8 @@ export type VisBrushProps = BrushConfigInterface & { ref?: Ref>; } +export const VisBrushSelectors = Brush.selectors + // eslint-disable-next-line @typescript-eslint/naming-convention function VisBrushFC (props: VisBrushProps, fRef: ForwardedRef>): JSX.Element { const ref = useRef>>(null) diff --git a/packages/react/src/components/chord-diagram/index.tsx b/packages/react/src/components/chord-diagram/index.tsx index d9db2da26..33a91aa5e 100644 --- a/packages/react/src/components/chord-diagram/index.tsx +++ b/packages/react/src/components/chord-diagram/index.tsx @@ -17,6 +17,8 @@ export type VisChordDiagramProps>; } +export const VisChordDiagramSelectors = ChordDiagram.selectors + // eslint-disable-next-line @typescript-eslint/naming-convention function VisChordDiagramFC (props: VisChordDiagramProps, fRef: ForwardedRef>): JSX.Element { const ref = useRef>>(null) diff --git a/packages/react/src/components/crosshair/index.tsx b/packages/react/src/components/crosshair/index.tsx index c18044ab5..5da9f975e 100644 --- a/packages/react/src/components/crosshair/index.tsx +++ b/packages/react/src/components/crosshair/index.tsx @@ -17,6 +17,8 @@ export type VisCrosshairProps = CrosshairConfigInterface & { ref?: Ref>; } +export const VisCrosshairSelectors = Crosshair.selectors + // eslint-disable-next-line @typescript-eslint/naming-convention function VisCrosshairFC (props: VisCrosshairProps, fRef: ForwardedRef>): JSX.Element { const ref = useRef>>(null) diff --git a/packages/react/src/components/donut/index.tsx b/packages/react/src/components/donut/index.tsx index b0da91b22..965cb409f 100644 --- a/packages/react/src/components/donut/index.tsx +++ b/packages/react/src/components/donut/index.tsx @@ -17,6 +17,8 @@ export type VisDonutProps = DonutConfigInterface & { ref?: Ref>; } +export const VisDonutSelectors = Donut.selectors + // eslint-disable-next-line @typescript-eslint/naming-convention function VisDonutFC (props: VisDonutProps, fRef: ForwardedRef>): JSX.Element { const ref = useRef>>(null) diff --git a/packages/react/src/components/free-brush/index.tsx b/packages/react/src/components/free-brush/index.tsx index 8f6d4ea94..44d320433 100644 --- a/packages/react/src/components/free-brush/index.tsx +++ b/packages/react/src/components/free-brush/index.tsx @@ -17,6 +17,8 @@ export type VisFreeBrushProps = FreeBrushConfigInterface & { ref?: Ref>; } +export const VisFreeBrushSelectors = FreeBrush.selectors + // eslint-disable-next-line @typescript-eslint/naming-convention function VisFreeBrushFC (props: VisFreeBrushProps, fRef: ForwardedRef>): JSX.Element { const ref = useRef>>(null) diff --git a/packages/react/src/components/graph/index.tsx b/packages/react/src/components/graph/index.tsx index d392e25e3..ba12e96d3 100644 --- a/packages/react/src/components/graph/index.tsx +++ b/packages/react/src/components/graph/index.tsx @@ -17,6 +17,8 @@ export type VisGraphProps = ref?: Ref>; } +export const VisGraphSelectors = Graph.selectors + // eslint-disable-next-line @typescript-eslint/naming-convention function VisGraphFC (props: VisGraphProps, fRef: ForwardedRef>): JSX.Element { const ref = useRef>>(null) diff --git a/packages/react/src/components/grouped-bar/index.tsx b/packages/react/src/components/grouped-bar/index.tsx index e7f88faa8..feb31a658 100644 --- a/packages/react/src/components/grouped-bar/index.tsx +++ b/packages/react/src/components/grouped-bar/index.tsx @@ -17,6 +17,8 @@ export type VisGroupedBarProps = GroupedBarConfigInterface & { ref?: Ref>; } +export const VisGroupedBarSelectors = GroupedBar.selectors + // eslint-disable-next-line @typescript-eslint/naming-convention function VisGroupedBarFC (props: VisGroupedBarProps, fRef: ForwardedRef>): JSX.Element { const ref = useRef>>(null) diff --git a/packages/react/src/components/line/index.tsx b/packages/react/src/components/line/index.tsx index 67764bd44..e87b4e69f 100644 --- a/packages/react/src/components/line/index.tsx +++ b/packages/react/src/components/line/index.tsx @@ -17,6 +17,8 @@ export type VisLineProps = LineConfigInterface & { ref?: Ref>; } +export const VisLineSelectors = Line.selectors + // eslint-disable-next-line @typescript-eslint/naming-convention function VisLineFC (props: VisLineProps, fRef: ForwardedRef>): JSX.Element { const ref = useRef>>(null) diff --git a/packages/react/src/components/nested-donut/index.tsx b/packages/react/src/components/nested-donut/index.tsx index be2142e83..bdb7b0f15 100644 --- a/packages/react/src/components/nested-donut/index.tsx +++ b/packages/react/src/components/nested-donut/index.tsx @@ -17,6 +17,8 @@ export type VisNestedDonutProps = NestedDonutConfigInterface & { ref?: Ref>; } +export const VisNestedDonutSelectors = NestedDonut.selectors + // eslint-disable-next-line @typescript-eslint/naming-convention function VisNestedDonutFC (props: VisNestedDonutProps, fRef: ForwardedRef>): JSX.Element { const ref = useRef>>(null) diff --git a/packages/react/src/components/sankey/index.tsx b/packages/react/src/components/sankey/index.tsx index d55c4a126..dabc1f151 100644 --- a/packages/react/src/components/sankey/index.tsx +++ b/packages/react/src/components/sankey/index.tsx @@ -17,6 +17,8 @@ export type VisSankeyProps ref?: Ref>; } +export const VisSankeySelectors = Sankey.selectors + // eslint-disable-next-line @typescript-eslint/naming-convention function VisSankeyFC (props: VisSankeyProps, fRef: ForwardedRef>): JSX.Element { const ref = useRef>>(null) diff --git a/packages/react/src/components/scatter/index.tsx b/packages/react/src/components/scatter/index.tsx index edf0218e5..e5f3cef12 100644 --- a/packages/react/src/components/scatter/index.tsx +++ b/packages/react/src/components/scatter/index.tsx @@ -17,6 +17,8 @@ export type VisScatterProps = ScatterConfigInterface & { ref?: Ref>; } +export const VisScatterSelectors = Scatter.selectors + // eslint-disable-next-line @typescript-eslint/naming-convention function VisScatterFC (props: VisScatterProps, fRef: ForwardedRef>): JSX.Element { const ref = useRef>>(null) diff --git a/packages/react/src/components/stacked-bar/index.tsx b/packages/react/src/components/stacked-bar/index.tsx index 35f32162f..eb1cb94c4 100644 --- a/packages/react/src/components/stacked-bar/index.tsx +++ b/packages/react/src/components/stacked-bar/index.tsx @@ -17,6 +17,8 @@ export type VisStackedBarProps = StackedBarConfigInterface & { ref?: Ref>; } +export const VisStackedBarSelectors = StackedBar.selectors + // eslint-disable-next-line @typescript-eslint/naming-convention function VisStackedBarFC (props: VisStackedBarProps, fRef: ForwardedRef>): JSX.Element { const ref = useRef>>(null) diff --git a/packages/react/src/components/timeline/index.tsx b/packages/react/src/components/timeline/index.tsx index 859574011..c600dc2c1 100644 --- a/packages/react/src/components/timeline/index.tsx +++ b/packages/react/src/components/timeline/index.tsx @@ -17,6 +17,8 @@ export type VisTimelineProps = TimelineConfigInterface & { ref?: Ref>; } +export const VisTimelineSelectors = Timeline.selectors + // eslint-disable-next-line @typescript-eslint/naming-convention function VisTimelineFC (props: VisTimelineProps, fRef: ForwardedRef>): JSX.Element { const ref = useRef>>(null) diff --git a/packages/react/src/components/tooltip/index.tsx b/packages/react/src/components/tooltip/index.tsx index 6c713ba3f..d0504ec69 100644 --- a/packages/react/src/components/tooltip/index.tsx +++ b/packages/react/src/components/tooltip/index.tsx @@ -17,6 +17,8 @@ export type VisTooltipProps = TooltipConfigInterface & { ref?: Ref; } +export const VisTooltipSelectors = Tooltip.selectors + // eslint-disable-next-line @typescript-eslint/naming-convention function VisTooltipFC (props: VisTooltipProps, fRef: ForwardedRef): JSX.Element { const ref = useRef>(null) diff --git a/packages/react/src/components/topojson-map/index.tsx b/packages/react/src/components/topojson-map/index.tsx index 4d6ede4d6..b1e45b5c3 100644 --- a/packages/react/src/components/topojson-map/index.tsx +++ b/packages/react/src/components/topojson-map/index.tsx @@ -17,6 +17,8 @@ export type VisTopoJSONMapProps = TopoJSONMapC ref?: Ref>; } +export const VisTopoJSONMapSelectors = TopoJSONMap.selectors + // eslint-disable-next-line @typescript-eslint/naming-convention function VisTopoJSONMapFC (props: VisTopoJSONMapProps, fRef: ForwardedRef>): JSX.Element { const ref = useRef>>(null) diff --git a/packages/react/src/components/xy-labels/index.tsx b/packages/react/src/components/xy-labels/index.tsx index afff08729..cd26f701f 100644 --- a/packages/react/src/components/xy-labels/index.tsx +++ b/packages/react/src/components/xy-labels/index.tsx @@ -17,6 +17,8 @@ export type VisXYLabelsProps = XYLabelsConfigInterface & { ref?: Ref>; } +export const VisXYLabelsSelectors = XYLabels.selectors + // eslint-disable-next-line @typescript-eslint/naming-convention function VisXYLabelsFC (props: VisXYLabelsProps, fRef: ForwardedRef>): JSX.Element { const ref = useRef>>(null) diff --git a/packages/react/src/html-components/bullet-legend/index.tsx b/packages/react/src/html-components/bullet-legend/index.tsx index af78b169e..f56ff23e6 100644 --- a/packages/react/src/html-components/bullet-legend/index.tsx +++ b/packages/react/src/html-components/bullet-legend/index.tsx @@ -3,6 +3,8 @@ import { BulletLegend, BulletLegendConfigInterface } from '@unovis/ts' export type VisBulletLegendProps = BulletLegendConfigInterface +export const VisBulletLegendSelectors = BulletLegend.selectors + // eslint-disable-next-line @typescript-eslint/naming-convention export function VisBulletLegend (props: VisBulletLegendProps): JSX.Element { const container = useRef(null) diff --git a/packages/react/src/html-components/leaflet-flow-map/index.tsx b/packages/react/src/html-components/leaflet-flow-map/index.tsx index 299c9aedc..29eb6379b 100644 --- a/packages/react/src/html-components/leaflet-flow-map/index.tsx +++ b/packages/react/src/html-components/leaflet-flow-map/index.tsx @@ -2,6 +2,8 @@ import React, { ForwardedRef, Ref, useEffect, useImperativeHandle, useRef, useSt import { LeafletFlowMap, LeafletFlowMapConfigInterface } from '@unovis/ts' import { arePropsEqual } from '../../utils/react' +export const VisLeafletFlowMapSelectors = LeafletFlowMap.selectors + export type VisLeafletFlowMapProps< PointDatum extends Record, FlowDatum extends Record, diff --git a/packages/react/src/html-components/leaflet-map/index.tsx b/packages/react/src/html-components/leaflet-map/index.tsx index de0188c3d..d37aeb1ae 100644 --- a/packages/react/src/html-components/leaflet-map/index.tsx +++ b/packages/react/src/html-components/leaflet-map/index.tsx @@ -2,6 +2,8 @@ import React, { ForwardedRef, Ref, useEffect, useImperativeHandle, useRef, useSt import { LeafletMap, LeafletMapConfigInterface } from '@unovis/ts' import { arePropsEqual } from '../../utils/react' +export const VisLeafletMapSelectors = LeafletMap.selectors + export type VisLeafletMapProps> = LeafletMapConfigInterface & { data?: Datum[]; ref?: Ref>;