@box/box-ai-content-answers 0.154.3 → 0.155.0

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,5 +1,5 @@
1
- const o = "abuse@box.com", A = 500;
1
+ const o = "/report-abuse", t = 500;
2
2
  export {
3
- o as ABUSE_REPORT_EMAIL,
4
- A as MAX_CITATION_LENGTH
3
+ o as ABUSE_FORM_PATH,
4
+ t as MAX_CITATION_LENGTH
5
5
  };
@@ -1,44 +1,53 @@
1
- import { Formik as F, Form as g } from "formik";
2
- import { GuidedTooltip as l, Radio as c, TextArea as I, Checkbox as L, Text as P, Link as v } from "@box/blueprint-web";
3
- import { useIntl as y, FormattedMessage as N } from "react-intl";
4
- import { F as n } from "../../../../chunks/types.js";
5
- import { ABUSE_REPORT_EMAIL as k } from "./constants.js";
6
- import j from "../../messages.js";
7
- import a from "./messages.js";
8
- import { jsx as e, jsxs as s, Fragment as E } from "react/jsx-runtime";
9
- import '../../../../styles/feedback-tooltip.css';const R = "_feedbackTooltip_hjxds_1", B = "_feedbackTooltipForm_hjxds_8", D = "_feedbackTooltipTitle_hjxds_12", w = "_feedbackTooltipTextarea_hjxds_15", O = "_feedbackTooltipSubmitBtn_hjxds_18", M = "_feedbackTooltipPromptShareConsent_hjxds_21", U = "_feedbackTooltipAbuseDisclaimer_hjxds_24", z = "_feedbackTooltipAbuseLink_hjxds_28", t = {
10
- feedbackTooltip: R,
11
- feedbackTooltipForm: B,
12
- feedbackTooltipTitle: D,
13
- feedbackTooltipTextarea: w,
1
+ import { Formik as y, Form as F } from "formik";
2
+ import { GuidedTooltip as l, Radio as c, TextArea as g, Checkbox as x, Text as I, Link as L } from "@box/blueprint-web";
3
+ import { useIntl as P, FormattedMessage as v } from "react-intl";
4
+ import { F as p } from "../../../../chunks/types.js";
5
+ import { ABUSE_FORM_PATH as N } from "./constants.js";
6
+ import R from "../../messages.js";
7
+ import t from "./messages.js";
8
+ import { jsx as e, jsxs as r, Fragment as w } from "react/jsx-runtime";
9
+ import '../../../../styles/feedback-tooltip.css';const B = "_feedbackTooltip_1y93t_1", D = "_feedbackTooltipForm_1y93t_8", E = "_feedbackTooltipTitle_1y93t_12", U = "_feedbackTooltipTextarea_1y93t_15", O = "_feedbackTooltipSubmitBtn_1y93t_18", M = "_feedbackTooltipPromptShareConsent_1y93t_21", $ = "_feedbackTooltipAbuseDisclaimer_1y93t_24", j = "_feedbackTooltipAbuseLink_1y93t_28", a = {
10
+ feedbackTooltip: B,
11
+ feedbackTooltipForm: D,
12
+ feedbackTooltipTitle: E,
13
+ feedbackTooltipTextarea: U,
14
14
  feedbackTooltipSubmitBtn: O,
15
15
  feedbackTooltipPromptShareConsent: M,
16
- feedbackTooltipAbuseDisclaimer: U,
17
- feedbackTooltipAbuseLink: z
18
- }, K = ({
19
- children: b,
20
- isOpen: f,
21
- onOpenChange: p,
22
- onSubmit: u,
23
- shouldIncludeFeedbackText: T,
24
- shouldIncludePromptShareConsent: h,
25
- shouldShow: _
16
+ feedbackTooltipAbuseDisclaimer: $,
17
+ feedbackTooltipAbuseLink: j
18
+ }, z = (s) => {
19
+ const n = encodeURIComponent(window.location.href);
20
+ return /* @__PURE__ */ e(L, {
21
+ className: a.feedbackTooltipAbuseLink,
22
+ href: `${N}/${n}`,
23
+ rel: "noopener noreferrer",
24
+ target: "_blank",
25
+ children: s
26
+ });
27
+ }, X = ({
28
+ children: s,
29
+ isOpen: n,
30
+ onOpenChange: T,
31
+ onSubmit: f,
32
+ shouldIncludeFeedbackText: m,
33
+ shouldIncludePromptShareConsent: u,
34
+ shouldShow: h
26
35
  }) => {
27
36
  const {
28
37
  formatMessage: o
29
- } = y();
30
- if (!_)
31
- return b;
32
- const x = () => {
33
- p(!1);
34
- }, A = (r) => {
35
- u(r);
38
+ } = P();
39
+ if (!h)
40
+ return s;
41
+ const _ = () => {
42
+ T(!1);
43
+ }, A = (d) => {
44
+ f(d);
36
45
  };
37
46
  return /* @__PURE__ */ e(l, {
38
47
  align: "end",
39
- className: t.feedbackTooltip,
40
- closeLabel: o(j.closeButtonText),
41
- content: /* @__PURE__ */ e(F, {
48
+ className: a.feedbackTooltip,
49
+ closeLabel: o(R.closeButtonText),
50
+ content: /* @__PURE__ */ e(y, {
42
51
  initialValues: {
43
52
  feedback: "",
44
53
  feedbackPromptShareConsent: !0,
@@ -47,97 +56,91 @@ import '../../../../styles/feedback-tooltip.css';const R = "_feedbackTooltip_hjx
47
56
  },
48
57
  onSubmit: A,
49
58
  children: ({
50
- submitForm: r,
51
- setFieldValue: d,
59
+ submitForm: d,
60
+ setFieldValue: b,
52
61
  values: {
53
62
  feedback: C,
54
63
  feedbackPromptShareConsent: S,
55
- issueType: m
64
+ issueType: k
56
65
  }
57
- }) => /* @__PURE__ */ s(E, {
58
- children: [/* @__PURE__ */ s(l.Body, {
66
+ }) => /* @__PURE__ */ r(w, {
67
+ children: [/* @__PURE__ */ r(l.Body, {
59
68
  children: [/* @__PURE__ */ e(l.Title, {
60
- className: t.feedbackTooltipTitle,
61
- children: o(a.feedbackTooltipTitle)
62
- }), /* @__PURE__ */ s(g, {
63
- className: t.feedbackTooltipForm,
69
+ className: a.feedbackTooltipTitle,
70
+ children: o(t.feedbackTooltipTitle)
71
+ }), /* @__PURE__ */ r(F, {
72
+ className: a.feedbackTooltipForm,
64
73
  children: [/* @__PURE__ */ e(c.Legend, {
65
- header: o(a.feedbackTooltipIssueTypeLabel),
66
- children: /* @__PURE__ */ s(c.Group, {
74
+ header: o(t.feedbackTooltipIssueTypeLabel),
75
+ children: /* @__PURE__ */ r(c.Group, {
67
76
  defaultValue: "",
68
77
  loop: !0,
69
78
  name: "issueType",
70
- onValueChange: (i) => d("issueType", i),
79
+ onValueChange: (i) => b("issueType", i),
71
80
  orientation: "vertical",
72
- value: m,
81
+ value: k,
73
82
  children: [/* @__PURE__ */ e(c.Item, {
74
- label: o(a.feedbackTooltipIssueTypeAnswer1),
75
- value: n.INACCURATE_ANSWER
83
+ label: o(t.feedbackTooltipIssueTypeAnswer1),
84
+ value: p.INACCURATE_ANSWER
76
85
  }), /* @__PURE__ */ e(c.Item, {
77
- label: o(a.feedbackTooltipIssueTypeAnswer2),
78
- value: n.DID_NOT_FOLLOW_REQUEST
86
+ label: o(t.feedbackTooltipIssueTypeAnswer2),
87
+ value: p.DID_NOT_FOLLOW_REQUEST
79
88
  }), /* @__PURE__ */ e(c.Item, {
80
- label: o(a.feedbackTooltipIssueTypeAnswer3),
81
- value: n.OTHER
89
+ label: o(t.feedbackTooltipIssueTypeAnswer3),
90
+ value: p.OTHER
82
91
  })]
83
92
  })
84
- }), T && /* @__PURE__ */ e(I, {
85
- className: t.feedbackTooltipTextarea,
86
- label: o(a.feedbackTooltipFeedbackLabel),
93
+ }), m && /* @__PURE__ */ e(g, {
94
+ className: a.feedbackTooltipTextarea,
95
+ label: o(t.feedbackTooltipFeedbackLabel),
87
96
  maxRows: 4,
88
97
  minRows: 4,
89
- onChange: (i) => d("feedback", i.target.value),
90
- placeholder: o(a.feedbackTooltipFeedbackPlaceholder),
98
+ onChange: (i) => b("feedback", i.target.value),
99
+ placeholder: o(t.feedbackTooltipFeedbackPlaceholder),
91
100
  value: C
92
- }), h && /* @__PURE__ */ e(L.Item, {
101
+ }), u && /* @__PURE__ */ e(x.Item, {
93
102
  checked: S,
94
- className: t.feedbackTooltipPromptShareConsent,
103
+ className: a.feedbackTooltipPromptShareConsent,
95
104
  "data-target-id": "Checkbox.Item-boxAiFeedbackPromptShareConsent",
96
- label: o(a.feedbackTooltipPromptShareConsent),
105
+ label: o(t.feedbackTooltipPromptShareConsent),
97
106
  onCheckedChange: (i) => {
98
- d("feedbackPromptShareConsent", i);
107
+ b("feedbackPromptShareConsent", i);
99
108
  },
100
109
  value: "feedbackPromptShareConsent"
101
- }), T && /* @__PURE__ */ e(P, {
110
+ }), m && /* @__PURE__ */ e(I, {
102
111
  as: "p",
103
- className: t.feedbackTooltipAbuseDisclaimer,
112
+ className: a.feedbackTooltipAbuseDisclaimer,
104
113
  variant: "caption",
105
- children: /* @__PURE__ */ e(N, {
106
- ...a.feedbackTooltipAbuseDisclaimer,
114
+ children: /* @__PURE__ */ e(v, {
115
+ ...t.feedbackTooltipAbuseDisclaimer,
107
116
  values: {
108
- abuseEmailLink: /* @__PURE__ */ e(v, {
109
- className: t.feedbackTooltipAbuseLink,
110
- href: `mailto:${k}`,
111
- rel: "noopener noreferrer",
112
- target: "_blank",
113
- children: k
114
- })
117
+ abuseFormLink: z
115
118
  }
116
119
  })
117
120
  })]
118
121
  })]
119
- }), /* @__PURE__ */ s(l.Footer, {
122
+ }), /* @__PURE__ */ r(l.Footer, {
120
123
  children: [/* @__PURE__ */ e(l.Footer.SecondaryAction, {
121
- onClick: x,
124
+ onClick: _,
122
125
  size: "large",
123
- children: o(a.feedbackTooltipCancel)
126
+ children: o(t.feedbackTooltipCancel)
124
127
  }), /* @__PURE__ */ e(l.Footer.PrimaryAction, {
125
- className: t.feedbackTooltipSubmitBtn,
126
- disabled: !m,
127
- onClick: () => r(),
128
+ className: a.feedbackTooltipSubmitBtn,
129
+ disabled: !k,
130
+ onClick: () => d(),
128
131
  size: "large",
129
- children: o(a.feedbackTooltipSubmit)
132
+ children: o(t.feedbackTooltipSubmit)
130
133
  })]
131
134
  })]
132
135
  })
133
136
  }),
134
- onOpenChange: p,
135
- open: f,
137
+ onOpenChange: T,
138
+ open: n,
136
139
  side: "left",
137
- children: b
140
+ children: s
138
141
  });
139
142
  };
140
143
  export {
141
- K as FeedbackTooltip,
142
- K as default
144
+ X as FeedbackTooltip,
145
+ X as default
143
146
  };
@@ -38,7 +38,7 @@ const t = e({
38
38
  },
39
39
  feedbackTooltipAbuseDisclaimer: {
40
40
  id: "boxAI.contentAnswers.feedbackTooltipAbuseDisclaimer",
41
- defaultMessage: "To report inappropriate content, email {abuseEmailLink}"
41
+ defaultMessage: "To report inappropriate content, submit <abuseFormLink>this form</abuseFormLink>."
42
42
  },
43
43
  feedbackTooltipFeedbackLabel: {
44
44
  id: "boxAI.contentAnswers.feedbackTooltipFeedback",
@@ -20,7 +20,7 @@ export default {
20
20
  "boxAI.contentAnswers.disabledTooltipFileNotCompatible": "Box AI is not currently supported for this file type",
21
21
  "boxAI.contentAnswers.disabledTooltipPermissionsFailed": "Unable to check permissions at this time. Reload this page to try again",
22
22
  "boxAI.contentAnswers.disabledTooltipPermissionsLoading": "Checking permissions...",
23
- "boxAI.contentAnswers.feedbackTooltipAbuseDisclaimer": "To report inappropriate content, email {abuseEmailLink}",
23
+ "boxAI.contentAnswers.feedbackTooltipAbuseDisclaimer": "To report inappropriate content, submit <abuseFormLink>this form</abuseFormLink>.",
24
24
  "boxAI.contentAnswers.feedbackTooltipCancel": "Cancel",
25
25
  "boxAI.contentAnswers.feedbackTooltipConfirmation": "Thank you for the feedback.",
26
26
  "boxAI.contentAnswers.feedbackTooltipFeedback": "How can we improve the experience?",
@@ -40,8 +40,8 @@ boxAI.contentAnswers.disabledTooltipFileNotCompatible = Box AI is not currently
40
40
  boxAI.contentAnswers.disabledTooltipPermissionsFailed = Unable to check permissions at this time. Reload this page to try again
41
41
  # Disabled tooltip message for the Content Answers entry point button while the AI file permissions are being loaded
42
42
  boxAI.contentAnswers.disabledTooltipPermissionsLoading = Checking permissions...
43
- # Disclaimer informing how to report inappropriate content in the feedback tooltip
44
- boxAI.contentAnswers.feedbackTooltipAbuseDisclaimer = To report inappropriate content, email {abuseEmailLink}
43
+ # Disclaimer informing how to report inappropriate content in the feedback tooltip, the inside of <abuseFormLink> is the linked, clickable text
44
+ boxAI.contentAnswers.feedbackTooltipAbuseDisclaimer = To report inappropriate content, submit <abuseFormLink>this form</abuseFormLink>.
45
45
  # Cancel button text for the feedback tooltip
46
46
  boxAI.contentAnswers.feedbackTooltipCancel = Cancel
47
47
  # Confirmation message after submitting feedback in the feedback tooltip
@@ -1 +1 @@
1
- [{"id":"boxAI.contentAnswers.basedOn","description":"Label for the references used for generating the answer from the AI service","defaultMessage":"Based on:"},{"id":"boxAI.contentAnswers.cardTooltipButton","description":"Text for button to open citation reference in a new tab","defaultMessage":"Open document"},{"id":"boxAI.contentAnswers.cardTooltipTitle","description":"Title of citation card tooltip in answer references section","defaultMessage":"From document:"},{"id":"boxAI.contentAnswers.cardTooltipTitleWithDocumentName","description":"Title of citation card tooltip in answer references section with document title","defaultMessage":"From \"{title}\":"},{"id":"boxAI.textInputWithCopyButton.copyButtonSuccessText","description":"Text for copy button in input with copy button indicating copy success","defaultMessage":"Copied"},{"id":"boxAI.contentAnswers.copyToClipboard","description":"Copy to clipboard tooltip","defaultMessage":"Copy to Clipboard"},{"id":"boxAI.contentAnswers.copyToClipboardSucceeded","description":"Notification displayed to the user when the answer has been successfully copied to the clipboard","defaultMessage":"Copied to your clipboard"},{"id":"boxAI.contentAnswers.feedbackTooltipCancel","description":"Cancel button text for the feedback tooltip","defaultMessage":"Cancel"},{"id":"boxAI.contentAnswers.feedbackTooltipConfirmation","description":"Confirmation message after submitting feedback in the feedback tooltip","defaultMessage":"Thank you for the feedback."},{"id":"boxAI.contentAnswers.feedbackTooltipAbuseDisclaimer","description":"Disclaimer informing how to report inappropriate content in the feedback tooltip","defaultMessage":"To report inappropriate content, email {abuseEmailLink}"},{"id":"boxAI.contentAnswers.feedbackTooltipFeedback","description":"Label for the feedback text area in the feedback tooltip","defaultMessage":"How can we improve the experience?"},{"id":"boxAI.contentAnswers.feedbackTooltipFeedbackPlaceholder","description":"Placeholder text for the feedback text area in the feedback tooltip","defaultMessage":"We'd love to hear from you! Please omit personal info, sensitive content, or links in your feedback as submissions to Box aren't confidential."},{"id":"boxAI.contentAnswers.feedbackTooltipIssueTypeLabel","description":"Label for the feedback type radio group in the feedback tooltip","defaultMessage":"What type of issue do you wish to report?"},{"id":"boxAI.contentAnswers.feedbackTooltipIssueTypeAnswer1","description":"Label for the first radio button in the feedback type radio group in the feedback tooltip","defaultMessage":"Inaccurate answer"},{"id":"boxAI.contentAnswers.feedbackTooltipIssueTypeAnswer2","description":"Label for the second radio button in the feedback type radio group in the feedback tooltip","defaultMessage":"Did not follow my request"},{"id":"boxAI.contentAnswers.feedbackTooltipIssueTypeAnswer3","description":"Label for the third radio button in the feedback type radio group in the feedback tooltip","defaultMessage":"Other"},{"id":"boxAI.contentAnswers.feedbackTooltipPromptShareConsent","description":"Label for checkbox to consent for prompt and answer sharing in the tooltip that asks the user to share feedback on the answer","defaultMessage":"Share my prompt and response to help improve product quality."},{"id":"boxAI.contentAnswers.feedbackTooltipTitle","description":"Title of a tooltip that asks the user to share feedback on the answer","defaultMessage":"Share your feedback"},{"id":"boxAI.contentAnswers.feedbackTooltipSubmit","description":"Submit button text for the feedback tooltip","defaultMessage":"Submit"},{"id":"boxAI.contentAnswers.inlineNoContentErrorText","description":"Content Answers error message when the service returns 204 (no content)","defaultMessage":"Relevant content cannot be found. Please try again later or ask a different question."},{"id":"boxAI.contentAnswers.inlineAgentNotFoundErrorText","description":"Content Answers error message when the answer fails due to an invalid agent","defaultMessage":"The selected agent is unavailable. Switching to the default agent."},{"id":"boxAI.contentAnswers.inlineErrorText","description":"Content Answers error message when the service fails","defaultMessage":"Box AI is having trouble generating a response right now. Please try again."},{"id":"boxAI.contentAnswers.inlineRateLimitingErrorText","description":"Content Answers error message when the service fails due to rate limiting","defaultMessage":"Box AI currently has limited capacity (we're working to expand bandwidth). Please try again in a few minutes."},{"id":"boxAI.contentAnswers.inlinePreconditionFailedErrorText","description":"Content Answers error message when the AI service has not yet processed the file","defaultMessage":"Additional time is needed to process this {type}, please try again later."},{"id":"boxAI.contentAnswers.loadingAnswer","description":"Aria label to show while waiting for an answer","defaultMessage":"Loading Answer..."},{"id":"boxAI.contentAnswers.noReferences","description":"Loading message if there are no citations for an answer","defaultMessage":"Response based on general document analysis"},{"id":"boxAI.contentAnswers.referenceAriaLabel","description":"ARIA label designed for screen readers to enhance clarity during the reading of citations, minimizing confusion.","defaultMessage":"Reference {number}"},{"id":"boxAI.contentAnswers.responseInterruptedError","description":"Error message to be displayed within an answer during streaming mode if the answer was interrupted due to a lack of tokens.","defaultMessage":"Response Interrupted"},{"id":"boxAI.contentAnswers.responseFailedError","description":"Error message to be displayed within an answer during streaming mode if there was another error, such as network errors.","defaultMessage":"Response Failed"},{"id":"boxAI.contentAnswers.responseStoppedError","description":"Error message to be displayed within an answer during streaming mode if the answer was stopped using the Stop Response button.","defaultMessage":"Response Stopped"},{"id":"boxAI.contentAnswers.thumbsUpAriaLabel","description":"Aria label for thumbs up icon","defaultMessage":"Helpful"},{"id":"boxAI.contentAnswers.thumbsDownAriaLabel","description":"Aria label for thumbs down icon","defaultMessage":"Not helpful"},{"id":"boxAI.contentAnswers.inlineCitationAriaLabel","description":"Aria label for inline citation button to open file in new tab","defaultMessage":"Open {fileName} in new tab"}]
1
+ [{"id":"boxAI.contentAnswers.basedOn","description":"Label for the references used for generating the answer from the AI service","defaultMessage":"Based on:"},{"id":"boxAI.contentAnswers.cardTooltipButton","description":"Text for button to open citation reference in a new tab","defaultMessage":"Open document"},{"id":"boxAI.contentAnswers.cardTooltipTitle","description":"Title of citation card tooltip in answer references section","defaultMessage":"From document:"},{"id":"boxAI.contentAnswers.cardTooltipTitleWithDocumentName","description":"Title of citation card tooltip in answer references section with document title","defaultMessage":"From \"{title}\":"},{"id":"boxAI.textInputWithCopyButton.copyButtonSuccessText","description":"Text for copy button in input with copy button indicating copy success","defaultMessage":"Copied"},{"id":"boxAI.contentAnswers.copyToClipboard","description":"Copy to clipboard tooltip","defaultMessage":"Copy to Clipboard"},{"id":"boxAI.contentAnswers.copyToClipboardSucceeded","description":"Notification displayed to the user when the answer has been successfully copied to the clipboard","defaultMessage":"Copied to your clipboard"},{"id":"boxAI.contentAnswers.feedbackTooltipCancel","description":"Cancel button text for the feedback tooltip","defaultMessage":"Cancel"},{"id":"boxAI.contentAnswers.feedbackTooltipConfirmation","description":"Confirmation message after submitting feedback in the feedback tooltip","defaultMessage":"Thank you for the feedback."},{"id":"boxAI.contentAnswers.feedbackTooltipAbuseDisclaimer","description":"Disclaimer informing how to report inappropriate content in the feedback tooltip, the inside of <abuseFormLink> is the linked, clickable text","defaultMessage":"To report inappropriate content, submit <abuseFormLink>this form</abuseFormLink>."},{"id":"boxAI.contentAnswers.feedbackTooltipFeedback","description":"Label for the feedback text area in the feedback tooltip","defaultMessage":"How can we improve the experience?"},{"id":"boxAI.contentAnswers.feedbackTooltipFeedbackPlaceholder","description":"Placeholder text for the feedback text area in the feedback tooltip","defaultMessage":"We'd love to hear from you! Please omit personal info, sensitive content, or links in your feedback as submissions to Box aren't confidential."},{"id":"boxAI.contentAnswers.feedbackTooltipIssueTypeLabel","description":"Label for the feedback type radio group in the feedback tooltip","defaultMessage":"What type of issue do you wish to report?"},{"id":"boxAI.contentAnswers.feedbackTooltipIssueTypeAnswer1","description":"Label for the first radio button in the feedback type radio group in the feedback tooltip","defaultMessage":"Inaccurate answer"},{"id":"boxAI.contentAnswers.feedbackTooltipIssueTypeAnswer2","description":"Label for the second radio button in the feedback type radio group in the feedback tooltip","defaultMessage":"Did not follow my request"},{"id":"boxAI.contentAnswers.feedbackTooltipIssueTypeAnswer3","description":"Label for the third radio button in the feedback type radio group in the feedback tooltip","defaultMessage":"Other"},{"id":"boxAI.contentAnswers.feedbackTooltipPromptShareConsent","description":"Label for checkbox to consent for prompt and answer sharing in the tooltip that asks the user to share feedback on the answer","defaultMessage":"Share my prompt and response to help improve product quality."},{"id":"boxAI.contentAnswers.feedbackTooltipTitle","description":"Title of a tooltip that asks the user to share feedback on the answer","defaultMessage":"Share your feedback"},{"id":"boxAI.contentAnswers.feedbackTooltipSubmit","description":"Submit button text for the feedback tooltip","defaultMessage":"Submit"},{"id":"boxAI.contentAnswers.inlineNoContentErrorText","description":"Content Answers error message when the service returns 204 (no content)","defaultMessage":"Relevant content cannot be found. Please try again later or ask a different question."},{"id":"boxAI.contentAnswers.inlineAgentNotFoundErrorText","description":"Content Answers error message when the answer fails due to an invalid agent","defaultMessage":"The selected agent is unavailable. Switching to the default agent."},{"id":"boxAI.contentAnswers.inlineErrorText","description":"Content Answers error message when the service fails","defaultMessage":"Box AI is having trouble generating a response right now. Please try again."},{"id":"boxAI.contentAnswers.inlineRateLimitingErrorText","description":"Content Answers error message when the service fails due to rate limiting","defaultMessage":"Box AI currently has limited capacity (we're working to expand bandwidth). Please try again in a few minutes."},{"id":"boxAI.contentAnswers.inlinePreconditionFailedErrorText","description":"Content Answers error message when the AI service has not yet processed the file","defaultMessage":"Additional time is needed to process this {type}, please try again later."},{"id":"boxAI.contentAnswers.loadingAnswer","description":"Aria label to show while waiting for an answer","defaultMessage":"Loading Answer..."},{"id":"boxAI.contentAnswers.noReferences","description":"Loading message if there are no citations for an answer","defaultMessage":"Response based on general document analysis"},{"id":"boxAI.contentAnswers.referenceAriaLabel","description":"ARIA label designed for screen readers to enhance clarity during the reading of citations, minimizing confusion.","defaultMessage":"Reference {number}"},{"id":"boxAI.contentAnswers.responseInterruptedError","description":"Error message to be displayed within an answer during streaming mode if the answer was interrupted due to a lack of tokens.","defaultMessage":"Response Interrupted"},{"id":"boxAI.contentAnswers.responseFailedError","description":"Error message to be displayed within an answer during streaming mode if there was another error, such as network errors.","defaultMessage":"Response Failed"},{"id":"boxAI.contentAnswers.responseStoppedError","description":"Error message to be displayed within an answer during streaming mode if the answer was stopped using the Stop Response button.","defaultMessage":"Response Stopped"},{"id":"boxAI.contentAnswers.thumbsUpAriaLabel","description":"Aria label for thumbs up icon","defaultMessage":"Helpful"},{"id":"boxAI.contentAnswers.thumbsDownAriaLabel","description":"Aria label for thumbs down icon","defaultMessage":"Not helpful"},{"id":"boxAI.contentAnswers.inlineCitationAriaLabel","description":"Aria label for inline citation button to open file in new tab","defaultMessage":"Open {fileName} in new tab"}]
@@ -1 +1 @@
1
- div._feedbackTooltip_hjxds_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_hjxds_1 ._feedbackTooltipForm_hjxds_8{gap:var(--bp-space-050, 1.25rem);width:20.375rem}div._feedbackTooltip_hjxds_1 ._feedbackTooltipTitle_hjxds_12{margin-block-end:var(--space-5)}div._feedbackTooltip_hjxds_1 ._feedbackTooltipTextarea_hjxds_15{margin-block-start:var(--space-5)}div._feedbackTooltip_hjxds_1 ._feedbackTooltipSubmitBtn_hjxds_18{margin-inline-start:var(--space-2)}div._feedbackTooltip_hjxds_1 ._feedbackTooltipPromptShareConsent_hjxds_21{margin-block-start:var(--space-4)}div._feedbackTooltip_hjxds_1 ._feedbackTooltipAbuseDisclaimer_hjxds_24{margin-block-start:var(--space-5);color:var(--text-text-on-light-secondary)}div._feedbackTooltip_hjxds_1 ._feedbackTooltipAbuseDisclaimer_hjxds_24 ._feedbackTooltipAbuseLink_hjxds_28{color:var(--text-text-on-light-secondary);font-size:var(--bp-font-size-03, .75rem)}
1
+ div._feedbackTooltip_1y93t_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_1y93t_1 ._feedbackTooltipForm_1y93t_8{gap:var(--bp-space-050, 1.25rem);width:20.375rem}div._feedbackTooltip_1y93t_1 ._feedbackTooltipTitle_1y93t_12{margin-block-end:var(--space-5)}div._feedbackTooltip_1y93t_1 ._feedbackTooltipTextarea_1y93t_15{margin-block-start:var(--space-5)}div._feedbackTooltip_1y93t_1 ._feedbackTooltipSubmitBtn_1y93t_18{margin-inline-start:var(--space-2)}div._feedbackTooltip_1y93t_1 ._feedbackTooltipPromptShareConsent_1y93t_21{margin-block-start:var(--space-4)}div._feedbackTooltip_1y93t_1 ._feedbackTooltipAbuseDisclaimer_1y93t_24{margin-block-start:var(--space-5);color:var(--text-text-on-light-secondary)}div._feedbackTooltip_1y93t_1 ._feedbackTooltipAbuseDisclaimer_1y93t_24 ._feedbackTooltipAbuseLink_1y93t_28{font-size:var(--bp-font-size-03, .75rem)}
@@ -1,2 +1,2 @@
1
- export declare const ABUSE_REPORT_EMAIL = "abuse@box.com";
1
+ export declare const ABUSE_FORM_PATH = "/report-abuse";
2
2
  export declare const MAX_CITATION_LENGTH = 500;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@box/box-ai-content-answers",
3
- "version": "0.154.3",
3
+ "version": "0.155.0",
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.77.1",
20
+ "@box/blueprint-web": "^12.77.2",
21
21
  "@box/blueprint-web-assets": "^4.68.0",
22
- "@box/box-ai-agent-selector": "^0.63.3",
23
- "@box/item-icon": "^0.27.3",
22
+ "@box/box-ai-agent-selector": "^0.63.4",
23
+ "@box/item-icon": "^0.27.4",
24
24
  "@box/storybook-utils": "^0.14.4",
25
25
  "@testing-library/react": "^15.0.6",
26
26
  "react": "^18.3.0",