react-magma-dom 4.7.0-next.24 → 4.7.0-next.25

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.
@@ -27,9 +27,6 @@ export interface UseTreeItemProps extends React.HTMLAttributes<HTMLLIElement> {
27
27
  * Icon for the tree item
28
28
  */
29
29
  icon?: React.ReactElement<IconProps>;
30
- /**
31
- * @internal
32
- */
33
30
  /**
34
31
  * @internal
35
32
  */
@@ -39,8 +36,6 @@ export interface UseTreeItemProps extends React.HTMLAttributes<HTMLLIElement> {
39
36
  */
40
37
  itemDepth?: number;
41
38
  /**
42
- * TODO: improve functionality (issue #1305)
43
- * @internal
44
39
  * If true, element is disabled
45
40
  * @default false
46
41
  */
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { TreeItemSelectedInterface, TreeViewItemInterface } from './TreeViewContext';
3
3
  import { TreeViewSelectable } from './types';
4
+ export { TreeItemSelectedInterface };
4
5
  export interface TreeViewApi {
5
6
  selectItem({ itemId, checkedStatus }: Pick<TreeViewItemInterface, 'itemId' | 'checkedStatus'>): void;
6
7
  selectAll(): void;
@@ -71,7 +72,7 @@ export interface UseTreeViewProps {
71
72
  * selectAll(): void - action that allows to select all items,
72
73
  * clearAll(): void - action that allows to unselect all items.
73
74
  */
74
- apiRef?: React.MutableRefObject<TreeViewApi>;
75
+ apiRef?: React.MutableRefObject<TreeViewApi | undefined>;
75
76
  /**
76
77
  * If true, every item is disabled
77
78
  * @default false
@@ -57,4 +57,5 @@ export declare const toggleAllMulti: ({ items, checkedStatus, checkChildren, che
57
57
  export declare const getInitialExpandedIds: ({ items, initialExpandedItems }: {
58
58
  items: TreeViewItemInterface[];
59
59
  } & Pick<UseTreeViewProps, "initialExpandedItems">) => any[];
60
+ export declare const isEqualArrays: <T>(arrayA: T[], arrayB: T[]) => boolean;
60
61
  export declare const isSelectedItemsChanged: (prevSelectedItems: TreeItemSelectedInterface[] | null, selectedItems: TreeItemSelectedInterface[]) => boolean;