@elliemae/ds-treeview 3.53.1-rc.0 → 3.54.0-beta.2

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.
@@ -3,5 +3,8 @@
3
3
  "sideEffects": [
4
4
  "*.css",
5
5
  "*.scss"
6
- ]
6
+ ],
7
+ "publishConfig": {
8
+ "access": "public"
9
+ }
7
10
  }
@@ -3,5 +3,8 @@
3
3
  "sideEffects": [
4
4
  "*.css",
5
5
  "*.scss"
6
- ]
6
+ ],
7
+ "publishConfig": {
8
+ "access": "public"
9
+ }
7
10
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { DSTreeviewT } from './react-desc-prop-types.js';
3
2
  import type { DSTreeviewInternalsT } from './sharedTypes.js';
4
3
  export declare const defaultProps: DSTreeviewT.DefaultProps;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { DSTreeviewT } from '../react-desc-prop-types.js';
3
2
  import { DropIndicatorPosition } from './SortableItemContext.js';
4
3
  type DnDTreeContextType = {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { useSortable } from '@elliemae/ds-drag-and-drop';
3
2
  export declare enum DropIndicatorPosition {
4
3
  None = "none",
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { DSTreeviewT } from '../react-desc-prop-types.js';
3
2
  interface PropsT {
4
3
  item: DSTreeviewT.Item;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { DSTreeviewT } from '../react-desc-prop-types.js';
3
2
  interface PropsT {
4
3
  item: DSTreeviewT.Item;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { DSTreeviewT } from '../react-desc-prop-types.js';
3
2
  interface PropsT {
4
3
  item: DSTreeviewT.Item;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { DSTreeviewT } from '../react-desc-prop-types.js';
3
2
  type NestingSpacePropsType = {
4
3
  item: DSTreeviewT.Item;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { DSTreeviewT } from '../react-desc-prop-types.js';
3
- export declare const TreeListItem: React.ComponentType<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>>;
4
- export declare const TreeListItemAddonsWrapper: React.ComponentType<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
3
+ export declare const TreeListItem: React.ComponentType<React.ComponentProps<"li">>;
4
+ export declare const TreeListItemAddonsWrapper: React.ComponentType<React.ComponentProps<"div">>;
5
5
  interface PropsT {
6
6
  item: DSTreeviewT.Item;
7
7
  itemIndex: number;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { DSTreeviewT } from '../react-desc-prop-types.js';
3
2
  interface PropsT {
4
3
  item: DSTreeviewT.Item;
@@ -1,10 +1,9 @@
1
- /// <reference types="node" />
2
1
  import React from 'react';
3
2
  import type { DSTreeviewT } from '../react-desc-prop-types.js';
4
3
  export declare const treeListNoItemsBn = "tree-list-no-items";
5
- export declare const TreeListNoItems: React.ComponentType<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
4
+ export declare const TreeListNoItems: React.ComponentType<React.ComponentProps<"div">>;
6
5
  export declare const TreeListWrapper: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system").Theme, {
7
- $removeWidthMaxContent?: boolean | undefined;
6
+ $removeWidthMaxContent?: boolean;
8
7
  } & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"div">, never>;
9
8
  interface PropsT {
10
9
  onMouseDragOverItem?: (opts: {
@@ -1,4 +1,3 @@
1
- /// <reference types="prop-types" />
2
1
  import type React from 'react';
3
2
  import type { ValidationMap } from '@elliemae/ds-props-helpers';
4
3
  import type TreeModel from 'tree-model';
@@ -1,14 +1,14 @@
1
1
  import type { DSTreeviewT } from '../react-desc-prop-types.js';
2
2
  import type { DSTreeviewInternalsT } from '../sharedTypes.js';
3
- export declare const updateExpandedState: (treeRoot: DSTreeviewT.Item['node'], onExpandChange: DSTreeviewT.Props['onExpandChange'] | null | undefined) => void;
4
- export declare const toggleItemExpand: (itemToToggle: DSTreeviewT.Item, triggerTreeRerender: () => void, updateUserExpandedState: DSTreeviewInternalsT.CTX['updateUserExpandedState'], scrollTo?: DSTreeviewT.ScrollToFunc) => void;
5
- export declare const expandItemModel: (modelToExpand: DSTreeviewT.Item['model']) => void;
6
- export declare const collapseItemModel: (modelToCollapse: DSTreeviewT.Item['model']) => void;
7
- export declare const expandAll: (treeRoot: DSTreeviewT.Item['node'], triggerTreeRerender: () => void) => void;
8
- export declare const collapseAll: (treeRoot: DSTreeviewT.Item['node'], triggerTreeRerender: () => void) => void;
9
- export declare const getToggleExpandShouldExpand: (treeRoot: DSTreeviewT.Item['node']) => boolean;
10
- export declare const toggleExpandAllHelper: (isExpand: boolean | 'toggle', treeRoot: DSTreeviewT.Item['node'], triggerTreeRerender: () => void, setLatestToggledItem: DSTreeviewInternalsT.CTX['setLatestToggledItem'], updateUserExpandedState: DSTreeviewInternalsT.CTX['updateUserExpandedState']) => void;
3
+ export declare const updateExpandedState: (treeRoot: DSTreeviewT.Item["node"], onExpandChange: DSTreeviewT.Props["onExpandChange"] | null | undefined) => void;
4
+ export declare const toggleItemExpand: (itemToToggle: DSTreeviewT.Item, triggerTreeRerender: () => void, updateUserExpandedState: DSTreeviewInternalsT.CTX["updateUserExpandedState"], scrollTo?: DSTreeviewT.ScrollToFunc) => void;
5
+ export declare const expandItemModel: (modelToExpand: DSTreeviewT.Item["model"]) => void;
6
+ export declare const collapseItemModel: (modelToCollapse: DSTreeviewT.Item["model"]) => void;
7
+ export declare const expandAll: (treeRoot: DSTreeviewT.Item["node"], triggerTreeRerender: () => void) => void;
8
+ export declare const collapseAll: (treeRoot: DSTreeviewT.Item["node"], triggerTreeRerender: () => void) => void;
9
+ export declare const getToggleExpandShouldExpand: (treeRoot: DSTreeviewT.Item["node"]) => boolean;
10
+ export declare const toggleExpandAllHelper: (isExpand: boolean | "toggle", treeRoot: DSTreeviewT.Item["node"], triggerTreeRerender: () => void, setLatestToggledItem: DSTreeviewInternalsT.CTX["setLatestToggledItem"], updateUserExpandedState: DSTreeviewInternalsT.CTX["updateUserExpandedState"]) => void;
11
11
  export declare const useNotifyExpandedChange: (propsWithDefaults: DSTreeviewT.Props, { latestToggledItem, expandedGroups, }: {
12
- latestToggledItem?: DSTreeviewInternalsT.CTX['latestToggledItem'];
13
- expandedGroups?: DSTreeviewInternalsT.CTX['expandedGroups'];
12
+ latestToggledItem?: DSTreeviewInternalsT.CTX["latestToggledItem"];
13
+ expandedGroups?: DSTreeviewInternalsT.CTX["expandedGroups"];
14
14
  }) => void;
@@ -1,6 +1,6 @@
1
1
  import type { DSTreeviewT } from '../react-desc-prop-types.js';
2
2
  import type { DSTreeviewInternalsT } from '../sharedTypes.js';
3
3
  import type { SortableItemContextType } from '../hoc/SortableItemContext.js';
4
- export declare const useOnItemKeyDown: (item: DSTreeviewT.Item, draggableProps: SortableItemContextType['draggableProps']) => (e: React.KeyboardEvent<HTMLLIElement>) => void;
4
+ export declare const useOnItemKeyDown: (item: DSTreeviewT.Item, draggableProps: SortableItemContextType["draggableProps"]) => (e: React.KeyboardEvent<HTMLLIElement>) => void;
5
5
  export declare const useGlobalKeyboardListener: (func: (e: KeyboardEvent) => void) => void;
6
- export declare const useGlobalToggleAllExpandShortcut: (treeRoot: DSTreeviewT.Item['node'], triggerTreeRerender: () => void, setLatestToggledItem: DSTreeviewInternalsT.CTX['setLatestToggledItem'], updateUserExpandedState: DSTreeviewInternalsT.CTX['updateUserExpandedState']) => void;
6
+ export declare const useGlobalToggleAllExpandShortcut: (treeRoot: DSTreeviewT.Item["node"], triggerTreeRerender: () => void, setLatestToggledItem: DSTreeviewInternalsT.CTX["setLatestToggledItem"], updateUserExpandedState: DSTreeviewInternalsT.CTX["updateUserExpandedState"]) => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  type GenericMergeableRef = null | undefined | React.MutableRefObject<unknown> | ((ref: HTMLElement) => void) | false;
3
2
  export declare const setMultipleRefs: (...refs: GenericMergeableRef[]) => ((ref: HTMLElement) => void);
4
3
  export {};
@@ -1,5 +1,5 @@
1
1
  import type { DSTreeviewT } from '../react-desc-prop-types.js';
2
- export declare const getGroupCheckState: (node: DSTreeviewT.Item['node']) => boolean | "mixed";
2
+ export declare const getGroupCheckState: (node: DSTreeviewT.Item["node"]) => boolean | "mixed";
3
3
  export declare const selectCheckboxItemModelParentsTillRoot: (modelToCheck: DSTreeviewT.Item, triggerTreeRerender?: (() => void) | null) => DSTreeviewT.SelectionItems;
4
4
  export declare const toggleCheckboxItem: (itemToSelect: DSTreeviewT.Item, currentlySelectedCheckboxes: DSTreeviewT.SelectionItems, triggerTreeRerender?: (() => void) | null) => {
5
5
  [x: string]: DSTreeviewT.SelectionState;
@@ -1,17 +1,15 @@
1
1
  import type TreeModel from 'tree-model';
2
2
  import type { DSTreeviewT } from '../react-desc-prop-types.js';
3
- export declare const walkVisibles: (node: DSTreeviewT.Item['node'], callback: (node: DSTreeviewT.Item['node']) => void, skipRoot?: boolean, highlightOnlyQuery?: boolean) => void;
4
- export declare const walkParents: (nodePath: DSTreeviewT.Item['nodePath'], callback: (currParent: DSTreeviewT.Item['node']) => void, skipRoot?: boolean) => void;
3
+ export declare const walkVisibles: (node: DSTreeviewT.Item["node"], callback: (node: DSTreeviewT.Item["node"]) => void, skipRoot?: boolean, highlightOnlyQuery?: boolean) => void;
4
+ export declare const walkParents: (nodePath: DSTreeviewT.Item["nodePath"], callback: (currParent: DSTreeviewT.Item["node"]) => void, skipRoot?: boolean) => void;
5
5
  type RecursiveCallbackT = (childNode: DSTreeviewT.Item['node'], cb?: RecursiveCallbackT, isFirst?: boolean) => void;
6
- export declare const walkAllNodeChildren: (node: DSTreeviewT.Item['node'], callback: RecursiveCallbackT, isFirst?: boolean) => void;
7
- export declare const getNodeById: (treeRoot: DSTreeviewT.Item['node'], id: DSTreeviewT.StringOrNum) => TreeModel.Node<DSTreeviewT.Item>;
6
+ export declare const walkAllNodeChildren: (node: DSTreeviewT.Item["node"], callback: RecursiveCallbackT, isFirst?: boolean) => void;
7
+ export declare const getNodeById: (treeRoot: DSTreeviewT.Item["node"], id: DSTreeviewT.StringOrNum) => TreeModel.Node<DSTreeviewT.Item>;
8
8
  export declare const cloneNode: (tree: TreeModel, node: DSTreeviewT.Item) => TreeModel.Node<DSTreeviewT.Item>;
9
9
  export declare const itemsShareSameParent: (items?: DSTreeviewT.Item[]) => boolean;
10
- export declare const getItemsParentNode: (items?: DSTreeviewT.Item[], skipSameParentCheck?: boolean) => TreeModel.Node<DSTreeviewT.Item> & {
11
- parent?: TreeModel.Node<DSTreeviewT.Item> | undefined;
12
- };
13
- export declare const getNodeMatchesSearchQuery: (node: DSTreeviewT.Item['node'], searchQuery?: string) => boolean;
14
- export declare const getChildrenMatchesSearchQuery: (parentNode: DSTreeviewT.Item['node'], searchQuery?: string) => boolean;
10
+ export declare const getItemsParentNode: (items?: DSTreeviewT.Item[], skipSameParentCheck?: boolean) => DSTreeviewT.Item["node"];
11
+ export declare const getNodeMatchesSearchQuery: (node: DSTreeviewT.Item["node"], searchQuery?: string) => boolean;
12
+ export declare const getChildrenMatchesSearchQuery: (parentNode: DSTreeviewT.Item["node"], searchQuery?: string) => boolean;
15
13
  /**
16
14
  * Mutate in place a node from tree-model normalizing object properties like "isGroup" even if user didn't specify it explicitly,
17
15
  * after execution the node will have "nodePath" "treeDepth" "nodeItemRef" "isGroup" "isExpanded"
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import TreeModel from 'tree-model';
3
2
  import type { DSTreeviewT } from '../react-desc-prop-types.js';
4
3
  import type { DSTreeviewInternalsT } from '../sharedTypes.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-treeview",
3
- "version": "3.53.1-rc.0",
3
+ "version": "3.54.0-beta.2",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Tree View",
6
6
  "files": [
@@ -44,23 +44,24 @@
44
44
  "react-virtual": "~2.10.4",
45
45
  "tree-model": "~1.0.7",
46
46
  "uid": "~2.0.1",
47
- "@elliemae/ds-button-v2": "3.53.1-rc.0",
48
- "@elliemae/ds-circular-progress-indicator": "3.53.1-rc.0",
49
- "@elliemae/ds-classnames": "3.53.1-rc.0",
50
- "@elliemae/ds-controlled-form": "3.53.1-rc.0",
51
- "@elliemae/ds-drag-and-drop": "3.53.1-rc.0",
52
- "@elliemae/ds-form": "3.53.1-rc.0",
53
- "@elliemae/ds-props-helpers": "3.53.1-rc.0",
54
- "@elliemae/ds-icons": "3.53.1-rc.0",
55
- "@elliemae/ds-system": "3.53.1-rc.0",
56
- "@elliemae/ds-truncated-tooltip-text": "3.53.1-rc.0",
57
- "@elliemae/ds-typescript-helpers": "3.53.1-rc.0"
47
+ "@elliemae/ds-circular-progress-indicator": "3.54.0-beta.2",
48
+ "@elliemae/ds-classnames": "3.54.0-beta.2",
49
+ "@elliemae/ds-button-v2": "3.54.0-beta.2",
50
+ "@elliemae/ds-controlled-form": "3.54.0-beta.2",
51
+ "@elliemae/ds-drag-and-drop": "3.54.0-beta.2",
52
+ "@elliemae/ds-props-helpers": "3.54.0-beta.2",
53
+ "@elliemae/ds-icons": "3.54.0-beta.2",
54
+ "@elliemae/ds-form": "3.54.0-beta.2",
55
+ "@elliemae/ds-system": "3.54.0-beta.2",
56
+ "@elliemae/ds-truncated-tooltip-text": "3.54.0-beta.2",
57
+ "@elliemae/ds-typescript-helpers": "3.54.0-beta.2"
58
58
  },
59
59
  "devDependencies": {
60
- "@elliemae/pui-cli": "9.0.0-next.63",
60
+ "@elliemae/pui-cli": "9.0.0-next.65",
61
61
  "jest": "~29.7.0",
62
62
  "styled-components": "~5.3.9",
63
- "@elliemae/ds-monorepo-devops": "3.53.1-rc.0"
63
+ "@elliemae/ds-monorepo-devops": "3.54.0-beta.2",
64
+ "@elliemae/ds-test-utils": "3.54.0-beta.2"
64
65
  },
65
66
  "peerDependencies": {
66
67
  "lodash-es": "^4.17.21",