@box/box-ai-content-answers 0.148.3 → 0.148.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.
@@ -1,23 +1,23 @@
1
- import { Formik as L, Form as g } from "formik";
2
- import { GuidedTooltip as t, Radio as c, TextArea as I, Text as y, Link as S } from "@box/blueprint-web";
1
+ import { Formik as g, Form as I } from "formik";
2
+ import { GuidedTooltip as l, Radio as c, TextArea as x, Text as y, Link as S } from "@box/blueprint-web";
3
3
  import { useIntl as v, FormattedMessage as N } from "react-intl";
4
- import { F as d } from "../../../../chunks/types.js";
5
- import { ABUSE_REPORT_EMAIL as k } from "./constants.js";
6
- import j from "../../messages.js";
4
+ import { F as r } from "../../../../chunks/types.js";
5
+ import { ABUSE_REPORT_EMAIL as f } from "./constants.js";
6
+ import E from "../../messages.js";
7
7
  import a from "./messages.js";
8
- import { jsx as e, jsxs as i, Fragment as f } from "react/jsx-runtime";
9
- import '../../../../styles/feedback-tooltip.css';const E = "_feedbackTooltip_1x6kj_1", R = "_feedbackTooltipForm_1x6kj_8", B = "_feedbackTooltipTitle_1x6kj_12", C = "_feedbackTooltipTextarea_1x6kj_15", D = "_feedbackTooltipSubmitBtn_1x6kj_18", w = "_feedbackTooltipAbuseDisclaimer_1x6kj_21", O = "_feedbackTooltipAbuseLink_1x6kj_25", l = {
10
- feedbackTooltip: E,
11
- feedbackTooltipForm: R,
12
- feedbackTooltipTitle: B,
13
- feedbackTooltipTextarea: C,
14
- feedbackTooltipSubmitBtn: D,
15
- feedbackTooltipAbuseDisclaimer: w,
16
- feedbackTooltipAbuseLink: O
8
+ import { jsx as e, jsxs as i, Fragment as m } from "react/jsx-runtime";
9
+ import '../../../../styles/feedback-tooltip.css';const R = "_feedbackTooltip_1dntu_1", B = "_feedbackTooltipForm_1dntu_8", C = "_feedbackTooltipTitle_1dntu_12", D = "_feedbackTooltipTextarea_1dntu_15", w = "_feedbackTooltipSubmitBtn_1dntu_18", O = "_feedbackTooltipAbuseDisclaimer_1dntu_21", M = "_feedbackTooltipAbuseLink_1dntu_25", t = {
10
+ feedbackTooltip: R,
11
+ feedbackTooltipForm: B,
12
+ feedbackTooltipTitle: C,
13
+ feedbackTooltipTextarea: D,
14
+ feedbackTooltipSubmitBtn: w,
15
+ feedbackTooltipAbuseDisclaimer: O,
16
+ feedbackTooltipAbuseLink: M
17
17
  }, H = ({
18
- children: b,
19
- isOpen: m,
20
- onOpenChange: n,
18
+ children: n,
19
+ isOpen: k,
20
+ onOpenChange: b,
21
21
  onSubmit: u,
22
22
  shouldIncludeFeedbackText: _,
23
23
  shouldShow: A
@@ -26,91 +26,91 @@ import '../../../../styles/feedback-tooltip.css';const E = "_feedbackTooltip_1x6
26
26
  formatMessage: o
27
27
  } = v();
28
28
  if (!A)
29
- return b;
29
+ return n;
30
30
  const h = () => {
31
- n(!1);
32
- }, x = (s) => {
31
+ b(!1);
32
+ }, F = (s) => {
33
33
  u(s);
34
34
  };
35
- return /* @__PURE__ */ e(t, {
35
+ return /* @__PURE__ */ e(l, {
36
36
  align: "end",
37
- className: l.feedbackTooltip,
38
- closeLabel: o(j.closeButtonText),
39
- content: /* @__PURE__ */ e(L, {
37
+ className: t.feedbackTooltip,
38
+ closeLabel: o(E.closeButtonText),
39
+ content: /* @__PURE__ */ e(g, {
40
40
  initialValues: {
41
41
  feedback: "",
42
42
  issueType: ""
43
43
  },
44
- onSubmit: x,
44
+ onSubmit: F,
45
45
  children: ({
46
46
  submitForm: s,
47
47
  setFieldValue: T,
48
48
  values: {
49
- feedback: F,
49
+ feedback: L,
50
50
  issueType: p
51
51
  }
52
- }) => /* @__PURE__ */ i(f, {
53
- children: [/* @__PURE__ */ i(t.Body, {
54
- children: [/* @__PURE__ */ e(t.Title, {
55
- className: l.feedbackTooltipTitle,
52
+ }) => /* @__PURE__ */ i(m, {
53
+ children: [/* @__PURE__ */ i(l.Body, {
54
+ children: [/* @__PURE__ */ e(l.Title, {
55
+ className: t.feedbackTooltipTitle,
56
56
  children: o(a.feedbackTooltipTitle)
57
- }), /* @__PURE__ */ i(g, {
58
- className: l.feedbackTooltipForm,
57
+ }), /* @__PURE__ */ i(I, {
58
+ className: t.feedbackTooltipForm,
59
59
  children: [/* @__PURE__ */ e(c.Legend, {
60
60
  header: o(a.feedbackTooltipIssueTypeLabel),
61
61
  children: /* @__PURE__ */ i(c.Group, {
62
62
  defaultValue: "",
63
63
  loop: !0,
64
64
  name: "issueType",
65
- onValueChange: (r) => T("issueType", r),
65
+ onValueChange: (d) => T("issueType", d),
66
66
  orientation: "vertical",
67
67
  value: p,
68
68
  children: [/* @__PURE__ */ e(c.Item, {
69
69
  label: o(a.feedbackTooltipIssueTypeAnswer1),
70
- value: d.INACCURATE_ANSWER
70
+ value: r.INACCURATE_ANSWER
71
71
  }), /* @__PURE__ */ e(c.Item, {
72
72
  label: o(a.feedbackTooltipIssueTypeAnswer2),
73
- value: d.DID_NOT_FOLLOW_REQUEST
73
+ value: r.DID_NOT_FOLLOW_REQUEST
74
74
  }), /* @__PURE__ */ e(c.Item, {
75
75
  label: o(a.feedbackTooltipIssueTypeAnswer3),
76
- value: d.OTHER
76
+ value: r.OTHER
77
77
  })]
78
78
  })
79
- }), _ && /* @__PURE__ */ i(f, {
80
- children: [/* @__PURE__ */ e(I, {
81
- className: l.feedbackTooltipTextarea,
79
+ }), _ && /* @__PURE__ */ i(m, {
80
+ children: [/* @__PURE__ */ e(x, {
81
+ className: t.feedbackTooltipTextarea,
82
82
  label: o(a.feedbackTooltipFeedbackLabel),
83
83
  maxRows: 4,
84
84
  minRows: 4,
85
- onChange: (r) => T("feedback", r.target.value),
85
+ onChange: (d) => T("feedback", d.target.value),
86
86
  placeholder: o(a.feedbackTooltipFeedbackPlaceholder),
87
- value: F
87
+ value: L
88
88
  }), /* @__PURE__ */ e(y, {
89
89
  as: "p",
90
- className: l.feedbackTooltipAbuseDisclaimer,
90
+ className: t.feedbackTooltipAbuseDisclaimer,
91
91
  variant: "caption",
92
92
  children: /* @__PURE__ */ e(N, {
93
93
  ...a.feedbackTooltipAbuseDisclaimer,
94
94
  values: {
95
95
  abuseEmailLink: /* @__PURE__ */ e(S, {
96
- className: l.feedbackTooltipAbuseLink,
97
- href: `mailto:${k}`,
96
+ className: t.feedbackTooltipAbuseLink,
97
+ href: `mailto:${f}`,
98
98
  rel: "noopener noreferrer",
99
99
  target: "_blank",
100
- children: k
100
+ children: f
101
101
  })
102
102
  }
103
103
  })
104
104
  })]
105
105
  })]
106
106
  })]
107
- }), /* @__PURE__ */ i(t.Footer, {
108
- children: [/* @__PURE__ */ e(t.Footer.SecondaryAction, {
107
+ }), /* @__PURE__ */ i(l.Footer, {
108
+ children: [/* @__PURE__ */ e(l.Footer.SecondaryAction, {
109
109
  onClick: h,
110
110
  size: "large",
111
111
  children: o(a.feedbackTooltipCancel)
112
- }), /* @__PURE__ */ e(t.Footer.PrimaryAction, {
113
- className: l.feedbackTooltipSubmitBtn,
112
+ }), /* @__PURE__ */ e(l.Footer.PrimaryAction, {
113
+ className: t.feedbackTooltipSubmitBtn,
114
114
  disabled: !p,
115
115
  onClick: () => s(),
116
116
  size: "large",
@@ -119,10 +119,10 @@ import '../../../../styles/feedback-tooltip.css';const E = "_feedbackTooltip_1x6
119
119
  })]
120
120
  })
121
121
  }),
122
- onOpenChange: n,
123
- open: m,
122
+ onOpenChange: b,
123
+ open: k,
124
124
  side: "left",
125
- children: b
125
+ children: n
126
126
  });
127
127
  };
128
128
  export {
@@ -1 +1 @@
1
- ._feedbackTooltip_1x6kj_1{z-index:var(--z-index-modal);max-width:24rem;padding-block-end:var(--space-4);padding-block-start:var(--space-4);padding-inline:var(--space-4)}._feedbackTooltip_1x6kj_1 ._feedbackTooltipForm_1x6kj_8{gap:var(--bp-space-050, 1.25rem);width:20.375rem}._feedbackTooltip_1x6kj_1 ._feedbackTooltipTitle_1x6kj_12{margin-block-end:var(--space-5)}._feedbackTooltip_1x6kj_1 ._feedbackTooltipTextarea_1x6kj_15{margin-block-start:var(--space-5)}._feedbackTooltip_1x6kj_1 ._feedbackTooltipSubmitBtn_1x6kj_18{margin-inline-start:var(--space-2)}._feedbackTooltip_1x6kj_1 ._feedbackTooltipAbuseDisclaimer_1x6kj_21{margin-block-start:var(--space-5);color:var(--text-text-on-light-secondary)}._feedbackTooltip_1x6kj_1 ._feedbackTooltipAbuseDisclaimer_1x6kj_21 ._feedbackTooltipAbuseLink_1x6kj_25{color:var(--text-text-on-light-secondary);font-size:var(--bp-font-size-03, .75rem)}
1
+ div._feedbackTooltip_1dntu_1{z-index:var(--z-index-modal);max-width:24rem;padding-block-end:var(--space-4);padding-block-start:var(--space-4);padding-inline:var(--space-4)}div._feedbackTooltip_1dntu_1 ._feedbackTooltipForm_1dntu_8{gap:var(--bp-space-050, 1.25rem);width:20.375rem}div._feedbackTooltip_1dntu_1 ._feedbackTooltipTitle_1dntu_12{margin-block-end:var(--space-5)}div._feedbackTooltip_1dntu_1 ._feedbackTooltipTextarea_1dntu_15{margin-block-start:var(--space-5)}div._feedbackTooltip_1dntu_1 ._feedbackTooltipSubmitBtn_1dntu_18{margin-inline-start:var(--space-2)}div._feedbackTooltip_1dntu_1 ._feedbackTooltipAbuseDisclaimer_1dntu_21{margin-block-start:var(--space-5);color:var(--text-text-on-light-secondary)}div._feedbackTooltip_1dntu_1 ._feedbackTooltipAbuseDisclaimer_1dntu_21 ._feedbackTooltipAbuseLink_1dntu_25{color:var(--text-text-on-light-secondary);font-size:var(--bp-font-size-03, .75rem)}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@box/box-ai-content-answers",
3
- "version": "0.148.3",
3
+ "version": "0.148.4",
4
4
  "peerDependencies": {
5
5
  "@box/blueprint-web": "^7.8.0",
6
6
  "@box/blueprint-web-assets": "^4.56.1",
@@ -17,10 +17,10 @@
17
17
  },
18
18
  "devDependencies": {
19
19
  "@box/babel-plugin-target-attributes": "1.3.0",
20
- "@box/blueprint-web": "^12.64.2",
20
+ "@box/blueprint-web": "^12.64.3",
21
21
  "@box/blueprint-web-assets": "^4.65.0",
22
- "@box/box-ai-agent-selector": "^0.58.3",
23
- "@box/item-icon": "^0.23.3",
22
+ "@box/box-ai-agent-selector": "^0.58.4",
23
+ "@box/item-icon": "^0.23.4",
24
24
  "@box/storybook-utils": "^0.14.1",
25
25
  "@testing-library/react": "^15.0.6",
26
26
  "react": "^18.3.0",