New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-nested-tree2

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-nested-tree2 - npm Package Compare versions

Comparing version
0.0.2
to
0.0.3
+6
dist/index.d.ts
import { TreeBranch } from "./TreeBranch";
import { TreeData } from "./TreeData";
import { TreeLeaf } from "./TreeLeaf";
import { TreeRoot } from "./TreeRoot";
export { TreeBranch, TreeLeaf, TreeRoot };
export type { TreeData };
import { TreeBranch } from "./TreeBranch";
import { TreeLeaf } from "./TreeLeaf";
import { TreeRoot } from "./TreeRoot";
export { TreeBranch, TreeLeaf, TreeRoot };
//# sourceMappingURL=index.js.map
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC"}
+2
-2

@@ -1,5 +0,5 @@

import React, { HTMLAttributes, PropsWithChildren } from 'react';
import type { TreeRootProps } from './TreeRoot';
import React, { HTMLAttributes, PropsWithChildren } from "react";
import type { TreeRootProps } from "./TreeRoot";
export declare const TreeBranch: React.FC<PropsWithChildren<TreeRootProps<any, any>> & {
rootProps: HTMLAttributes<HTMLUListElement>;
} & React.HTMLAttributes<HTMLLIElement>>;

@@ -12,4 +12,4 @@ var __rest = (this && this.__rest) || function (s, e) {

};
import React, { useCallback, useState } from 'react';
import { TreeRoot } from './TreeRoot';
import React, { useCallback, useState, } from "react";
import { TreeRoot } from "./TreeRoot";
export const TreeBranch = (_a) => {

@@ -23,5 +23,5 @@ var { data, renderBranch, renderLeaf, depth, rootProps } = _a, liProps = __rest(_a, ["data", "renderBranch", "renderLeaf", "depth", "rootProps"]);

React.createElement("div", null, renderBranch(data.data, isToggledState, onToggleCallback)),
React.createElement("span", { className: `${isToggledState ? 'block' : 'hidden'}` },
React.createElement("span", { className: `${isToggledState ? "block" : "hidden"}` },
React.createElement(TreeRoot, Object.assign({ data: data, depth: depth, renderBranch: renderBranch, renderLeaf: renderLeaf }, rootProps)))));
};
//# sourceMappingURL=TreeBranch.js.map

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

{"version":3,"file":"TreeBranch.js","sourceRoot":"","sources":["../src/TreeBranch.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAqC,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAEvF,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAErC,MAAM,CAAC,MAAM,UAAU,GAInB,CAAC,EAAgE,EAAE,EAAE;QAApE,EAAE,IAAI,EAAE,YAAY,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,OAAc,EAAT,OAAO,cAA9D,4DAAgE,CAAF;IACjE,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,QAAQ,CAAU,KAAK,CAAC,CAAA;IACpE,MAAM,gBAAgB,GAAG,WAAW,CAAC,GAAG,EAAE;QACxC,iBAAiB,CAAC,CAAC,cAAc,CAAC,CAAA;IACpC,CAAC,EAAE,CAAC,cAAc,CAAC,CAAC,CAAA;IAEpB,OAAO,CACL,0CAAI,GAAG,EAAE,IAAI,CAAC,EAAE,IAAM,OAAO;QAC3B,iCAAM,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,cAAc,EAAE,gBAAgB,CAAC,CAAO;QACtE,8BAAM,SAAS,EAAE,GAAG,cAAc,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,EAAE;YACvD,oBAAC,QAAQ,kBAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,UAAU,IAAM,SAAS,EAAI,CACpG,CACJ,CACN,CAAA;AACH,CAAC,CAAA"}
{"version":3,"file":"TreeBranch.js","sourceRoot":"","sources":["../src/TreeBranch.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAGZ,WAAW,EACX,QAAQ,GACT,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,MAAM,CAAC,MAAM,UAAU,GAInB,CAAC,EAAgE,EAAE,EAAE;QAApE,EAAE,IAAI,EAAE,YAAY,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,OAAc,EAAT,OAAO,cAA9D,4DAAgE,CAAF;IACjE,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,QAAQ,CAAU,KAAK,CAAC,CAAC;IACrE,MAAM,gBAAgB,GAAG,WAAW,CAAC,GAAG,EAAE;QACxC,iBAAiB,CAAC,CAAC,cAAc,CAAC,CAAC;IACrC,CAAC,EAAE,CAAC,cAAc,CAAC,CAAC,CAAC;IAErB,OAAO,CACL,0CAAI,GAAG,EAAE,IAAI,CAAC,EAAE,IAAM,OAAO;QAC3B,iCAAM,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,cAAc,EAAE,gBAAgB,CAAC,CAAO;QACtE,8BAAM,SAAS,EAAE,GAAG,cAAc,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,EAAE;YACvD,oBAAC,QAAQ,kBACP,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,KAAK,EACZ,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,UAAU,IAClB,SAAS,EACb,CACG,CACJ,CACN,CAAC;AACJ,CAAC,CAAC"}
{
"name": "react-nested-tree2",
"version": "0.0.2",
"version": "0.0.3",
"description": "A headless and configurable nested React tree component",
"main": "index.js",
"main": "dist/index.js",
"files": [

@@ -7,0 +7,0 @@ "dist"

Sorry, the diff of this file is not supported yet