@box/metadata-editor 0.51.2 → 0.52.1

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 (61) hide show
  1. package/esm/index.js +16 -16
  2. package/esm/lib/components/combobox-with-api-pagination/combobox-with-api-pagination.js +191 -0
  3. package/esm/lib/components/combobox-with-api-pagination/index.js +4 -0
  4. package/esm/lib/components/combobox-with-api-pagination/utils/use-controllable-state.js +40 -0
  5. package/esm/lib/components/metadata-editor-fields/components/metadata-taxonomy-field/single-level-taxonomy-field.js +8 -0
  6. package/esm/lib/components/metadata-editor-fields/components/update-mode-field-wrapper/update-mode-field-wrapper.js +8 -8
  7. package/esm/lib/components/metadata-instance-editor/subcomponents/delete-confirmation-modal/delete-confirmation-modal.js +27 -28
  8. package/esm/lib/components/metadata-instance-editor/subcomponents/delete-confirmation-modal/messages.js +7 -3
  9. package/i18n/bn-IN.js +1 -0
  10. package/i18n/da-DK.js +1 -0
  11. package/i18n/de-DE.js +1 -0
  12. package/i18n/en-AU.js +1 -0
  13. package/i18n/en-CA.js +1 -0
  14. package/i18n/en-GB.js +1 -0
  15. package/i18n/en-US.js +2 -1
  16. package/i18n/en-US.properties +3 -1
  17. package/i18n/en-x-pseudo.js +1 -0
  18. package/i18n/es-419.js +1 -0
  19. package/i18n/es-ES.js +1 -0
  20. package/i18n/fi-FI.js +1 -0
  21. package/i18n/fr-CA.js +1 -0
  22. package/i18n/fr-FR.js +1 -0
  23. package/i18n/hi-IN.js +1 -0
  24. package/i18n/it-IT.js +1 -0
  25. package/i18n/ja-JP.js +1 -0
  26. package/i18n/json/src/lib/components/metadata-instance-editor/subcomponents/delete-confirmation-modal/messages.json +1 -1
  27. package/i18n/ko-KR.js +1 -0
  28. package/i18n/nb-NO.js +1 -0
  29. package/i18n/nl-NL.js +1 -0
  30. package/i18n/pl-PL.js +1 -0
  31. package/i18n/pt-BR.js +1 -0
  32. package/i18n/ru-RU.js +1 -0
  33. package/i18n/sv-SE.js +1 -0
  34. package/i18n/tr-TR.js +1 -0
  35. package/i18n/zh-CN.js +1 -0
  36. package/i18n/zh-TW.js +1 -0
  37. package/package.json +3 -3
  38. package/types/index.d.ts +1 -1
  39. package/types/lib/components/combobox-with-api-pagination/combobox-with-api-pagination.d.ts +2 -0
  40. package/types/lib/components/combobox-with-api-pagination/index.d.ts +2 -0
  41. package/types/lib/components/combobox-with-api-pagination/types.d.ts +35 -0
  42. package/types/lib/components/combobox-with-api-pagination/utils/use-controllable-state.d.ts +8 -0
  43. package/types/lib/components/metadata-editor-fields/components/metadata-taxonomy-field/types.d.ts +21 -0
  44. package/types/lib/components/metadata-instance-editor/subcomponents/delete-confirmation-modal/messages.d.ts +5 -0
  45. package/types/lib/types.d.ts +1 -0
  46. package/esm/lib/components/metadata-taxonomy-field/combobox-with-api-pagination.js +0 -188
  47. package/esm/lib/components/metadata-taxonomy-field/single-level-taxonomy-field.js +0 -19
  48. package/types/lib/components/metadata-taxonomy-field/combobox-with-api-pagination.d.ts +0 -15
  49. package/types/lib/components/metadata-taxonomy-field/types.d.ts +0 -41
  50. /package/esm/lib/components/{metadata-taxonomy-field → combobox-with-api-pagination}/messages.js +0 -0
  51. /package/esm/lib/components/{metadata-taxonomy-field → combobox-with-api-pagination}/request.js +0 -0
  52. /package/esm/lib/components/{metadata-taxonomy-field → combobox-with-api-pagination}/use-async-list.js +0 -0
  53. /package/esm/lib/components/{metadata-taxonomy-field → combobox-with-api-pagination}/utils/use-intersection-observer.js +0 -0
  54. /package/esm/lib/components/{metadata-taxonomy-field → metadata-editor-fields/components/metadata-taxonomy-field}/index.js +0 -0
  55. /package/i18n/json/src/lib/components/{metadata-taxonomy-field → combobox-with-api-pagination}/messages.json +0 -0
  56. /package/types/lib/components/{metadata-taxonomy-field → combobox-with-api-pagination}/messages.d.ts +0 -0
  57. /package/types/lib/components/{metadata-taxonomy-field → combobox-with-api-pagination}/request.d.ts +0 -0
  58. /package/types/lib/components/{metadata-taxonomy-field → combobox-with-api-pagination}/use-async-list.d.ts +0 -0
  59. /package/types/lib/components/{metadata-taxonomy-field → combobox-with-api-pagination}/utils/use-intersection-observer.d.ts +0 -0
  60. /package/types/lib/components/{metadata-taxonomy-field → metadata-editor-fields/components/metadata-taxonomy-field}/index.d.ts +0 -0
  61. /package/types/lib/components/{metadata-taxonomy-field → metadata-editor-fields/components/metadata-taxonomy-field}/single-level-taxonomy-field.d.ts +0 -0
package/esm/index.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { AddMetadataTemplateDropdown as o } from "./lib/components/add-metadata-template-dropdown/add-metadata-template-dropdown.js";
2
2
  import { FilterDropdownMenu as r } from "./lib/components/filter-dropdown-menu/index.js";
