Socket
Socket
Sign inDemoInstall

react-complex-tree

Package Overview
Dependencies
3
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.3.7-alpha.1 to 2.3.7

lib/cjs/controlledEnvironment/DragAndDropProvider.d.ts

2

lib/cjs/controlledEnvironment/ControlledTreeEnvironment.js

@@ -41,3 +41,3 @@ "use strict";

var InteractionManagerProvider_1 = require("./InteractionManagerProvider");
var DragAndDropProvider_1 = require("../drag/DragAndDropProvider");
var DragAndDropProvider_1 = require("./DragAndDropProvider");
var EnvironmentActionsProvider_1 = require("../environmentActions/EnvironmentActionsProvider");

@@ -44,0 +44,0 @@ var useControlledTreeEnvironmentProps_1 = require("./useControlledTreeEnvironmentProps");

@@ -74,3 +74,3 @@ "use strict";

var react_1 = require("react");
var DragAndDropProvider_1 = require("../drag/DragAndDropProvider");
var DragAndDropProvider_1 = require("../controlledEnvironment/DragAndDropProvider");
var ControlledTreeEnvironment_1 = require("../controlledEnvironment/ControlledTreeEnvironment");

@@ -77,0 +77,0 @@ var useCreatedEnvironmentRef_1 = require("./useCreatedEnvironmentRef");

@@ -17,3 +17,3 @@ "use strict";

