@box/metadata-editor 0.92.3 → 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.
- package/chunks/taxonomy-ancestor-status-pill.js +34 -35
- package/esm/lib/components/add-metadata-template-dropdown/add-metadata-template-dropdown.js +5 -5
- package/esm/lib/components/add-metadata-template-dropdown/messages.js +1 -1
- package/esm/lib/components/combobox-with-api-pagination/combobox-with-api-pagination.js +39 -40
- package/esm/lib/components/combobox-with-api-pagination/messages.js +1 -1
- package/esm/lib/components/filter-dropdown-menu/filter-dropdown-menu-empty-state.js +1 -1
- package/esm/lib/components/filter-dropdown-menu/filter-dropdown-menu-search.js +6 -6
- package/esm/lib/components/filter-dropdown-menu/messages.js +1 -1
- package/esm/lib/components/filter-instances-dropdown/filter-instances-dropdown.js +7 -7
- package/esm/lib/components/filter-instances-dropdown/messages.js +1 -1
- package/esm/lib/components/metadata-editor-fields/components/ai-suggestion-field/ai-suggestion-field.js +15 -16
- package/esm/lib/components/metadata-editor-fields/components/ai-suggestion-field/messages.js +1 -1
- package/esm/lib/components/metadata-editor-fields/components/metadata-date-field/metadata-date-field.js +1 -1
- package/esm/lib/components/metadata-editor-fields/components/metadata-enum-field/metadata-enum-field.js +27 -28
- package/esm/lib/components/metadata-editor-fields/components/metadata-float-field/use-float-validation.js +6 -6
- package/esm/lib/components/metadata-editor-fields/components/metadata-multi-select-field/metadata-multi-select-field.js +5 -5
- package/esm/lib/components/metadata-editor-fields/components/metadata-string-field/metadata-string-field.js +9 -9
- package/esm/lib/components/metadata-editor-fields/components/metadata-taxonomy-field/metadata-taxonomy-field.js +5 -5
- package/esm/lib/components/metadata-editor-fields/components/update-mode-field-wrapper/messages.js +1 -1
- package/esm/lib/components/metadata-editor-fields/components/update-mode-field-wrapper/update-mode-field-wrapper.js +1 -1
- package/esm/lib/components/metadata-editor-fields/metadata-editor-field-wrapper.js +70 -567
- package/esm/lib/components/metadata-editor-fields/metadata-editor-fields.js +18 -19
- package/esm/lib/components/metadata-empty-state/messages.js +1 -1
- package/esm/lib/components/metadata-empty-state/metadata-empty-state.js +1 -1
- package/esm/lib/components/metadata-instance-editor/subcomponents/autofill-overlay/autofill-overlay.js +1 -1
- package/esm/lib/components/metadata-instance-editor/subcomponents/autofill-overlay/messages.js +1 -1
- package/esm/lib/components/metadata-instance-editor/subcomponents/custom-instance/custom-instance.js +10 -10
- package/esm/lib/components/metadata-instance-editor/subcomponents/custom-instance/messages.js +1 -1
- package/esm/lib/components/metadata-instance-editor/subcomponents/custom-instance-new-field/custom-instance-new-field.js +1 -1
- package/esm/lib/components/metadata-instance-editor/subcomponents/custom-instance-new-field/messages.js +1 -1
- package/esm/lib/components/metadata-instance-editor/subcomponents/delete-confirmation-modal/delete-confirmation-modal.js +14 -15
- package/esm/lib/components/metadata-instance-editor/subcomponents/delete-confirmation-modal/messages.js +1 -1
- package/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-autofill-button/messages.js +1 -1
- package/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-autofill-button/metadata-instance-form-autofill-button.js +1 -1
- package/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-footer/messages.js +1 -1
- package/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-footer/metadata-instance-form-footer.js +1 -1
- package/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-header/messages.js +2 -2
- package/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-header/metadata-instance-form-header.js +1 -1
- package/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-inline-notice/messages.js +1 -1
- package/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-inline-notice/metadata-instance-form-inline-notice.js +14 -14
- package/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance-entry/metadata-instance-entry.js +5 -5
- package/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance-entry/taxonomy-entry/messages.js +3 -3
- package/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance-entry/taxonomy-entry/taxonomy-ancestor-status-pill.js +3 -4
- package/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance-footer/messages.js +1 -1
- package/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance-footer/metadata-instance-footer.js +1 -1
- package/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance-header/messages.js +1 -1
- package/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance-header/metadata-instance-header.js +1 -1
- package/esm/lib/components/unsaved-changes-modal/messages.js +1 -1
- package/esm/lib/components/unsaved-changes-modal/unsaved-changes-modal.js +18 -19
- package/esm/lib/messages.js +1 -1
- package/package.json +2 -2
- package/chunks/index.js +0 -292
- 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
|
3
|
-
import { useFormikContext as
|
4
|
-
import "
|
5
|
-
import
|
6
|
-
import { MetadataEditorFieldWrapper as
|
7
|
-
import { s as
|
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
|
-
|
10
|
-
const C = (n) => {
|
9
|
+
const C = (m) => {
|
11
10
|
const {
|
12
11
|
values: i
|
13
|
-
} =
|
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
|
-
}, []),
|
18
|
-
name:
|
16
|
+
}, []), r.length ? /* @__PURE__ */ t(u, {
|
17
|
+
name: o,
|
19
18
|
validateOnChange: !1,
|
20
|
-
children: () =>
|
21
|
-
...
|
22
|
-
ref:
|
19
|
+
children: () => r.map((e, n) => /* @__PURE__ */ t(h, {
|
20
|
+
...m,
|
21
|
+
ref: n === a ? s : null,
|
23
22
|
field: e,
|
24
|
-
index:
|
23
|
+
index: n
|
25
24
|
}, e.key))
|
26
|
-
}) : /* @__PURE__ */ t(
|
25
|
+
}) : /* @__PURE__ */ t(c, {
|
27
26
|
as: "span",
|
28
|
-
className:
|
27
|
+
className: F.noAttributesText,
|
29
28
|
color: "textOnLightSecondary",
|
30
|
-
children: /* @__PURE__ */ t(
|
31
|
-
...
|
29
|
+
children: /* @__PURE__ */ t(x, {
|
30
|
+
...g.noTemplateAtributesError
|
32
31
|
})
|
33
32
|
});
|
34
33
|
};
|
@@ -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 {
|
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 {
|
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";
|
package/esm/lib/components/metadata-instance-editor/subcomponents/custom-instance/custom-instance.js
CHANGED
@@ -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 {
|
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,
|
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 = (
|
23
|
-
r(
|
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() :
|
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:
|
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
|
-
|
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(),
|
73
|
+
}), h(), o(!1);
|
74
74
|
},
|
75
|
-
onCancel: () =>
|
75
|
+
onCancel: () => o(!1)
|
76
76
|
}), !m && /* @__PURE__ */ t(T, {
|
77
77
|
disabled: l,
|
78
|
-
onClick: () =>
|
78
|
+
onClick: () => o(!0),
|
79
79
|
"data-target-id": "TextButton-addAttribute",
|
80
80
|
children: i.formatMessage(d.addAttribute)
|
81
81
|
})]
|
@@ -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 {
|
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,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 {
|
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
|
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
|
-
},
|
8
|
+
}, H = ({
|
10
9
|
onConfirm: u,
|
11
10
|
templateName: p,
|
12
11
|
onDismiss: C,
|
13
|
-
open:
|
12
|
+
open: h
|
14
13
|
}) => {
|
15
|
-
const n = I(), [r, m] = f(""), [
|
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:
|
27
|
-
children: /* @__PURE__ */
|
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(
|
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__ */
|
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(
|
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(
|
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__ */
|
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:
|
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
|
-
|
79
|
+
H as DeleteConfirmationModal
|
81
80
|
};
|
@@ -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 {
|
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,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 {
|
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 {
|
2
|
-
const e =
|
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 {
|
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,7 +1,7 @@
|
|
1
|
-
import {
|
1
|
+
import { useIntl as c } from "react-intl";
|
2
2
|
import { InlineNotice as l, Text as t } from "@box/blueprint-web";
|
3
|
-
import
|
4
|
-
import { jsxs as
|
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__ */
|
12
|
+
return !r && !o ? null : /* @__PURE__ */ a(d, {
|
13
13
|
children: [o && /* @__PURE__ */ n("div", {
|
14
14
|
className: s.inlineNotice,
|
15
|
-
children: /* @__PURE__ */
|
15
|
+
children: /* @__PURE__ */ a(l, {
|
16
16
|
variant: "warning",
|
17
|
-
variantIconAriaLabel: e.formatMessage(
|
17
|
+
variantIconAriaLabel: e.formatMessage(i.largeFileNoticeHeader),
|
18
18
|
children: [/* @__PURE__ */ n(t, {
|
19
19
|
as: "p",
|
20
20
|
variant: "bodyDefaultBold",
|
21
|
-
children: e.formatMessage(
|
22
|
-
}), /* @__PURE__ */
|
21
|
+
children: e.formatMessage(i.largeFileNoticeHeader)
|
22
|
+
}), /* @__PURE__ */ a(t, {
|
23
23
|
as: "p",
|
24
|
-
children: [e.formatMessage(
|
24
|
+
children: [e.formatMessage(i.largeFileNoticeBody), " "]
|
25
25
|
})]
|
26
26
|
})
|
27
27
|
}), r && /* @__PURE__ */ n("div", {
|
28
28
|
className: s.inlineNotice,
|
29
|
-
children: /* @__PURE__ */
|
29
|
+
children: /* @__PURE__ */ a(l, {
|
30
30
|
variant: "info",
|
31
|
-
variantIconAriaLabel: e.formatMessage(
|
31
|
+
variantIconAriaLabel: e.formatMessage(i.autofillInBetaNoticeHeader),
|
32
32
|
children: [/* @__PURE__ */ n(t, {
|
33
33
|
as: "p",
|
34
34
|
variant: "bodyDefaultBold",
|
35
|
-
children: e.formatMessage(
|
36
|
-
}), /* @__PURE__ */
|
35
|
+
children: e.formatMessage(i.autofillInBetaNoticeHeader)
|
36
|
+
}), /* @__PURE__ */ a(t, {
|
37
37
|
as: "p",
|
38
|
-
children: [e.formatMessage(
|
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 {
|
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:
|
17
|
-
scope:
|
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:
|
53
|
-
taxonomyKey:
|
52
|
+
scope: s,
|
53
|
+
taxonomyKey: c,
|
54
54
|
taxonomyNodeFetcher: m,
|
55
55
|
type: o,
|
56
56
|
value: t
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import {
|
2
|
-
const
|
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
|
-
|
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 "
|
5
|
+
import "react-intl";
|
6
6
|
import "./messages.js";
|
7
|
-
import { T as
|
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
|
-
|
10
|
+
l as TaxonomyAncestorStatusPill
|
12
11
|
};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { TextButton as o } from "@box/blueprint-web";
|
2
|
-
import {
|
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,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 {
|
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,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 {
|
4
|
-
import
|
5
|
-
import { jsx as a, jsxs as
|
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:
|
11
|
-
open: r =
|
9
|
+
defaultOpen: g = !0,
|
10
|
+
open: r = g
|
12
11
|
}) {
|
13
|
-
const t = v(), [
|
14
|
-
p(() =>
|
12
|
+
const t = v(), [m, o] = M(r);
|
13
|
+
p(() => o(r), [r]);
|
15
14
|
const l = d(() => {
|
16
|
-
i(),
|
15
|
+
i(), o(!1);
|
17
16
|
}, [i]), u = d(() => {
|
18
|
-
c(),
|
17
|
+
c(), o(!1);
|
19
18
|
}, [c]), f = d((s) => {
|
20
|
-
|
19
|
+
o(s), s || l();
|
21
20
|
}, [l]);
|
22
21
|
return /* @__PURE__ */ a(e, {
|
23
22
|
modal: !0,
|
24
23
|
onOpenChange: f,
|
25
|
-
open:
|
26
|
-
children: /* @__PURE__ */
|
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
|
-
...
|
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
|
-
...
|
35
|
+
...n.unsavedChangesModalBody
|
37
36
|
})
|
38
37
|
})
|
39
|
-
}), /* @__PURE__ */
|
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(
|
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(
|
46
|
+
children: t.formatMessage(n.unsavedChangesModalContinueEditingCTA)
|
48
47
|
})]
|
49
48
|
}), /* @__PURE__ */ a(e.Close, {
|
50
|
-
"aria-label": t.formatMessage(
|
49
|
+
"aria-label": t.formatMessage(n.unsavedChangesModalCloseLabel)
|
51
50
|
})]
|
52
51
|
})
|
53
52
|
});
|
package/esm/lib/messages.js
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@box/metadata-editor",
|
3
|
-
"version": "0.92.
|
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": "
|
56
|
+
"gitHead": "6eeb552c3e34fa8cdf67373914ee9b3dee87131f"
|
57
57
|
}
|