@box/metadata-editor 0.92.0 → 0.92.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 (43) hide show
  1. package/chunks/metadata-instance-form-card-wrapper.js +34 -32
  2. package/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form/metadata-instance-form.js +64 -62
  3. package/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-header/messages.js +3 -11
  4. package/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-header/metadata-instance-form-header.js +33 -42
  5. package/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-inline-notice/messages.js +22 -0
  6. package/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-inline-notice/metadata-instance-form-inline-notice.js +46 -0
  7. package/i18n/bn-IN.js +7 -3
  8. package/i18n/da-DK.js +7 -3
  9. package/i18n/de-DE.js +7 -3
  10. package/i18n/en-AU.js +7 -3
  11. package/i18n/en-CA.js +7 -3
  12. package/i18n/en-GB.js +7 -3
  13. package/i18n/en-US.js +4 -2
  14. package/i18n/en-US.properties +8 -4
  15. package/i18n/en-x-pseudo.js +7 -3
  16. package/i18n/es-419.js +7 -3
  17. package/i18n/es-ES.js +7 -3
  18. package/i18n/fi-FI.js +7 -3
  19. package/i18n/fr-CA.js +7 -3
  20. package/i18n/fr-FR.js +7 -3
  21. package/i18n/hi-IN.js +7 -3
  22. package/i18n/it-IT.js +7 -3
  23. package/i18n/ja-JP.js +7 -3
  24. package/i18n/json/src/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-header/messages.json +1 -1
  25. package/i18n/json/src/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-inline-notice/messages.json +1 -0
  26. package/i18n/ko-KR.js +7 -3
  27. package/i18n/nb-NO.js +7 -3
  28. package/i18n/nl-NL.js +7 -3
  29. package/i18n/pl-PL.js +7 -3
  30. package/i18n/pt-BR.js +7 -3
  31. package/i18n/ru-RU.js +7 -3
  32. package/i18n/sv-SE.js +7 -3
  33. package/i18n/tr-TR.js +7 -3
  34. package/i18n/zh-CN.js +7 -3
  35. package/i18n/zh-TW.js +7 -3
  36. package/package.json +2 -2
  37. package/styles/metadata-instance-form-inline-notice.css +1 -0
  38. package/types/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form/types.d.ts +2 -0
  39. package/types/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-header/messages.d.ts +0 -10
  40. package/types/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-header/metadata-instance-form-header.d.ts +1 -1
  41. package/types/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-header/types.d.ts +1 -0
  42. package/types/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-inline-notice/messages.d.ts +23 -0
  43. package/types/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-inline-notice/metadata-instance-form-inline-notice.d.ts +5 -0