3
- import { MetadataEmptyState as m } from "./lib/components/metadata-empty-state/metadata-empty-state.js";
4
- import { DeleteConfirmationModal as f } from "./lib/components/metadata-instance-editor/subcomponents/delete-confirmation-modal/delete-confirmation-modal.js";
5
- import { MetadataInstanceFormHeader as l } from "./lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-header/metadata-instance-form-header.js";
6
- import { CustomInstanceNewField as i } from "./lib/components/metadata-instance-editor/subcomponents/custom-instance-new-field/custom-instance-new-field.js";
7
- import { MetadataInstanceForm as s } from "./lib/components/metadata-instance-editor/subcomponents/metadata-instance-form/metadata-instance-form.js";
8
- import { MetadataInstanceList as I } from "./lib/components/metadata-instance-list/metadata-instance-list.js";
9
- import { MetadataInstanceHeader as C } from "./lib/components/metadata-instance-list/subcomponents/metadata-instance-header/metadata-instance-header.js";
10
- import { SingleLevelTaxonomyField as A } from "./lib/components/metadata-taxonomy-field/single-level-taxonomy-field.js";
3
+ import { SingleLevelTaxonomyField as m } from "./lib/components/metadata-editor-fields/components/metadata-taxonomy-field/single-level-taxonomy-field.js";
4
+ import { MetadataEmptyState as f } from "./lib/components/metadata-empty-state/metadata-empty-state.js";
5
+ import { DeleteConfirmationModal as l } from "./lib/components/metadata-instance-editor/subcomponents/delete-confirmation-modal/delete-confirmation-modal.js";
6
+ import { MetadataInstanceFormHeader as i } from "./lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-header/metadata-instance-form-header.js";
7
+ import { CustomInstanceNewField as s } from "./lib/components/metadata-instance-editor/subcomponents/custom-instance-new-field/custom-instance-new-field.js";
8
+ import { MetadataInstanceForm as I } from "./lib/components/metadata-instance-editor/subcomponents/metadata-instance-form/metadata-instance-form.js";
9
+ import { MetadataInstanceList as C } from "./lib/components/metadata-instance-list/metadata-instance-list.js";
10
+ import { MetadataInstanceHeader as A } from "./lib/components/metadata-instance-list/subcomponents/metadata-instance-header/metadata-instance-header.js";
11
11
  import { UnsavedChangesModal as w } from "./lib/components/unsaved-changes-modal/unsaved-changes-modal.js";
12
12
  import { defaultInitialValues as U, defaultMetadataValueMap as g } from "./lib/defaults.js";
13
13
  import { MetadataEditor as E } from "./lib/metadata-editor.js";
