@box/tree 1.38.28 → 1.38.30
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.
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { ContentNode as e } from "./content-node/content-node.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
2
|
+
import { InlineError as p } from "./inline-error/inline-error.js";
|
|
3
|
+
import { LoadMoreNode as f } from "./load-more-node/load-more-node.js";
|
|
4
|
+
import { LoadingNode as x } from "./loading-node/loading-node.js";
|
|
5
|
+
import { ReloadNode as a } from "./reload-node/reload-node.js";
|
|
6
|
+
import { ServiceNodeWrapper as i } from "./service-node-wrapper/service-node-wrapper.js";
|
|
7
|
+
import { Skeleton as E } from "./skeleton/skeleton.js";
|
|
8
|
+
import { Error as S } from "./error/error.js";
|
|
9
9
|
export {
|
|
10
10
|
e as ContentNode,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
p as InlineError,
|
|
12
|
+
f as LoadMoreNode,
|
|
13
|
+
x as LoadingNode,
|
|
14
|
+
a as ReloadNode,
|
|
15
|
+
i as ServiceNodeWrapper,
|
|
16
|
+
E as Skeleton,
|
|
17
|
+
S as TreeError
|
|
18
18
|
};
|
package/dist/esm/lib/utils.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CONTENT_NODE as s, CONTENT_NODE_LOADING as a, SERVICE_NODE_DATA_ATTRIBUTE as i, BRANCH_ID_DATA_ATTRIBUTE as u, LOAD_MORE_NODE_DATA_ATTRIBUTE as f, RELOAD_NODE_DATA_ATTRIBUTE as A } from "./constants.js";
|
|
2
2
|
const C = (t) => {
|
|
3
3
|
t.code === "ArrowRight" && t.target.getAttribute("aria-disabled") === "true" && t.stopPropagation();
|
|
4
|
-
}, l = (t) => t.closest(`[data-${
|
|
4
|
+
}, l = (t) => t.closest(`[data-${s}="true"]`) || (t.firstChild?.dataset && t.firstChild.dataset[s] === "true" ? t.firstChild : null), d = (t) => t.closest(`[data-${i}="true"]`) || (t.firstChild?.dataset && t.firstChild.dataset[i] === "true" ? t.firstChild : null), N = (t) => t.dataset[f] === "true", T = (t) => t.dataset[A] === "true", E = (t) => t.dataset[a] === "true", n = (t) => {
|
|
5
5
|
t.dispatchEvent(new KeyboardEvent("keydown", {
|
|
6
6
|
code: "ArrowUp",
|
|
7
7
|
key: "ArrowUp",
|
|
@@ -19,7 +19,7 @@ const C = (t) => {
|
|
|
19
19
|
}, c = (t, r) => {
|
|
20
20
|
if (t.getAttribute("aria-disabled") === "true" || !N(t) && !T(t))
|
|
21
21
|
return;
|
|
22
|
-
const o = t.dataset[
|
|
22
|
+
const o = t.dataset[u];
|
|
23
23
|
o && r(o);
|
|
24
24
|
}, D = (t) => (r) => {
|
|
25
25
|
if (r.code !== "Enter" && r.code !== "Space" && r.code !== "ArrowRight" && r.code !== "ArrowLeft")
|
package/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@box/tree",
|
|
3
|
-
"version": "1.38.
|
|
3
|
+
"version": "1.38.30",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@box/blueprint-web": "^14.4.
|
|
6
|
-
"@box/blueprint-web-assets": "^4.111.
|
|
7
|
-
"@box/item-icon": "^2.32.
|
|
5
|
+
"@box/blueprint-web": "^14.4.2",
|
|
6
|
+
"@box/blueprint-web-assets": "^4.111.25",
|
|
7
|
+
"@box/item-icon": "^2.32.22",
|
|
8
8
|
"react": "^17.0.0 || ^18.0.0",
|
|
9
9
|
"react-accessible-treeview": "2.9.0",
|
|
10
10
|
"react-dom": "^17.0.0 || ^18.0.0",
|
|
11
11
|
"react-intl": "^6.4.2"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
|
-
"@box/blueprint-web": "^14.4.
|
|
15
|
-
"@box/blueprint-web-assets": "^4.111.
|
|
16
|
-
"@box/item-icon": "^2.32.
|
|
17
|
-
"@box/storybook-utils": "^0.17.
|
|
14
|
+
"@box/blueprint-web": "^14.4.2",
|
|
15
|
+
"@box/blueprint-web-assets": "^4.111.25",
|
|
16
|
+
"@box/item-icon": "^2.32.22",
|
|
17
|
+
"@box/storybook-utils": "^0.17.25",
|
|
18
18
|
"@faker-js/faker": "^8.4.1",
|
|
19
19
|
"react": "^18.3.0",
|
|
20
20
|
"react-dom": "^18.3.0",
|