@box/metadata-editor 0.79.6 → 0.79.8

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,52 +1,54 @@
1
- import { useFormikContext as M, getIn as P, Field as R } from "formik";
2
- import { forwardRef as $ } from "react";
3
- import { useIntl as j } from "react-intl";
4
- import w from "../../../../messages.js";
5
- import { ComboboxWithApiPagination as A } from "../../../combobox-with-api-pagination/combobox-with-api-pagination.js";
6
- import { g as K } from "../../../../../../chunks/utils2.js";
1
+ import { useFormikContext as w, getIn as I, Field as K } from "formik";
2
+ import { forwardRef as M } from "react";
3
+ import { useIntl as R } from "react-intl";
4
+ import $ from "../../../../messages.js";
5
+ import { ComboboxWithApiPagination as j } from "../../../combobox-with-api-pagination/combobox-with-api-pagination.js";
6
+ import { g as A } from "../../../../../../chunks/utils2.js";
7
7
  import { jsx as e } from "react/jsx-runtime";
8
- const E = /* @__PURE__ */ $(({
8
+ const E = /* @__PURE__ */ M(({
9
9
  description: l,
10
- disableForm: d,
11
- isAiSuggestionApplied: s,
10
+ disableForm: s,
11
+ isAiSuggestionApplied: d,
12
12
  fieldNamePrefix: r,
13
- label: a,
14
- portalElement: c,
15
- taxonomyOptionsFetcher: p,
13
+ label: n,
14
+ portalElement: p,
15
+ taxonomyOptionsFetcher: c,
16
16
  updateModePrefix: u,
17
17
  className: f
18
18
  }, g) => {
19
- const h = j(), n = `${u ?? r}.value`, {
19
+ const h = R(), a = `${u ?? r}.value`, {
20
20
  setFieldValue: F,
21
21
  values: i
22
- } = M(), {
22
+ } = w(), {
23
23
  metadata: {
24
24
  templateKey: v,
25
25
  scope: x
26
26
  }
27
- } = i, y = P(i, r), {
27
+ } = i, y = I(i, r), {
28
28
  key: b,
29
29
  optionsRules: {
30
30
  multiSelect: m,
31
31
  selectableLevels: t
32
32
  }
33
- } = y, k = (o) => p(x, v, b, t == null ? void 0 : t[0], o), C = (o) => m || !(o != null && o.length) ? h.formatMessage(w.taxonomyPlaceholder) : void 0;
33
+ } = y, k = (o) => c(x, v, b, t == null ? void 0 : t[0], o), C = (o) => m || !(o != null && o.length) ? h.formatMessage($.taxonomyPlaceholder) : void 0;
34
34
  return /* @__PURE__ */ e("div", {
35
- "data-testid": `${a}-field`,
36
- children: /* @__PURE__ */ e(R, {
37
- name: n,
35
+ "data-testid": `${n}-field`,
36
+ onKeyDown: (o) => o.stopPropagation(),
37
+ role: "presentation",
38
+ children: /* @__PURE__ */ e(K, {
39
+ name: a,
38
40
  children: ({
39
41
  field: o
40
- }) => /* @__PURE__ */ e(A, {
42
+ }) => /* @__PURE__ */ e(j, {
41
43
  ref: g,
42
44
  className: f,
43
45
  defaultFetcher: k,
44
- disabled: d,
45
- label: K(a, l, s),
46
+ disabled: s,
47
+ label: A(n, l, d),
46
48
  multiselect: m,
47
- onValueChange: (I) => F(n, I),
49
+ onValueChange: (P) => F(a, P),
48
50
  placeholder: C(o.value),
49
- portalElement: c,
51
+ portalElement: p,
50
52
  value: o.value
51
53
  })
52
54
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@box/metadata-editor",
3
- "version": "0.79.6",
3
+ "version": "0.79.8",
4
4
  "peerDependencies": {
5
5
  "@ariakit/react": "0.4.14",
6
6
  "@box/blueprint-web": "^7.30.3",
@@ -14,7 +14,7 @@
14
14
  "devDependencies": {
15
15
  "@ariakit/react": "0.4.14",
16
16
  "@box/babel-plugin-target-attributes": "1.3.0",
17
- "@box/blueprint-web": "^9.3.1",
17
+ "@box/blueprint-web": "^9.4.0",
18
18
  "@box/blueprint-web-assets": "^4.30.1",
19
19
  "@box/storybook-utils": "^0.8.0",
20
20
  "@testing-library/react": "^15.0.6",
@@ -53,5 +53,5 @@
53
53
  "**/*.css"
54
54
  ],
55
55
  "license": "SEE LICENSE IN LICENSE",
56
- "gitHead": "7707bdcf1807d7cdace9825ebcee231b9f418bf5"
56
+ "gitHead": "54b7ea2666cfeaedb3792148822d4b50578a565b"
57
57
  }