@box/tree 0.48.2 → 0.48.4

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.
Files changed (38) hide show
  1. package/dist/esm/lib/components/inline-error/index.js +4 -0
  2. package/dist/esm/lib/components/inline-error/inline-error.js +33 -0
  3. package/dist/esm/lib/components/inline-error/messages.js +22 -0
  4. package/dist/esm/lib/components/reload-node/reload-node.js +11 -11
  5. package/dist/i18n/bn-IN.js +4 -0
  6. package/dist/i18n/da-DK.js +4 -0
  7. package/dist/i18n/de-DE.js +4 -0
  8. package/dist/i18n/en-AU.js +4 -0
  9. package/dist/i18n/en-CA.js +4 -0
  10. package/dist/i18n/en-GB.js +4 -0
  11. package/dist/i18n/en-US.js +4 -0
  12. package/dist/i18n/en-US.properties +8 -0
  13. package/dist/i18n/en-x-pseudo.js +4 -0
  14. package/dist/i18n/es-419.js +4 -0
  15. package/dist/i18n/es-ES.js +4 -0
  16. package/dist/i18n/fi-FI.js +4 -0
  17. package/dist/i18n/fr-CA.js +4 -0
  18. package/dist/i18n/fr-FR.js +4 -0
  19. package/dist/i18n/hi-IN.js +4 -0
  20. package/dist/i18n/it-IT.js +4 -0
  21. package/dist/i18n/ja-JP.js +4 -0
  22. package/dist/i18n/json/src/lib/components/inline-error/messages.json +1 -0
  23. package/dist/i18n/ko-KR.js +4 -0
  24. package/dist/i18n/nb-NO.js +4 -0
  25. package/dist/i18n/nl-NL.js +4 -0
  26. package/dist/i18n/pl-PL.js +4 -0
  27. package/dist/i18n/pt-BR.js +4 -0
  28. package/dist/i18n/ru-RU.js +4 -0
  29. package/dist/i18n/sv-SE.js +4 -0
  30. package/dist/i18n/tr-TR.js +4 -0
  31. package/dist/i18n/zh-CN.js +4 -0
  32. package/dist/i18n/zh-TW.js +4 -0
  33. package/dist/styles/inline-error.css +1 -0
  34. package/dist/types/lib/components/inline-error/index.d.ts +1 -0
  35. package/dist/types/lib/components/inline-error/inline-error.d.ts +4 -0
  36. package/dist/types/lib/components/inline-error/messages.d.ts +23 -0
  37. package/dist/types/lib/components/inline-error/stories/shared.d.ts +5 -0
  38. package/package.json +5 -5
@@ -0,0 +1,4 @@
1
+ import { InlineError as e } from "./inline-error.js";
2
+ export {
3
+ e as InlineError
4
+ };
@@ -0,0 +1,33 @@
1
+ import { useIntl as r } from "react-intl";
2
+ import { InlineNotice as a, TextButton as l } from "@box/blueprint-web";
3
+ import { Loader as s } from "@box/blueprint-web-assets/icons/Fill";
4
+ import t from "./messages.js";
5
+ import { jsxs as c, jsx as o } from "react/jsx-runtime";
6
+ import '../../../../styles/inline-error.css';const m = "_inlineNotice_16lna_1", d = "_reloadTextButton_16lna_6", n = {
7
+ inlineNotice: m,
8
+ reloadTextButton: d
9
+ };
10
+ function B({
11
+ onReload: i
12
+ }) {
13
+ const e = r();
14
+ return /* @__PURE__ */ c("div", {
15
+ className: n.inlineNotice,
16
+ children: [/* @__PURE__ */ o(a, {
17
+ variant: "error",
18
+ variantIconAriaLabel: e.formatMessage(t.inlineNoticeIconAriaLabel),
19
+ children: /* @__PURE__ */ o("span", {
20
+ children: e.formatMessage(t.inlineNoticeText)
21
+ })
22
+ }), /* @__PURE__ */ o(l, {
23
+ "aria-label": e.formatMessage(t.reloadButtonAriaLabel),
24
+ className: n.reloadTextButton,
25
+ icon: s,
26
+ onClick: i,
27
+ children: e.formatMessage(t.reloadButtonText)
28
+ })]
29
+ });
30
+ }
31
+ export {
32
+ B as InlineError
33
+ };
@@ -0,0 +1,22 @@
1
+ import { defineMessages as e } from "react-intl";
2
+ const a = e({
3
+ reloadButtonText: {
4
+ id: "groupSharedFeatures.tree.inlineError.reloadButtonText",
5
+ defaultMessage: "Reload"
6
+ },
7
+ inlineNoticeText: {
8
+ id: "groupSharedFeatures.tree.inlineError.inlineNoticeText",
9
+ defaultMessage: "Loading failed"
10
+ },
11
+ inlineNoticeIconAriaLabel: {
12
+ id: "groupSharedFeatures.tree.inlineError.inlineNoticeIconAriaLabel",
13
+ defaultMessage: "Error"
14
+ },
15
+ reloadButtonAriaLabel: {
16
+ id: "groupSharedFeatures.tree.inlineError.reloadButtonAriaLabel",
17
+ defaultMessage: "Reload content tree"
18
+ }
19
+ });
20
+ export {
21
+ a as default
22
+ };
@@ -1,8 +1,8 @@
1
1
  import { InlineNotice as m, TextButton as N } from "@box/blueprint-web";
