@box/metadata-editor 0.92.2 → 0.92.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 (55) hide show
  1. package/chunks/metadata-instance-form-card-wrapper.js +1 -1
  2. package/chunks/taxonomy-ancestor-status-pill.js +34 -35
  3. package/esm/lib/components/add-metadata-template-dropdown/add-metadata-template-dropdown.js +5 -5
  4. package/esm/lib/components/add-metadata-template-dropdown/messages.js +1 -1
  5. package/esm/lib/components/combobox-with-api-pagination/combobox-with-api-pagination.js +39 -40
  6. package/esm/lib/components/combobox-with-api-pagination/messages.js +1 -1
  7. package/esm/lib/components/filter-dropdown-menu/filter-dropdown-menu-empty-state.js +1 -1
  8. package/esm/lib/components/filter-dropdown-menu/filter-dropdown-menu-search.js +6 -6
  9. package/esm/lib/components/filter-dropdown-menu/messages.js +1 -1
  10. package/esm/lib/components/filter-instances-dropdown/filter-instances-dropdown.js +7 -7
  11. package/esm/lib/components/filter-instances-dropdown/messages.js +1 -1
  12. package/esm/lib/components/metadata-editor-fields/components/ai-suggestion-field/ai-suggestion-field.js +15 -16
  13. package/esm/lib/components/metadata-editor-fields/components/ai-suggestion-field/messages.js +1 -1
  14. package/esm/lib/components/metadata-editor-fields/components/metadata-date-field/metadata-date-field.js +1 -1
  15. package/esm/lib/components/metadata-editor-fields/components/metadata-enum-field/metadata-enum-field.js +27 -28
  16. package/esm/lib/components/metadata-editor-fields/components/metadata-float-field/use-float-validation.js +6 -6
  17. package/esm/lib/components/metadata-editor-fields/components/metadata-multi-select-field/metadata-multi-select-field.js +5 -5
  18. package/esm/lib/components/metadata-editor-fields/components/metadata-string-field/metadata-string-field.js +9 -9
  19. package/esm/lib/components/metadata-editor-fields/components/metadata-taxonomy-field/metadata-taxonomy-field.js +5 -5
  20. package/esm/lib/components/metadata-editor-fields/components/update-mode-field-wrapper/messages.js +1 -1
  21. package/esm/lib/components/metadata-editor-fields/components/update-mode-field-wrapper/update-mode-field-wrapper.js +1 -1
  22. package/esm/lib/components/metadata-editor-fields/metadata-editor-field-wrapper.js +70 -567
  23. package/esm/lib/components/metadata-editor-fields/metadata-editor-fields.js +18 -19
  24. package/esm/lib/components/metadata-empty-state/messages.js +1 -1
  25. package/esm/lib/components/metadata-empty-state/metadata-empty-state.js +1 -1
  26. package/esm/lib/components/metadata-instance-editor/subcomponents/autofill-overlay/autofill-overlay.js +1 -1
  27. package/esm/lib/components/metadata-instance-editor/subcomponents/autofill-overlay/messages.js +1 -1
  28. package/esm/lib/components/metadata-instance-editor/subcomponents/custom-instance/custom-instance.js +10 -10
  29. package/esm/lib/components/metadata-instance-editor/subcomponents/custom-instance/messages.js +1 -1
  30. package/esm/lib/components/metadata-instance-editor/subcomponents/custom-instance-new-field/custom-instance-new-field.js +1 -1
  31. package/esm/lib/components/metadata-instance-editor/subcomponents/custom-instance-new-field/messages.js +1 -1
  32. package/esm/lib/components/metadata-instance-editor/subcomponents/delete-confirmation-modal/delete-confirmation-modal.js +14 -15
  33. package/esm/lib/components/metadata-instance-editor/subcomponents/delete-confirmation-modal/messages.js +1 -1
  34. package/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-autofill-button/messages.js +1 -1
  35. package/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-autofill-button/metadata-instance-form-autofill-button.js +1 -1
  36. package/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-footer/messages.js +1 -1
  37. package/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-footer/metadata-instance-form-footer.js +1 -1
  38. package/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-header/messages.js +2 -2
  39. package/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-header/metadata-instance-form-header.js +1 -1
  40. package/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-inline-notice/messages.js +1 -1
  41. package/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-inline-notice/metadata-instance-form-inline-notice.js +14 -14
  42. package/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance-entry/metadata-instance-entry.js +5 -5
  43. package/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance-entry/taxonomy-entry/messages.js +3 -3
  44. package/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance-entry/taxonomy-entry/taxonomy-ancestor-status-pill.js +3 -4
  45. package/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance-footer/messages.js +1 -1
  46. package/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance-footer/metadata-instance-footer.js +1 -1
  47. package/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance-header/messages.js +1 -1
  48. package/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance-header/metadata-instance-header.js +1 -1
  49. package/esm/lib/components/unsaved-changes-modal/messages.js +1 -1
  50. package/esm/lib/components/unsaved-changes-modal/unsaved-changes-modal.js +18 -19
  51. package/esm/lib/messages.js +1 -1
  52. package/package.json +2 -2
  53. package/types/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form/types.d.ts +1 -1
  54. package/chunks/index.js +0 -292
  55. package/chunks/message.js +0 -18
