@box/metadata-editor 0.84.1 → 0.84.2
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.
@@ -1,8 +1,8 @@
|
|
1
|
-
import { TextInput as
|
2
|
-
import { Field as
|
1
|
+
import { TextInput as u } from "@box/blueprint-web";
|
2
|
+
import { Field as c } from "formik";
|
3
3
|
import { forwardRef as h } from "react";
|
4
|
-
import { useIntl as
|
5
|
-
import
|
4
|
+
import { useIntl as x } from "react-intl";
|
5
|
+
import F from "../../../../messages.js";
|
6
6
|
import { g as M } from "../../../../../../chunks/utils2.js";
|
7
7
|
import { fieldDefaultProps as b } from "../constants.js";
|
8
8
|
import { jsx as e } from "react/jsx-runtime";
|
@@ -13,27 +13,28 @@ const v = /* @__PURE__ */ h(({
|
|
13
13
|
disableForm: i,
|
14
14
|
fieldNamePrefix: l,
|
15
15
|
label: r,
|
16
|
-
onValueEdited:
|
17
|
-
updateModePrefix:
|
16
|
+
onValueEdited: m,
|
17
|
+
updateModePrefix: d
|
18
18
|
}, f) => {
|
19
|
-
const s =
|
19
|
+
const s = x(), n = `${d ?? l}.value`;
|
20
20
|
return /* @__PURE__ */ e("div", {
|
21
21
|
"data-testid": `${r}-field`,
|
22
|
-
children: /* @__PURE__ */ e(
|
22
|
+
children: /* @__PURE__ */ e(c, {
|
23
23
|
name: n,
|
24
24
|
children: ({
|
25
25
|
field: p,
|
26
|
-
meta:
|
27
|
-
}) => /* @__PURE__ */ e(
|
26
|
+
meta: g
|
27
|
+
}) => /* @__PURE__ */ e(u, {
|
28
28
|
...b,
|
29
29
|
...p,
|
30
30
|
ref: f,
|
31
31
|
className: t,
|
32
32
|
disabled: i,
|
33
|
-
error:
|
33
|
+
error: g.error,
|
34
34
|
label: M(r, a, o),
|
35
|
-
|
36
|
-
|
35
|
+
maxLength: 524288,
|
36
|
+
onChangeCapture: m,
|
37
|
+
placeholder: s.formatMessage(F.setValuePlaceholder)
|
37
38
|
})
|
38
39
|
})
|
39
40
|
});
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@box/metadata-editor",
|
3
|
-
"version": "0.84.
|
3
|
+
"version": "0.84.2",
|
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": "d8f9a5b59e13f0f9c0af9ceeadd6268f91638024"
|
57
57
|
}
|