var ControlledTreeEnvironment_1 = require("../controlledEnvironment/ControlledTreeEnvironment");
var DragAndDropProvider_1 = require("../drag/DragAndDropProvider");
var DragAndDropProvider_1 = require("../controlledEnvironment/DragAndDropProvider");
var useCreatedEnvironmentRef = function (ref, actions) {

@@ -20,0 +20,0 @@ var environment = (0, ControlledTreeEnvironment_1.useTreeEnvironment)();

@@ -1,2 +0,1 @@

/// <reference types="react" />
export * from './controlledEnvironment/ControlledTreeEnvironment';

@@ -3,0 +2,0 @@ export * from './tree/Tree';

@@ -29,3 +29,3 @@ "use strict";

var Tree_1 = require("./Tree");
var DragAndDropProvider_1 = require("../drag/DragAndDropProvider");
var DragAndDropProvider_1 = require("../controlledEnvironment/DragAndDropProvider");
var DragBetweenLine = function (_a) {

@@ -32,0 +32,0 @@ var _b;

@@ -32,3 +32,3 @@ "use strict";

var Tree_1 = require("./Tree");
var DragAndDropProvider_1 = require("../drag/DragAndDropProvider");
var DragAndDropProvider_1 = require("../controlledEnvironment/DragAndDropProvider");
var resolveLiveDescriptor_1 = require("./resolveLiveDescriptor");

@@ -35,0 +35,0 @@ var useKeyboardBindings_1 = require("../hotkeys/useKeyboardBindings");

@@ -1,2 +0,1 @@

/// <reference types="react" />
export declare const TreeManager: () => JSX.Element;

@@ -47,3 +47,3 @@ "use strict";

var ControlledTreeEnvironment_1 = require("../controlledEnvironment/ControlledTreeEnvironment");
var DragAndDropProvider_1 = require("../drag/DragAndDropProvider");
var DragAndDropProvider_1 = require("../controlledEnvironment/DragAndDropProvider");
var MaybeLiveDescription_1 = require("./MaybeLiveDescription");

@@ -50,0 +50,0 @@ var TreeManager = function () {

@@ -6,3 +6,3 @@ "use strict";

var ControlledTreeEnvironment_1 = require("../controlledEnvironment/ControlledTreeEnvironment");
var DragAndDropProvider_1 = require("../drag/DragAndDropProvider");
var DragAndDropProvider_1 = require("../controlledEnvironment/DragAndDropProvider");
var useCreatedTreeInformation = function (tree, renamingItem, search) {

@@ -9,0 +9,0 @@ var _a;

@@ -19,3 +19,3 @@ "use strict";

var ControlledTreeEnvironment_1 = require("../controlledEnvironment/ControlledTreeEnvironment");
var DragAndDropProvider_1 = require("../drag/DragAndDropProvider");
var DragAndDropProvider_1 = require("../controlledEnvironment/DragAndDropProvider");
var useSelectUpTo_1 = require("./useSelectUpTo");

@@ -22,0 +22,0 @@ var useLinearItems_1 = require("../controlledEnvironment/useLinearItems");

@@ -29,3 +29,3 @@ "use strict";

var react_1 = require("react");
var DragAndDropProvider_1 = require("../drag/DragAndDropProvider");
var DragAndDropProvider_1 = require("../controlledEnvironment/DragAndDropProvider");
var ControlledTreeEnvironment_1 = require("../controlledEnvironment/ControlledTreeEnvironment");

@@ -32,0 +32,0 @@ var useCreatedTreeRef_1 = require("./useCreatedTreeRef");

@@ -17,3 +17,3 @@ "use strict";

var ControlledTreeEnvironment_1 = require("../controlledEnvironment/ControlledTreeEnvironment");
var DragAndDropProvider_1 = require("../drag/DragAndDropProvider");
var DragAndDropProvider_1 = require("../controlledEnvironment/DragAndDropProvider");
var Tree_1 = require("../tree/Tree");

@@ -20,0 +20,0 @@ var useCreatedTreeRef = function (ref, actions) {

@@ -1,2 +0,1 @@

/// <reference types="react" />
import { TreeItemIndex } from '../types';

@@ -3,0 +2,0 @@ export declare const TreeItemChildren: (props: {

@@ -1,2 +0,1 @@

/// <reference types="react" />
import { TreeItemIndex } from '../types';

@@ -3,0 +2,0 @@ export declare const TreeItemElement: (props: {

@@ -29,3 +29,3 @@ "use strict";

var InteractionManagerProvider_1 = require("../controlledEnvironment/InteractionManagerProvider");
var DragAndDropProvider_1 = require("../drag/DragAndDropProvider");
var DragAndDropProvider_1 = require("../controlledEnvironment/DragAndDropProvider");
var useSelectUpTo_1 = require("../tree/useSelectUpTo");

@@ -32,0 +32,0 @@ var useGetOriginalItemOrder_1 = require("../useGetOriginalItemOrder");

@@ -403,6 +403,1 @@ import React, { FormHTMLAttributes, HTMLProps, InputHTMLAttributes, Ref } from 'react';

}
export type HoveringPosition = {
linearIndex: number;
offset: 'bottom' | 'top' | undefined;
indentation: number | undefined;
};

@@ -1,2 +0,1 @@

/// <reference types="react" />
export declare const useIsMounted: () => import("react").MutableRefObject<boolean>;

@@ -1,2 +0,1 @@

/// <reference types="react" />
export declare const useRefCopy: <T>(value: T) => import("react").MutableRefObject<T>;

@@ -15,3 +15,3 @@ var __assign = (this && this.__assign) || function () {

import { InteractionManagerProvider } from './InteractionManagerProvider';
import { DragAndDropProvider } from '../drag/DragAndDropProvider';
import { DragAndDropProvider } from './DragAndDropProvider';
import { EnvironmentActionsProvider } from '../environmentActions/EnvironmentActionsProvider';

@@ -18,0 +18,0 @@ import { useControlledTreeEnvironmentProps } from './useControlledTreeEnvironmentProps';

@@ -48,3 +48,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

import { useCallback, useMemo } from 'react';
import { useDragAndDrop } from '../drag/DragAndDropProvider';
import { useDragAndDrop } from '../controlledEnvironment/DragAndDropProvider';
import { useTreeEnvironment } from '../controlledEnvironment/ControlledTreeEnvironment';

@@ -51,0 +51,0 @@ import { useCreatedEnvironmentRef } from './useCreatedEnvironmentRef';

@@ -14,3 +14,3 @@ var __assign = (this && this.__assign) || function () {

import { useTreeEnvironment } from '../controlledEnvironment/ControlledTreeEnvironment';
import { useDragAndDrop } from '../drag/DragAndDropProvider';
import { useDragAndDrop } from '../controlledEnvironment/DragAndDropProvider';
export var useCreatedEnvironmentRef = function (ref, actions) {

@@ -17,0 +17,0 @@ var environment = useTreeEnvironment();

import * as React from 'react';
import { useTree } from './Tree';
import { useDragAndDrop } from '../drag/DragAndDropProvider';
import { useDragAndDrop } from '../controlledEnvironment/DragAndDropProvider';
export var DragBetweenLine = function (_a) {

@@ -5,0 +5,0 @@ var _b;

@@ -6,3 +6,3 @@ import * as React from 'react';

import { useTree } from './Tree';
import { useDragAndDrop } from '../drag/DragAndDropProvider';
import { useDragAndDrop } from '../controlledEnvironment/DragAndDropProvider';
import { resolveLiveDescriptor } from './resolveLiveDescriptor';

@@ -9,0 +9,0 @@ import { useKeyboardBindings } from '../hotkeys/useKeyboardBindings';

@@ -21,3 +21,3 @@ var __assign = (this && this.__assign) || function () {

import { useTreeEnvironment } from '../controlledEnvironment/ControlledTreeEnvironment';
import { useDragAndDrop } from '../drag/DragAndDropProvider';
import { useDragAndDrop } from '../controlledEnvironment/DragAndDropProvider';
import { MaybeLiveDescription } from './MaybeLiveDescription';

@@ -24,0 +24,0 @@ export var TreeManager = function () {

import { useMemo } from 'react';
import { useTreeEnvironment } from '../controlledEnvironment/ControlledTreeEnvironment';
import { useDragAndDrop } from '../drag/DragAndDropProvider';
import { useDragAndDrop } from '../controlledEnvironment/DragAndDropProvider';
export var useCreatedTreeInformation = function (tree, renamingItem, search) {

@@ -5,0 +5,0 @@ var _a;

@@ -16,3 +16,3 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {

import { useTreeEnvironment } from '../controlledEnvironment/ControlledTreeEnvironment';
import { useDragAndDrop } from '../drag/DragAndDropProvider';
import { useDragAndDrop } from '../controlledEnvironment/DragAndDropProvider';
import { useSelectUpTo } from './useSelectUpTo';

@@ -19,0 +19,0 @@ import { useLinearItems } from '../controlledEnvironment/useLinearItems';

import * as React from 'react';
import { useMemo } from 'react';
import { useDragAndDrop } from '../drag/DragAndDropProvider';
import { useDragAndDrop } from '../controlledEnvironment/DragAndDropProvider';
import { useTreeEnvironment } from '../controlledEnvironment/ControlledTreeEnvironment';

@@ -5,0 +5,0 @@ import { useCreatedTreeRef } from './useCreatedTreeRef';

@@ -14,3 +14,3 @@ var __assign = (this && this.__assign) || function () {

import { useTreeEnvironment } from '../controlledEnvironment/ControlledTreeEnvironment';
import { useDragAndDrop } from '../drag/DragAndDropProvider';
import { useDragAndDrop } from '../controlledEnvironment/DragAndDropProvider';
import { useTree } from '../tree/Tree';

@@ -17,0 +17,0 @@ export var useCreatedTreeRef = function (ref, actions) {

@@ -26,3 +26,3 @@ var __assign = (this && this.__assign) || function () {

import { useInteractionManager } from '../controlledEnvironment/InteractionManagerProvider';
import { useDragAndDrop } from '../drag/DragAndDropProvider';
import { useDragAndDrop } from '../controlledEnvironment/DragAndDropProvider';
import { useSelectUpTo } from '../tree/useSelectUpTo';

@@ -29,0 +29,0 @@ import { useGetOriginalItemOrder } from '../useGetOriginalItemOrder';

@@ -403,6 +403,1 @@ import React, { FormHTMLAttributes, HTMLProps, InputHTMLAttributes, Ref } from 'react';

}
export type HoveringPosition = {
linearIndex: number;
offset: 'bottom' | 'top' | undefined;
indentation: number | undefined;
};

@@ -15,3 +15,3 @@ var __assign = (this && this.__assign) || function () {

import { InteractionManagerProvider } from './InteractionManagerProvider';
import { DragAndDropProvider } from '../drag/DragAndDropProvider';
import { DragAndDropProvider } from './DragAndDropProvider';
import { EnvironmentActionsProvider } from '../environmentActions/EnvironmentActionsProvider';

@@ -18,0 +18,0 @@ import { useControlledTreeEnvironmentProps } from './useControlledTreeEnvironmentProps';

@@ -48,3 +48,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

import { useCallback, useMemo } from 'react';
import { useDragAndDrop } from '../drag/DragAndDropProvider';
import { useDragAndDrop } from '../controlledEnvironment/DragAndDropProvider';
import { useTreeEnvironment } from '../controlledEnvironment/ControlledTreeEnvironment';

@@ -51,0 +51,0 @@ import { useCreatedEnvironmentRef } from './useCreatedEnvironmentRef';

@@ -14,3 +14,3 @@ var __assign = (this && this.__assign) || function () {

import { useTreeEnvironment } from '../controlledEnvironment/ControlledTreeEnvironment';
import { useDragAndDrop } from '../drag/DragAndDropProvider';
import { useDragAndDrop } from '../controlledEnvironment/DragAndDropProvider';
export var useCreatedEnvironmentRef = function (ref, actions) {

@@ -17,0 +17,0 @@ var environment = useTreeEnvironment();

import * as React from 'react';
import { useTree } from './Tree';
import { useDragAndDrop } from '../drag/DragAndDropProvider';
import { useDragAndDrop } from '../controlledEnvironment/DragAndDropProvider';
export var DragBetweenLine = function (_a) {

@@ -5,0 +5,0 @@ var _b;

@@ -6,3 +6,3 @@ import * as React from 'react';

import { useTree } from './Tree';
import { useDragAndDrop } from '../drag/DragAndDropProvider';
import { useDragAndDrop } from '../controlledEnvironment/DragAndDropProvider';
import { resolveLiveDescriptor } from './resolveLiveDescriptor';

@@ -9,0 +9,0 @@ import { useKeyboardBindings } from '../hotkeys/useKeyboardBindings';

@@ -21,3 +21,3 @@ var __assign = (this && this.__assign) || function () {

import { useTreeEnvironment } from '../controlledEnvironment/ControlledTreeEnvironment';
import { useDragAndDrop } from '../drag/DragAndDropProvider';
import { useDragAndDrop } from '../controlledEnvironment/DragAndDropProvider';
import { MaybeLiveDescription } from './MaybeLiveDescription';

@@ -24,0 +24,0 @@ export var TreeManager = function () {

import { useMemo } from 'react';
import { useTreeEnvironment } from '../controlledEnvironment/ControlledTreeEnvironment';
import { useDragAndDrop } from '../drag/DragAndDropProvider';
import { useDragAndDrop } from '../controlledEnvironment/DragAndDropProvider';
export var useCreatedTreeInformation = function (tree, renamingItem, search) {

@@ -5,0 +5,0 @@ var _a;

@@ -16,3 +16,3 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {

import { useTreeEnvironment } from '../controlledEnvironment/ControlledTreeEnvironment';
import { useDragAndDrop } from '../drag/DragAndDropProvider';
import { useDragAndDrop } from '../controlledEnvironment/DragAndDropProvider';
import { useSelectUpTo } from './useSelectUpTo';

@@ -19,0 +19,0 @@ import { useLinearItems } from '../controlledEnvironment/useLinearItems';

import * as React from 'react';
import { useMemo } from 'react';
import { useDragAndDrop } from '../drag/DragAndDropProvider';
import { useDragAndDrop } from '../controlledEnvironment/DragAndDropProvider';
import { useTreeEnvironment } from '../controlledEnvironment/ControlledTreeEnvironment';

@@ -5,0 +5,0 @@ import { useCreatedTreeRef } from './useCreatedTreeRef';

@@ -14,3 +14,3 @@ var __assign = (this && this.__assign) || function () {

import { useTreeEnvironment } from '../controlledEnvironment/ControlledTreeEnvironment';
import { useDragAndDrop } from '../drag/DragAndDropProvider';
import { useDragAndDrop } from '../controlledEnvironment/DragAndDropProvider';
import { useTree } from '../tree/Tree';

@@ -17,0 +17,0 @@ export var useCreatedTreeRef = function (ref, actions) {

@@ -26,3 +26,3 @@ var __assign = (this && this.__assign) || function () {

import { useInteractionManager } from '../controlledEnvironment/InteractionManagerProvider';
import { useDragAndDrop } from '../drag/DragAndDropProvider';
import { useDragAndDrop } from '../controlledEnvironment/DragAndDropProvider';
import { useSelectUpTo } from '../tree/useSelectUpTo';

@@ -29,0 +29,0 @@ import { useGetOriginalItemOrder } from '../useGetOriginalItemOrder';

@@ -403,6 +403,1 @@ import React, { FormHTMLAttributes, HTMLProps, InputHTMLAttributes, Ref } from 'react';

}
export type HoveringPosition = {
linearIndex: number;
offset: 'bottom' | 'top' | undefined;
indentation: number | undefined;
};
{
"name": "react-complex-tree",
"version": "2.3.7-alpha.1",
"version": "2.3.7",
"main": "lib/cjs/index.js",

@@ -38,3 +38,3 @@ "module": "lib/esm/index.js",

"cpy-cli": "^3.1.1",
"demodata": "^2.3.7-alpha.1",
"demodata": "^2.3.7",
"jest": "^29.2.2",

@@ -71,3 +71,3 @@ "jest-dom": "^4.0.0",

},
"gitHead": "b899b5aa6274937fe750a157fa2b8e58a7f78123"
"gitHead": "55e860ffac0d1a2b8b50ac9bc270f75b8d3334fb"
}

@@ -21,23 +21,2 @@ # React Complex Tree

## Sponsors
The development of react-complex-tree is supported by the community. Special thanks to:
<br />
<div align="center">
<a href="https://modyfi.com#gh-light-mode-only">
<div>
<img src="https://lukasbach.com/thanks/modyfi-brand-logo-black.svg#gh-light-mode-only" width="250" alt="Modyfi" />
</div>
</a>
<a href="https://modyfi.com#gh-dark-mode-only">
<div>
<img src="https://lukasbach.com/thanks/modyfi-brand-logo.svg#gh-dark-mode-only" width="250" alt="Modyfi" />
</div>
</a>
</div>
<br />
Find out [how to support the development of react-complex-tree](https://github.com/sponsors/lukasbach).
## Installation

@@ -44,0 +23,0 @@

import { Ref, useImperativeHandle } from 'react';
import { TreeEnvironmentChangeActions, TreeEnvironmentRef } from '../types';
import { useTreeEnvironment } from '../controlledEnvironment/ControlledTreeEnvironment';
import { useDragAndDrop } from '../drag/DragAndDropProvider';
import { useDragAndDrop } from '../controlledEnvironment/DragAndDropProvider';

@@ -6,0 +6,0 @@ export const useCreatedEnvironmentRef = (

import { useMemo } from 'react';
import { TreeInformation, TreeItemIndex, TreeProps } from '../types';
import { useTreeEnvironment } from '../controlledEnvironment/ControlledTreeEnvironment';
import { useDragAndDrop } from '../drag/DragAndDropProvider';
import { useDragAndDrop } from '../controlledEnvironment/DragAndDropProvider';

@@ -6,0 +6,0 @@ export const useCreatedTreeInformation = (

@@ -7,3 +7,3 @@ import { useKey } from '../hotkeys/useKey';

import { useTreeEnvironment } from '../controlledEnvironment/ControlledTreeEnvironment';
import { useDragAndDrop } from '../drag/DragAndDropProvider';
import { useDragAndDrop } from '../controlledEnvironment/DragAndDropProvider';
import { useSelectUpTo } from './useSelectUpTo';

@@ -10,0 +10,0 @@ import { useLinearItems } from '../controlledEnvironment/useLinearItems';

import { Ref, useImperativeHandle } from 'react';
import { TreeChangeActions, TreeRef } from '../types';
import { useTreeEnvironment } from '../controlledEnvironment/ControlledTreeEnvironment';
import { useDragAndDrop } from '../drag/DragAndDropProvider';
import { useDragAndDrop } from '../controlledEnvironment/DragAndDropProvider';
import { useTree } from '../tree/Tree';

@@ -6,0 +6,0 @@

@@ -12,3 +12,3 @@ import { HTMLProps, useMemo } from 'react';

import { useInteractionManager } from '../controlledEnvironment/InteractionManagerProvider';
import { useDragAndDrop } from '../drag/DragAndDropProvider';
import { useDragAndDrop } from '../controlledEnvironment/DragAndDropProvider';
import { useSelectUpTo } from '../tree/useSelectUpTo';

@@ -15,0 +15,0 @@ import { useGetOriginalItemOrder } from '../useGetOriginalItemOrder';

@@ -522,9 +522,1 @@ import React, {

}
export type HoveringPosition = {
linearIndex: number;
offset: 'bottom' | 'top' | undefined;
// is undefined if tree renderDepthOffset is not set or zero
indentation: number | undefined;
};

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc