@mlw-packages/react-components 1.9.3 → 1.9.5

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/index.css CHANGED
@@ -1118,6 +1118,9 @@ body {
1118
1118
  .w-1\.5 {
1119
1119
  width: 0.375rem;
1120
1120
  }
1121
+ .w-1\/2 {
1122
+ width: 50%;
1123
+ }
1121
1124
  .w-10 {
1122
1125
  width: 2.5rem;
1123
1126
  }
@@ -1382,9 +1385,6 @@ body {
1382
1385
  .max-w-\[1100px\] {
1383
1386
  max-width: 1100px;
1384
1387
  }
1385
- .max-w-\[120px\] {
1386
- max-width: 120px;
1387
- }
1388
1388
  .max-w-\[210px\] {
1389
1389
  max-width: 210px;
1390
1390
  }
@@ -2992,6 +2992,9 @@ body {
2992
2992
  .pl-24 {
2993
2993
  padding-left: 6rem;
2994
2994
  }
2995
+ .pl-3 {
2996
+ padding-left: 0.75rem;
2997
+ }
2995
2998
  .pl-4 {
2996
2999
  padding-left: 1rem;
2997
3000
  }
@@ -6215,12 +6218,6 @@ body {
6215
6218
  .sm\:mb-2 {
6216
6219
  margin-bottom: 0.5rem;
6217
6220
  }
6218
- .sm\:ml-3 {
6219
- margin-left: 0.75rem;
6220
- }
6221
- .sm\:mt-0 {
6222
- margin-top: 0px;
6223
- }
6224
6221
  .sm\:inline {
6225
6222
  display: inline;
6226
6223
  }
@@ -6281,9 +6278,6 @@ body {
6281
6278
  .sm\:max-w-md {
6282
6279
  max-width: 28rem;
6283
6280
  }
6284
- .sm\:max-w-none {
6285
- max-width: none;
6286
- }
6287
6281
  .sm\:max-w-sm {
6288
6282
  max-width: 24rem;
6289
6283
  }
@@ -6368,9 +6362,6 @@ body {
6368
6362
  border-top-right-radius: 0px;
6369
6363
  border-bottom-right-radius: 0px;
6370
6364
  }
6371
- .sm\:border-l {
6372
- border-left-width: 1px;
6373
- }
6374
6365
  .sm\:p-1\.5 {
6375
6366
  padding: 0.375rem;
6376
6367
  }
@@ -6405,9 +6396,6 @@ body {
6405
6396
  .sm\:pe-4 {
6406
6397
  padding-inline-end: 1rem;
6407
6398
  }
6408
- .sm\:pl-3 {
6409
- padding-left: 0.75rem;
6410
- }
6411
6399
  .sm\:pr-0 {
6412
6400
  padding-right: 0px;
6413
6401
  }
package/dist/index.d.mts CHANGED
@@ -1674,6 +1674,61 @@ interface LegendItem {
1674
1674
  };
1675
1675
  }
1676
1676
 
1677
+ declare const formatFieldName: (fieldName: string) => string;
1678
+ declare const detectDataFields: (data: Record<string, unknown>[], xAxisKey: string) => string[];
1679
+ declare const detectXAxis: (data: Record<string, unknown>[]) => string;
1680
+ declare const generateAdditionalColors: (baseColors: string[], count: number) => string[];
1681
+ declare const niceCeil: (value: number) => number;
1682
+ declare const compactTick: (value: number) => string;
1683
+ declare const resolveContainerPaddingLeft: (padding?: Padding, containerPaddingLeft?: number, defaultLeft?: number) => number;
1684
+ declare const resolveChartMargins: (margins?: Margins, chartMargins?: Margins, showLabels?: boolean) => {
1685
+ top: number;
1686
+ right: number;
1687
+ left: number;
1688
+ bottom: number;
1689
+ };
1690
+ declare const generateColorMap: (dataKeys: string[], baseColors: string[], mapperConfig: Record<string, {
1691
+ color?: string;
1692
+ }>) => Record<string, string>;
1693
+ declare const computeNiceMax: (maxValue: number) => number;
1694
+ declare const getMaxDataValue: (data: Record<string, unknown>[], keys: string[]) => number;
1695
+ declare const getMinDataValue: (data: Record<string, unknown>[], keys: string[]) => number;
1696
+ declare const computeChartWidth: (width: number | string | undefined, dataLength: number, series: SeriesConfig | undefined, niceMaxLeft: number, niceMaxRight: number) => number;
1697
+ declare const adaptDataForTooltip: <T extends Record<string, unknown>>(data: T, xAxisKey: string) => {
1698
+ name: string;
1699
+ [key: string]: string | number;
1700
+ };
1701
+ declare const createValueFormatter: (customFormatter: ValueFormatterType | Record<string, string> | undefined, formatBR: boolean) => ValueFormatterType | undefined;
1702
+ declare const createYTickFormatter: (finalValueFormatter: ValueFormatterType | undefined) => ((value: number | string) => string);
1703
+ declare const computeYAxisTickWidth: (chartMarginLeft: number | undefined, yAxisLabel: string | undefined, axisLabelMargin: number, yTickFormatter: (value: number | string) => string, minValue: number, maxValue: number) => number;
1704
+
1705
+ type Variant = "filled" | "outline" | "soft";
1706
+ type LabelRendererProps = {
1707
+ x?: number | string;
1708
+ y?: number | string;
1709
+ value?: number | string;
1710
+ index?: number;
1711
+ payload?: unknown;
1712
+ width?: number | string;
1713
+ height?: number | string;
1714
+ viewBox?: {
1715
+ x?: number;
1716
+ y?: number;
1717
+ width?: number;
1718
+ height?: number;
1719
+ } | Record<string, unknown> | undefined;
1720
+ cx?: number | string;
1721
+ cy?: number | string;
1722
+ };
1723
+ type valueFormatter = (props: {
1724
+ value: number | string | undefined;
1725
+ formattedValue: string;
1726
+ [key: string]: unknown;
1727
+ }) => string;
1728
+ declare const renderPillLabel: (color: string, variant: Variant, valueFormatter?: valueFormatter) => (props: LabelRendererProps) => react_jsx_runtime.JSX.Element;
1729
+
1730
+ declare const renderInsideBarLabel: (color: string, valueFormatter?: valueFormatter) => (props: LabelRendererProps) => react_jsx_runtime.JSX.Element;
1731
+
1677
1732
  interface ChartData$3 {
1678
1733
  [key: string]: string | number | boolean | null | undefined;
1679
1734
  }
@@ -1695,8 +1750,8 @@ type SeriesProp = {
1695
1750
  line?: string[];
1696
1751
  area?: string[];
1697
1752
  };
1698
- interface ChartProps<T extends ChartData$3 = ChartData$3> {
1699
- data: T[];
1753
+ interface ChartProps {
1754
+ data: ChartData$3[];
1700
1755
  series?: SeriesProp;
1701
1756
  className?: string;
1702
1757
  chartMargin?: Partial<{
@@ -1716,7 +1771,7 @@ interface ChartProps<T extends ChartData$3 = ChartData$3> {
1716
1771
  titlePosition?: "left" | "center" | "right";
1717
1772
  showLabels?: boolean;
1718
1773
  labelMap?: Record<string, string>;
1719
- valueFormatter?: ValueFormatterConfig | ValueFormatterMap<T>;
1774
+ valueFormatter?: valueFormatter;
1720
1775
  categoryFormatter?: (value: string | number) => string;
1721
1776
  periodLabel?: string;
1722
1777
  xAxisLabel?: string;
@@ -1741,7 +1796,6 @@ interface ChartProps<T extends ChartData$3 = ChartData$3> {
1741
1796
  area: boolean;
1742
1797
  };
1743
1798
  horizontal?: boolean;
1744
- orderBy?: string;
1745
1799
  }
1746
1800
  interface SeriesConfig {
1747
1801
  bar?: string[];
@@ -1753,12 +1807,6 @@ type ValueFormatterType = (props: {
1753
1807
  formattedValue: string;
1754
1808
  [key: string]: unknown;
1755
1809
  }) => string;
1756
- type PredefinedFormat = "R$" | "$" | "€" | "£" | "%" | "kg" | "km" | "m" | "L" | "un" | "t" | "h" | "min" | "s";
1757
- type ExtractStringKeys<T> = {
1758
- [K in keyof T]: T[K] extends string | number ? K : never;
1759
- }[keyof T];
1760
- type ValueFormatterMap<T extends Record<string, unknown>> = Partial<Record<ExtractStringKeys<T>, PredefinedFormat | string>>;
1761
- type ValueFormatterConfig = ValueFormatterType | Record<string, PredefinedFormat | string>;
1762
1810
  type Padding = number | Partial<{
1763
1811
  left: number;
1764
1812
  right: number;
@@ -1860,61 +1908,6 @@ interface CloseAllButtonProps {
1860
1908
  }
1861
1909
  declare const CloseAllButton: React__default.FC<CloseAllButtonProps>;
1862
1910
 
1863
- declare const formatFieldName: (fieldName: string) => string;
1864
- declare const detectDataFields: (data: Record<string, unknown>[], xAxisKey: string) => string[];
1865
- declare const detectXAxis: (data: Record<string, unknown>[]) => string;
1866
- declare const generateAdditionalColors: (baseColors: string[], count: number) => string[];
1867
- declare const niceCeil: (value: number) => number;
1868
- declare const compactTick: (value: number) => string;
1869
- declare const resolveContainerPaddingLeft: (padding?: Padding, containerPaddingLeft?: number, defaultLeft?: number) => number;
1870
- declare const resolveChartMargins: (margins?: Margins, chartMargins?: Margins, showLabels?: boolean) => {
1871
- top: number;
1872
- right: number;
1873
- left: number;
1874
- bottom: number;
1875
- };
1876
- declare const generateColorMap: (dataKeys: string[], baseColors: string[], mapperConfig: Record<string, {
1877
- color?: string;
1878
- }>) => Record<string, string>;
1879
- declare const computeNiceMax: (maxValue: number) => number;
1880
- declare const getMaxDataValue: (data: Record<string, unknown>[], keys: string[]) => number;
1881
- declare const getMinDataValue: (data: Record<string, unknown>[], keys: string[]) => number;
1882
- declare const computeChartWidth: (width: number | string | undefined, dataLength: number, series: SeriesConfig | undefined, niceMaxLeft: number, niceMaxRight: number) => number;
1883
- declare const adaptDataForTooltip: <T extends Record<string, unknown>>(data: T, xAxisKey: string) => {
1884
- name: string;
1885
- [key: string]: string | number;
1886
- };
1887
- declare const createValueFormatter: (customFormatter: ValueFormatterType | Record<string, string> | undefined, formatBR: boolean) => ValueFormatterType | undefined;
1888
- declare const createYTickFormatter: (finalValueFormatter: ValueFormatterType | undefined) => ((value: number | string) => string);
1889
- declare const computeYAxisTickWidth: (chartMarginLeft: number | undefined, yAxisLabel: string | undefined, axisLabelMargin: number, yTickFormatter: (value: number | string) => string, minValue: number, maxValue: number) => number;
1890
-
1891
- type Variant = "filled" | "outline" | "soft";
1892
- type LabelRendererProps = {
1893
- x?: number | string;
1894
- y?: number | string;
1895
- value?: number | string;
1896
- index?: number;
1897
- payload?: unknown;
1898
- width?: number | string;
1899
- height?: number | string;
1900
- viewBox?: {
1901
- x?: number;
1902
- y?: number;
1903
- width?: number;
1904
- height?: number;
1905
- } | Record<string, unknown> | undefined;
1906
- cx?: number | string;
1907
- cy?: number | string;
1908
- };
1909
- type valueFormatter = (props: {
1910
- value: number | string | undefined;
1911
- formattedValue: string;
1912
- [key: string]: unknown;
1913
- }) => string;
1914
- declare const renderPillLabel: (color: string, variant: Variant, valueFormatter?: valueFormatter) => (props: LabelRendererProps) => react_jsx_runtime.JSX.Element;
1915
-
1916
- declare const renderInsideBarLabel: (color: string, valueFormatter?: valueFormatter) => (props: LabelRendererProps) => react_jsx_runtime.JSX.Element;
1917
-
1918
1911
  interface TooltipData {
1919
1912
  name: string;
1920
1913
  [key: string]: string | number;
@@ -1988,17 +1981,31 @@ interface Props {
1988
1981
  }
1989
1982
  declare const TooltipSimple: React__default.FC<Props>;
1990
1983
 
1984
+ interface IntegrationProperties {
1985
+ tipo?: string;
1986
+ Tipo?: string;
1987
+ Setor?: string;
1988
+ Destino?: string;
1989
+ Contato?: string;
1990
+ Ambiente?: string;
1991
+ Nome?: string;
1992
+ Protocolos?: string;
1993
+ Sustentacao?: string;
1994
+ Origem?: string;
1995
+ }
1991
1996
  interface Connection {
1992
1997
  id: string;
1993
1998
  name: string;
1994
1999
  type: "entrada" | "saida";
1995
2000
  status?: "active" | "inactive" | "warning";
2001
+ integration?: IntegrationProperties;
1996
2002
  }
1997
2003
  interface SystemData {
1998
2004
  name: string;
1999
- description: string;
2005
+ description?: string;
2000
2006
  connections: Connection[];
2001
2007
  }
2008
+
2002
2009
  interface Position$1 {
2003
2010
  top: number;
2004
2011
  left: number;
@@ -2008,6 +2015,7 @@ interface SystemTooltipProps {
2008
2015
  data: SystemData;
2009
2016
  position: Position$1;
2010
2017
  title?: string;
2018
+ isLoading?: boolean;
2011
2019
  onMouseDown?: (id: string, e: React__default.MouseEvent | React__default.TouchEvent) => void;
2012
2020
  onClose: (id: string) => void;
2013
2021
  onPositionChange?: (id: string, position: Position$1) => void;
package/dist/index.d.ts CHANGED
@@ -1674,6 +1674,61 @@ interface LegendItem {
1674
1674
  };
1675
1675
  }
1676
1676
 
1677
+ declare const formatFieldName: (fieldName: string) => string;
1678
+ declare const detectDataFields: (data: Record<string, unknown>[], xAxisKey: string) => string[];
1679
+ declare const detectXAxis: (data: Record<string, unknown>[]) => string;
1680
+ declare const generateAdditionalColors: (baseColors: string[], count: number) => string[];
1681
+ declare const niceCeil: (value: number) => number;
1682
+ declare const compactTick: (value: number) => string;
1683
+ declare const resolveContainerPaddingLeft: (padding?: Padding, containerPaddingLeft?: number, defaultLeft?: number) => number;
1684
+ declare const resolveChartMargins: (margins?: Margins, chartMargins?: Margins, showLabels?: boolean) => {
1685
+ top: number;
1686
+ right: number;
1687
+ left: number;
1688
+ bottom: number;
1689
+ };
1690
+ declare const generateColorMap: (dataKeys: string[], baseColors: string[], mapperConfig: Record<string, {
1691
+ color?: string;
1692
+ }>) => Record<string, string>;
1693
+ declare const computeNiceMax: (maxValue: number) => number;
1694
+ declare const getMaxDataValue: (data: Record<string, unknown>[], keys: string[]) => number;
1695
+ declare const getMinDataValue: (data: Record<string, unknown>[], keys: string[]) => number;
1696
+ declare const computeChartWidth: (width: number | string | undefined, dataLength: number, series: SeriesConfig | undefined, niceMaxLeft: number, niceMaxRight: number) => number;
1697
+ declare const adaptDataForTooltip: <T extends Record<string, unknown>>(data: T, xAxisKey: string) => {
1698
+ name: string;
1699
+ [key: string]: string | number;
1700
+ };
1701
+ declare const createValueFormatter: (customFormatter: ValueFormatterType | Record<string, string> | undefined, formatBR: boolean) => ValueFormatterType | undefined;
1702
+ declare const createYTickFormatter: (finalValueFormatter: ValueFormatterType | undefined) => ((value: number | string) => string);
1703
+ declare const computeYAxisTickWidth: (chartMarginLeft: number | undefined, yAxisLabel: string | undefined, axisLabelMargin: number, yTickFormatter: (value: number | string) => string, minValue: number, maxValue: number) => number;
1704
+
1705
+ type Variant = "filled" | "outline" | "soft";
1706
+ type LabelRendererProps = {
1707
+ x?: number | string;
1708
+ y?: number | string;
1709
+ value?: number | string;
1710
+ index?: number;
1711
+ payload?: unknown;
1712
+ width?: number | string;
1713
+ height?: number | string;
1714
+ viewBox?: {
1715
+ x?: number;
1716
+ y?: number;
1717
+ width?: number;
1718
+ height?: number;
1719
+ } | Record<string, unknown> | undefined;
1720
+ cx?: number | string;
1721
+ cy?: number | string;
1722
+ };
1723
+ type valueFormatter = (props: {
1724
+ value: number | string | undefined;
1725
+ formattedValue: string;
1726
+ [key: string]: unknown;
1727
+ }) => string;
1728
+ declare const renderPillLabel: (color: string, variant: Variant, valueFormatter?: valueFormatter) => (props: LabelRendererProps) => react_jsx_runtime.JSX.Element;
1729
+
1730
+ declare const renderInsideBarLabel: (color: string, valueFormatter?: valueFormatter) => (props: LabelRendererProps) => react_jsx_runtime.JSX.Element;
1731
+
1677
1732
  interface ChartData$3 {
1678
1733
  [key: string]: string | number | boolean | null | undefined;
1679
1734
  }
@@ -1695,8 +1750,8 @@ type SeriesProp = {
1695
1750
  line?: string[];
1696
1751
  area?: string[];
1697
1752
  };
1698
- interface ChartProps<T extends ChartData$3 = ChartData$3> {
1699
- data: T[];
1753
+ interface ChartProps {
1754
+ data: ChartData$3[];
1700
1755
  series?: SeriesProp;
1701
1756
  className?: string;
1702
1757
  chartMargin?: Partial<{
@@ -1716,7 +1771,7 @@ interface ChartProps<T extends ChartData$3 = ChartData$3> {
1716
1771
  titlePosition?: "left" | "center" | "right";
1717
1772
  showLabels?: boolean;
1718
1773
  labelMap?: Record<string, string>;
1719
- valueFormatter?: ValueFormatterConfig | ValueFormatterMap<T>;
1774
+ valueFormatter?: valueFormatter;
1720
1775
  categoryFormatter?: (value: string | number) => string;
1721
1776
  periodLabel?: string;
1722
1777
  xAxisLabel?: string;
@@ -1741,7 +1796,6 @@ interface ChartProps<T extends ChartData$3 = ChartData$3> {
1741
1796
  area: boolean;
1742
1797
  };
1743
1798
  horizontal?: boolean;
1744
- orderBy?: string;
1745
1799
  }
1746
1800
  interface SeriesConfig {
1747
1801
  bar?: string[];
@@ -1753,12 +1807,6 @@ type ValueFormatterType = (props: {
1753
1807
  formattedValue: string;
1754
1808
  [key: string]: unknown;
1755
1809
  }) => string;
1756
- type PredefinedFormat = "R$" | "$" | "€" | "£" | "%" | "kg" | "km" | "m" | "L" | "un" | "t" | "h" | "min" | "s";
1757
- type ExtractStringKeys<T> = {
1758
- [K in keyof T]: T[K] extends string | number ? K : never;
1759
- }[keyof T];
1760
- type ValueFormatterMap<T extends Record<string, unknown>> = Partial<Record<ExtractStringKeys<T>, PredefinedFormat | string>>;
1761
- type ValueFormatterConfig = ValueFormatterType | Record<string, PredefinedFormat | string>;
1762
1810
  type Padding = number | Partial<{
1763
1811
  left: number;
1764
1812
  right: number;
@@ -1860,61 +1908,6 @@ interface CloseAllButtonProps {
1860
1908
  }
1861
1909
  declare const CloseAllButton: React__default.FC<CloseAllButtonProps>;
1862
1910
 
1863
- declare const formatFieldName: (fieldName: string) => string;
1864
- declare const detectDataFields: (data: Record<string, unknown>[], xAxisKey: string) => string[];
1865
- declare const detectXAxis: (data: Record<string, unknown>[]) => string;
1866
- declare const generateAdditionalColors: (baseColors: string[], count: number) => string[];
1867
- declare const niceCeil: (value: number) => number;
1868
- declare const compactTick: (value: number) => string;
1869
- declare const resolveContainerPaddingLeft: (padding?: Padding, containerPaddingLeft?: number, defaultLeft?: number) => number;
1870
- declare const resolveChartMargins: (margins?: Margins, chartMargins?: Margins, showLabels?: boolean) => {
1871
- top: number;
1872
- right: number;
1873
- left: number;
1874
- bottom: number;
1875
- };
1876
- declare const generateColorMap: (dataKeys: string[], baseColors: string[], mapperConfig: Record<string, {
1877
- color?: string;
1878
- }>) => Record<string, string>;
1879
- declare const computeNiceMax: (maxValue: number) => number;
1880
- declare const getMaxDataValue: (data: Record<string, unknown>[], keys: string[]) => number;
1881
- declare const getMinDataValue: (data: Record<string, unknown>[], keys: string[]) => number;
1882
- declare const computeChartWidth: (width: number | string | undefined, dataLength: number, series: SeriesConfig | undefined, niceMaxLeft: number, niceMaxRight: number) => number;
1883
- declare const adaptDataForTooltip: <T extends Record<string, unknown>>(data: T, xAxisKey: string) => {
1884
- name: string;
1885
- [key: string]: string | number;
1886
- };
1887
- declare const createValueFormatter: (customFormatter: ValueFormatterType | Record<string, string> | undefined, formatBR: boolean) => ValueFormatterType | undefined;
1888
- declare const createYTickFormatter: (finalValueFormatter: ValueFormatterType | undefined) => ((value: number | string) => string);
1889
- declare const computeYAxisTickWidth: (chartMarginLeft: number | undefined, yAxisLabel: string | undefined, axisLabelMargin: number, yTickFormatter: (value: number | string) => string, minValue: number, maxValue: number) => number;
1890
-
1891
- type Variant = "filled" | "outline" | "soft";
1892
- type LabelRendererProps = {
1893
- x?: number | string;
1894
- y?: number | string;
1895
- value?: number | string;
1896
- index?: number;
1897
- payload?: unknown;
1898
- width?: number | string;
1899
- height?: number | string;
1900
- viewBox?: {
1901
- x?: number;
1902
- y?: number;
1903
- width?: number;
1904
- height?: number;
1905
- } | Record<string, unknown> | undefined;
1906
- cx?: number | string;
1907
- cy?: number | string;
1908
- };
1909
- type valueFormatter = (props: {
1910
- value: number | string | undefined;
1911
- formattedValue: string;
1912
- [key: string]: unknown;
1913
- }) => string;
1914
- declare const renderPillLabel: (color: string, variant: Variant, valueFormatter?: valueFormatter) => (props: LabelRendererProps) => react_jsx_runtime.JSX.Element;
1915
-
1916
- declare const renderInsideBarLabel: (color: string, valueFormatter?: valueFormatter) => (props: LabelRendererProps) => react_jsx_runtime.JSX.Element;
1917
-
1918
1911
  interface TooltipData {
1919
1912
  name: string;
1920
1913
  [key: string]: string | number;
@@ -1988,17 +1981,31 @@ interface Props {
1988
1981
  }
1989
1982
  declare const TooltipSimple: React__default.FC<Props>;
1990
1983
 
1984
+ interface IntegrationProperties {
1985
+ tipo?: string;
1986
+ Tipo?: string;
1987
+ Setor?: string;
1988
+ Destino?: string;
1989
+ Contato?: string;
1990
+ Ambiente?: string;
1991
+ Nome?: string;
1992
+ Protocolos?: string;
1993
+ Sustentacao?: string;
1994
+ Origem?: string;
1995
+ }
1991
1996
  interface Connection {
1992
1997
  id: string;
1993
1998
  name: string;
1994
1999
  type: "entrada" | "saida";
1995
2000
  status?: "active" | "inactive" | "warning";
2001
+ integration?: IntegrationProperties;
1996
2002
  }
1997
2003
  interface SystemData {
1998
2004
  name: string;
1999
- description: string;
2005
+ description?: string;
2000
2006
  connections: Connection[];
2001
2007
  }
2008
+
2002
2009
  interface Position$1 {
2003
2010
  top: number;
2004
2011
  left: number;
@@ -2008,6 +2015,7 @@ interface SystemTooltipProps {
2008
2015
  data: SystemData;
2009
2016
  position: Position$1;
2010
2017
  title?: string;
2018
+ isLoading?: boolean;
2011
2019
  onMouseDown?: (id: string, e: React__default.MouseEvent | React__default.TouchEvent) => void;
2012
2020
  onClose: (id: string) => void;
2013
2021
  onPositionChange?: (id: string, position: Position$1) => void;