@availity/mui-tree 0.2.0 → 0.2.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.
- package/CHANGELOG.md +14 -0
- package/dist/index.d.mts +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +3 -0
- package/dist/index.mjs +3 -0
- package/package.json +5 -5
- package/src/index.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [0.2.2](https://github.com/Availity/element/compare/@availity/mui-tree@0.2.1...@availity/mui-tree@0.2.2) (2024-11-21)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **mui-tree:** export JsonViewer ([23f0c96](https://github.com/Availity/element/commit/23f0c9669af657f7332998ad57e54b7c4eaa598f))
|
|
11
|
+
|
|
12
|
+
## [0.2.1](https://github.com/Availity/element/compare/@availity/mui-tree@0.2.0...@availity/mui-tree@0.2.1) (2024-10-31)
|
|
13
|
+
|
|
14
|
+
### Dependency Updates
|
|
15
|
+
|
|
16
|
+
* `mui-icon` updated to version `0.2.0`
|
|
17
|
+
* `mui-layout` updated to version `0.2.0`
|
|
18
|
+
* `mui-typography` updated to version `0.2.0`
|
|
5
19
|
## [0.2.0](https://github.com/Availity/element/compare/@availity/mui-tree@0.1.1...@availity/mui-tree@0.2.0) (2024-09-18)
|
|
6
20
|
|
|
7
21
|
|
package/dist/index.d.mts
CHANGED
|
@@ -14,4 +14,9 @@ interface TreeItemProps extends TreeItem2Props {
|
|
|
14
14
|
}
|
|
15
15
|
declare const TreeItem: ({ children, label, slots, slotProps, truncate, ...rest }: TreeItemProps) => JSX.Element;
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
interface JsonViewerProps extends Omit<TreeViewProps, 'children'> {
|
|
18
|
+
/** Data to be rendered, can be most valid javascript objects, some uncommon types may not by fully supported - like cyclical objects, proxies, symbols as keys. */
|
|
19
|
+
data: Record<string, unknown>;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export { DynamicTreeView, type DynamicTreeViewProps, type JsonViewerProps, TreeItem, type TreeItemProps, TreeView, type TreeViewProps };
|
package/dist/index.d.ts
CHANGED
|
@@ -14,4 +14,9 @@ interface TreeItemProps extends TreeItem2Props {
|
|
|
14
14
|
}
|
|
15
15
|
declare const TreeItem: ({ children, label, slots, slotProps, truncate, ...rest }: TreeItemProps) => JSX.Element;
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
interface JsonViewerProps extends Omit<TreeViewProps, 'children'> {
|
|
18
|
+
/** Data to be rendered, can be most valid javascript objects, some uncommon types may not by fully supported - like cyclical objects, proxies, symbols as keys. */
|
|
19
|
+
data: Record<string, unknown>;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export { DynamicTreeView, type DynamicTreeViewProps, type JsonViewerProps, TreeItem, type TreeItemProps, TreeView, type TreeViewProps };
|
package/dist/index.js
CHANGED
|
@@ -104,6 +104,9 @@ var DynamicTreeView = (_a) => {
|
|
|
104
104
|
var _b = _a, { children, slots } = _b, rest = __objRest(_b, ["children", "slots"]);
|
|
105
105
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_RichTreeView.RichTreeView, __spreadProps(__spreadValues({}, rest), { slots: __spreadProps(__spreadValues({}, slots), { item: TreeItem }), children }));
|
|
106
106
|
};
|
|
107
|
+
|
|
108
|
+
// src/lib/JsonViewer.tsx
|
|
109
|
+
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
107
110
|
// Annotate the CommonJS export names for ESM import in node:
|
|
108
111
|
0 && (module.exports = {
|
|
109
112
|
DynamicTreeView,
|
package/dist/index.mjs
CHANGED
|
@@ -79,6 +79,9 @@ var DynamicTreeView = (_a) => {
|
|
|
79
79
|
var _b = _a, { children, slots } = _b, rest = __objRest(_b, ["children", "slots"]);
|
|
80
80
|
return /* @__PURE__ */ jsx3(RichTreeView, __spreadProps(__spreadValues({}, rest), { slots: __spreadProps(__spreadValues({}, slots), { item: TreeItem }), children }));
|
|
81
81
|
};
|
|
82
|
+
|
|
83
|
+
// src/lib/JsonViewer.tsx
|
|
84
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
82
85
|
export {
|
|
83
86
|
DynamicTreeView,
|
|
84
87
|
TreeItem,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@availity/mui-tree",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Availity MUI Tree Component - part of the @availity/element design system",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
"publish:canary": "yarn npm publish --access public --tag canary"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@availity/mui-icon": "^0.
|
|
36
|
-
"@availity/mui-layout": "^0.
|
|
37
|
-
"@availity/mui-typography": "^0.2.
|
|
35
|
+
"@availity/mui-icon": "^0.11.0",
|
|
36
|
+
"@availity/mui-layout": "^0.2.0",
|
|
37
|
+
"@availity/mui-typography": "^0.2.1",
|
|
38
38
|
"@mui/material": "^5.15.15",
|
|
39
39
|
"react": "18.2.0",
|
|
40
40
|
"react-dom": "18.2.0",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"typescript": "^5.4.5"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@availity/mui-icon": "^0.
|
|
45
|
+
"@availity/mui-icon": "^0.11.0",
|
|
46
46
|
"@mui/material": "^5.11.9",
|
|
47
47
|
"react": ">=16.3.0"
|
|
48
48
|
},
|
package/src/index.ts
CHANGED