@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 { Error as p } from "./error/error.js";
3
- import { InlineError as f } from "./inline-error/inline-error.js";
4
- import { LoadMoreNode as x } from "./load-more-node/load-more-node.js";
5
- import { LoadingNode as a } from "./loading-node/loading-node.js";
6
- import { ReloadNode as i } from "./reload-node/reload-node.js";
7
- import { ServiceNodeWrapper as E } from "./service-node-wrapper/service-node-wrapper.js";
8
- import { Skeleton as S } from "./skeleton/skeleton.js";
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
- f as InlineError,
12
- x as LoadMoreNode,
13
- a as LoadingNode,
14
- i as ReloadNode,
15
- E as ServiceNodeWrapper,
16
- S as Skeleton,
17
- p as TreeError
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
  };
@@ -1,7 +1,7 @@
1
- import { SERVICE_NODE_DATA_ATTRIBUTE as s, BRANCH_ID_DATA_ATTRIBUTE as a, CONTENT_NODE as i, CONTENT_NODE_LOADING as u, LOAD_MORE_NODE_DATA_ATTRIBUTE as f, RELOAD_NODE_DATA_ATTRIBUTE as A } from "./constants.js";
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-${i}="true"]`) || (t.firstChild?.dataset && t.firstChild.dataset[i] === "true" ? t.firstChild : null), d = (t) => t.closest(`[data-${s}="true"]`) || (t.firstChild?.dataset && t.firstChild.dataset[s] === "true" ? t.firstChild : null), N = (t) => t.dataset[f] === "true", T = (t) => t.dataset[A] === "true", E = (t) => t.dataset[u] === "true", n = (t) => {
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[a];
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.28",
3
+ "version": "1.38.30",
4
4
  "peerDependencies": {
5
- "@box/blueprint-web": "^14.4.0",
6
- "@box/blueprint-web-assets": "^4.111.23",
7
- "@box/item-icon": "^2.32.20",
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.0",
15
- "@box/blueprint-web-assets": "^4.111.23",
16
- "@box/item-icon": "^2.32.20",
17
- "@box/storybook-utils": "^0.17.23",
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",