@box/metadata-editor 0.80.5 → 0.80.6

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,13 +1,13 @@
1
1
  import "../../../../../../styles/ai-suggestion-field.css";
2
- import { Text as l, IconButton as c, DropdownMenu as a } from "@box/blueprint-web";
2
+ import { Text as s, IconButton as c, DropdownMenu as a } from "@box/blueprint-web";
3
3
  import { Checkmark as m, Ellipsis as f } from "@box/blueprint-web-assets/icons/Fill";
4
- import { useIntl as w, FormattedMessage as r } from "react-intl";
4
+ import { useIntl as I, FormattedMessage as r } from "react-intl";
5
5
  import t from "./messages.js";
6
- import { formatSuggestionValue as _ } from "./utils.js";
6
+ import { formatSuggestionValue as w } from "./utils.js";
7
7
  import { jsx as e, jsxs as i, Fragment as u } from "react/jsx-runtime";
8
- const C = "_wrapperGradient_t2yak_1", I = "_wrapper_t2yak_1", b = "_buttons_t2yak_18", k = "_selectTrigger_t2yak_22", n = {
8
+ const C = "_wrapperGradient_t2yak_1", _ = "_wrapper_t2yak_1", b = "_buttons_t2yak_18", k = "_selectTrigger_t2yak_22", o = {
9
9
  wrapperGradient: C,
10
- wrapper: I,
10
+ wrapper: _,
11
11
  buttons: b,
12
12
  selectTrigger: k
13
13
  };
@@ -16,16 +16,16 @@ function D({
16
16
  onAiSuggestionAppend: g,
17
17
  onAiSuggestionReplace: d,
18
18
  onAiSuggestionIgnore: p,
19
- type: o,
19
+ type: n,
20
20
  isSameValue: h
21
21
  }) {
22
- const s = w();
22
+ const l = I();
23
23
  return /* @__PURE__ */ e("div", {
24
- className: n.wrapperGradient,
24
+ className: o.wrapperGradient,
25
25
  children: /* @__PURE__ */ e("div", {
26
- className: n.wrapper,
26
+ className: o.wrapper,
27
27
  children: h ? /* @__PURE__ */ i(u, {
28
- children: [/* @__PURE__ */ e(l, {
28
+ children: [/* @__PURE__ */ e(s, {
29
29
  as: "p",
30
30
  color: "textOnLightSecondary",
31
31
  variant: "caption",
@@ -33,9 +33,9 @@ function D({
33
33
  ...t.sameValueAiSuggestionCaption
34
34
  })
35
35
  }), /* @__PURE__ */ e("div", {
36
- className: n.buttons,
36
+ className: o.buttons,
37
37
  children: /* @__PURE__ */ e(c, {
38
- "aria-label": s.formatMessage(t.aiSuggestionConfirm),
38
+ "aria-label": l.formatMessage(t.aiSuggestionConfirm),
39
39
  icon: m,
40
40
  onClick: p,
41
41
  size: "x-small",
@@ -44,37 +44,38 @@ function D({
44
44
  })]
45
45
  }) : /* @__PURE__ */ i(u, {
46
46
  children: [/* @__PURE__ */ i("div", {
47
- children: [/* @__PURE__ */ e(l, {
47
+ children: [/* @__PURE__ */ e(s, {
48
48
  as: "p",
49
49
  color: "textOnLightSecondary",
50
50
  variant: "caption",
51
51
  children: /* @__PURE__ */ e(r, {
52
52
  ...t.aiSuggestionCaption
53
53
  })
54
- }), /* @__PURE__ */ e(l, {
54
+ }), /* @__PURE__ */ e(s, {
55
55
  as: "p",
56
- children: _(S, {
57
- type: o,
58
- locale: s.locale
56
+ children: w(S, {
57
+ type: n,
58
+ locale: l.locale
59
59
  })
60
60
  })]
61
61
  }), /* @__PURE__ */ i("div", {
62
- className: n.buttons,
62
+ className: o.buttons,
63
63
  children: [/* @__PURE__ */ e(c, {
64
- "aria-label": s.formatMessage(o === "multiSelect" ? t.aiSuggestionAppend : t.aiSuggestionClearAndReplace),
64
+ "aria-label": l.formatMessage(n === "multiSelect" ? t.aiSuggestionAppend : t.aiSuggestionClearAndReplace),
65
+ "data-target-id": n === "multiSelect" ? "IconButton-aiSuggestionAppend" : "IconButton-aiSuggestionClearAndReplace",
65
66
  icon: m,
66
- onClick: o === "multiSelect" ? g : d,
67
+ onClick: n === "multiSelect" ? g : d,
67
68
  size: "x-small"
68
69
  }), /* @__PURE__ */ i(a.Root, {
69
70
  children: [/* @__PURE__ */ e(a.Trigger, {
70
- className: n.selectTrigger,
71
+ className: o.selectTrigger,
71
72
  children: /* @__PURE__ */ e(c, {
72
- "aria-label": s.formatMessage(t.aiSuggestionOptions),
73
+ "aria-label": l.formatMessage(t.aiSuggestionOptions),
73
74
  icon: f,
74
75
  "data-target-id": "IconButton-aiSuggestionOptions"
75
76
  })
76
77
  }), /* @__PURE__ */ i(a.Content, {
77
- children: [o === "multiSelect" && /* @__PURE__ */ e(a.Item, {
78
+ children: [n === "multiSelect" && /* @__PURE__ */ e(a.Item, {
78
79
  onSelect: g,
79
80
  "data-target-id": "DropdownMenu.Item-aiSuggestionAppend",
80
81
  children: /* @__PURE__ */ e(r, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@box/metadata-editor",
3
- "version": "0.80.5",
3
+ "version": "0.80.6",
4
4
  "peerDependencies": {
5
5
  "@ariakit/react": "0.4.14",
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": "ba8435e9c738173a37e34695c39d91f0bf18a5a5"
56
+ "gitHead": "232199453ce176fabe32818df8d2fc599a3d9ae8"
57
57
  }