@@ -17,16 +17,16 @@ export {
17
17
  o as AddMetadataTemplateDropdown,
18
18
  T as AutofillContext,
19
19
  V as AutofillContextProvider,
20
- i as CustomInstanceNewField,
21
- f as DeleteConfirmationModal,
20
+ s as CustomInstanceNewField,
21
+ l as DeleteConfirmationModal,
22
22
  r as FilterDropdownMenu,
23
23
  E as MetadataEditor,
24
- m as MetadataEmptyState,
25
- s as MetadataInstanceForm,
26
- l as MetadataInstanceFormHeader,
27
- C as MetadataInstanceHeader,
28
- I as MetadataInstanceList,
29
- A as SingleLevelTaxonomyField,
24
+ f as MetadataEmptyState,
25
+ I as MetadataInstanceForm,
26
+ i as MetadataInstanceFormHeader,
27
+ A as MetadataInstanceHeader,
28
+ C as MetadataInstanceList,
29
+ m as SingleLevelTaxonomyField,
30
30
  w as UnsavedChangesModal,
31
31
  L as UpdateMode,
32
32
  U as defaultInitialValues,
@@ -0,0 +1,191 @@
1
+ import "../../../../styles/combobox-with-api-pagination.css";
2
+ import { ComboboxItemValue as U } from "@ariakit/react";
3
+ import { Combobox as p, LoadingIndicator as q, InlineNotice as H, Text as J } from "@box/blueprint-web";
4
+ import { Search as K, Loader as Q } from "@box/blueprint-web-assets/icons/Fill";
5
+ import { IconIconOnLightSecondary as X, Size6 as C, Size1 as Y } from "@box/blueprint-web-assets/tokens/tokens";
6
+ import { useRef as E, useCallback as Z, useMemo as v, useEffect as $, forwardRef as oo } from "react";
7
+ import { useIntl as T, FormattedMessage as y } from "react-intl";
8
+ import i from "./messages.js";
9
+ import { useAsyncList as eo } from "./use-async-list.js";
10
+ import { useControllableState as ro } from "./utils/use-controllable-state.js";
11
+ import { useTrackVisibility as to } from "./utils/use-intersection-observer.js";
12
+ import { jsx as t, jsxs as I, Fragment as no } from "react/jsx-runtime";
13
+ const io = "_container_16dlc_1", ao = "_highlightOptionText_16dlc_7", so = "_option_16dlc_20", lo = "_errorComboboxOption_16dlc_24", co = "_errorComboboxOptionText_16dlc_29", d = {
14
+ container: io,
15
+ highlightOptionText: ao,
16
+ option: so,
17
+ errorComboboxOption: lo,
18
+ errorComboboxOptionText: co
19
+ }, M = /* @__PURE__ */ oo(({
20
+ onTryAgain: f
21
+ }, h) => {
22
+ const {
23
+ formatMessage: s
24
+ } = T();
25
+ return /* @__PURE__ */ I(no, {
26
+ children: [/* @__PURE__ */ t(H, {
27
+ variant: "error",
28
+ variantIconAriaLabel: s(i.loadingResultsErrorIconLabel),
29
+ children: /* @__PURE__ */ t(y, {
30
+ ...i.loadingResultsErrorMessage
31
+ })
32
+ }), /* @__PURE__ */ t(p.Option, {
33
+ ref: h,
34
+ className: d.errorComboboxOption,
35
+ onClick: f,
36
+ children: /* @__PURE__ */ I(J, {
37
+ as: "span",
38
+ className: d.errorComboboxOptionText,
39
+ color: "textOnLightLink",
40
+ variant: "bodyDefaultBold",
41
+ children: [/* @__PURE__ */ t(y, {
42
+ ...i.loadingResultsErrorAction
43
+ }), /* @__PURE__ */ t(Q, {
44
+ color: "currentColor",
45
+ height: "12px",
46
+ width: "12px"
47
+ })]
48
+ })
49
+ })]
50
+ });
51
+ }), x = "__LOADING__", O = "__LOADING_ERROR__", uo = "0px 0px 20px 0px", mo = /* @__PURE__ */ t(K, {
52
+ color: X,
53
+ height: C,
54
+ role: "presentation",
55
+ style: {
56
+ padding: Y,
57
+ boxSizing: "border-box"
58
+ },
59
+ width: C
60
+ }), Eo = (f) => {
61
+ const {
62
+ defaultFetcher: h,
63
+ onInputValueChange: s,
64
+ value: N,
65
+ onValueChange: S,
66
+ noResultMessage: V,
67
+ defaultValue: D,
68
+ loadingAriaLabel: P,
69
+ multiselect: _ = !1,
70
+ ...k
71
+ } = f, {
72
+ formatMessage: l
73
+ } = T(), g = E(null), o = eo({
74
+ async load({
75
+ marker: e,
76
+ searchInput: r,
77
+ signal: u
78
+ }) {
79
+ const m = await h({
80
+ signal: u,
81
+ marker: e,
82
+ searchInput: r
83
+ });
84
+ return {
85
+ items: m.options,
86
+ marker: m.marker
87
+ };
88
+ }
89
+ }), R = E(!1), F = Z(() => {
90
+ R.current || (o.reload(), R.current = !0);
91
+ }, []), [n, A] = ro({
92
+ prop: N,
93
+ defaultProp: D,
94
+ onChange: S
95
+ }), b = v(() => Array.isArray(n) ? n.filter((e) => !o.items.some((r) => r.value === e.value)) : [], [n, o.items]), w = (e) => {
96
+ const {
97
+ value: r,
98
+ ...u
99
+ } = e;
100
+ if (r === x)
101
+ return o.hasNextPage ? /* @__PURE__ */ t(p.Option, {
102
+ ...u,
103
+ ref: G,
104
+ disabled: !0,
105
+ value: r,
106
+ children: /* @__PURE__ */ t(q, {
107
+ "aria-label": l(i.loadingMoreAriaLabel),
108
+ style: {
109
+ position: "unset"
110
+ }
111
+ })
112
+ }) : null;
113
+ if (r === O && o.hasError && !o.isEmpty)
114
+ return /* @__PURE__ */ t(M, {
115
+ onTryAgain: () => {
116
+ var a;
117
+ o.loadMore(), (a = g.current) == null || a.focus();
118
+ }
119
+ });
120
+ if (b.some((a) => a.value === r))
121
+ return null;
122
+ const m = () => n ? Array.isArray(n) ? n.some((a) => a.value === r) : n.value === r : !1;
123
+ return /* @__PURE__ */ t(p.Option, {
124
+ ...u,
125
+ className: d.option,
126
+ disabled: m(),
127
+ value: r,
128
+ children: /* @__PURE__ */ t(U, {
129
+ className: d.highlightOptionText,
130
+ value: r
131
+ })
132
+ });
133
+ }, B = (e) => {
134
+ s == null || s(e), o.search(e), e.trim() === "" && !_ && A(null);
135
+ }, z = () => {
136
+ var e;
137
+ o.reload(), (e = g.current) == null || e.focus();
138
+ };
139
+ let c;
140
+ o.hasError && !o.isLoading ? c = /* @__PURE__ */ t(M, {
141
+ onTryAgain: z
142
+ }) : o.isEmpty && !o.isLoading ? c = V || l(i.noResults) : c = void 0;
143
+ const [G, {
144
+ rootRef: W,
145
+ isVisible: L
146
+ }] = to({
147
+ rootMargin: uo
148
+ });
149
+ $(() => {
150
+ if (!(L && o.hasNextPage))
151
+ return;
152
+ const r = setTimeout(() => {
153
+ o.loadMore();
154
+ }, 100);
155
+ return () => {
156
+ clearTimeout(r);
157
+ };
158
+ }, [L]);
159
+ const j = v(() => {
160
+ const e = o.hasNextPage ? {
161
+ id: x,
162
+ value: x
163
+ } : null, r = !e && o.hasError && !o.isEmpty ? {
164
+ id: O,
165
+ value: O
166
+ } : null;
167
+ return [...o.items, ...b, e, r].filter(Boolean);
168
+ }, [o.hasNextPage, o.hasError, o.isEmpty, o.items, b]);
169
+ return /* @__PURE__ */ t(p, {
170
+ as: "input",
171
+ ...k,
172
+ ref: g,
173
+ clearButtonAriaLabel: l(i.clearButtonAriaLabel),
174
+ endComboboxIcon: mo,
175
+ focusLoop: !1,
176
+ getPopoverRef: W,
177
+ loading: o.isReloading,
178
+ loadingAriaLabel: P || l(i.loadingAriaLabel),
179
+ multiselect: _,
180
+ noResultMessage: c,
181
+ onFocus: F,
182
+ onInputValueChange: B,
183
+ onValueChange: A,
184
+ options: j,
185
+ renderOption: w,
186
+ value: n
187
+ });
188
+ };
189
+ export {
190
+ Eo as ComboboxWithApiPagination
191
+ };
@@ -0,0 +1,4 @@
1
+ import { ComboboxWithApiPagination as t } from "./combobox-with-api-pagination.js";
2
+ export {
3
+ t as ComboboxWithApiPagination
4
+ };
@@ -0,0 +1,40 @@
1
+ import * as s from "react";
2
+ function a(e) {
3
+ const n = s.useRef(e);
4
+ return s.useEffect(() => {
5
+ n.current = e;
6
+ }), s.useMemo(() => (...o) => {
7
+ var t;
8
+ return (t = n.current) == null ? void 0 : t.call(n, ...o);
9
+ }, []);
10
+ }
11
+ function R({
12
+ prop: e,
13
+ defaultProp: n,
14
+ onChange: o = () => {
15
+ }
16
+ }) {
17
+ const [t, c] = C({
18
+ defaultProp: n,
19
+ onChange: o
20
+ }), r = e !== void 0, i = r ? e : t, l = a(o), d = s.useCallback((u) => {
21
+ if (r) {
22
+ const f = typeof u == "function" ? u(e) : u;
23
+ f !== e && l(f);
24
+ } else
25
+ c(u);
26
+ }, [r, e, c, l]);
27
+ return [i, d];
28
+ }
29
+ function C({
30
+ defaultProp: e,
31
+ onChange: n
32
+ }) {
33
+ const o = s.useState(e), [t] = o, c = s.useRef(t), r = a(n);
34
+ return s.useEffect(() => {
35
+ c.current !== t && (r(t), c.current = t);
36
+ }, [t, c, r]), o;
37
+ }
38
+ export {
39
+ R as useControllableState
40
+ };
@@ -0,0 +1,8 @@
1
+ import { ComboboxWithApiPagination as i } from "../../../combobox-with-api-pagination/combobox-with-api-pagination.js";
2
+ import { jsx as r } from "react/jsx-runtime";
3
+ const m = (o) => /* @__PURE__ */ r(i, {
4
+ ...o
5
+ });
6
+ export {
7
+ m as SingleLevelTaxonomyField
8
+ };
@@ -18,13 +18,13 @@ const $ = "_wrapperContianer_1n09p_1", B = "_fieldContainer_1n09p_6", U = "_fiel
18
18
  hidden: V
19
19
  }, j = (e) => e === i.ReplaceEntered, y = (e) => e === "string" || e === "multiSelect", O = ({
20
20
  children: e,
21
- fieldNamePrefix: r,
21
+ fieldNamePrefix: d,
22
22
  fieldType: f
23
23
  }) => {
24
24
  const {
25
25
  setFieldValue: g,
26
26
  values: m
27
- } = E(), [p, M] = N(!0), t = S(), u = `${r}.updateMode.mode`, h = C(m, u), d = e && _.Children.only(e), v = C(m, `${r}.options`, []).map(({
27
+ } = E(), [p, M] = N(!0), t = S(), u = `${d}.updateMode.mode`, h = C(m, u), r = e && _.Children.only(e), v = C(m, `${d}.options`, []).map(({
28
28
  key: c
29
29
  }) => c);
30
30
  return /* @__PURE__ */ s("div", {
@@ -37,7 +37,7 @@ const $ = "_wrapperContianer_1n09p_1", B = "_fieldContainer_1n09p_6", U = "_fiel
37
37
  }), /* @__PURE__ */ o(b, {
38
38
  "aria-label": t.formatMessage(n.toggleUpdateModeSelectiorAriaLabel),
39
39
  className: a.collapseButton,
40
- "data-testid": `${d.props.label}-update-mode-toggle`,
40
+ "data-testid": `${r.props.label}-update-mode-toggle`,
41
41
  icon: p ? I : R,
42
42
  onClick: () => {
43
43
  M(!p);
@@ -49,11 +49,11 @@ const $ = "_wrapperContianer_1n09p_1", B = "_fieldContainer_1n09p_6", U = "_fiel
49
49
  [a.hidden]: p
50
50
  }),
51
51
  children: [/* @__PURE__ */ o(A, {
52
- name: `${r}.updateMode.mode`,
52
+ name: `${d}.updateMode.mode`,
53
53
  children: ({
54
54
  field: c
55
55
  }) => /* @__PURE__ */ s(l.Group, {
56
- "data-testid": `${d.props.label}-radio-group`,
56
+ "data-testid": `${r.props.label}-radio-group`,
57
57
  loop: !0,
58
58
  onValueChange: (F) => g(u, F),
59
59
  orientation: "vertical",
@@ -72,11 +72,11 @@ const $ = "_wrapperContianer_1n09p_1", B = "_fieldContainer_1n09p_6", U = "_fiel
72
72
  value: i.ReplaceEntered
73
73
  })]
74
74
  })
75
- }), j(h) && d && /* @__PURE__ */ o("div", {
75
+ }), j(h) && r && /* @__PURE__ */ o("div", {
76
76
  className: a.additionalFieldContainer,
77
- children: /* @__PURE__ */ _.cloneElement(d, {
77
+ children: /* @__PURE__ */ _.cloneElement(r, {
78
78
  // This field edits ${fieldNamePrefix}.updateMode.value, the '.value' is added by the field component
79
- fieldNamePrefix: `${r}.updateMode`,
79
+ fieldNamePrefix: `${d}.updateMode`,
80
80
  options: v,
81
81
  label: t.formatMessage(n.with)
82
82
  })
@@ -1,81 +1,80 @@
1
1
  import "../../../../../../styles/delete-confirmation-modal.css";
2
2
  import { Modal as a, Text as c, TextInput as b } from "@box/blueprint-web";
3
- import { useIntl as F, FormattedMessage as s } from "react-intl";
3
+ import { useIntl as F, FormattedMessage as d } from "react-intl";
4
4
  import { useState as f, useEffect as I } from "react";
5
5
  import o from "./messages.js";
6
- import { jsx as e, jsxs as d } from "react/jsx-runtime";
7
- const x = "_modalBody_yiat3_1", N = {
6
+ import { jsx as e, jsxs as s } from "react/jsx-runtime";
7
+ const x = "_modalBody_yiat3_1", P = {
8
8
  modalBody: x
9
- }, V = ({
9
+ }, T = ({
10
10
  onConfirm: u,
11
- templateName: p,
12
- onDismiss: C,
11
+ templateName: C,
12
+ onDismiss: p,
13
13
  open: h
14
14
  }) => {
15
- const l = F(), [r, m] = f(""), [M, g] = f(!0), i = (n) => {
16
- n || (C(), m(""));
17
- }, t = p || l.formatMessage(o.deleteConfirmationModalCustomMetadata), B = (n) => {
15
+ const t = F(), [r, m] = f(""), [M, g] = f(!0), i = (n) => {
16
+ n || (p(), m(""));
17
+ }, l = C || t.formatMessage(o.deleteConfirmationModalCustomMetadata), B = (n) => {
18
18
  m(n);
19
19
  }, y = () => {
20
20
  u(), i(!1);
21
21
  };
22
22
  return I(() => {
23
- g(r !== t);
24
- }, [r, t]), /* @__PURE__ */ e(a, {
23
+ g(r !== l);
24
+ }, [r, l]), /* @__PURE__ */ e(a, {
25
25
  onOpenChange: i,
26
26
  open: h,
27
- children: /* @__PURE__ */ d(a.Content, {
27
+ children: /* @__PURE__ */ s(a.Content, {
28
28
  size: "small",
29
29
  children: [/* @__PURE__ */ e(a.Header, {
30
- children: /* @__PURE__ */ e(s, {
30
+ "aria-label": t.formatMessage(o.deleteConfirmationModalHeaderAriaLabel),
31
+ children: /* @__PURE__ */ e(d, {
31
32
  ...o.deleteConfirmationModalHeader,
32
33
  values: {
33
- templateName: t
34
+ templateName: l
34
35
  }
35
36
  })
36
37
  }), /* @__PURE__ */ e(a.ScrollableContainer, {
37
- children: /* @__PURE__ */ d(a.Body, {
38
- className: N.modalBody,
38
+ children: /* @__PURE__ */ s(a.Body, {
39
+ className: P.modalBody,
39
40
  children: [/* @__PURE__ */ e(c, {
40
41
  as: "p",
41
- children: /* @__PURE__ */ e(s, {
42
+ children: /* @__PURE__ */ e(d, {
42
43
  ...o.deleteConfirmationModalBodyFirstParagraph,
43
44
  values: {
44
- templateName: t
45
+ templateName: l
45
46
  }
46
47
  })
47
48
  }), /* @__PURE__ */ e(c, {
48
49
  as: "p",
49
- children: /* @__PURE__ */ e(s, {
50
+ children: /* @__PURE__ */ e(d, {
50
51
  ...o.deleteConfirmationModalBodySecondParagraph
51
52
  })
52
53
  }), /* @__PURE__ */ e(b, {
53
- label: l.formatMessage(o.deleteConfirmationModalBodyInputFieldLabel, {
54
- templateName: t
55
- }),
54
+ label: t.formatMessage(o.deleteConfirmationModalBodyInputFieldLabel),
56
55
  onChange: (n) => B(n.target.value),
57
- placeholder: t,
56
+ placeholder: l,
58
57
  required: !0,
59
58
  value: r
60
59
  })]
61
60
  })
62
- }), /* @__PURE__ */ d(a.Footer, {
61
+ }), /* @__PURE__ */ s(a.Footer, {
63
62
  children: [/* @__PURE__ */ e(a.Footer.SecondaryButton, {
64
63
  onClick: () => i(!1),
65
64
  size: "large",
66
- children: l.formatMessage(o.deleteConfirmationModalCancelButton)
65
+ children: t.formatMessage(o.deleteConfirmationModalCancelButton)
67
66
  }), /* @__PURE__ */ e(a.Footer.PrimaryButton, {
68
67
  disabled: M,
69
68
  onClick: y,
70
69
  size: "large",
71
- children: l.formatMessage(o.deleteConfirmationModalConfirmButton)
70
+ children: t.formatMessage(o.deleteConfirmationModalConfirmButton)
72
71
  })]
73
72
  }), /* @__PURE__ */ e(a.Close, {
74
- "aria-label": l.formatMessage(o.deleteConfirmationModalDismissButton)
73
+ "aria-label": t.formatMessage(o.deleteConfirmationModalDismissButton)
75
74
  })]
76
75
  })
77
76
  });
78
77
  };
79
78
  export {
80
- V as DeleteConfirmationModal
79
+ T as DeleteConfirmationModal
81
80
  };
@@ -1,5 +1,5 @@
1
1
  import { defineMessages as e } from "react-intl";
2
- const a = e({
2
+ const t = e({
3
3
  deleteConfirmationModalCustomMetadata: {
4
4
  id: "metadataEditor.editInstance.deleteConfirmationModal.customMedatata",
5
5
  defaultMessage: "Custom Metadata"
@@ -8,6 +8,10 @@ const a = e({
8
8
  id: "metadataEditor.editInstance.deleteConfirmationModal.header",
9
9
  defaultMessage: 'Delete "{templateName}"'
10
10
  },
11
+ deleteConfirmationModalHeaderAriaLabel: {
12
+ id: "metadataEditor.editInstance.deleteConfirmationModal.headerAriaLabel",
13
+ defaultMessage: "Delete Metadata Template"
14
+ },
11
15
  deleteConfirmationModalBodyFirstParagraph: {
12
16
  id: "metadataEditor.editInstance.deleteConfirmationModal.body.firstParagraph",
13
17
  defaultMessage: 'Are you sure you want to delete the "{templateName}" Metadata template, and all of its values from this file?'
@@ -18,7 +22,7 @@ const a = e({
18
22
  },
19
23
  deleteConfirmationModalBodyInputFieldLabel: {
20
24
  id: "metadataEditor.editInstance.deleteConfirmationModal.body.inputFieldLabel",
21
- defaultMessage: 'Type "{templateName}" to confirm'
25
+ defaultMessage: "Type the Metadata Template’s name to confirm deletion"
22
26
  },
23
27
  deleteConfirmationModalCancelButton: {
24
28
  id: "metadataEditor.editInstance.deleteConfirmationModal.cancelButton",
@@ -34,5 +38,5 @@ const a = e({
34
38
  }
35
39
  });
36
40
  export {
37
- a as default
41
+ t as default
38
42
  };
package/i18n/bn-IN.js CHANGED
@@ -50,6 +50,7 @@ export default {
50
50
  "metadataEditor.editInstance.deleteConfirmationModal.customMedatata": "কাস্টম মেটাডেটা",
51
51
  "metadataEditor.editInstance.deleteConfirmationModal.dismissButton": "খারিজ করুন",
52
52
  "metadataEditor.editInstance.deleteConfirmationModal.header": "\"{templateName}\" মুছুন",
53
+ "metadataEditor.editInstance.deleteConfirmationModal.headerAriaLabel": "Delete Metadata Template",
53
54
  "metadataEditor.fileLevel.emptyState.boxAiEnabled.body": "ক্রমবর্ধমান নির্ভুলতা সহ ডকুমেন্ট মেটাডেটা দ্রুত ক্যাপচার করার জন্য Box AI-এর ক্ষমতা ব্যবহার করুন।",
54
55
  "metadataEditor.fileLevel.emptyState.boxAiEnabled.heading": "Box AI দিয়ে মেটাডেটা অটোফিল করুন",
55
56
  "metadataEditor.fileLevel.emptyState.default.body": "Business অপারেশন, কর্মপ্রবাহ আরও অনেক কিছু সাপোর্ট করতে আপনার ফাইলে মেটাডেটা যোগ করুন!",
package/i18n/da-DK.js CHANGED
@@ -50,6 +50,7 @@ export default {
50
50
  "metadataEditor.editInstance.deleteConfirmationModal.customMedatata": "Brugerdefineret metadata",
51
51
  "metadataEditor.editInstance.deleteConfirmationModal.dismissButton": "Afvis",
52
52
  "metadataEditor.editInstance.deleteConfirmationModal.header": "Slette \"{templateName}\"",
53
+ "metadataEditor.editInstance.deleteConfirmationModal.headerAriaLabel": "Delete Metadata Template",
53
54
  "metadataEditor.fileLevel.emptyState.boxAiEnabled.body": "Brug kraften i Box AI til hurtigt at indsamle dokumentmetadata med stadig større nøjagtighed.",
54
55
  "metadataEditor.fileLevel.emptyState.boxAiEnabled.heading": "Automatisk udfyldning af metadata med Box AI",
55
56
  "metadataEditor.fileLevel.emptyState.default.body": "Tilføj metadata til din fil for at understøtte forretningsdrift, workflows og meget mere!",
package/i18n/de-DE.js CHANGED
@@ -50,6 +50,7 @@ export default {
50
50
  "metadataEditor.editInstance.deleteConfirmationModal.customMedatata": "Benutzerdefinierte Metadaten",
51
51
  "metadataEditor.editInstance.deleteConfirmationModal.dismissButton": "Verwerfen",
52
52
  "metadataEditor.editInstance.deleteConfirmationModal.header": "„{templateName}“ löschen",
53
+ "metadataEditor.editInstance.deleteConfirmationModal.headerAriaLabel": "Delete Metadata Template",
53
54
  "metadataEditor.fileLevel.emptyState.boxAiEnabled.body": "Nutzen Sie die Möglichkeiten von Box AI, um Metadaten von Dokumenten schnell und mit immer größerer Genauigkeit zu erfassen.",
54
55
  "metadataEditor.fileLevel.emptyState.boxAiEnabled.heading": "Metadaten mit Box AI automatisch ausfüllen",
55
56
  "metadataEditor.fileLevel.emptyState.default.body": "Fügen Sie Ihrer Datei Metadaten hinzu, um Geschäftsvorgänge, Workflows usw. zu unterstützen.",
package/i18n/en-AU.js CHANGED
@@ -50,6 +50,7 @@ export default {
50
50
  "metadataEditor.editInstance.deleteConfirmationModal.customMedatata": "Custom Metadata",
51
51
  "metadataEditor.editInstance.deleteConfirmationModal.dismissButton": "Dismiss",
52
52
  "metadataEditor.editInstance.deleteConfirmationModal.header": "Delete \"{templateName}\"",
53
+ "metadataEditor.editInstance.deleteConfirmationModal.headerAriaLabel": "Delete Metadata Template",
53
54
  "metadataEditor.fileLevel.emptyState.boxAiEnabled.body": "Use the Power of Box AI to quickly capture document metadata, with ever-increasing accuracy.",
54
55
  "metadataEditor.fileLevel.emptyState.boxAiEnabled.heading": "Autofill Metadata with Box AI",
55
56
  "metadataEditor.fileLevel.emptyState.default.body": "Add Metadata to your file to support business operations, workflows, and more!",
package/i18n/en-CA.js CHANGED
@@ -50,6 +50,7 @@ export default {
50
50
  "metadataEditor.editInstance.deleteConfirmationModal.customMedatata": "Custom Metadata",
51
51
  "metadataEditor.editInstance.deleteConfirmationModal.dismissButton": "Dismiss",
52
52
  "metadataEditor.editInstance.deleteConfirmationModal.header": "Delete \"{templateName}\"",
53
+ "metadataEditor.editInstance.deleteConfirmationModal.headerAriaLabel": "Delete Metadata Template",
53
54
  "metadataEditor.fileLevel.emptyState.boxAiEnabled.body": "Use the power of Box AI to quickly capture document metadata, with ever-increasing accuracy.",
54
55
  "metadataEditor.fileLevel.emptyState.boxAiEnabled.heading": "Autofill Metadata with Box AI",
55
56
  "metadataEditor.fileLevel.emptyState.default.body": "Add Metadata to your file to support business operations, workflows, and more!",
package/i18n/en-GB.js CHANGED
@@ -50,6 +50,7 @@ export default {
50
50
  "metadataEditor.editInstance.deleteConfirmationModal.customMedatata": "Custom Metadata",
51
51
  "metadataEditor.editInstance.deleteConfirmationModal.dismissButton": "Dismiss",
52
52
  "metadataEditor.editInstance.deleteConfirmationModal.header": "Delete \"{templateName}\"",
53
+ "metadataEditor.editInstance.deleteConfirmationModal.headerAriaLabel": "Delete Metadata Template",
53
54
  "metadataEditor.fileLevel.emptyState.boxAiEnabled.body": "Use the Power of Box AI to quickly capture document metadata, with ever-increasing accuracy.",
54
55
  "metadataEditor.fileLevel.emptyState.boxAiEnabled.heading": "Autofill Metadata with Box AI",
55
56
  "metadataEditor.fileLevel.emptyState.default.body": "Add Metadata to your file to support business operations, workflows, and more!",
package/i18n/en-US.js CHANGED
@@ -43,13 +43,14 @@ export default {
43
43
  "metadataEditor.aiSuggestionField.clearAndReplaceLabel": "Clear and Replace",
44
44
  "metadataEditor.aiSuggestionField.ignoreLabel": "Ignore",
45
45
  "metadataEditor.editInstance.deleteConfirmationModal.body.firstParagraph": "Are you sure you want to delete the \"{templateName}\" Metadata template, and all of its values from this file?",
46
- "metadataEditor.editInstance.deleteConfirmationModal.body.inputFieldLabel": "Type \"{templateName}\" to confirm",
46
+ "metadataEditor.editInstance.deleteConfirmationModal.body.inputFieldLabel": "Type the Metadata Template’s name to confirm deletion",
47
47
  "metadataEditor.editInstance.deleteConfirmationModal.body.secondParagraph": "Once deleted, Metadata values cannot be restored.",
48
48
  "metadataEditor.editInstance.deleteConfirmationModal.cancelButton": "Cancel",
49
49
  "metadataEditor.editInstance.deleteConfirmationModal.confirmButton": "Confirm",
50
50
  "metadataEditor.editInstance.deleteConfirmationModal.customMedatata": "Custom Metadata",
51
51
  "metadataEditor.editInstance.deleteConfirmationModal.dismissButton": "Dismiss",
52
52
  "metadataEditor.editInstance.deleteConfirmationModal.header": "Delete \"{templateName}\"",
53
+ "metadataEditor.editInstance.deleteConfirmationModal.headerAriaLabel": "Delete Metadata Template",
53
54
  "metadataEditor.fileLevel.emptyState.boxAiEnabled.body": "Use the power of Box AI to quickly capture document metadata, with ever-increasing accuracy.",
54
55
  "metadataEditor.fileLevel.emptyState.boxAiEnabled.heading": "Autofill Metadata with Box AI",
55
56
  "metadataEditor.fileLevel.emptyState.default.body": "Add Metadata to your file to support business operations, workflows, and more!",
@@ -87,7 +87,7 @@ metadataEditor.aiSuggestionField.ignoreLabel = Ignore
87
87
  # Paragraph asking user are they sure that they want to delete the template
88
88
  metadataEditor.editInstance.deleteConfirmationModal.body.firstParagraph = Are you sure you want to delete the "{templateName}" Metadata template, and all of its values from this file?
89
89
  # Label informing how to confirm deletion of the template
90
- metadataEditor.editInstance.deleteConfirmationModal.body.inputFieldLabel = Type "{templateName}" to confirm
90
+ metadataEditor.editInstance.deleteConfirmationModal.body.inputFieldLabel = Type the Metadata Template’s name to confirm deletion
91
91
  # Paragraph informing that data cannot be restored
92
92
  metadataEditor.editInstance.deleteConfirmationModal.body.secondParagraph = Once deleted, Metadata values cannot be restored.
93
93
  # CTA to cancel deletion of the template
@@ -100,6 +100,8 @@ metadataEditor.editInstance.deleteConfirmationModal.customMedatata = Custom Meta
100
100
  metadataEditor.editInstance.deleteConfirmationModal.dismissButton = Dismiss
101
101
  # Header informing that template will be deleted
102
102
  metadataEditor.editInstance.deleteConfirmationModal.header = Delete "{templateName}"
103
+ # Aria label for header informing that template will be deleted
104
+ metadataEditor.editInstance.deleteConfirmationModal.headerAriaLabel = Delete Metadata Template
103
105
  # Description of Box AI features
104
106
  metadataEditor.fileLevel.emptyState.boxAiEnabled.body = Use the power of Box AI to quickly capture document metadata, with ever-increasing accuracy.
105
107
  # Call to encourage user to use Box AI to autofill metadata fields
@@ -50,6 +50,7 @@ export default {
50
50
  "metadataEditor.editInstance.deleteConfirmationModal.customMedatata": "⟦萬萬萬萬 Ĉúŝτòm Мěŧάďãţά 國國國國⟧",
51
51
  "metadataEditor.editInstance.deleteConfirmationModal.dismissButton": "⟦萬萬 Ðϊѕmïѕş 國國⟧",
52
52
  "metadataEditor.editInstance.deleteConfirmationModal.header": "⟦萬萬萬萬 Ðēľĕťė \"{templateName}\" 國國國國⟧",
53
+ "metadataEditor.editInstance.deleteConfirmationModal.headerAriaLabel": "Delete Metadata Template",
53
54
  "metadataEditor.fileLevel.emptyState.boxAiEnabled.body": "⟦萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬 Úŝė τħĕ Ρŏẃéŕ ŏƒ Бö× ĂÎ ťø qŭίсķĺγ сãΡťūŕè ďô¢ůmėňţ mёťãďάţα, ẃīťħ еνėѓ-îпċřęαŝϊņĝ ãćčŭяǻćý. 國國國國國國國國國國國國國國國國國國國國國國國國國國國⟧",
54
55
  "metadataEditor.fileLevel.emptyState.boxAiEnabled.heading": "⟦萬萬萬萬萬萬萬萬 Àűŧòƒιĺľ Меťâďåτą ώĭτħ Βø× ĄĬ 國國國國國國國國⟧",
55
56
  "metadataEditor.fileLevel.emptyState.default.body": "⟦萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬 Åďď Мēŧăďàţâ ţο ŷŏüѓ ƒіļê ţō ѕùΡΡσяŧ вüŝϊŋëŝŝ ôΡěŕáťіøйś, шøѓķƒĺόŵś, äʼnď møґέ! 國國國國國國國國國國國國國國國國國國國國國國國⟧",
package/i18n/es-419.js CHANGED
@@ -50,6 +50,7 @@ export default {
50
50
  "metadataEditor.editInstance.deleteConfirmationModal.customMedatata": "Metadatos personalizados",
51
51
  "metadataEditor.editInstance.deleteConfirmationModal.dismissButton": "Descartar",
52
52
  "metadataEditor.editInstance.deleteConfirmationModal.header": "Eliminar \"{templateName}\"",
53
+ "metadataEditor.editInstance.deleteConfirmationModal.headerAriaLabel": "Delete Metadata Template",
53
54
  "metadataEditor.fileLevel.emptyState.boxAiEnabled.body": "Aproveche la potencia de Box AI para capturar rápidamente los metadatos de los documentos con precisión.",
54
55
  "metadataEditor.fileLevel.emptyState.boxAiEnabled.heading": "Rellenar automáticamente metadatos con Box AI",
55
56
  "metadataEditor.fileLevel.emptyState.default.body": "Agregue metadatos a su archivo para facilitar las operaciones comerciales, los flujos de trabajo y mucho más.",
package/i18n/es-ES.js CHANGED
@@ -50,6 +50,7 @@ export default {
50
50
  "metadataEditor.editInstance.deleteConfirmationModal.customMedatata": "Metadatos personalizados",
51
51
  "metadataEditor.editInstance.deleteConfirmationModal.dismissButton": "Descartar",
52
52
  "metadataEditor.editInstance.deleteConfirmationModal.header": "Eliminar \"{templateName}\"",
53
+ "metadataEditor.editInstance.deleteConfirmationModal.headerAriaLabel": "Delete Metadata Template",
53
54
  "metadataEditor.fileLevel.emptyState.boxAiEnabled.body": "Aproveche la potencia de Box AI para capturar rápidamente los metadatos de los documentos con precisión.",
54
55
  "metadataEditor.fileLevel.emptyState.boxAiEnabled.heading": "Rellenar automáticamente metadatos con Box AI",
55
56
  "metadataEditor.fileLevel.emptyState.default.body": "Agregue metadatos a su archivo para facilitar las operaciones comerciales, los flujos de trabajo y mucho más.",
package/i18n/fi-FI.js CHANGED
@@ -50,6 +50,7 @@ export default {
50
50
  "metadataEditor.editInstance.deleteConfirmationModal.customMedatata": "Mukautetut metatiedot",
51
51
  "metadataEditor.editInstance.deleteConfirmationModal.dismissButton": "Hylkää",
52
52
  "metadataEditor.editInstance.deleteConfirmationModal.header": "Poista \"{templateName}\"",
53
+ "metadataEditor.editInstance.deleteConfirmationModal.headerAriaLabel": "Delete Metadata Template",
53
54
  "metadataEditor.fileLevel.emptyState.boxAiEnabled.body": "Box AI:n tehon avulla voit nopeasti tallentaa asiakirjan metatiedot yhä suuremmalla tarkkuudella.",
54
55
  "metadataEditor.fileLevel.emptyState.boxAiEnabled.heading": "Täytä metatiedot automaattisesti Box AI:n avulla",
55
56
  "metadataEditor.fileLevel.emptyState.default.body": "Lisää metatiedot tiedostoon tukemaan muun muassa liiketoimintoja ja työnkulkuja.",
package/i18n/fr-CA.js CHANGED
@@ -50,6 +50,7 @@ export default {
50
50
  "metadataEditor.editInstance.deleteConfirmationModal.customMedatata": "Métadonnées personnalisées",
51
51
  "metadataEditor.editInstance.deleteConfirmationModal.dismissButton": "Ignorer",
52
52
  "metadataEditor.editInstance.deleteConfirmationModal.header": "Supprimer « {templateName} »",
53
+ "metadataEditor.editInstance.deleteConfirmationModal.headerAriaLabel": "Delete Metadata Template",
53
54
  "metadataEditor.fileLevel.emptyState.boxAiEnabled.body": "Utilisez la puissance de Box AI pour capturer rapidement les métadonnées de vos documents avec toujours plus de précision.",
54
55
  "metadataEditor.fileLevel.emptyState.boxAiEnabled.heading": "Remplissez automatiquement vos métadonnées avec Box AI",
55
56
  "metadataEditor.fileLevel.emptyState.default.body": "Ajoutez des métadonnées à votre fichier pour prendre en charge les opérations commerciales, les flux de travail, et plus encore",