@@ -1,56 +1,58 @@
1
- import C from "clsx";
2
- import { Card as S } from "@box/blueprint-web";
3
- import { TEMPLATE_CUSTOM_PROPERTIES as A } from "../esm/lib/constants.js";
4
- import { MetadataInstanceFormFooter as E } from "../esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-footer/metadata-instance-form-footer.js";
5
- import { MetadataInstanceFormHeader as M } from "../esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-header/metadata-instance-form-header.js";
6
- import { jsx as e, jsxs as b } from "react/jsx-runtime";
7
- import '../styles/metadata-instance-form-card-wrapper.css';const y = "_metadataInstanceForm_6uz9p_1", D = "_wrapperGradient_6uz9p_7", I = "_suggestionsFetching_6uz9p_12", N = "_metadataInstanceFormContent_6uz9p_18", s = {
8
- metadataInstanceForm: y,
9
- wrapperGradient: D,
10
- suggestionsFetching: I,
1
+ import S from "clsx";
2
+ import { Card as A } from "@box/blueprint-web";
3
+ import { TEMPLATE_CUSTOM_PROPERTIES as E } from "../esm/lib/constants.js";
4
+ import { MetadataInstanceFormFooter as M } from "../esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-footer/metadata-instance-form-footer.js";
5
+ import { MetadataInstanceFormHeader as b } from "../esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-header/metadata-instance-form-header.js";
6
+ import { jsx as e, jsxs as y } from "react/jsx-runtime";
7
+ import '../styles/metadata-instance-form-card-wrapper.css';const D = "_metadataInstanceForm_6uz9p_1", I = "_wrapperGradient_6uz9p_7", L = "_suggestionsFetching_6uz9p_12", N = "_metadataInstanceFormContent_6uz9p_18", s = {
8
+ metadataInstanceForm: D,
9
+ wrapperGradient: I,
10
+ suggestionsFetching: L,
11
11
  metadataInstanceFormContent: N
12
- }, R = (n) => {
12
+ }, j = (n) => {
13
13
  const {
14
14
  areAiSuggestionsAvailable: o,
15
15
  children: r,
16
16
  className: i,
17
- formRef: m,
18
- isAiSuggestionsFeatureEnabled: g,
17
+ formRef: g,
18
+ isAiSuggestionsFeatureEnabled: m,
19
19
  isBetaLanguageEnabled: d,
20
- isDeleteButtonDisabled: c,
21
- suggestions: u,
20
+ isLargeFile: c,
21
+ isDeleteButtonDisabled: u,
22
+ suggestions: p,
22
23
  isFetchingSuggestions: a,
23
- isFormDirty: p = !1,
24
+ isFormDirty: l = !1,
24
25
  selectedTemplateInstance: t,
25
- getAiSuggestions: l,
26
- handleCancel: F,
27
- handleDelete: _
28
- } = n, f = (t == null ? void 0 : t.templateKey) === A, h = !!u[t == null ? void 0 : t.templateKey];
26
+ getAiSuggestions: F,
27
+ handleCancel: _,
28
+ handleDelete: f
29
+ } = n, h = (t == null ? void 0 : t.templateKey) === E, C = !!p[t == null ? void 0 : t.templateKey];
29
30
  return /* @__PURE__ */ e("div", {
30
31
  className: a && s.wrapperGradient,
31
- children: /* @__PURE__ */ b(S, {
32
- ref: m,
33
- className: C(i, {
32
+ children: /* @__PURE__ */ y(A, {
33
+ ref: g,
34
+ className: S(i, {
34
35
  [s.suggestionsFetching]: a
35
36
  }),
36
- children: [/* @__PURE__ */ e(M, {
37
+ children: [/* @__PURE__ */ e(b, {
37
38
  areAiSuggestionsAvailable: o,
38
- hasSuggestions: h,
39
- isAiSuggestionsFeatureEnabled: g && !f,
39
+ hasSuggestions: C,
40
+ isAiSuggestionsFeatureEnabled: m && !h,
40
41
  isBetaLanguageEnabled: d,
42
+ isLargeFile: c,
41
43
  isLoading: a,
42
- onAutofill: l,
44
+ onAutofill: F,
43
45
  templateName: t == null ? void 0 : t.displayName
44
- }), t && r, /* @__PURE__ */ e(E, {
45
- isDeleteButtonDisabled: c,
46
+ }), t && r, /* @__PURE__ */ e(M, {
47
+ isDeleteButtonDisabled: u,
46
48
  isLoading: a,
47
- onCancel: () => F(p),
48
- onDelete: _
49
+ onCancel: () => _(l),
50
+ onDelete: f
49
51
  })]
50
52
  })
51
53
  });
52
54
  };
53
55
  export {
54
- R as M,
56
+ j as M,
55
57
  s
56
58
  };
@@ -1,113 +1,115 @@
1
- import { Formik as _, Form as $ } from "formik";
2
- import { useState as p, useEffect as C, useRef as w, useMemo as J } from "react";
3
- import { TEMPLATE_CUSTOM_PROPERTIES as q } from "../../../../constants.js";
4
- import { AutofillOverlay as z } from "../autofill-overlay/autofill-overlay.js";
5
- import { useAutofill as G } from "../../../../utils/autofill-context.js";
6
- import { TemplateInstance as H } from "../../../metadata-editor-fields/metadata-editor-fields.js";
7
- import { MetadataEmptyState as Q } from "../../../metadata-empty-state/metadata-empty-state.js";
8
- import { UnsavedChangesModal as X } from "../../../unsaved-changes-modal/unsaved-changes-modal.js";
9
- import { CustomInstance as Y } from "../custom-instance/custom-instance.js";
10
- import { DeleteConfirmationModal as Z } from "../delete-confirmation-modal/delete-confirmation-modal.js";
11
- import { c as I } from "../../../../../../chunks/utils.js";
12
- import { s as h, M as T } from "../../../../../../chunks/metadata-instance-form-card-wrapper.js";
1
+ import { Formik as $, Form as w } from "formik";
2
+ import { useState as p, useEffect as C, useRef as J, useMemo as q } from "react";
3
+ import { TEMPLATE_CUSTOM_PROPERTIES as z } from "../../../../constants.js";
4
+ import { AutofillOverlay as G } from "../autofill-overlay/autofill-overlay.js";
5
+ import { useAutofill as H } from "../../../../utils/autofill-context.js";
6
+ import { TemplateInstance as Q } from "../../../metadata-editor-fields/metadata-editor-fields.js";
7
+ import { MetadataEmptyState as X } from "../../../metadata-empty-state/metadata-empty-state.js";
8
+ import { UnsavedChangesModal as Y } from "../../../unsaved-changes-modal/unsaved-changes-modal.js";
9
+ import { CustomInstance as Z } from "../custom-instance/custom-instance.js";
10
+ import { DeleteConfirmationModal as I } from "../delete-confirmation-modal/delete-confirmation-modal.js";
11
+ import { c as T } from "../../../../../../chunks/utils.js";
12
+ import { s as h, M as oo } from "../../../../../../chunks/metadata-instance-form-card-wrapper.js";
13
13
  import { jsx as r, jsxs as c } from "react/jsx-runtime";
14
- const po = (M) => {
14
+ const Co = (F) => {
15
15
  const {
16
- areAiSuggestionsAvailable: E,
16
+ areAiSuggestionsAvailable: M,
17
17
  customRef: i,
18
- errorCode: F,
18
+ isLargeFile: E,
19
+ errorCode: S,
19
20
  isAiSuggestionsFeatureEnabled: n,
20
- isBetaLanguageEnabled: S,
21
- isDeleteButtonDisabled: y,
22
- isUnsavedChangesModalOpen: D = !1,
23
- MetadataInstanceFormCustomWrapper: b,
21
+ isBetaLanguageEnabled: y,
22
+ isDeleteButtonDisabled: D,
23
+ isUnsavedChangesModalOpen: b = !1,
24
+ MetadataInstanceFormCustomWrapper: O,
24
25
  selectedTemplateInstance: o,
25
- onCancel: O,
26
- onDelete: A,
27
- onDiscardUnsavedChanges: v,
26
+ onCancel: A,
27
+ onDelete: v,
28
+ onDiscardUnsavedChanges: L,
28
29
  onSubmit: x,
29
30
  setIsUnsavedChangesModalOpen: s,
30
31
  taxonomyOptionsFetcher: e
31
- } = M, L = b ?? T, [N, m] = p(!1), {
32
+ } = F, N = O ?? oo, [P, m] = p(!1), {
32
33
  isFetchingSuggestions: a,
33
34
  isLongLoading: l,
34
- getAiSuggestions: P,
35
+ getAiSuggestions: R,
35
36
  clearSuggestions: u,
36
- suggestions: R
37
- } = G();
37
+ suggestions: U
38
+ } = H();
38
39
  C(() => () => {
39
40
  u();
40
41
  }, [u]);
41
- const f = (o == null ? void 0 : o.templateKey) === q, U = async (t) => {
42
- await x(t, I(t, o));
43
- }, B = (t) => {
44
- t ? s(!0) : O();
45
- }, K = () => {
42
+ const f = (o == null ? void 0 : o.templateKey) === z, B = async (t) => {
43
+ await x(t, T(t, o));
44
+ }, K = (t) => {
45
+ t ? s(!0) : A();
46
+ }, W = () => {
46
47
  m(!0);
47
- }, W = {
48
+ }, j = {
48
49
  metadata: {
49
50
  ...o
50
51
  }
51
- }, g = w(null), [d, j] = p(null);
52
+ }, g = J(null), [d, k] = p(null);
52
53
  C(() => {
53
- j(i ?? g.current);
54
+ k(i ?? g.current);
54
55
  }, [i, o == null ? void 0 : o.templateKey, o == null ? void 0 : o.scope]);
55
- const k = J(() => {
56
+ const V = q(() => {
56
57
  const t = (o == null ? void 0 : o.fields.length) === 0;
57
- return f ? /* @__PURE__ */ r(Y, {
58
+ return f ? /* @__PURE__ */ r(Z, {
58
59
  isLoading: a
59
- }) : t ? /* @__PURE__ */ r(Q, {
60
+ }) : t ? /* @__PURE__ */ r(X, {
60
61
  isBoxAiSuggestionsFeatureEnabled: n,
61
62
  level: "instance"
62
63
  }) : /* @__PURE__ */ c("div", {
63
64
  className: h.metadataInstanceFormContent,
64
- children: [/* @__PURE__ */ r(z, {
65
- errorCode: F,
65
+ children: [/* @__PURE__ */ r(G, {
66
+ errorCode: S,
66
67
  isFetchingSuggestions: a,
67
68
  isLongLoading: l
68
- }), /* @__PURE__ */ r(H, {
69
+ }), /* @__PURE__ */ r(Q, {
69
70
  disableForm: a,
70
71
  portalElement: i ?? d,
71
72
  taxonomyOptionsFetcher: e
72
73
  })]
73
74
  });
74
75
  }, [o == null ? void 0 : o.fields.length, f, a, l, i, d, e, n]);
75
- return /* @__PURE__ */ r(_, {
76
- initialValues: W,
77
- onSubmit: U,
76
+ return /* @__PURE__ */ r($, {
77
+ initialValues: j,
78
+ onSubmit: B,
78
79
  children: ({
79
80
  values: t,
80
- dirty: V
81
- }) => /* @__PURE__ */ c($, {
82
- children: [/* @__PURE__ */ r(L, {
83
- areAiSuggestionsAvailable: E,
81
+ dirty: _
82
+ }) => /* @__PURE__ */ c(w, {
83
+ children: [/* @__PURE__ */ r(N, {
84
+ areAiSuggestionsAvailable: M,
84
85
  className: h.metadataInstanceForm,
85
86
  formRef: g,
86
87
  formValues: t,
87
- getAiSuggestions: P,
88
- handleCancel: B,
89
- handleDelete: K,
88
+ getAiSuggestions: R,
89
+ handleCancel: K,
90
+ handleDelete: W,
90
91
  isAiSuggestionsFeatureEnabled: n,
91
- isBetaLanguageEnabled: S,
92
- isDeleteButtonDisabled: y,
92
+ isBetaLanguageEnabled: y,
93
+ isDeleteButtonDisabled: D,
93
94
  isFetchingSuggestions: a,
94
- isFormDirty: V,
95
+ isFormDirty: _,
96
+ isLargeFile: E,
95
97
  selectedTemplateInstance: o,
96
- suggestions: R,
97
- children: o && k
98
- }), /* @__PURE__ */ r(X, {
98
+ suggestions: U,
99
+ children: o && V
100
+ }), /* @__PURE__ */ r(Y, {
99
101
  onBackToEdit: () => s(!1),
100
- onDiscardChanges: v,
101
- open: D
102
- }), /* @__PURE__ */ r(Z, {
103
- onConfirm: () => A(o),
102
+ onDiscardChanges: L,
103
+ open: b
104
+ }), /* @__PURE__ */ r(I, {
105
+ onConfirm: () => v(o),
104
106
  onDismiss: () => m(!1),
105
- open: N,
107
+ open: P,
106
108
  templateName: o == null ? void 0 : o.displayName
107
109
  })]
108
110
  })
109
111
  }, `${o == null ? void 0 : o.scope}.${o == null ? void 0 : o.templateKey}`);
110
112
  };
111
113
  export {
112
- po as MetadataInstanceForm
114
+ Co as MetadataInstanceForm
113
115
  };
@@ -1,18 +1,10 @@
1
- import { d as e } from "../../../../../../chunks/index.js";
2
- const t = e({
1
+ import { d as a } from "../../../../../../chunks/index.js";
2
+ const e = a({
3
3
  customInstanceTitle: {
4
4
  id: "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.customInstanceTitle",
5
5
  defaultMessage: "Custom Metadata"
6
- },
7
- aiSuggestionNoticeHeader: {
8
- id: "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.aiSuggestionNoticeHeader",
9
- defaultMessage: "AI Autofill is in Beta"
10
- },
11
- aiSuggestionNoticeBody: {
12
- id: "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.aiSuggestionNoticeBody",
13
- defaultMessage: "Please check responses before saving."
14
6
  }
15
7
  });
16
8
  export {
17
- t as default
9
+ e as default
18
10
  };
@@ -1,50 +1,41 @@
1
- import { u as p } from "../../../../../../chunks/index.js";
2
- import { InlineNotice as g, Text as s } from "@box/blueprint-web";
3
- import h from "../../../interactive-header-text/interactive-header-text.js";
4
- import { MetadataInstanceFormAutofillButton as H } from "../metadata-instance-form-autofill-button/metadata-instance-form-autofill-button.js";
5
- import e from "./messages.js";
6
- import { jsxs as a, Fragment as x, jsx as o } from "react/jsx-runtime";
7
- import '../../../../../../styles/metadata-instance-form-header.css';const F = "_metadataInstanceFormHeader_13lxr_1", N = "_title_13lxr_9", i = {
8
- metadataInstanceFormHeader: F,
1
+ import { u as F } from "../../../../../../chunks/index.js";
2
+ import p from "../../../interactive-header-text/interactive-header-text.js";
3
+ import { MetadataInstanceFormAutofillButton as x } from "../metadata-instance-form-autofill-button/metadata-instance-form-autofill-button.js";
4
+ import H from "./messages.js";
5
+ import { MetadataInstanceFormInlineNotice as _ } from "../metadata-instance-form-inline-notice/metadata-instance-form-inline-notice.js";
6
+ import { jsxs as r, Fragment as u, jsx as t } from "react/jsx-runtime";
7
+ import '../../../../../../styles/metadata-instance-form-header.css';const M = "_metadataInstanceFormHeader_13lxr_1", N = "_title_13lxr_9", o = {
8
+ metadataInstanceFormHeader: M,
9
9
  title: N
10
- }, j = ({
11
- areAiSuggestionsAvailable: r,
12
- hasSuggestions: m,
13
- isAiSuggestionsFeatureEnabled: c,
14
- isBetaLanguageEnabled: n,
15
- isLoading: l,
16
- templateName: d,
17
- onAutofill: f
10
+ }, k = ({
11
+ areAiSuggestionsAvailable: e,
12
+ hasSuggestions: n,
13
+ isAiSuggestionsFeatureEnabled: m,
14
+ isBetaLanguageEnabled: a,
15
+ isLargeFile: s,
16
+ isLoading: c,
17
+ templateName: i,
18
+ onAutofill: l
18
19
  }) => {
19
- const t = p(), I = d ?? t.formatMessage(e.customInstanceTitle), u = m && r && n;
20
- return /* @__PURE__ */ a(x, {
21
- children: [/* @__PURE__ */ a("div", {
22
- className: i.metadataInstanceFormHeader,
23
- children: [/* @__PURE__ */ o(h, {
24
- className: i.title,
20
+ const d = F(), I = i ?? d.formatMessage(H.customInstanceTitle), f = n && e;
21
+ return /* @__PURE__ */ r(u, {
22
+ children: [/* @__PURE__ */ r("div", {
23
+ className: o.metadataInstanceFormHeader,
24
+ children: [/* @__PURE__ */ t(p, {
25
+ className: o.title,
25
26
  title: I
26
- }), c ? /* @__PURE__ */ o(H, {
27
- areAiSuggestionsAvailable: r,
28
- isBetaLanguageEnabled: n,
29
- isLoading: l,
30
- onAutofill: f
27
+ }), m ? /* @__PURE__ */ t(x, {
28
+ areAiSuggestionsAvailable: e,
29
+ isBetaLanguageEnabled: a,
30
+ isLoading: c,
31
+ onAutofill: l
31
32
  }) : null]
32
- }), u ? /* @__PURE__ */ o("div", {
33
- children: /* @__PURE__ */ a(g, {
34
- variant: "info",
35
- variantIconAriaLabel: t.formatMessage(e.aiSuggestionNoticeHeader),
36
- children: [/* @__PURE__ */ o(s, {
37
- as: "p",
38
- variant: "bodyDefaultBold",
39
- children: t.formatMessage(e.aiSuggestionNoticeHeader)
40
- }), /* @__PURE__ */ a(s, {
41
- as: "p",
42
- children: [t.formatMessage(e.aiSuggestionNoticeBody), " "]
43
- })]
44
- })
45
- }) : null]
33
+ }), f && /* @__PURE__ */ t(_, {
34
+ isBetaLanguageEnabled: a,
35
+ isLargeFile: s
36
+ })]
46
37
  });
47
38
  };
48
39
  export {
49
- j as MetadataInstanceFormHeader
40
+ k as MetadataInstanceFormHeader
50
41
  };
@@ -0,0 +1,22 @@
1
+ import { d as e } from "../../../../../../chunks/index.js";
2
+ const t = e({
3
+ autofillInBetaNoticeHeader: {
4
+ id: "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.autofillInBetaNoticeHeader",
5
+ defaultMessage: "AI Autofill is in Beta"
6
+ },
7
+ autofillInBetaNoticeBody: {
8
+ id: "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.autofillInBetaNoticeBody",
9
+ defaultMessage: "Please check responses before saving."
10
+ },
11
+ largeFileNoticeHeader: {
12
+ id: "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.largeFileNoticeHeader",
13
+ defaultMessage: "Text content is too large"
14
+ },
15
+ largeFileNoticeBody: {
16
+ id: "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.largeFileNoticeBody",
17
+ defaultMessage: "Box AI won’t be able to access the full text, which may impact metadata values"
18
+ }
19
+ });
20
+ export {
21
+ t as default
22
+ };
@@ -0,0 +1,46 @@
1
+ import { u as c } from "../../../../../../chunks/index.js";
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";
5
+ import '../../../../../../styles/metadata-instance-form-inline-notice.css';const m = "_inlineNotice_j1wao_1", s = {
6
+ inlineNotice: m
7
+ }, p = ({
8
+ isLargeFile: o,
9
+ isBetaLanguageEnabled: r
10
+ }) => {
11
+ const e = c();
12
+ return !r && !o ? null : /* @__PURE__ */ i(d, {
13
+ children: [o && /* @__PURE__ */ n("div", {
14
+ className: s.inlineNotice,
15
+ children: /* @__PURE__ */ i(l, {
16
+ variant: "warning",
17
+ variantIconAriaLabel: e.formatMessage(a.largeFileNoticeHeader),
18
+ children: [/* @__PURE__ */ n(t, {
19
+ as: "p",
20
+ variant: "bodyDefaultBold",
21
+ children: e.formatMessage(a.largeFileNoticeHeader)
22
+ }), /* @__PURE__ */ i(t, {
23
+ as: "p",
24
+ children: [e.formatMessage(a.largeFileNoticeBody), " "]
25
+ })]
26
+ })
27
+ }), r && /* @__PURE__ */ n("div", {
28
+ className: s.inlineNotice,
29
+ children: /* @__PURE__ */ i(l, {
30
+ variant: "info",
31
+ variantIconAriaLabel: e.formatMessage(a.autofillInBetaNoticeHeader),
32
+ children: [/* @__PURE__ */ n(t, {
33
+ as: "p",
34
+ variant: "bodyDefaultBold",
35
+ children: e.formatMessage(a.autofillInBetaNoticeHeader)
36
+ }), /* @__PURE__ */ i(t, {
37
+ as: "p",
38
+ children: [e.formatMessage(a.autofillInBetaNoticeBody), " "]
39
+ })]
40
+ })
41
+ })]
42
+ });
43
+ };
44
+ export {
45
+ p as MetadataInstanceFormInlineNotice
46
+ };
package/i18n/bn-IN.js CHANGED
@@ -94,13 +94,15 @@ export default {
94
94
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormFooter.deleteButton": "মুছুন",
95
95
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormFooter.loadingAriaLabel": "লোড করা হচ্ছে...",
96
96
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormFooter.saveButton": "সেভ করুন",
97
- "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.aiSuggestionNoticeBody": "জবাবগুলো সেভ করার আগে অনুগ্রহ করে চেক করুন।",
98
- "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.aiSuggestionNoticeHeader": "AI অটোফিল বিটাতে রয়েছে",
99
97
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.autofillButton": "অটোফিল",
100
98
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.autofillButtonAriaLabel": "Box AI দিয়ে অটোফিল করুন",
101
99
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.autofillButtonTooltip": "Box AI দিয়ে অটোফিল করুন (বিটা)",
102
100
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.autofillButtonTooltipGA": "Autofill with Box AI",
101
+ "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.autofillInBetaNoticeBody": "Please check responses before saving.",
102
+ "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.autofillInBetaNoticeHeader": "AI Autofill is in Beta",
103
103
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.customInstanceTitle": "কাস্টম মেটাডেটা",
104
+ "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.largeFileNoticeBody": "Box AI won’t be able to access the full text, which may impact metadata values",
105
+ "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.largeFileNoticeHeader": "Text content is too large",
104
106
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.loadingButtonAriaLabel": "লোড করা হচ্ছে...",
105
107
  "metadataEditor.unsavedChangesModal.body": "মেটাডেটা টেমপ্লেট(গুলো) পরিবর্তন আনসেভ করেছে। আপনি কীভাবে এগিয়ে যেতে চান?",
106
108
  "metadataEditor.unsavedChangesModal.closeLabel": "বন্ধ করুন",
@@ -119,5 +121,7 @@ export default {
119
121
  "taxonomyAncestorStatusPill.errorAction": "রিলোড করুন",
120
122
  "taxonomyAncestorStatusPill.errorIconLabel": "ত্রুটি",
121
123
  "taxonomyAncestorStatusPill.errorMessage": "বিশদ লোড করা যায়নি",
122
- "taxonomyAncestorStatusPill.loadingAriaLabel": "লোড করা হচ্ছে..."
124
+ "taxonomyAncestorStatusPill.loadingAriaLabel": "লোড করা হচ্ছে...",
125
+ "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.aiSuggestionNoticeBody": "জবাবগুলো সেভ করার আগে অনুগ্রহ করে চেক করুন।",
126
+ "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.aiSuggestionNoticeHeader": "AI অটোফিল বিটাতে রয়েছে"
123
127
  }
package/i18n/da-DK.js CHANGED
@@ -94,13 +94,15 @@ export default {
94
94
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormFooter.deleteButton": "Slet",
95
95
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormFooter.loadingAriaLabel": "Indlæser...",
96
96
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormFooter.saveButton": "Gem",
97
- "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.aiSuggestionNoticeBody": "Tjek svarene før du gemmer.",
98
- "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.aiSuggestionNoticeHeader": "AI Autofill er i Beta",
99
97
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.autofillButton": "Automatisk udfyldning",
100
98
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.autofillButtonAriaLabel": "Automatisk udfyldning med Box AI",
101
99
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.autofillButtonTooltip": "Autofyld med Box AI (beta)",
102
100
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.autofillButtonTooltipGA": "Autofill with Box AI",
101
+ "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.autofillInBetaNoticeBody": "Please check responses before saving.",
102
+ "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.autofillInBetaNoticeHeader": "AI Autofill is in Beta",
103
103
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.customInstanceTitle": "Brugerdefineret metadata",
104
+ "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.largeFileNoticeBody": "Box AI won’t be able to access the full text, which may impact metadata values",
105
+ "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.largeFileNoticeHeader": "Text content is too large",
104
106
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.loadingButtonAriaLabel": "Indlæser...",
105
107
  "metadataEditor.unsavedChangesModal.body": "Metadataskabelon(er) har ikke-gemte ændringer. Hvordan vil du gerne fortsætte?",
106
108
  "metadataEditor.unsavedChangesModal.closeLabel": "Luk",
@@ -119,5 +121,7 @@ export default {
119
121
  "taxonomyAncestorStatusPill.errorAction": "Genindlæs",
120
122
  "taxonomyAncestorStatusPill.errorIconLabel": "Fejl",
121
123
  "taxonomyAncestorStatusPill.errorMessage": "Kunne ikke indlæse detaljer",
122
- "taxonomyAncestorStatusPill.loadingAriaLabel": "Indlæser..."
124
+ "taxonomyAncestorStatusPill.loadingAriaLabel": "Indlæser...",
125
+ "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.aiSuggestionNoticeBody": "Tjek svarene før du gemmer.",
126
+ "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.aiSuggestionNoticeHeader": "AI Autofill er i Beta"
123
127
  }
package/i18n/de-DE.js CHANGED
@@ -94,13 +94,15 @@ export default {
94
94
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormFooter.deleteButton": "Löschen",
95
95
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormFooter.loadingAriaLabel": "Laden…",
96
96
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormFooter.saveButton": "Speichern",
97
- "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.aiSuggestionNoticeBody": "Bitte überprüfen Sie die Antworten vor dem Speichern.",
98
- "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.aiSuggestionNoticeHeader": "AI Autofill befindet sich in der Beta-Version",
99
97
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.autofillButton": "Automatisch ausfüllen",
100
98
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.autofillButtonAriaLabel": "Mit Box AI automatisch ausfüllen",
101
99
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.autofillButtonTooltip": "Autovervollständigen mit Box AI (Beta)",
102
100
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.autofillButtonTooltipGA": "Autofill with Box AI",
101
+ "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.autofillInBetaNoticeBody": "Please check responses before saving.",
102
+ "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.autofillInBetaNoticeHeader": "AI Autofill is in Beta",
103
103
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.customInstanceTitle": "Benutzerdefinierte Metadaten",
104
+ "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.largeFileNoticeBody": "Box AI won’t be able to access the full text, which may impact metadata values",
105
+ "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.largeFileNoticeHeader": "Text content is too large",
104
106
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.loadingButtonAriaLabel": "Laden…",
105
107
  "metadataEditor.unsavedChangesModal.body": "Metadaten-Vorlage(n) enthält/enthalten nicht gespeicherte Änderungen. Wie möchten Sie fortfahren?",
106
108
  "metadataEditor.unsavedChangesModal.closeLabel": "Schließen",
@@ -119,5 +121,7 @@ export default {
119
121
  "taxonomyAncestorStatusPill.errorAction": "Neu laden",
120
122
  "taxonomyAncestorStatusPill.errorIconLabel": "Fehler",
121
123
  "taxonomyAncestorStatusPill.errorMessage": "Details konnten nicht geladen werden",
122
- "taxonomyAncestorStatusPill.loadingAriaLabel": "Laden …"
124
+ "taxonomyAncestorStatusPill.loadingAriaLabel": "Laden …",
125
+ "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.aiSuggestionNoticeBody": "Bitte überprüfen Sie die Antworten vor dem Speichern.",
126
+ "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.aiSuggestionNoticeHeader": "AI Autofill befindet sich in der Beta-Version"
123
127
  }
package/i18n/en-AU.js CHANGED
@@ -94,13 +94,15 @@ export default {
94
94
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormFooter.deleteButton": "Delete",
95
95
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormFooter.loadingAriaLabel": "Loading...",
96
96
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormFooter.saveButton": "Save",
97
- "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.aiSuggestionNoticeBody": "Please check responses before saving.",
98
- "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.aiSuggestionNoticeHeader": "AI Autofill is in Beta",
99
97
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.autofillButton": "Autofill",
100
98
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.autofillButtonAriaLabel": "Autofill with Box AI",
101
99
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.autofillButtonTooltip": "Autofill with Box AI (Beta)",
102
100
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.autofillButtonTooltipGA": "Autofill with Box AI",
101
+ "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.autofillInBetaNoticeBody": "Please check responses before saving.",
102
+ "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.autofillInBetaNoticeHeader": "AI Autofill is in Beta",
103
103
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.customInstanceTitle": "Custom Metadata",
104
+ "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.largeFileNoticeBody": "Box AI won’t be able to access the full text, which may impact metadata values",
105
+ "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.largeFileNoticeHeader": "Text content is too large",
104
106
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.loadingButtonAriaLabel": "Loading...",
105
107
  "metadataEditor.unsavedChangesModal.body": "Metadata template(s) have unsaved changes. How would you like to proceed?",
106
108
  "metadataEditor.unsavedChangesModal.closeLabel": "Close",
@@ -119,5 +121,7 @@ export default {
119
121
  "taxonomyAncestorStatusPill.errorAction": "Reload",
120
122
  "taxonomyAncestorStatusPill.errorIconLabel": "Error",
121
123
  "taxonomyAncestorStatusPill.errorMessage": "Failed to load details",
122
- "taxonomyAncestorStatusPill.loadingAriaLabel": "Loading..."
124
+ "taxonomyAncestorStatusPill.loadingAriaLabel": "Loading...",
125
+ "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.aiSuggestionNoticeBody": "Please check responses before saving.",
126
+ "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.aiSuggestionNoticeHeader": "AI Autofill is in Beta"
123
127
  }
package/i18n/en-CA.js CHANGED
@@ -94,13 +94,15 @@ export default {
94
94
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormFooter.deleteButton": "Delete",
95
95
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormFooter.loadingAriaLabel": "Loading...",
96
96
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormFooter.saveButton": "Save",
97
- "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.aiSuggestionNoticeBody": "Please check responses before saving.",
98
- "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.aiSuggestionNoticeHeader": "AI Autofill is in Beta",
99
97
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.autofillButton": "Autofill",
100
98
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.autofillButtonAriaLabel": "Autofill with Box AI",
101
99
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.autofillButtonTooltip": "Autofill with Box AI (Beta)",
102
100
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.autofillButtonTooltipGA": "Autofill with Box AI",
101
+ "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.autofillInBetaNoticeBody": "Please check responses before saving.",
102
+ "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.autofillInBetaNoticeHeader": "AI Autofill is in Beta",
103
103
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.customInstanceTitle": "Custom Metadata",
104
+ "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.largeFileNoticeBody": "Box AI won’t be able to access the full text, which may impact metadata values",
105
+ "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.largeFileNoticeHeader": "Text content is too large",
104
106
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.loadingButtonAriaLabel": "Loading...",
105
107
  "metadataEditor.unsavedChangesModal.body": "Metadata template(s) have unsaved changes. How would you like to proceed?",
106
108
  "metadataEditor.unsavedChangesModal.closeLabel": "Close",
@@ -119,5 +121,7 @@ export default {
119
121
  "taxonomyAncestorStatusPill.errorAction": "Reload",
120
122
  "taxonomyAncestorStatusPill.errorIconLabel": "Error",
121
123
  "taxonomyAncestorStatusPill.errorMessage": "Failed to load details",
122
- "taxonomyAncestorStatusPill.loadingAriaLabel": "Loading..."
124
+ "taxonomyAncestorStatusPill.loadingAriaLabel": "Loading...",
125
+ "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.aiSuggestionNoticeBody": "Please check responses before saving.",
126
+ "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.aiSuggestionNoticeHeader": "AI Autofill is in Beta"
123
127
  }
package/i18n/en-GB.js CHANGED
@@ -94,13 +94,15 @@ export default {
94
94
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormFooter.deleteButton": "Delete",
95
95
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormFooter.loadingAriaLabel": "Loading...",
96
96
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormFooter.saveButton": "Save",
97
- "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.aiSuggestionNoticeBody": "Please check responses before saving.",
98
- "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.aiSuggestionNoticeHeader": "AI Autofill is in Beta",
99
97
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.autofillButton": "Autofill",
100
98
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.autofillButtonAriaLabel": "Autofill with Box AI",
101
99
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.autofillButtonTooltip": "Autofill with Box AI (Beta)",
102
100
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.autofillButtonTooltipGA": "Autofill with Box AI",
101
+ "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.autofillInBetaNoticeBody": "Please check responses before saving.",
102
+ "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.autofillInBetaNoticeHeader": "AI Autofill is in Beta",
103
103
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.customInstanceTitle": "Custom Metadata",
104
+ "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.largeFileNoticeBody": "Box AI won’t be able to access the full text, which may impact metadata values",
105
+ "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.largeFileNoticeHeader": "Text content is too large",
104
106
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.loadingButtonAriaLabel": "Loading...",
105
107
  "metadataEditor.unsavedChangesModal.body": "Metadata template(s) have unsaved changes. How would you like to proceed?",
106
108
  "metadataEditor.unsavedChangesModal.closeLabel": "Close",
@@ -119,5 +121,7 @@ export default {
119
121
  "taxonomyAncestorStatusPill.errorAction": "Reload",
120
122
  "taxonomyAncestorStatusPill.errorIconLabel": "Error",
121
123
  "taxonomyAncestorStatusPill.errorMessage": "Failed to load details",
122
- "taxonomyAncestorStatusPill.loadingAriaLabel": "Loading..."
124
+ "taxonomyAncestorStatusPill.loadingAriaLabel": "Loading...",
125
+ "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.aiSuggestionNoticeBody": "Please check responses before saving.",
126
+ "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.aiSuggestionNoticeHeader": "AI Autofill is in Beta"
123
127
  }