2
- import { ArrowsRotating as f } from "@box/blueprint-web-assets/icons/Line";
3
- import g from "clsx";
4
- import { useIntl as x } from "react-intl";
5
- import a from "./messages.js";
2
+ import f from "clsx";
3
+ import { useIntl as g } from "react-intl";
4
+ import { Loader as x } from "@box/blueprint-web-assets/icons/Fill";
5
+ import t from "./messages.js";
6
6
  import { s as e } from "../../../../chunks/nodes.module.js";
7
7
  import { jsxs as p, Fragment as u, jsx as r } from "react/jsx-runtime";
8
8
  import '../../../../styles/reload-node.css';const _ = "_errorNotice_1ge9e_1", l = {
@@ -17,32 +17,32 @@ function M({
17
17
  getNodeProps: d,
18
18
  element: s
19
19
  }) {
20
- const t = x(), i = d();
20
+ const a = g(), i = d();
21
21
  return /* @__PURE__ */ p(u, {
22
22
  children: [/* @__PURE__ */ r("div", {
23
23
  className: e[`node-${o}-level${n - 1}`],
24
24
  children: /* @__PURE__ */ r(m, {
25
25
  className: l.errorNotice,
26
26
  variant: "error",
27
- variantIconAriaLabel: t.formatMessage(a.iconAriaLabel),
27
+ variantIconAriaLabel: a.formatMessage(t.iconAriaLabel),
28
28
  children: /* @__PURE__ */ r("span", {
29
29
  className: l[`errorNoticeText--${o}`],
30
- children: s.metadata.error || t.formatMessage(a.loadingError)
30
+ children: s.metadata.error || a.formatMessage(t.loadingError)
31
31
  })
32
32
  })
33
33
  }), /* @__PURE__ */ r("div", {
34
34
  ...i,
35
- className: g("node", e.node, e[`node-${o}-level${n - 1}`], e[`node--${o}`], {
35
+ className: f("node", e.node, e[`node-${o}-level${n - 1}`], e[`node--${o}`], {
36
36
  [e["node--focused"]]: i.className.includes("tree-node--focused"),
37
37
  [e["node--disabled"]]: c
38
38
  }),
39
39
  children: /* @__PURE__ */ r(N, {
40
- "aria-label": t.formatMessage(a.reloadButtonAriaLabel, {
40
+ "aria-label": a.formatMessage(t.reloadButtonAriaLabel, {
41
41
  nodeName: s.name
42
42
  }),
43
- icon: f,
43
+ icon: x,
44
44
  tabIndex: -1,
45
- children: t.formatMessage(a.reloadButtonTitle)
45
+ children: a.formatMessage(t.reloadButtonTitle)
46
46
  })
47
47
  })]
48
48
  });
@@ -12,5 +12,9 @@ export default {
12
12
  "groupSharedFeatures.tree.error.title": "ট্রি লোড করা যাচ্ছে না",
13
13
  "groupSharedFeatures.tree.expander.collapse": "শাখা সংকুচিত করুন",
14
14
  "groupSharedFeatures.tree.expander.expand": "শাখা সম্প্রসারণ করুন",
15
+ "groupSharedFeatures.tree.inlineError.inlineNoticeIconAriaLabel": "Error",
16
+ "groupSharedFeatures.tree.inlineError.inlineNoticeText": "Loading failed",
17
+ "groupSharedFeatures.tree.inlineError.reloadButtonAriaLabel": "Reload content tree",
18
+ "groupSharedFeatures.tree.inlineError.reloadButtonText": "Reload",
15
19
  "groupSharedFeatures.tree.node.conLabel": "{iconType} এর জন্য আইকন"
16
20
  }
@@ -12,5 +12,9 @@ export default {
12
12
  "groupSharedFeatures.tree.error.title": "Træet kunne ikke indlæses",
13
13
  "groupSharedFeatures.tree.expander.collapse": "Sammenbrud gren",
14
14
  "groupSharedFeatures.tree.expander.expand": "Udvid gren",
15
+ "groupSharedFeatures.tree.inlineError.inlineNoticeIconAriaLabel": "Error",
16
+ "groupSharedFeatures.tree.inlineError.inlineNoticeText": "Loading failed",
17
+ "groupSharedFeatures.tree.inlineError.reloadButtonAriaLabel": "Reload content tree",
18
+ "groupSharedFeatures.tree.inlineError.reloadButtonText": "Reload",
15
19
  "groupSharedFeatures.tree.node.conLabel": "Ikon til {iconType}"
16
20
  }
@@ -12,5 +12,9 @@ export default {
12
12
  "groupSharedFeatures.tree.error.title": "Baum kann nicht geladen werden",
13
13
  "groupSharedFeatures.tree.expander.collapse": "Verzweigung reduzieren",
14
14
  "groupSharedFeatures.tree.expander.expand": "Verzweigung erweitern",
15
+ "groupSharedFeatures.tree.inlineError.inlineNoticeIconAriaLabel": "Error",
16
+ "groupSharedFeatures.tree.inlineError.inlineNoticeText": "Loading failed",
17
+ "groupSharedFeatures.tree.inlineError.reloadButtonAriaLabel": "Reload content tree",
18
+ "groupSharedFeatures.tree.inlineError.reloadButtonText": "Reload",
15
19
  "groupSharedFeatures.tree.node.conLabel": "Symbol für {iconType}"
16
20
  }
@@ -12,5 +12,9 @@ export default {
12
12
  "groupSharedFeatures.tree.error.title": "Unable to load tree",
13
13
  "groupSharedFeatures.tree.expander.collapse": "Collapse branch",
14
14
  "groupSharedFeatures.tree.expander.expand": "Expand branch",
15
+ "groupSharedFeatures.tree.inlineError.inlineNoticeIconAriaLabel": "Error",
16
+ "groupSharedFeatures.tree.inlineError.inlineNoticeText": "Loading failed",
17
+ "groupSharedFeatures.tree.inlineError.reloadButtonAriaLabel": "Reload content tree",
18
+ "groupSharedFeatures.tree.inlineError.reloadButtonText": "Reload",
15
19
  "groupSharedFeatures.tree.node.conLabel": "Icon for {iconType}"
16
20
  }
@@ -12,5 +12,9 @@ export default {
12
12
  "groupSharedFeatures.tree.error.title": "Unable to load tree",
13
13
  "groupSharedFeatures.tree.expander.collapse": "Collapse branch",
14
14
  "groupSharedFeatures.tree.expander.expand": "Expand branch",
15
+ "groupSharedFeatures.tree.inlineError.inlineNoticeIconAriaLabel": "Error",
16
+ "groupSharedFeatures.tree.inlineError.inlineNoticeText": "Loading failed",
17
+ "groupSharedFeatures.tree.inlineError.reloadButtonAriaLabel": "Reload content tree",
18
+ "groupSharedFeatures.tree.inlineError.reloadButtonText": "Reload",
15
19
  "groupSharedFeatures.tree.node.conLabel": "Icon for {iconType}"
16
20
  }
@@ -12,5 +12,9 @@ export default {
12
12
  "groupSharedFeatures.tree.error.title": "Unable to load tree",
13
13
  "groupSharedFeatures.tree.expander.collapse": "Collapse branch",
14
14
  "groupSharedFeatures.tree.expander.expand": "Expand branch",
15
+ "groupSharedFeatures.tree.inlineError.inlineNoticeIconAriaLabel": "Error",
16
+ "groupSharedFeatures.tree.inlineError.inlineNoticeText": "Loading failed",
17
+ "groupSharedFeatures.tree.inlineError.reloadButtonAriaLabel": "Reload content tree",
18
+ "groupSharedFeatures.tree.inlineError.reloadButtonText": "Reload",
15
19
  "groupSharedFeatures.tree.node.conLabel": "Icon for {iconType}"
16
20
  }
@@ -12,5 +12,9 @@ export default {
12
12
  "groupSharedFeatures.tree.error.title": "Unable to load tree",
13
13
  "groupSharedFeatures.tree.expander.collapse": "Collapse branch",
14
14
  "groupSharedFeatures.tree.expander.expand": "Expand branch",
15
+ "groupSharedFeatures.tree.inlineError.inlineNoticeIconAriaLabel": "Error",
16
+ "groupSharedFeatures.tree.inlineError.inlineNoticeText": "Loading failed",
17
+ "groupSharedFeatures.tree.inlineError.reloadButtonAriaLabel": "Reload content tree",
18
+ "groupSharedFeatures.tree.inlineError.reloadButtonText": "Reload",
15
19
  "groupSharedFeatures.tree.node.conLabel": "Icon for {iconType}"
16
20
  }
@@ -24,5 +24,13 @@ groupSharedFeatures.tree.error.title = Unable to load tree
24
24
  groupSharedFeatures.tree.expander.collapse = Collapse branch
25
25
  # Aria label for the expand button
26
26
  groupSharedFeatures.tree.expander.expand = Expand branch
27
+ # Aria label for the error icon in the error inline notice
28
+ groupSharedFeatures.tree.inlineError.inlineNoticeIconAriaLabel = Error
29
+ # Inline notice text error message when the tree fails to load
30
+ groupSharedFeatures.tree.inlineError.inlineNoticeText = Loading failed
31
+ # Aria label for the 'Reload' button
32
+ groupSharedFeatures.tree.inlineError.reloadButtonAriaLabel = Reload content tree
33
+ # Button text to reload tree
34
+ groupSharedFeatures.tree.inlineError.reloadButtonText = Reload
27
35
  # Aria label for the icon in a node
28
36
  groupSharedFeatures.tree.node.conLabel = Icon for {iconType}
@@ -12,5 +12,9 @@ export default {
12
12
  "groupSharedFeatures.tree.error.title": "⟦萬萬萬萬萬 Ųηăвļе ťõ ľōãď ŧгěė 國國國國國⟧",
13
13
  "groupSharedFeatures.tree.expander.collapse": "⟦萬萬萬萬 ĆòĺľåΡŝέ вґåņćн 國國國國⟧",
14
14
  "groupSharedFeatures.tree.expander.expand": "⟦萬萬萬 ËхΡâпď ьґāʼn¢ĥ 國國國⟧",
15
+ "groupSharedFeatures.tree.inlineError.inlineNoticeIconAriaLabel": "Error",
16
+ "groupSharedFeatures.tree.inlineError.inlineNoticeText": "Loading failed",
17
+ "groupSharedFeatures.tree.inlineError.reloadButtonAriaLabel": "Reload content tree",
18
+ "groupSharedFeatures.tree.inlineError.reloadButtonText": "Reload",
15
19
  "groupSharedFeatures.tree.node.conLabel": "⟦萬萬萬萬 Įċση ƒσŗ {iconType} 國國國國⟧"
16
20
  }
@@ -12,5 +12,9 @@ export default {
12
12
  "groupSharedFeatures.tree.error.title": "No se pudo cargar el árbol",
13
13
  "groupSharedFeatures.tree.expander.collapse": "Contraer sección",
14
14
  "groupSharedFeatures.tree.expander.expand": "Expandir sección",
15
+ "groupSharedFeatures.tree.inlineError.inlineNoticeIconAriaLabel": "Error",
16
+ "groupSharedFeatures.tree.inlineError.inlineNoticeText": "Loading failed",
17
+ "groupSharedFeatures.tree.inlineError.reloadButtonAriaLabel": "Reload content tree",
18
+ "groupSharedFeatures.tree.inlineError.reloadButtonText": "Reload",
15
19
  "groupSharedFeatures.tree.node.conLabel": "Icono para {iconType}"
16
20
  }
@@ -12,5 +12,9 @@ export default {
12
12
  "groupSharedFeatures.tree.error.title": "No se pudo cargar el árbol",
13
13
  "groupSharedFeatures.tree.expander.collapse": "Contraer sección",
14
14
  "groupSharedFeatures.tree.expander.expand": "Expandir sección",
15
+ "groupSharedFeatures.tree.inlineError.inlineNoticeIconAriaLabel": "Error",
16
+ "groupSharedFeatures.tree.inlineError.inlineNoticeText": "Loading failed",
17
+ "groupSharedFeatures.tree.inlineError.reloadButtonAriaLabel": "Reload content tree",
18
+ "groupSharedFeatures.tree.inlineError.reloadButtonText": "Reload",
15
19
  "groupSharedFeatures.tree.node.conLabel": "Icono para {iconType}"
16
20
  }
@@ -12,5 +12,9 @@ export default {
12
12
  "groupSharedFeatures.tree.error.title": "Puuta ei voi ladata",
13
13
  "groupSharedFeatures.tree.expander.collapse": "Pienennö haara",
14
14
  "groupSharedFeatures.tree.expander.expand": "Laajenna haara",
15
+ "groupSharedFeatures.tree.inlineError.inlineNoticeIconAriaLabel": "Error",
16
+ "groupSharedFeatures.tree.inlineError.inlineNoticeText": "Loading failed",
17
+ "groupSharedFeatures.tree.inlineError.reloadButtonAriaLabel": "Reload content tree",
18
+ "groupSharedFeatures.tree.inlineError.reloadButtonText": "Reload",
15
19
  "groupSharedFeatures.tree.node.conLabel": "Kuvake kohteelle {iconType}"
16
20
  }
@@ -12,5 +12,9 @@ export default {
12
12
  "groupSharedFeatures.tree.error.title": "Impossible de charger l'arbre",
13
13
  "groupSharedFeatures.tree.expander.collapse": "Réduire la branche",
14
14
  "groupSharedFeatures.tree.expander.expand": "Agrandir la branche",
15
+ "groupSharedFeatures.tree.inlineError.inlineNoticeIconAriaLabel": "Error",
16
+ "groupSharedFeatures.tree.inlineError.inlineNoticeText": "Loading failed",
17
+ "groupSharedFeatures.tree.inlineError.reloadButtonAriaLabel": "Reload content tree",
18
+ "groupSharedFeatures.tree.inlineError.reloadButtonText": "Reload",
15
19
  "groupSharedFeatures.tree.node.conLabel": "Icône pour {iconType}"
16
20
  }
@@ -12,5 +12,9 @@ export default {
12
12
  "groupSharedFeatures.tree.error.title": "Impossible de charger l'arbre",
13
13
  "groupSharedFeatures.tree.expander.collapse": "Réduire la branche",
14
14
  "groupSharedFeatures.tree.expander.expand": "Agrandir la branche",
15
+ "groupSharedFeatures.tree.inlineError.inlineNoticeIconAriaLabel": "Error",
16
+ "groupSharedFeatures.tree.inlineError.inlineNoticeText": "Loading failed",
17
+ "groupSharedFeatures.tree.inlineError.reloadButtonAriaLabel": "Reload content tree",
18
+ "groupSharedFeatures.tree.inlineError.reloadButtonText": "Reload",
15
19
  "groupSharedFeatures.tree.node.conLabel": "Icône pour {iconType}"
16
20
  }
@@ -12,5 +12,9 @@ export default {
12
12
  "groupSharedFeatures.tree.error.title": "ट्री लोड करने में असमर्थ",
13
13
  "groupSharedFeatures.tree.expander.collapse": "ब्रांच को संक्षिप्त करें",
14
14
  "groupSharedFeatures.tree.expander.expand": "ब्रांच का विस्तार करें",
15
+ "groupSharedFeatures.tree.inlineError.inlineNoticeIconAriaLabel": "Error",
16
+ "groupSharedFeatures.tree.inlineError.inlineNoticeText": "Loading failed",
17
+ "groupSharedFeatures.tree.inlineError.reloadButtonAriaLabel": "Reload content tree",
18
+ "groupSharedFeatures.tree.inlineError.reloadButtonText": "Reload",
15
19
  "groupSharedFeatures.tree.node.conLabel": "{iconType} के लिए आइकन"
16
20
  }
@@ -12,5 +12,9 @@ export default {
12
12
  "groupSharedFeatures.tree.error.title": "Non è stato possibile caricare l'albero",
13
13
  "groupSharedFeatures.tree.expander.collapse": "Comprimi ramo",
14
14
  "groupSharedFeatures.tree.expander.expand": "Espandi ramo",
15
+ "groupSharedFeatures.tree.inlineError.inlineNoticeIconAriaLabel": "Error",
16
+ "groupSharedFeatures.tree.inlineError.inlineNoticeText": "Loading failed",
17
+ "groupSharedFeatures.tree.inlineError.reloadButtonAriaLabel": "Reload content tree",
18
+ "groupSharedFeatures.tree.inlineError.reloadButtonText": "Reload",
15
19
  "groupSharedFeatures.tree.node.conLabel": "Icona per {iconType}"
16
20
  }
@@ -12,5 +12,9 @@ export default {
12
12
  "groupSharedFeatures.tree.error.title": "ツリーを読み込めません",
13
13
  "groupSharedFeatures.tree.expander.collapse": "ブランチを折りたたむ",
14
14
  "groupSharedFeatures.tree.expander.expand": "ブランチを展開",
15
+ "groupSharedFeatures.tree.inlineError.inlineNoticeIconAriaLabel": "Error",
16
+ "groupSharedFeatures.tree.inlineError.inlineNoticeText": "Loading failed",
17
+ "groupSharedFeatures.tree.inlineError.reloadButtonAriaLabel": "Reload content tree",
18
+ "groupSharedFeatures.tree.inlineError.reloadButtonText": "Reload",
15
19
  "groupSharedFeatures.tree.node.conLabel": "{iconType}のアイコン"
16
20
  }
@@ -0,0 +1 @@
1
+ [{"id":"groupSharedFeatures.tree.inlineError.reloadButtonText","description":"Button text to reload tree","defaultMessage":"Reload"},{"id":"groupSharedFeatures.tree.inlineError.inlineNoticeText","description":"Inline notice text error message when the tree fails to load","defaultMessage":"Loading failed"},{"id":"groupSharedFeatures.tree.inlineError.inlineNoticeIconAriaLabel","description":"Aria label for the error icon in the error inline notice","defaultMessage":"Error"},{"id":"groupSharedFeatures.tree.inlineError.reloadButtonAriaLabel","description":"Aria label for the 'Reload' button","defaultMessage":"Reload content tree"}]
@@ -12,5 +12,9 @@ export default {
12
12
  "groupSharedFeatures.tree.error.title": "트리를 로드할 수 없음",
13
13
  "groupSharedFeatures.tree.expander.collapse": "분기 축소",
14
14
  "groupSharedFeatures.tree.expander.expand": "분기 확장",
15
+ "groupSharedFeatures.tree.inlineError.inlineNoticeIconAriaLabel": "Error",
16
+ "groupSharedFeatures.tree.inlineError.inlineNoticeText": "Loading failed",
17
+ "groupSharedFeatures.tree.inlineError.reloadButtonAriaLabel": "Reload content tree",
18
+ "groupSharedFeatures.tree.inlineError.reloadButtonText": "Reload",
15
19
  "groupSharedFeatures.tree.node.conLabel": "{iconType}에 관한 아이콘"
16
20
  }
@@ -12,5 +12,9 @@ export default {
12
12
  "groupSharedFeatures.tree.error.title": "Kunne ikke laste inn tre",
13
13
  "groupSharedFeatures.tree.expander.collapse": "Lukk avdelingen",
14
14
  "groupSharedFeatures.tree.expander.expand": "Utvid avdelingen",
15
+ "groupSharedFeatures.tree.inlineError.inlineNoticeIconAriaLabel": "Error",
16
+ "groupSharedFeatures.tree.inlineError.inlineNoticeText": "Loading failed",
17
+ "groupSharedFeatures.tree.inlineError.reloadButtonAriaLabel": "Reload content tree",
18
+ "groupSharedFeatures.tree.inlineError.reloadButtonText": "Reload",
15
19
  "groupSharedFeatures.tree.node.conLabel": "Ikon for {iconType}"
16
20
  }
@@ -12,5 +12,9 @@ export default {
12
12
  "groupSharedFeatures.tree.error.title": "Kan boom niet laden",
13
13
  "groupSharedFeatures.tree.expander.collapse": "Vertakking samenvouwen",
14
14
  "groupSharedFeatures.tree.expander.expand": "Vertakking uitklappen",
15
+ "groupSharedFeatures.tree.inlineError.inlineNoticeIconAriaLabel": "Error",
16
+ "groupSharedFeatures.tree.inlineError.inlineNoticeText": "Loading failed",
17
+ "groupSharedFeatures.tree.inlineError.reloadButtonAriaLabel": "Reload content tree",
18
+ "groupSharedFeatures.tree.inlineError.reloadButtonText": "Reload",
15
19
  "groupSharedFeatures.tree.node.conLabel": "Pictogram voor {iconType}"
16
20
  }
@@ -12,5 +12,9 @@ export default {
12
12
  "groupSharedFeatures.tree.error.title": "Nie można wczytać drzewa",
13
13
  "groupSharedFeatures.tree.expander.collapse": "Zwiń gałąź",
14
14
  "groupSharedFeatures.tree.expander.expand": "Rozwiń gałąź",
15
+ "groupSharedFeatures.tree.inlineError.inlineNoticeIconAriaLabel": "Error",
16
+ "groupSharedFeatures.tree.inlineError.inlineNoticeText": "Loading failed",
17
+ "groupSharedFeatures.tree.inlineError.reloadButtonAriaLabel": "Reload content tree",
18
+ "groupSharedFeatures.tree.inlineError.reloadButtonText": "Reload",
15
19
  "groupSharedFeatures.tree.node.conLabel": "Ikona dla {iconType}"
16
20
  }
@@ -12,5 +12,9 @@ export default {
12
12
  "groupSharedFeatures.tree.error.title": "Não foi possível carregar árvore",
13
13
  "groupSharedFeatures.tree.expander.collapse": "Recolher ramificação",
14
14
  "groupSharedFeatures.tree.expander.expand": "Expandir ramificação",
15
+ "groupSharedFeatures.tree.inlineError.inlineNoticeIconAriaLabel": "Error",
16
+ "groupSharedFeatures.tree.inlineError.inlineNoticeText": "Loading failed",
17
+ "groupSharedFeatures.tree.inlineError.reloadButtonAriaLabel": "Reload content tree",
18
+ "groupSharedFeatures.tree.inlineError.reloadButtonText": "Reload",
15
19
  "groupSharedFeatures.tree.node.conLabel": "Ícone para {iconType}"
16
20
  }
@@ -12,5 +12,9 @@ export default {
12
12
  "groupSharedFeatures.tree.error.title": "Не удалось загрузить дерево",
13
13
  "groupSharedFeatures.tree.expander.collapse": "Свернуть ветку",
14
14
  "groupSharedFeatures.tree.expander.expand": "Развернуть ветку",
15
+ "groupSharedFeatures.tree.inlineError.inlineNoticeIconAriaLabel": "Error",
16
+ "groupSharedFeatures.tree.inlineError.inlineNoticeText": "Loading failed",
17
+ "groupSharedFeatures.tree.inlineError.reloadButtonAriaLabel": "Reload content tree",
18
+ "groupSharedFeatures.tree.inlineError.reloadButtonText": "Reload",
15
19
  "groupSharedFeatures.tree.node.conLabel": "Значок для {iconType}"
16
20
  }
@@ -12,5 +12,9 @@ export default {
12
12
  "groupSharedFeatures.tree.error.title": "Det gick inte att läsa in träd",
13
13
  "groupSharedFeatures.tree.expander.collapse": "Dölj gren",
14
14
  "groupSharedFeatures.tree.expander.expand": "Expandera gren",
15
+ "groupSharedFeatures.tree.inlineError.inlineNoticeIconAriaLabel": "Error",
16
+ "groupSharedFeatures.tree.inlineError.inlineNoticeText": "Loading failed",
17
+ "groupSharedFeatures.tree.inlineError.reloadButtonAriaLabel": "Reload content tree",
18
+ "groupSharedFeatures.tree.inlineError.reloadButtonText": "Reload",
15
19
  "groupSharedFeatures.tree.node.conLabel": "Ikon för {iconType}"
16
20
  }
@@ -12,5 +12,9 @@ export default {
12
12
  "groupSharedFeatures.tree.error.title": "Ağaç yüklenemiyor",
13
13
  "groupSharedFeatures.tree.expander.collapse": "Dalı daralt",
14
14
  "groupSharedFeatures.tree.expander.expand": "Dalı genişlet",
15
+ "groupSharedFeatures.tree.inlineError.inlineNoticeIconAriaLabel": "Error",
16
+ "groupSharedFeatures.tree.inlineError.inlineNoticeText": "Loading failed",
17
+ "groupSharedFeatures.tree.inlineError.reloadButtonAriaLabel": "Reload content tree",
18
+ "groupSharedFeatures.tree.inlineError.reloadButtonText": "Reload",
15
19
  "groupSharedFeatures.tree.node.conLabel": "{iconType} için Simge"
16
20
  }
@@ -12,5 +12,9 @@ export default {
12
12
  "groupSharedFeatures.tree.error.title": "无法加载树",
13
13
  "groupSharedFeatures.tree.expander.collapse": "折叠分支",
14
14
  "groupSharedFeatures.tree.expander.expand": "展开分支",
15
+ "groupSharedFeatures.tree.inlineError.inlineNoticeIconAriaLabel": "Error",
16
+ "groupSharedFeatures.tree.inlineError.inlineNoticeText": "Loading failed",
17
+ "groupSharedFeatures.tree.inlineError.reloadButtonAriaLabel": "Reload content tree",
18
+ "groupSharedFeatures.tree.inlineError.reloadButtonText": "Reload",
15
19
  "groupSharedFeatures.tree.node.conLabel": "{iconType} 的图标"
16
20
  }
@@ -12,5 +12,9 @@ export default {
12
12
  "groupSharedFeatures.tree.error.title": "無法載入樹",
13
13
  "groupSharedFeatures.tree.expander.collapse": "收合分支",
14
14
  "groupSharedFeatures.tree.expander.expand": "展開分支",
15
+ "groupSharedFeatures.tree.inlineError.inlineNoticeIconAriaLabel": "Error",
16
+ "groupSharedFeatures.tree.inlineError.inlineNoticeText": "Loading failed",
17
+ "groupSharedFeatures.tree.inlineError.reloadButtonAriaLabel": "Reload content tree",
18
+ "groupSharedFeatures.tree.inlineError.reloadButtonText": "Reload",
15
19
  "groupSharedFeatures.tree.node.conLabel": "{iconType} 的圖示"
16
20
  }
@@ -0,0 +1 @@
1
+ ._inlineNotice_16lna_1{display:flex;flex-direction:column}._reloadTextButton_16lna_6{width:100%;padding-left:1rem;padding-block:.25rem;border:2px solid transparent;border-radius:.375rem;transition:all .1s ease-in-out}._reloadTextButton_16lna_6:hover{background-color:#f4f4f4}
@@ -0,0 +1 @@
1
+ export { InlineError } from './inline-error';
@@ -0,0 +1,4 @@
1
+ export type InlineErrorProps = {
2
+ onReload: () => void;
3
+ };
4
+ export declare function InlineError({ onReload }: InlineErrorProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,23 @@
1
+ declare const _default: {
2
+ reloadButtonText: {
3
+ id: string;
4
+ defaultMessage: string;
5
+ description: string;
6
+ };
7
+ inlineNoticeText: {
8
+ id: string;
9
+ defaultMessage: string;
10
+ description: string;
11
+ };
12
+ inlineNoticeIconAriaLabel: {
13
+ id: string;
14
+ defaultMessage: string;
15
+ description: string;
16
+ };
17
+ reloadButtonAriaLabel: {
18
+ id: string;
19
+ defaultMessage: string;
20
+ description: string;
21
+ };
22
+ };
23
+ export default _default;
@@ -0,0 +1,5 @@
1
+ type InlineErrorWrapperProps = {
2
+ onReload?: () => void;
3
+ };
4
+ export declare function InlineErrorWrapper({ onReload }: InlineErrorWrapperProps): import("react/jsx-runtime").JSX.Element;
5
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@box/tree",
3
- "version": "0.48.2",
3
+ "version": "0.48.4",
4
4
  "peerDependencies": {
5
5
  "@box/blueprint-web": "^7.11.0",
6
6
  "@box/blueprint-web-assets": "^4.16.0",
@@ -11,10 +11,10 @@
11
11
  "react-intl": "^6.4.2"
12
12
  },
13
13
  "devDependencies": {
14
- "@box/blueprint-web": "^12.1.0",
15
- "@box/blueprint-web-assets": "^4.44.0",
16
- "@box/item-icon": "^0.9.139",
17
- "@box/storybook-utils": "^0.12.3",
14
+ "@box/blueprint-web": "^12.1.1",
15
+ "@box/blueprint-web-assets": "^4.45.0",
16
+ "@box/item-icon": "^0.9.140",
17
+ "@box/storybook-utils": "^0.12.4",
18
18
  "@faker-js/faker": "^8.4.1",
19
19
  "react": "^18.3.0",
20
20
  "react-dom": "^18.3.0",