@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.
- package/chunks/metadata-instance-form-card-wrapper.js +34 -32
- package/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form/metadata-instance-form.js +64 -62
- package/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-header/messages.js +3 -11
- package/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-header/metadata-instance-form-header.js +33 -42
- package/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-inline-notice/messages.js +22 -0
- package/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-inline-notice/metadata-instance-form-inline-notice.js +46 -0
- package/i18n/bn-IN.js +7 -3
- package/i18n/da-DK.js +7 -3
- package/i18n/de-DE.js +7 -3
- package/i18n/en-AU.js +7 -3
- package/i18n/en-CA.js +7 -3
- package/i18n/en-GB.js +7 -3
- package/i18n/en-US.js +4 -2
- package/i18n/en-US.properties +8 -4
- package/i18n/en-x-pseudo.js +7 -3
- package/i18n/es-419.js +7 -3
- package/i18n/es-ES.js +7 -3
- package/i18n/fi-FI.js +7 -3
- package/i18n/fr-CA.js +7 -3
- package/i18n/fr-FR.js +7 -3
- package/i18n/hi-IN.js +7 -3
- package/i18n/it-IT.js +7 -3
- package/i18n/ja-JP.js +7 -3
- package/i18n/json/src/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-header/messages.json +1 -1
- package/i18n/json/src/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-inline-notice/messages.json +1 -0
- package/i18n/ko-KR.js +7 -3
- package/i18n/nb-NO.js +7 -3
- package/i18n/nl-NL.js +7 -3
- package/i18n/pl-PL.js +7 -3
- package/i18n/pt-BR.js +7 -3
- package/i18n/ru-RU.js +7 -3
- package/i18n/sv-SE.js +7 -3
- package/i18n/tr-TR.js +7 -3
- package/i18n/zh-CN.js +7 -3
- package/i18n/zh-TW.js +7 -3
- package/package.json +2 -2
- package/styles/metadata-instance-form-inline-notice.css +1 -0
- package/types/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form/types.d.ts +2 -0
- package/types/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-header/messages.d.ts +0 -10
- package/types/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-header/metadata-instance-form-header.d.ts +1 -1
- package/types/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-header/types.d.ts +1 -0
- package/types/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-inline-notice/messages.d.ts +23 -0
- 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
|
2
|
-
import { Card as
|
3
|
-
import { TEMPLATE_CUSTOM_PROPERTIES as
|
4
|
-
import { MetadataInstanceFormFooter as
|
5
|
-
import { MetadataInstanceFormHeader as
|
6
|
-
import { jsx as e, jsxs as
|
7
|
-
import '../styles/metadata-instance-form-card-wrapper.css';const
|
8
|
-
metadataInstanceForm:
|
9
|
-
wrapperGradient:
|
10
|
-
suggestionsFetching:
|
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
|
-
},
|
12
|
+
}, j = (n) => {
|
13
13
|
const {
|
14
14
|
areAiSuggestionsAvailable: o,
|
15
15
|
children: r,
|
16
16
|
className: i,
|
17
|
-
formRef:
|
18
|
-
isAiSuggestionsFeatureEnabled:
|
17
|
+
formRef: g,
|
18
|
+
isAiSuggestionsFeatureEnabled: m,
|
19
19
|
isBetaLanguageEnabled: d,
|
20
|
-
|
21
|
-
|
20
|
+
isLargeFile: c,
|
21
|
+
isDeleteButtonDisabled: u,
|
22
|
+
suggestions: p,
|
22
23
|
isFetchingSuggestions: a,
|
23
|
-
isFormDirty:
|
24
|
+
isFormDirty: l = !1,
|
24
25
|
selectedTemplateInstance: t,
|
25
|
-
getAiSuggestions:
|
26
|
-
handleCancel:
|
27
|
-
handleDelete:
|
28
|
-
} = n,
|
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__ */
|
32
|
-
ref:
|
33
|
-
className:
|
32
|
+
children: /* @__PURE__ */ y(A, {
|
33
|
+
ref: g,
|
34
|
+
className: S(i, {
|
34
35
|
[s.suggestionsFetching]: a
|
35
36
|
}),
|
36
|
-
children: [/* @__PURE__ */ e(
|
37
|
+
children: [/* @__PURE__ */ e(b, {
|
37
38
|
areAiSuggestionsAvailable: o,
|
38
|
-
hasSuggestions:
|
39
|
-
isAiSuggestionsFeatureEnabled:
|
39
|
+
hasSuggestions: C,
|
40
|
+
isAiSuggestionsFeatureEnabled: m && !h,
|
40
41
|
isBetaLanguageEnabled: d,
|
42
|
+
isLargeFile: c,
|
41
43
|
isLoading: a,
|
42
|
-
onAutofill:
|
44
|
+
onAutofill: F,
|
43
45
|
templateName: t == null ? void 0 : t.displayName
|
44
|
-
}), t && r, /* @__PURE__ */ e(
|
45
|
-
isDeleteButtonDisabled:
|
46
|
+
}), t && r, /* @__PURE__ */ e(M, {
|
47
|
+
isDeleteButtonDisabled: u,
|
46
48
|
isLoading: a,
|
47
|
-
onCancel: () =>
|
48
|
-
onDelete:
|
49
|
+
onCancel: () => _(l),
|
50
|
+
onDelete: f
|
49
51
|
})]
|
50
52
|
})
|
51
53
|
});
|
52
54
|
};
|
53
55
|
export {
|
54
|
-
|
56
|
+
j as M,
|
55
57
|
s
|
56
58
|
};
|
@@ -1,113 +1,115 @@
|
|
1
|
-
import { Formik as
|
2
|
-
import { useState as p, useEffect as C, useRef as
|
3
|
-
import { TEMPLATE_CUSTOM_PROPERTIES as
|
4
|
-
import { AutofillOverlay as
|
5
|
-
import { useAutofill as
|
6
|
-
import { TemplateInstance as
|
7
|
-
import { MetadataEmptyState as
|
8
|
-
import { UnsavedChangesModal as
|
9
|
-
import { CustomInstance as
|
10
|
-
import { DeleteConfirmationModal as
|
11
|
-
import { c as
|
12
|
-
import { s as h, M as
|
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
|
14
|
+
const Co = (F) => {
|
15
15
|
const {
|
16
|
-
areAiSuggestionsAvailable:
|
16
|
+
areAiSuggestionsAvailable: M,
|
17
17
|
customRef: i,
|
18
|
-
|
18
|
+
isLargeFile: E,
|
19
|
+
errorCode: S,
|
19
20
|
isAiSuggestionsFeatureEnabled: n,
|
20
|
-
isBetaLanguageEnabled:
|
21
|
-
isDeleteButtonDisabled:
|
22
|
-
isUnsavedChangesModalOpen:
|
23
|
-
MetadataInstanceFormCustomWrapper:
|
21
|
+
isBetaLanguageEnabled: y,
|
22
|
+
isDeleteButtonDisabled: D,
|
23
|
+
isUnsavedChangesModalOpen: b = !1,
|
24
|
+
MetadataInstanceFormCustomWrapper: O,
|
24
25
|
selectedTemplateInstance: o,
|
25
|
-
onCancel:
|
26
|
-
onDelete:
|
27
|
-
onDiscardUnsavedChanges:
|
26
|
+
onCancel: A,
|
27
|
+
onDelete: v,
|
28
|
+
onDiscardUnsavedChanges: L,
|
28
29
|
onSubmit: x,
|
29
30
|
setIsUnsavedChangesModalOpen: s,
|
30
31
|
taxonomyOptionsFetcher: e
|
31
|
-
} =
|
32
|
+
} = F, N = O ?? oo, [P, m] = p(!1), {
|
32
33
|
isFetchingSuggestions: a,
|
33
34
|
isLongLoading: l,
|
34
|
-
getAiSuggestions:
|
35
|
+
getAiSuggestions: R,
|
35
36
|
clearSuggestions: u,
|
36
|
-
suggestions:
|
37
|
-
} =
|
37
|
+
suggestions: U
|
38
|
+
} = H();
|
38
39
|
C(() => () => {
|
39
40
|
u();
|
40
41
|
}, [u]);
|
41
|
-
const f = (o == null ? void 0 : o.templateKey) ===
|
42
|
-
await x(t,
|
43
|
-
},
|
44
|
-
t ? s(!0) :
|
45
|
-
},
|
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
|
-
},
|
48
|
+
}, j = {
|
48
49
|
metadata: {
|
49
50
|
...o
|
50
51
|
}
|
51
|
-
}, g =
|
52
|
+
}, g = J(null), [d, k] = p(null);
|
52
53
|
C(() => {
|
53
|
-
|
54
|
+
k(i ?? g.current);
|
54
55
|
}, [i, o == null ? void 0 : o.templateKey, o == null ? void 0 : o.scope]);
|
55
|
-
const
|
56
|
+
const V = q(() => {
|
56
57
|
const t = (o == null ? void 0 : o.fields.length) === 0;
|
57
|
-
return f ? /* @__PURE__ */ r(
|
58
|
+
return f ? /* @__PURE__ */ r(Z, {
|
58
59
|
isLoading: a
|
59
|
-
}) : t ? /* @__PURE__ */ r(
|
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(
|
65
|
-
errorCode:
|
65
|
+
children: [/* @__PURE__ */ r(G, {
|
66
|
+
errorCode: S,
|
66
67
|
isFetchingSuggestions: a,
|
67
68
|
isLongLoading: l
|
68
|
-
}), /* @__PURE__ */ r(
|
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:
|
77
|
-
onSubmit:
|
76
|
+
return /* @__PURE__ */ r($, {
|
77
|
+
initialValues: j,
|
78
|
+
onSubmit: B,
|
78
79
|
children: ({
|
79
80
|
values: t,
|
80
|
-
dirty:
|
81
|
-
}) => /* @__PURE__ */ c(
|
82
|
-
children: [/* @__PURE__ */ r(
|
83
|
-
areAiSuggestionsAvailable:
|
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:
|
88
|
-
handleCancel:
|
89
|
-
handleDelete:
|
88
|
+
getAiSuggestions: R,
|
89
|
+
handleCancel: K,
|
90
|
+
handleDelete: W,
|
90
91
|
isAiSuggestionsFeatureEnabled: n,
|
91
|
-
isBetaLanguageEnabled:
|
92
|
-
isDeleteButtonDisabled:
|
92
|
+
isBetaLanguageEnabled: y,
|
93
|
+
isDeleteButtonDisabled: D,
|
93
94
|
isFetchingSuggestions: a,
|
94
|
-
isFormDirty:
|
95
|
+
isFormDirty: _,
|
96
|
+
isLargeFile: E,
|
95
97
|
selectedTemplateInstance: o,
|
96
|
-
suggestions:
|
97
|
-
children: o &&
|
98
|
-
}), /* @__PURE__ */ r(
|
98
|
+
suggestions: U,
|
99
|
+
children: o && V
|
100
|
+
}), /* @__PURE__ */ r(Y, {
|
99
101
|
onBackToEdit: () => s(!1),
|
100
|
-
onDiscardChanges:
|
101
|
-
open:
|
102
|
-
}), /* @__PURE__ */ r(
|
103
|
-
onConfirm: () =>
|
102
|
+
onDiscardChanges: L,
|
103
|
+
open: b
|
104
|
+
}), /* @__PURE__ */ r(I, {
|
105
|
+
onConfirm: () => v(o),
|
104
106
|
onDismiss: () => m(!1),
|
105
|
-
open:
|
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
|
-
|
114
|
+
Co as MetadataInstanceForm
|
113
115
|
};
|
@@ -1,18 +1,10 @@
|
|
1
|
-
import { d as
|
2
|
-
const
|
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
|
-
|
9
|
+
e as default
|
18
10
|
};
|
@@ -1,50 +1,41 @@
|
|
1
|
-
import { u as
|
2
|
-
import
|
3
|
-
import
|
4
|
-
import
|
5
|
-
import
|
6
|
-
import { jsxs as
|
7
|
-
import '../../../../../../styles/metadata-instance-form-header.css';const
|
8
|
-
metadataInstanceFormHeader:
|
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
|
-
},
|
11
|
-
areAiSuggestionsAvailable:
|
12
|
-
hasSuggestions:
|
13
|
-
isAiSuggestionsFeatureEnabled:
|
14
|
-
isBetaLanguageEnabled:
|
15
|
-
|
16
|
-
|
17
|
-
|
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
|
20
|
-
return /* @__PURE__ */
|
21
|
-
children: [/* @__PURE__ */
|
22
|
-
className:
|
23
|
-
children: [/* @__PURE__ */
|
24
|
-
className:
|
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
|
-
}),
|
27
|
-
areAiSuggestionsAvailable:
|
28
|
-
isBetaLanguageEnabled:
|
29
|
-
isLoading:
|
30
|
-
onAutofill:
|
27
|
+
}), m ? /* @__PURE__ */ t(x, {
|
28
|
+
areAiSuggestionsAvailable: e,
|
29
|
+
isBetaLanguageEnabled: a,
|
30
|
+
isLoading: c,
|
31
|
+
onAutofill: l
|
31
32
|
}) : null]
|
32
|
-
}),
|
33
|
-
|
34
|
-
|
35
|
-
|
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
|
-
|
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
|
}
|