@@ -1,34 +1,33 @@
1
1
  import { useRef as f, useEffect as l } from "react";
2
- import { Text as d } from "@box/blueprint-web";
3
- import { useFormikContext as c, getIn as p, FieldArray as u } from "formik";
4
- import "../../../../chunks/index.js";
5
- import x from "../../messages.js";
6
- import { MetadataEditorFieldWrapper as g } from "./metadata-editor-field-wrapper.js";
7
- import { s as h } from "../../../../chunks/utils2.js";
2
+ import { Text as c } from "@box/blueprint-web";
3
+ import { useFormikContext as d, getIn as p, FieldArray as u } from "formik";
4
+ import { FormattedMessage as x } from "react-intl";
5
+ import g from "../../messages.js";
6
+ import { MetadataEditorFieldWrapper as h } from "./metadata-editor-field-wrapper.js";
7
+ import { s as F } from "../../../../chunks/utils2.js";
8
8
  import { jsx as t } from "react/jsx-runtime";
9
- import { M as F } from "../../../../chunks/message.js";
10
- const C = (n) => {
9
+ const C = (m) => {
11
10
  const {
12
11
  values: i
13
- } = c(), r = "metadata.fields", o = p(i, r), s = f(null), a = o.findIndex((e) => !e.hidden);
12
+ } = d(), o = "metadata.fields", r = p(i, o), s = f(null), a = r.findIndex((e) => !e.hidden);
14
13
  return l(() => {
15
14
  var e;
16
15
  a > -1 && ((e = s.current) == null || e.focus());
17
- }, []), o.length ? /* @__PURE__ */ t(u, {
18
- name: r,
16
+ }, []), r.length ? /* @__PURE__ */ t(u, {
17
+ name: o,
19
18
  validateOnChange: !1,
20
- children: () => o.map((e, m) => /* @__PURE__ */ t(g, {
21
- ...n,
22
- ref: m === a ? s : null,
19
+ children: () => r.map((e, n) => /* @__PURE__ */ t(h, {
20
+ ...m,
21
+ ref: n === a ? s : null,
23
22
  field: e,
24
- index: m
23
+ index: n
25
24
  }, e.key))
26
- }) : /* @__PURE__ */ t(d, {
25
+ }) : /* @__PURE__ */ t(c, {
27
26
  as: "span",
28
- className: h.noAttributesText,
27
+ className: F.noAttributesText,
29
28
  color: "textOnLightSecondary",
30
- children: /* @__PURE__ */ t(F, {
31
- ...x.noTemplateAtributesError
29
+ children: /* @__PURE__ */ t(x, {
30
+ ...g.noTemplateAtributesError
32
31
  })
33
32
  });
34
33
  };
@@ -1,4 +1,4 @@
1
- import { d as e } from "../../../../chunks/index.js";
1
+ import { defineMessages as e } from "react-intl";
2
2
  const a = e({
3
3
  managerLevelEmptyStateHeading: {
4
4
  id: "metadataEditor.managerLevel.emptyState.heading",
@@ -1,7 +1,7 @@
1
1
  import { Text as n, EmptyState as m } from "@box/blueprint-web";
2
2
  import { JobAnalyzeData as c } from "@box/blueprint-web-assets/illustrations/Small";
3
3
  import { useCallback as f } from "react";
4
- import { u as d } from "../../../../chunks/index.js";
4
+ import { useIntl as d } from "react-intl";
5
5
  import a from "./messages.js";
6
6
  import { jsx as e } from "react/jsx-runtime";
7
7
  function E({
@@ -1,6 +1,6 @@
1
1
  import { useState as d } from "react";
2
2
  import { LoadingIndicator as y, Text as n, TextButton as g } from "@box/blueprint-web";
3
- import { u as v } from "../../../../../../chunks/index.js";
3
+ import { useIntl as v } from "react-intl";
4
4
  import { AlertTriangle as _ } from "@box/blueprint-web-assets/icons/Line";
5
5
  import { SurfaceStatusSurfaceError as p, Size5 as m } from "@box/blueprint-web-assets/tokens/tokens";
6
6
  import h from "clsx";
@@ -1,4 +1,4 @@
1
- import { d as a } from "../../../../../../chunks/index.js";
1
+ import { defineMessages as a } from "react-intl";
2
2
  const e = a({
3
3
  defaultLoadingMessage: {
4
4
  id: "metadataEditor.metadataInstanceEditor.autofillOverlay.defaultLoadingMessage",
@@ -1,6 +1,6 @@
1
1
  import { useFormikContext as A, FieldArray as N, Field as k } from "formik";
2
2
  import { useState as I, useRef as v, useEffect as y } from "react";
3
- import { u as C } from "../../../../../../chunks/index.js";
3
+ import { useIntl as C } from "react-intl";
4
4
  import { TextInput as q, IconButton as B, TextButton as T } from "@box/blueprint-web";
5
5
  import { Trash as w } from "@box/blueprint-web-assets/icons/Line";
6
6
  import { CustomInstanceNewField as M } from "../custom-instance-new-field/custom-instance-new-field.js";
@@ -17,18 +17,18 @@ import '../../../../../../styles/custom-instance.css';const V = "_customInstance
17
17
  isLoading: l
18
18
  } = F, {
19
19
  values: e
20
- } = A(), i = C(), [m, a] = I(!e.metadata.fields.length), [u, r] = I(0), h = () => {
20
+ } = A(), i = C(), [m, o] = I(!e.metadata.fields.length), [u, r] = I(0), h = () => {
21
21
  r(e.metadata.fields.length);
22
- }, b = (o) => {
23
- r(o === 0 ? 0 : o - 1);
22
+ }, b = (a) => {
23
+ r(a === 0 ? 0 : a - 1);
24
24
  }, f = v(null);
25
25
  return y(() => {
26
- e.metadata.fields.length > 0 ? f.current.focus() : a(!0);
26
+ e.metadata.fields.length > 0 ? f.current.focus() : o(!0);
27
27
  }, [u, e.metadata.fields.length]), /* @__PURE__ */ t("div", {
28
28
  children: /* @__PURE__ */ t(N, {
29
29
  name: "metadata.fields",
30
30
  children: ({
31
- remove: o,
31
+ remove: a,
32
32
  push: _
33
33
  }) => /* @__PURE__ */ p("div", {
34
34
  className: c.customInstance,
@@ -59,7 +59,7 @@ import '../../../../../../styles/custom-instance.css';const V = "_customInstance
59
59
  disabled: l,
60
60
  icon: w,
61
61
  onClick: () => {
62
- o(n), b(n);
62
+ a(n), b(n);
63
63
  },
64
64
  size: "x-small",
65
65
  "data-target-id": "IconButton-removeAttribute"
@@ -70,12 +70,12 @@ import '../../../../../../styles/custom-instance.css';const V = "_customInstance
70
70
  _({
71
71
  key: s,
72
72
  value: n
73
- }), h(), a(!1);
73
+ }), h(), o(!1);
74
74
  },
75
- onCancel: () => a(!1)
75
+ onCancel: () => o(!1)
76
76
  }), !m && /* @__PURE__ */ t(T, {
77
77
  disabled: l,
78
- onClick: () => a(!0),
78
+ onClick: () => o(!0),
79
79
  "data-target-id": "TextButton-addAttribute",
80
80
  children: i.formatMessage(d.addAttribute)
81
81
  })]
@@ -1,4 +1,4 @@
1
- import { d as t } from "../../../../../../chunks/index.js";
1
+ import { defineMessages as t } from "react-intl";
2
2
  const a = t({
3
3
  addAttribute: {
4
4
  id: "metadataEditor.metadataInstanceEditor.customInstance.addAttribute",
@@ -1,6 +1,6 @@
1
1
  import { Card as I, TextInput as u, Button as m } from "@box/blueprint-web";
2
2
  import { useState as l } from "react";
3
- import { u as y } from "../../../../../../chunks/index.js";
3
+ import { useIntl as y } from "react-intl";
4
4
  import t from "./messages.js";
5
5
  import { jsxs as p, jsx as a } from "react/jsx-runtime";
6
6
  import '../../../../../../styles/custom-instance-new-field.css';const M = "_customInstanceNewFieldCard_ivrhw_1", _ = "_customInstanceNewFieldFooter_ivrhw_6", b = "_inputWrapper_ivrhw_13", n = {
@@ -1,4 +1,4 @@
1
- import { d as e } from "../../../../../../chunks/index.js";
1
+ import { defineMessages as e } from "react-intl";
2
2
  const t = e({
3
3
  addAttributeGroupAriaLabel: {
4
4
  id: "metadataEditor.metadataEditor.customIntanceNewField.addAttributeGroupAriaLabel",
@@ -1,18 +1,17 @@
1
1
  import { Modal as a, Text as c, TextInput as b } from "@box/blueprint-web";
2
2
  import { useState as f, useEffect as F } from "react";
3
- import { u as I } from "../../../../../../chunks/index.js";
3
+ import { useIntl as I, FormattedMessage as s } from "react-intl";
4
4
  import o from "./messages.js";
5
- import { jsx as e, jsxs as s } from "react/jsx-runtime";
6
- import { M as d } from "../../../../../../chunks/message.js";
5
+ import { jsx as e, jsxs as d } from "react/jsx-runtime";
7
6
  import '../../../../../../styles/delete-confirmation-modal.css';const P = "_modalBody_yiat3_1", x = {
8
7
  modalBody: P
9
- }, T = ({
8
+ }, H = ({
10
9
  onConfirm: u,
11
10
  templateName: p,
12
11
  onDismiss: C,
13
- open: M
12
+ open: h
14
13
  }) => {
15
- const n = I(), [r, m] = f(""), [h, g] = f(!0), i = (t) => {
14
+ const n = I(), [r, m] = f(""), [M, g] = f(!0), i = (t) => {
16
15
  t || (C(), m(""));
17
16
  }, l = p || n.formatMessage(o.deleteConfirmationModalCustomMetadata), y = (t) => {
18
17
  m(t);
@@ -23,24 +22,24 @@ import '../../../../../../styles/delete-confirmation-modal.css';const P = "_moda
23
22
  g(r !== l);
24
23
  }, [r, l]), /* @__PURE__ */ e(a, {
25
24
  onOpenChange: i,
26
- open: M,
27
- children: /* @__PURE__ */ s(a.Content, {
25
+ open: h,
26
+ children: /* @__PURE__ */ d(a.Content, {
28
27
  onEscapeKeyDown: (t) => t.stopPropagation(),
29
28
  size: "small",
30
29
  children: [/* @__PURE__ */ e(a.Header, {
31
30
  "aria-label": n.formatMessage(o.deleteConfirmationModalHeaderAriaLabel),
32
- children: /* @__PURE__ */ e(d, {
31
+ children: /* @__PURE__ */ e(s, {
33
32
  ...o.deleteConfirmationModalHeader,
34
33
  values: {
35
34
  templateName: l
36
35
  }
37
36
  })
38
37
  }), /* @__PURE__ */ e(a.ScrollableContainer, {
39
- children: /* @__PURE__ */ s(a.Body, {
38
+ children: /* @__PURE__ */ d(a.Body, {
40
39
  className: x.modalBody,
41
40
  children: [/* @__PURE__ */ e(c, {
42
41
  as: "p",
43
- children: /* @__PURE__ */ e(d, {
42
+ children: /* @__PURE__ */ e(s, {
44
43
  ...o.deleteConfirmationModalBodyFirstParagraph,
45
44
  values: {
46
45
  templateName: l
@@ -48,7 +47,7 @@ import '../../../../../../styles/delete-confirmation-modal.css';const P = "_moda
48
47
  })
49
48
  }), /* @__PURE__ */ e(c, {
50
49
  as: "p",
51
- children: /* @__PURE__ */ e(d, {
50
+ children: /* @__PURE__ */ e(s, {
52
51
  ...o.deleteConfirmationModalBodySecondParagraph
53
52
  })
54
53
  }), /* @__PURE__ */ e(b, {
@@ -59,13 +58,13 @@ import '../../../../../../styles/delete-confirmation-modal.css';const P = "_moda
59
58
  value: r
60
59
  })]
61
60
  })
62
- }), /* @__PURE__ */ s(a.Footer, {
61
+ }), /* @__PURE__ */ d(a.Footer, {
63
62
  children: [/* @__PURE__ */ e(a.Footer.SecondaryButton, {
64
63
  onClick: () => i(!1),
65
64
  size: "large",
66
65
  children: n.formatMessage(o.deleteConfirmationModalCancelButton)
67
66
  }), /* @__PURE__ */ e(a.Footer.PrimaryButton, {
68
- disabled: h,
67
+ disabled: M,
69
68
  onClick: B,
70
69
  size: "large",
71
70
  children: n.formatMessage(o.deleteConfirmationModalConfirmButton)
@@ -77,5 +76,5 @@ import '../../../../../../styles/delete-confirmation-modal.css';const P = "_moda
77
76
  });
78
77
  };
79
78
  export {
80
- T as DeleteConfirmationModal
79
+ H as DeleteConfirmationModal
81
80
  };
@@ -1,4 +1,4 @@
1
- import { d as e } from "../../../../../../chunks/index.js";
1
+ import { defineMessages as e } from "react-intl";
2
2
  const t = e({
3
3
  deleteConfirmationModalCustomMetadata: {
4
4
  id: "metadataEditor.editInstance.deleteConfirmationModal.customMedatata",
@@ -1,4 +1,4 @@
1
- import { d as t } from "../../../../../../chunks/index.js";
1
+ import { defineMessages as t } from "react-intl";
2
2
  const e = t({
3
3
  autofillButton: {
4
4
  id: "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.autofillButton",
@@ -2,7 +2,7 @@ import { LoadingIndicator as v, IconButton as k, Tooltip as x, Button as K } fro
2
2
  import { BoxAiLogo as p } from "@box/blueprint-web-assets/icons/Logo";
3
3
  import { useFormikContext as L, getIn as i } from "formik";
4
4
  import { useEffect as h } from "react";
5
- import { u as C } from "../../../../../../chunks/index.js";
5
+ import { useIntl as C } from "react-intl";
6
6
  import { useAutofill as F } from "../../../../utils/autofill-context.js";
7
7
  import n from "./messages.js";
8
8
  import { jsx as l } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { d as a } from "../../../../../../chunks/index.js";
1
+ import { defineMessages as a } from "react-intl";
2
2
  const e = a({
3
3
  cancelButton: {
4
4
  id: "metadataEditor.metadataInstanceEditor.metadataInstanceFormFooter.cancelButton",
@@ -1,6 +1,6 @@
1
1
  import { TextButton as g, Button as r } from "@box/blueprint-web";
2
2
  import { useFormikContext as b } from "formik";
3
- import { u as B } from "../../../../../../chunks/index.js";
3
+ import { useIntl as B } from "react-intl";
4
4
  import o from "./messages.js";
5
5
  import { jsx as e, jsxs as i } from "react/jsx-runtime";
6
6
  import '../../../../../../styles/metadata-instance-form-footer.css';const F = "_metadataInstanceFormFooter_15nrg_1", f = "_buttonsContainer_15nrg_7", _ = "_buttons_15nrg_7", a = {
@@ -1,5 +1,5 @@
1
- import { d as a } from "../../../../../../chunks/index.js";
2
- const e = a({
1
+ import { defineMessages as t } from "react-intl";
2
+ const e = t({
3
3
  customInstanceTitle: {
4
4
  id: "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.customInstanceTitle",
5
5
  defaultMessage: "Custom Metadata"
@@ -1,4 +1,4 @@
1
- import { u as F } from "../../../../../../chunks/index.js";
1
+ import { useIntl as F } from "react-intl";
2
2
  import p from "../../../interactive-header-text/interactive-header-text.js";
3
3
  import { MetadataInstanceFormAutofillButton as x } from "../metadata-instance-form-autofill-button/metadata-instance-form-autofill-button.js";
4
4
  import H from "./messages.js";
@@ -1,4 +1,4 @@
1
- import { d as e } from "../../../../../../chunks/index.js";
1
+ import { defineMessages as e } from "react-intl";
2
2
  const t = e({
3
3
  autofillInBetaNoticeHeader: {
4
4
  id: "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.autofillInBetaNoticeHeader",
@@ -1,7 +1,7 @@
1
- import { u as c } from "../../../../../../chunks/index.js";
1
+ import { useIntl as c } from "react-intl";
2
2
  import { InlineNotice as l, Text as t } from "@box/blueprint-web";
3
- import a from "./messages.js";
4
- import { jsxs as i, Fragment as d, jsx as n } from "react/jsx-runtime";
3
+ import i from "./messages.js";
4
+ import { jsxs as a, Fragment as d, jsx as n } from "react/jsx-runtime";
5
5
  import '../../../../../../styles/metadata-instance-form-inline-notice.css';const m = "_inlineNotice_j1wao_1", s = {
6
6
  inlineNotice: m
7
7
  }, p = ({
@@ -9,33 +9,33 @@ import '../../../../../../styles/metadata-instance-form-inline-notice.css';const
9
9
  isBetaLanguageEnabled: r
10
10
  }) => {
11
11
  const e = c();
12
- return !r && !o ? null : /* @__PURE__ */ i(d, {
12
+ return !r && !o ? null : /* @__PURE__ */ a(d, {
13
13
  children: [o && /* @__PURE__ */ n("div", {
14
14
  className: s.inlineNotice,
15
- children: /* @__PURE__ */ i(l, {
15
+ children: /* @__PURE__ */ a(l, {
16
16
  variant: "warning",
17
- variantIconAriaLabel: e.formatMessage(a.largeFileNoticeHeader),
17
+ variantIconAriaLabel: e.formatMessage(i.largeFileNoticeHeader),
18
18
  children: [/* @__PURE__ */ n(t, {
19
19
  as: "p",
20
20
  variant: "bodyDefaultBold",
21
- children: e.formatMessage(a.largeFileNoticeHeader)
22
- }), /* @__PURE__ */ i(t, {
21
+ children: e.formatMessage(i.largeFileNoticeHeader)
22
+ }), /* @__PURE__ */ a(t, {
23
23
  as: "p",
24
- children: [e.formatMessage(a.largeFileNoticeBody), " "]
24
+ children: [e.formatMessage(i.largeFileNoticeBody), " "]
25
25
  })]
26
26
  })
27
27
  }), r && /* @__PURE__ */ n("div", {
28
28
  className: s.inlineNotice,
29
- children: /* @__PURE__ */ i(l, {
29
+ children: /* @__PURE__ */ a(l, {
30
30
  variant: "info",
31
- variantIconAriaLabel: e.formatMessage(a.autofillInBetaNoticeHeader),
31
+ variantIconAriaLabel: e.formatMessage(i.autofillInBetaNoticeHeader),
32
32
  children: [/* @__PURE__ */ n(t, {
33
33
  as: "p",
34
34
  variant: "bodyDefaultBold",
35
- children: e.formatMessage(a.autofillInBetaNoticeHeader)
36
- }), /* @__PURE__ */ i(t, {
35
+ children: e.formatMessage(i.autofillInBetaNoticeHeader)
36
+ }), /* @__PURE__ */ a(t, {
37
37
  as: "p",
38
- children: [e.formatMessage(a.autofillInBetaNoticeBody), " "]
38
+ children: [e.formatMessage(i.autofillInBetaNoticeBody), " "]
39
39
  })]
40
40
  })
41
41
  })]
@@ -1,5 +1,5 @@
1
1
  import { Text as f } from "@box/blueprint-web";
2
- import { F as y } from "../../../../../../chunks/index.js";
2
+ import { FormattedDate as y } from "react-intl";
3
3
  import { convertISOStringToUTCDate as l } from "../../../../utils/convertDate.js";
4
4
  import p from "../../../interactive-text/interactive-text.js";
5
5
  import { MetadataEntryDisplay as u } from "./metadata-entry-display.js";
@@ -13,8 +13,8 @@ import '../../../../../../styles/metadata-instance-entry.css';const g = "_metada
13
13
  type: o,
14
14
  value: t,
15
15
  taxonomyNodeFetcher: m,
16
- taxonomyKey: s,
17
- scope: c
16
+ taxonomyKey: c,
17
+ scope: s
18
18
  }) => {
19
19
  const e = (() => {
20
20
  if (typeof t == "number")
@@ -49,8 +49,8 @@ import '../../../../../../styles/metadata-instance-entry.css';const g = "_metada
49
49
  }) : a
50
50
  }), /* @__PURE__ */ r(u, {
51
51
  formattedValue: e,
52
- scope: c,
53
- taxonomyKey: s,
52
+ scope: s,
53
+ taxonomyKey: c,
54
54
  taxonomyNodeFetcher: m,
55
55
  type: o,
56
56
  value: t
@@ -1,5 +1,5 @@
1
- import { d as e } from "../../../../../../../chunks/index.js";
2
- const s = e({
1
+ import { defineMessages as e } from "react-intl";
2
+ const o = e({
3
3
  loadingResultsErrorAction: {
4
4
  id: "taxonomyAncestorStatusPill.errorAction",
5
5
  defaultMessage: "Reload"
@@ -22,5 +22,5 @@ const s = e({
22
22
  }
23
23
  });
24
24
  export {
25
- s as default
25
+ o as default
26
26
  };
@@ -2,11 +2,10 @@ import "@box/blueprint-web";
2
2
  import "@box/blueprint-web-assets/icons/Fill";
3
3
  import "lodash/orderBy";
4
4
  import "react";
5
- import "../../../../../../../chunks/index.js";
5
+ import "react-intl";
6
6
  import "./messages.js";
7
- import { T as n } from "../../../../../../../chunks/taxonomy-ancestor-status-pill.js";
7
+ import { T as l } from "../../../../../../../chunks/taxonomy-ancestor-status-pill.js";
8
8
  import "react/jsx-runtime";
9
- import "../../../../../../../chunks/message.js";
10
9
  export {
11
- n as TaxonomyAncestorStatusPill
10
+ l as TaxonomyAncestorStatusPill
12
11
  };
@@ -1,4 +1,4 @@
1
- import { d as e } from "../../../../../../chunks/index.js";
1
+ import { defineMessages as e } from "react-intl";
2
2
  const t = e({
3
3
  showEmptyValuesCTA: {
4
4
  id: "metadataEditor.viewInstance.metadataInstanceFooter.showEmptyValuesCTA",
@@ -1,5 +1,5 @@
1
1
  import { TextButton as o } from "@box/blueprint-web";
2
- import { u as c } from "../../../../../../chunks/index.js";
2
+ import { useIntl as c } from "react-intl";
3
3
  import s from "./messages.js";
4
4
  import { jsx as t } from "react/jsx-runtime";
5
5
  import '../../../../../../styles/metadata-instance-footer.css';const u = "_metadataInstanceFooter_6auqo_1", d = "_button_6auqo_5", a = {
@@ -1,4 +1,4 @@
1
- import { d as t } from "../../../../../../chunks/index.js";
1
+ import { defineMessages as t } from "react-intl";
2
2
  const e = t({
3
3
  customInstanceTitle: {
4
4
  id: "metadataEditor.viewInstance.metadataInstanceHeader.customMetadataTitle",
@@ -1,7 +1,7 @@
1
1
  import { Tooltip as i, IconButton as s } from "@box/blueprint-web";
2
2
  import { Pencil as g } from "@box/blueprint-web-assets/icons/Line";
3
3
  import { BoxAiLogo as I } from "@box/blueprint-web-assets/icons/Logo";
4
- import { u as _ } from "../../../../../../chunks/index.js";
4
+ import { useIntl as _ } from "react-intl";
5
5
  import x from "../../../interactive-header-text/interactive-header-text.js";
6
6
  import o from "./messages.js";
7
7
  import { jsxs as r, jsx as a } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { d as a } from "../../../../chunks/index.js";
1
+ import { defineMessages as a } from "react-intl";
2
2
  const d = a({
3
3
  unsavedChangesModalHeader: {
4
4
  id: "metadataEditor.unsavedChangesModal.header",
@@ -1,53 +1,52 @@
1
1
  import { Modal as e } from "@box/blueprint-web";
2
2
  import { useState as M, useEffect as p, useCallback as d } from "react";
3
- import { u as v } from "../../../../chunks/index.js";
4
- import o from "./messages.js";
5
- import { jsx as a, jsxs as m } from "react/jsx-runtime";
6
- import { M as h } from "../../../../chunks/message.js";
3
+ import { useIntl as v, FormattedMessage as h } from "react-intl";
4
+ import n from "./messages.js";
5
+ import { jsx as a, jsxs as C } from "react/jsx-runtime";
7
6
  function x({
8
7
  onBackToEdit: i,
9
8
  onDiscardChanges: c,
10
- defaultOpen: C = !0,
11
- open: r = C
9
+ defaultOpen: g = !0,
10
+ open: r = g
12
11
  }) {
13
- const t = v(), [g, n] = M(r);
14
- p(() => n(r), [r]);
12
+ const t = v(), [m, o] = M(r);
13
+ p(() => o(r), [r]);
15
14
  const l = d(() => {
16
- i(), n(!1);
15
+ i(), o(!1);
17
16
  }, [i]), u = d(() => {
18
- c(), n(!1);
17
+ c(), o(!1);
19
18
  }, [c]), f = d((s) => {
20
- n(s), s || l();
19
+ o(s), s || l();
21
20
  }, [l]);
22
21
  return /* @__PURE__ */ a(e, {
23
22
  modal: !0,
24
23
  onOpenChange: f,
25
- open: g,
26
- children: /* @__PURE__ */ m(e.Content, {
24
+ open: m,
25
+ children: /* @__PURE__ */ C(e.Content, {
27
26
  onEscapeKeyDown: (s) => s.stopPropagation(),
28
27
  size: "small",
29
28
  children: [/* @__PURE__ */ a(e.Header, {
30
29
  children: /* @__PURE__ */ a(h, {
31
- ...o.unsavedChangesModalHeader
30
+ ...n.unsavedChangesModalHeader
32
31
  })
33
32
  }), /* @__PURE__ */ a(e.ScrollableContainer, {
34
33
  children: /* @__PURE__ */ a(e.Body, {
35
34
  children: /* @__PURE__ */ a(h, {
36
- ...o.unsavedChangesModalBody
35
+ ...n.unsavedChangesModalBody
37
36
  })
38
37
  })
39
- }), /* @__PURE__ */ m(e.Footer, {
38
+ }), /* @__PURE__ */ C(e.Footer, {
40
39
  children: [/* @__PURE__ */ a(e.Footer.SecondaryButton, {
41
40
  onClick: u,
42
41
  size: "large",
43
- children: t.formatMessage(o.unsavedChangesModalDiscardChangesCTA)
42
+ children: t.formatMessage(n.unsavedChangesModalDiscardChangesCTA)
44
43
  }), /* @__PURE__ */ a(e.Footer.PrimaryButton, {
45
44
  onClick: l,
46
45
  size: "large",
47
- children: t.formatMessage(o.unsavedChangesModalContinueEditingCTA)
46
+ children: t.formatMessage(n.unsavedChangesModalContinueEditingCTA)
48
47
  })]
49
48
  }), /* @__PURE__ */ a(e.Close, {
50
- "aria-label": t.formatMessage(o.unsavedChangesModalCloseLabel)
49
+ "aria-label": t.formatMessage(n.unsavedChangesModalCloseLabel)
51
50
  })]
52
51
  })
53
52
  });
@@ -1,4 +1,4 @@
1
- import { d as e } from "../../chunks/index.js";
1
+ import { defineMessages as e } from "react-intl";
2
2
  const t = e({
3
3
  afterDateValidationError: {
4
4
  id: "groupSharedFeatures.metadataEditor.metadataEditorFields.afterDateValidationError",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@box/metadata-editor",
3
- "version": "0.92.2",
3
+ "version": "0.92.4",
4
4
  "peerDependencies": {
5
5
  "@ariakit/react": "0.4.15",
6
6
  "@box/blueprint-web": "^7.30.3",
@@ -53,5 +53,5 @@
53
53
  "**/*.css"
54
54
  ],
55
55
  "license": "SEE LICENSE IN LICENSE",
56
- "gitHead": "7de956c67ea07a5b143cd1aea2425f31322ba1e5"
56
+ "gitHead": "6eeb552c3e34fa8cdf67373914ee9b3dee87131f"
57
57
  }
@@ -28,7 +28,7 @@ export type MetadataInstanceFormWrapperProps<T> = {
28
28
  formValues: FormValues;
29
29
  isAiSuggestionsFeatureEnabled: boolean;
30
30
  isBetaLanguageEnabled: boolean;
31
- isLargeFile: boolean;
31
+ isLargeFile?: boolean;
32
32
  isDeleteButtonDisabled: boolean;
33
33
  isFetchingSuggestions: boolean;
34
34
  isFormDirty: boolean;