@box/box-ai-content-answers 0.69.3 → 0.70.1

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
1
  import { defineMessages as e } from "react-intl";
2
- const a = e({
2
+ const s = e({
3
3
  contentAnswersTitle: {
4
4
  id: "boxAI.contentAnswers.contentAnswersTitle",
5
5
  defaultMessage: "Box AI"
@@ -11,8 +11,12 @@ const a = e({
11
11
  clearConversationLabel: {
12
12
  id: "boxAI.contentAnswers.clearConversationLabel",
13
13
  defaultMessage: "Clear conversation"
14
+ },
15
+ collapseModalAriaLabel: {
16
+ id: "boxAI.contentAnswers.collapseModalAriaLabel",
17
+ defaultMessage: "Collapse Modal"
14
18
  }
15
19
  });
16
20
  export {
17
- a as default
21
+ s as default
18
22
  };
@@ -1,63 +1,65 @@
1
1
  import "../../../../styles/modal.css";
2
- import { useBreakpoint as Q, Breakpoint as U, Modal as s, Text as W, Tooltip as D, IconButton as K } from "@box/blueprint-web";
3
- import { Trash as $ } from "@box/blueprint-web-assets/icons/Line";
4
- import { BoxAiLogo as J } from "@box/blueprint-web-assets/icons/Logo";
2
+ import { useBreakpoint as U, Breakpoint as W, Modal as l, Text as D, Tooltip as K, IconButton as $ } from "@box/blueprint-web";
3
+ import { ArrowsCollapse as J } from "@box/blueprint-web-assets/icons/Fill";
4
+ import { Trash as V } from "@box/blueprint-web-assets/icons/Line";
5
+ import { BoxAiLogo as X } from "@box/blueprint-web-assets/icons/Logo";
5
6
  import { Size8 as x } from "@box/blueprint-web-assets/tokens/tokens";
6
- import { BoxAiAgentSelectorWithApi as V, AgentsProvider as X } from "@box/box-ai-agent-selector";
7
- import l from "react";
8
- import { useIntl as Y } from "react-intl";
9
- import { BoxAiContentAnswers as Z } from "../../box-ai-content-answers.js";
10
- import { AgentsProvider as y } from "../../contexts/AgentsContext.js";
11
- import { A as ee, R as te } from "../../../../chunks/types.js";
12
- import { AgentSelector as oe } from "../agents/agent-selector.js";
13
- import { LOGGER_BASE_CONFIG as B, LOGGER_ACTION_CLICK as ne } from "../common/constants.js";
14
- import re from "./hooks/useStopPropagationOnEsc.js";
15
- import d from "./messages.js";
16
- import { jsxs as g, jsx as e } from "react/jsx-runtime";
17
- const ae = "_BoxAIIconColor_1ed3r_1", se = "_modalHeader_1ed3r_5", le = "_contentAnswersModal_1ed3r_10", ie = "_boxAiContentAnswers_1ed3r_17", ce = "_clearButton_1ed3r_25", de = "_contentAnswerModal_1ed3r_1", me = "_modalHeaderContainer_1ed3r_54", _e = "_agentSelectorTrigger_1ed3r_62", ge = "_agentSelectorContent_1ed3r_73", t = {
18
- BoxAIIconColor: ae,
19
- modalHeader: se,
20
- contentAnswersModal: le,
21
- boxAiContentAnswers: ie,
22
- clearButton: ce,
7
+ import { BoxAiAgentSelectorWithApi as Y, AgentsProvider as Z } from "@box/box-ai-agent-selector";
8
+ import i from "react";
9
+ import { useIntl as y } from "react-intl";
10
+ import { BoxAiContentAnswers as ee } from "../../box-ai-content-answers.js";
11
+ import { AgentsProvider as te } from "../../contexts/AgentsContext.js";
12
+ import { A as oe, R as re } from "../../../../chunks/types.js";
13
+ import { AgentSelector as ne } from "../agents/agent-selector.js";
14
+ import { LOGGER_BASE_CONFIG as B, LOGGER_ACTION_CLICK as ae } from "../common/constants.js";
15
+ import se from "./hooks/useStopPropagationOnEsc.js";
16
+ import c from "./messages.js";
17
+ import { jsxs as _, jsx as e } from "react/jsx-runtime";
18
+ const le = "_BoxAIIconColor_1ed3r_1", ie = "_modalHeader_1ed3r_5", ce = "_contentAnswersModal_1ed3r_10", de = "_boxAiContentAnswers_1ed3r_17", me = "_clearButton_1ed3r_25", ge = "_contentAnswerModal_1ed3r_1", _e = "_modalHeaderContainer_1ed3r_54", fe = "_agentSelectorTrigger_1ed3r_62", Ce = "_agentSelectorContent_1ed3r_73", t = {
19
+ BoxAIIconColor: le,
20
+ modalHeader: ie,
21
+ contentAnswersModal: ce,
22
+ boxAiContentAnswers: de,
23
+ clearButton: me,
23
24
  "modal-close-button": "_modal-close-button_1ed3r_29",
24
- contentAnswerModal: de,
25
- modalHeaderContainer: me,
26
- agentSelectorTrigger: _e,
27
- agentSelectorContent: ge
28
- }, Re = ({
29
- children: b,
25
+ contentAnswerModal: ge,
26
+ modalHeaderContainer: _e,
27
+ agentSelectorTrigger: fe,
28
+ agentSelectorContent: Ce
29
+ }, He = ({
30
+ children: N,
30
31
  getAIStudioAgents: f,
31
- hasCustomSuggestedQuestions: N,
32
+ hasCustomSuggestedQuestions: S,
32
33
  hostAppName: m,
33
34
  isAgentSelectorEnabled: C,
34
- isAIStudioAgentSelectorEnabled: i,
35
- isDebugModeEnabled: S,
36
- isResetChatEnabled: O,
37
- isStopResponseEnabled: I = !1,
35
+ isAIStudioAgentSelectorEnabled: d,
36
+ isDebugModeEnabled: O,
37
+ isResetChatEnabled: I,
38
+ isStopResponseEnabled: L = !1,
38
39
  itemSize: u,
39
40
  extension: A,
40
41
  onClearAction: p,
41
42
  onSelectAgent: R,
42
43
  recordAction: o,
43
44
  shouldRenderProviders: E = !0,
44
- stopPropagationOnEsc: L,
45
- ...H
45
+ stopPropagationOnEsc: H,
46
+ variant: h = "closable",
47
+ ...k
46
48
  }) => {
47
- var w, T;
49
+ var v, T;
48
50
  const {
49
- open: h,
50
- defaultOpen: k,
51
- onOpenChange: G,
52
- modal: P,
53
- ...n
54
- } = H, c = Y(), z = Q() <= U.Medium;
55
- re(L, h);
56
- const _ = (T = (w = n == null ? void 0 : n.questions) == null ? void 0 : w[n.questions.length - 1]) == null ? void 0 : T.error, [q, M] = l.useState(!1), r = l.useCallback((a) => {
57
- o && (a.data ?? (a.data = {}), a.data.hostAppName = m, o(a));
51
+ open: M,
52
+ defaultOpen: G,
53
+ onOpenChange: P,
54
+ modal: z,
55
+ ...r
56
+ } = k, n = y(), q = U() <= W.Medium;
57
+ se(H, M);
58
+ const g = (T = (v = r == null ? void 0 : r.questions) == null ? void 0 : v[r.questions.length - 1]) == null ? void 0 : T.error, [F, b] = i.useState(!1), a = i.useCallback((s) => {
59
+ o && (s.data ?? (s.data = {}), s.data.hostAppName = m, o(s));
58
60
  }, [m, o]);
59
- l.useEffect(() => {
60
- r({
61
+ i.useEffect(() => {
62
+ a({
61
63
  ...B,
62
64
  target: "loaded",
63
65
  data: {
@@ -65,88 +67,89 @@ const ae = "_BoxAIIconColor_1ed3r_1", se = "_modalHeader_1ed3r_5", le = "_conten
65
67
  fileType: A
66
68
  }
67
69
  });
68
- }, [r, A, u, o]), l.useEffect(() => {
69
- _ && _ === ee.AGENT_NOT_FOUND && M(!0);
70
- }, [_]);
71
- const F = () => {
72
- p && (p(), r({
70
+ }, [a, A, u, o]), i.useEffect(() => {
71
+ g && g === oe.AGENT_NOT_FOUND && b(!0);
72
+ }, [g]);
73
+ const j = () => {
74
+ p && (p(), a({
73
75
  ...B,
74
- action: ne,
76
+ action: ae,
75
77
  target: "clearChat"
76
78
  }));
77
- }, j = l.useCallback(async () => (M(!1), f()), [f]), v = /* @__PURE__ */ g(s, {
78
- defaultOpen: k,
79
- modal: P,
80
- onOpenChange: G,
81
- open: h,
82
- children: [/* @__PURE__ */ e(s.Trigger, {
83
- children: b
84
- }), /* @__PURE__ */ g(s.Content, {
79
+ }, Q = i.useCallback(async () => (b(!1), f()), [f]), w = /* @__PURE__ */ _(l, {
80
+ defaultOpen: G,
81
+ modal: z,
82
+ onOpenChange: P,
83
+ open: M,
84
+ children: [/* @__PURE__ */ e(l.Trigger, {
85
+ children: N
86
+ }), /* @__PURE__ */ _(l.Content, {
85
87
  className: t.contentAnswersModal,
86
88
  "data-testid": "content-answers-modal",
87
89
  size: "xlarge",
88
- children: [/* @__PURE__ */ e(s.Header, {
90
+ children: [/* @__PURE__ */ e(l.Header, {
89
91
  className: t.modalHeaderContainer,
90
- children: /* @__PURE__ */ g("div", {
92
+ children: /* @__PURE__ */ _("div", {
91
93
  className: t.modalHeader,
92
- children: [!z && /* @__PURE__ */ e(J, {
94
+ children: [!q && /* @__PURE__ */ e(X, {
93
95
  className: t.BoxAIIconColor,
94
96
  "data-testid": "content-answers-icon-color",
95
97
  height: x,
96
98
  width: x
97
- }), /* @__PURE__ */ e(W, {
99
+ }), /* @__PURE__ */ e(D, {
98
100
  as: "span",
99
101
  variant: "titleMedium",
100
- children: c.formatMessage(d.contentAnswersTitle)
101
- }), !i && C && /* @__PURE__ */ e(oe, {
102
+ children: n.formatMessage(c.contentAnswersTitle)
103
+ }), !d && C && /* @__PURE__ */ e(ne, {
102
104
  onSelectAgent: R,
103
- recordAction: r
104
- }), i && /* @__PURE__ */ e(V, {
105
+ recordAction: a
106
+ }), d && /* @__PURE__ */ e(Y, {
105
107
  contentClassName: t.agentSelectorContent,
106
- fetcher: j,
108
+ fetcher: Q,
107
109
  hostAppName: m,
108
110
  recordAction: o,
109
- requestState: q ? te.ERROR : void 0,
111
+ requestState: F ? re.ERROR : void 0,
110
112
  shouldHideAgentSelectorOnLoad: !0,
111
113
  triggerChipClassName: t.agentSelectorTrigger
112
114
  })]
113
115
  })
114
- }), O && /* @__PURE__ */ e(D, {
115
- content: c.formatMessage(d.clearConversationLabel),
116
+ }), I && /* @__PURE__ */ e(K, {
117
+ content: n.formatMessage(c.clearConversationLabel),
116
118
  "data-testid": "clear-conversation-tooltip",
117
119
  side: "top",
118
120
  variant: "standard",
119
- children: /* @__PURE__ */ e(K, {
120
- "aria-label": c.formatMessage(d.clearConversationLabel),
121
+ children: /* @__PURE__ */ e($, {
122
+ "aria-label": n.formatMessage(c.clearConversationLabel),
121
123
  className: t.clearButton,
122
124
  "data-testid": "clear-conversation-button",
123
- icon: $,
124
- onClick: F,
125
+ icon: V,
126
+ onClick: j,
125
127
  size: "small"
126
128
  })
127
- }), /* @__PURE__ */ e(s.Close, {
128
- "aria-label": c.formatMessage(d.closeModalAriaLabel),
129
+ }), /* @__PURE__ */ e(l.Close, {
130
+ "aria-label": h === "collapsible" ? n.formatMessage(c.collapseModalAriaLabel) : n.formatMessage(c.closeModalAriaLabel),
129
131
  className: t["modal-close-button"],
132
+ icon: h === "collapsible" ? J : void 0,
130
133
  size: "small"
131
- }), /* @__PURE__ */ e(Z, {
134
+ }), /* @__PURE__ */ e(ee, {
132
135
  className: t.boxAiContentAnswers,
133
- hasCustomSuggestedQuestions: N,
134
- isAgentSelectorEnabled: !i && C,
135
- isAIStudioAgentSelectorEnabled: i,
136
- isDebugModeEnabled: S,
137
- isStopResponseEnabled: I,
138
- recordAction: r,
139
- ...n
136
+ hasCustomSuggestedQuestions: S,
137
+ isAgentSelectorEnabled: !d && C,
138
+ isAIStudioAgentSelectorEnabled: d,
139
+ isDebugModeEnabled: O,
140
+ isStopResponseEnabled: L,
141
+ recordAction: a,
142
+ ...r
140
143
  })]
141
144
  })]
142
145
  });
143
- return E ? /* @__PURE__ */ e(X, {
144
- children: /* @__PURE__ */ e(y, {
145
- children: v
146
+ return E ? /* @__PURE__ */ e(Z, {
147
+ children: /* @__PURE__ */ e(te, {
148
+ children: w
146
149
  })
147
- }) : v;
150
+ }) : w;
148
151
  };
149
152
  export {
150
- Re as IntelligenceModal,
151
- Re as default
153
+ He as IntelligenceModal,
154
+ He as default
152
155
  };
package/i18n/bn-IN.js CHANGED
@@ -10,6 +10,7 @@ export default {
10
10
  "boxAI.contentAnswers.cardTooltipTitleWithDocumentName": "\"{title}\"-এর থেকে:",
11
11
  "boxAI.contentAnswers.clearConversationLabel": "কথোপকথন মুছে দিন",
12
12
  "boxAI.contentAnswers.closeModalAriaLabel": "মোডাল বন্ধ করুন",
13
+ "boxAI.contentAnswers.collapseModalAriaLabel": "Collapse Modal",
13
14
  "boxAI.contentAnswers.contentAnswersTitle": "Box AI",
14
15
  "boxAI.contentAnswers.continueAnyway": "তবুও চালিয়ে যান",
15
16
  "boxAI.contentAnswers.copyToClipboard": "ক্লিপবোর্ডে কপি করুন",
package/i18n/da-DK.js CHANGED
@@ -10,6 +10,7 @@ export default {
10
10
  "boxAI.contentAnswers.cardTooltipTitleWithDocumentName": "Fra \"{title}\":",
11
11
  "boxAI.contentAnswers.clearConversationLabel": "Ryd samtale",
12
12
  "boxAI.contentAnswers.closeModalAriaLabel": "Luk modal",
13
+ "boxAI.contentAnswers.collapseModalAriaLabel": "Collapse Modal",
13
14
  "boxAI.contentAnswers.contentAnswersTitle": "Box AI",
14
15
  "boxAI.contentAnswers.continueAnyway": "Fortsæt alligevel",
15
16
  "boxAI.contentAnswers.copyToClipboard": "Kopier til udklipsholder",
package/i18n/de-DE.js CHANGED
@@ -10,6 +10,7 @@ export default {
10
10
  "boxAI.contentAnswers.cardTooltipTitleWithDocumentName": "Von „{title}“:",
11
11
  "boxAI.contentAnswers.clearConversationLabel": "Unterhaltung löschen",
12
12
  "boxAI.contentAnswers.closeModalAriaLabel": "Modal schließen",
13
+ "boxAI.contentAnswers.collapseModalAriaLabel": "Collapse Modal",
13
14
  "boxAI.contentAnswers.contentAnswersTitle": "Box AI",
14
15
  "boxAI.contentAnswers.continueAnyway": "Trotzdem fortfahren",
15
16
  "boxAI.contentAnswers.copyToClipboard": "In die Zwischenablage kopieren",
package/i18n/en-AU.js CHANGED
@@ -10,6 +10,7 @@ export default {
10
10
  "boxAI.contentAnswers.cardTooltipTitleWithDocumentName": "From \"{title}\":",
11
11
  "boxAI.contentAnswers.clearConversationLabel": "Clear conversation",
12
12
  "boxAI.contentAnswers.closeModalAriaLabel": "Close Modal",
13
+ "boxAI.contentAnswers.collapseModalAriaLabel": "Collapse Modal",
13
14
  "boxAI.contentAnswers.contentAnswersTitle": "Box AI",
14
15
  "boxAI.contentAnswers.continueAnyway": "Continue anyway",
15
16
  "boxAI.contentAnswers.copyToClipboard": "Copy to Clipboard",
package/i18n/en-CA.js CHANGED
@@ -10,6 +10,7 @@ export default {
10
10
  "boxAI.contentAnswers.cardTooltipTitleWithDocumentName": "From \"{title}\":",
11
11
  "boxAI.contentAnswers.clearConversationLabel": "Clear conversation",
12
12
  "boxAI.contentAnswers.closeModalAriaLabel": "Close Modal",
13
+ "boxAI.contentAnswers.collapseModalAriaLabel": "Collapse Modal",
13
14
  "boxAI.contentAnswers.contentAnswersTitle": "Box AI",
14
15
  "boxAI.contentAnswers.continueAnyway": "Continue anyway",
15
16
  "boxAI.contentAnswers.copyToClipboard": "Copy to Clipboard",
package/i18n/en-GB.js CHANGED
@@ -10,6 +10,7 @@ export default {
10
10
  "boxAI.contentAnswers.cardTooltipTitleWithDocumentName": "From \"{title}\":",
11
11
  "boxAI.contentAnswers.clearConversationLabel": "Clear conversation",
12
12
  "boxAI.contentAnswers.closeModalAriaLabel": "Close Modal",
13
+ "boxAI.contentAnswers.collapseModalAriaLabel": "Collapse Modal",
13
14
  "boxAI.contentAnswers.contentAnswersTitle": "Box AI",
14
15
  "boxAI.contentAnswers.continueAnyway": "Continue anyway",
15
16
  "boxAI.contentAnswers.copyToClipboard": "Copy to Clipboard",
package/i18n/en-US.js CHANGED
@@ -10,6 +10,7 @@ export default {
10
10
  "boxAI.contentAnswers.cardTooltipTitleWithDocumentName": "From \"{title}\":",
11
11
  "boxAI.contentAnswers.clearConversationLabel": "Clear conversation",
12
12
  "boxAI.contentAnswers.closeModalAriaLabel": "Close Modal",
13
+ "boxAI.contentAnswers.collapseModalAriaLabel": "Collapse Modal",
13
14
  "boxAI.contentAnswers.contentAnswersTitle": "Box AI",
14
15
  "boxAI.contentAnswers.continueAnyway": "Continue anyway",
15
16
  "boxAI.contentAnswers.copyToClipboard": "Copy to Clipboard",
@@ -20,6 +20,8 @@ boxAI.contentAnswers.cardTooltipTitleWithDocumentName = From "{title}":
20
20
  boxAI.contentAnswers.clearConversationLabel = Clear conversation
21
21
  # Content Answers close button aria label
22
22
  boxAI.contentAnswers.closeModalAriaLabel = Close Modal
23
+ # Content Answers collapse button aria label
24
+ boxAI.contentAnswers.collapseModalAriaLabel = Collapse Modal
23
25
  # Content Answers feature name shown on menu item and modal title
24
26
  boxAI.contentAnswers.contentAnswersTitle = Box AI
25
27
  # Box AI primary action when file is too large
@@ -10,6 +10,7 @@ export default {
10
10
  "boxAI.contentAnswers.cardTooltipTitleWithDocumentName": "⟦萬萬萬 ₣ŕόm \"{title}\": 國國國⟧",
11
11
  "boxAI.contentAnswers.clearConversationLabel": "⟦萬萬萬萬萬 Ĉľèαř čòπνέяśáτíòи 國國國國國⟧",
12
12
  "boxAI.contentAnswers.closeModalAriaLabel": "⟦萬萬萬 Čĺòѕé Мòďǻľ 國國國⟧",
13
+ "boxAI.contentAnswers.collapseModalAriaLabel": "Collapse Modal",
13
14
  "boxAI.contentAnswers.contentAnswersTitle": "⟦萬 ßó× ÁΪ 國⟧",
14
15
  "boxAI.contentAnswers.continueAnyway": "⟦萬萬萬萬 Čоиťíŋűé áńУώåў 國國國國⟧",
15
16
  "boxAI.contentAnswers.copyToClipboard": "⟦萬萬萬萬萬 ÇоΡý ťő ČľιΡьőǻѓď 國國國國國⟧",
package/i18n/es-419.js CHANGED
@@ -10,6 +10,7 @@ export default {
10
10
  "boxAI.contentAnswers.cardTooltipTitleWithDocumentName": "De \"{title}\":",
11
11
  "boxAI.contentAnswers.clearConversationLabel": "Eliminar conversación",
12
12
  "boxAI.contentAnswers.closeModalAriaLabel": "Cerrar modal",
13
+ "boxAI.contentAnswers.collapseModalAriaLabel": "Collapse Modal",
13
14
  "boxAI.contentAnswers.contentAnswersTitle": "IA de Box",
14
15
  "boxAI.contentAnswers.continueAnyway": "Continuar de todos modos",
15
16
  "boxAI.contentAnswers.copyToClipboard": "Copiar al portapapeles",
package/i18n/es-ES.js CHANGED
@@ -10,6 +10,7 @@ export default {
10
10
  "boxAI.contentAnswers.cardTooltipTitleWithDocumentName": "De \"{title}\":",
11
11
  "boxAI.contentAnswers.clearConversationLabel": "Eliminar conversación",
12
12
  "boxAI.contentAnswers.closeModalAriaLabel": "Cerrar modal",
13
+ "boxAI.contentAnswers.collapseModalAriaLabel": "Collapse Modal",
13
14
  "boxAI.contentAnswers.contentAnswersTitle": "IA de Box",
14
15
  "boxAI.contentAnswers.continueAnyway": "Continuar de todos modos",
15
16
  "boxAI.contentAnswers.copyToClipboard": "Copiar al portapapeles",
package/i18n/fi-FI.js CHANGED
@@ -10,6 +10,7 @@ export default {
10
10
  "boxAI.contentAnswers.cardTooltipTitleWithDocumentName": "Asiakirjasta ”{title}”:",
11
11
  "boxAI.contentAnswers.clearConversationLabel": "Poista keskustelu",
12
12
  "boxAI.contentAnswers.closeModalAriaLabel": "Sulje valintaikkuna",
13
+ "boxAI.contentAnswers.collapseModalAriaLabel": "Collapse Modal",
13
14
  "boxAI.contentAnswers.contentAnswersTitle": "Box AI",
14
15
  "boxAI.contentAnswers.continueAnyway": "Jatka joka tapauksessa",
15
16
  "boxAI.contentAnswers.copyToClipboard": "Kopioi leikepöydälle",
package/i18n/fr-CA.js CHANGED
@@ -10,6 +10,7 @@ export default {
10
10
  "boxAI.contentAnswers.cardTooltipTitleWithDocumentName": "De « {title} » :",
11
11
  "boxAI.contentAnswers.clearConversationLabel": "Effacer la discussion",
12
12
  "boxAI.contentAnswers.closeModalAriaLabel": "Fermer Modal",
13
+ "boxAI.contentAnswers.collapseModalAriaLabel": "Collapse Modal",
13
14
  "boxAI.contentAnswers.contentAnswersTitle": "Box AI",
14
15
  "boxAI.contentAnswers.continueAnyway": "Continuer malgré tout",
15
16
  "boxAI.contentAnswers.copyToClipboard": "Copier dans le presse-papiers",
package/i18n/fr-FR.js CHANGED
@@ -10,6 +10,7 @@ export default {
10
10
  "boxAI.contentAnswers.cardTooltipTitleWithDocumentName": "De « {title} » :",
11
11
  "boxAI.contentAnswers.clearConversationLabel": "Effacer la discussion",
12
12
  "boxAI.contentAnswers.closeModalAriaLabel": "Fermer Modal",
13
+ "boxAI.contentAnswers.collapseModalAriaLabel": "Collapse Modal",
13
14
  "boxAI.contentAnswers.contentAnswersTitle": "Box AI",
14
15
  "boxAI.contentAnswers.continueAnyway": "Continuer malgré tout",
15
16
  "boxAI.contentAnswers.copyToClipboard": "Copier dans le presse-papiers",
package/i18n/hi-IN.js CHANGED
@@ -10,6 +10,7 @@ export default {
10
10
  "boxAI.contentAnswers.cardTooltipTitleWithDocumentName": "\"{title}\" से:",
11
11
  "boxAI.contentAnswers.clearConversationLabel": "बातचीत मिटाएँ",
12
12
  "boxAI.contentAnswers.closeModalAriaLabel": "मोडल बंद करें",
13
+ "boxAI.contentAnswers.collapseModalAriaLabel": "Collapse Modal",
13
14
  "boxAI.contentAnswers.contentAnswersTitle": "Box AI",
14
15
  "boxAI.contentAnswers.continueAnyway": "किसी भी तरह जारी रखें",
15
16
  "boxAI.contentAnswers.copyToClipboard": "क्लिपबोर्ड में कॉपी करें",
package/i18n/it-IT.js CHANGED
@@ -10,6 +10,7 @@ export default {
10
10
  "boxAI.contentAnswers.cardTooltipTitleWithDocumentName": "Da \"{title}\":",
11
11
  "boxAI.contentAnswers.clearConversationLabel": "Cancella conversazione",
12
12
  "boxAI.contentAnswers.closeModalAriaLabel": "Chiudi modale",
13
+ "boxAI.contentAnswers.collapseModalAriaLabel": "Collapse Modal",
13
14
  "boxAI.contentAnswers.contentAnswersTitle": "Box AI",
14
15
  "boxAI.contentAnswers.continueAnyway": "Continua comunque",
15
16
  "boxAI.contentAnswers.copyToClipboard": "Copia negli appunti",
package/i18n/ja-JP.js CHANGED
@@ -10,6 +10,7 @@ export default {
10
10
  "boxAI.contentAnswers.cardTooltipTitleWithDocumentName": "「{title}」から:",
11
11
  "boxAI.contentAnswers.clearConversationLabel": "会話をクリア",
12
12
  "boxAI.contentAnswers.closeModalAriaLabel": "ウィンドウを閉じる",
13
+ "boxAI.contentAnswers.collapseModalAriaLabel": "Collapse Modal",
13
14
  "boxAI.contentAnswers.contentAnswersTitle": "Box AI",
14
15
  "boxAI.contentAnswers.continueAnyway": "このまま続行",
15
16
  "boxAI.contentAnswers.copyToClipboard": "クリップボードにコピー",
@@ -1 +1 @@
1
- [{"id":"boxAI.contentAnswers.contentAnswersTitle","description":"Content Answers feature name shown on menu item and modal title","defaultMessage":"Box AI"},{"id":"boxAI.contentAnswers.closeModalAriaLabel","description":"Content Answers close button aria label","defaultMessage":"Close Modal"},{"id":"boxAI.contentAnswers.clearConversationLabel","description":"Clear conversation button label","defaultMessage":"Clear conversation"}]
1
+ [{"id":"boxAI.contentAnswers.contentAnswersTitle","description":"Content Answers feature name shown on menu item and modal title","defaultMessage":"Box AI"},{"id":"boxAI.contentAnswers.closeModalAriaLabel","description":"Content Answers close button aria label","defaultMessage":"Close Modal"},{"id":"boxAI.contentAnswers.clearConversationLabel","description":"Clear conversation button label","defaultMessage":"Clear conversation"},{"id":"boxAI.contentAnswers.collapseModalAriaLabel","description":"Content Answers collapse button aria label","defaultMessage":"Collapse Modal"}]
package/i18n/ko-KR.js CHANGED
@@ -10,6 +10,7 @@ export default {
10
10
  "boxAI.contentAnswers.cardTooltipTitleWithDocumentName": "\"{title}\"에서",
11
11
  "boxAI.contentAnswers.clearConversationLabel": "대화 지우기",
12
12
  "boxAI.contentAnswers.closeModalAriaLabel": "양식 닫기",
13
+ "boxAI.contentAnswers.collapseModalAriaLabel": "Collapse Modal",
13
14
  "boxAI.contentAnswers.contentAnswersTitle": "Box AI",
14
15
  "boxAI.contentAnswers.continueAnyway": "어쨌든 계속 진행",
15
16
  "boxAI.contentAnswers.copyToClipboard": "클립보드로 복사",
package/i18n/nb-NO.js CHANGED
@@ -10,6 +10,7 @@ export default {
10
10
  "boxAI.contentAnswers.cardTooltipTitleWithDocumentName": "Fra \"{title}\":",
11
11
  "boxAI.contentAnswers.clearConversationLabel": "Fjern samtale",
12
12
  "boxAI.contentAnswers.closeModalAriaLabel": "Lukk modal",
13
+ "boxAI.contentAnswers.collapseModalAriaLabel": "Collapse Modal",
13
14
  "boxAI.contentAnswers.contentAnswersTitle": "Box AI",
14
15
  "boxAI.contentAnswers.continueAnyway": "Fortsett likevel",
15
16
  "boxAI.contentAnswers.copyToClipboard": "Kopier til utklippstavle",
package/i18n/nl-NL.js CHANGED
@@ -10,6 +10,7 @@ export default {
10
10
  "boxAI.contentAnswers.cardTooltipTitleWithDocumentName": "Van \"{title}\":",
11
11
  "boxAI.contentAnswers.clearConversationLabel": "Gesprek wissen",
12
12
  "boxAI.contentAnswers.closeModalAriaLabel": "Modaal sluiten",
13
+ "boxAI.contentAnswers.collapseModalAriaLabel": "Collapse Modal",
13
14
  "boxAI.contentAnswers.contentAnswersTitle": "Box AI",
14
15
  "boxAI.contentAnswers.continueAnyway": "Toch doorgaan",
15
16
  "boxAI.contentAnswers.copyToClipboard": "Kopiëren naar het klembord",
package/i18n/pl-PL.js CHANGED
@@ -10,6 +10,7 @@ export default {
10
10
  "boxAI.contentAnswers.cardTooltipTitleWithDocumentName": "Od „{title}”:",
11
11
  "boxAI.contentAnswers.clearConversationLabel": "Wyczyść rozmowę",
12
12
  "boxAI.contentAnswers.closeModalAriaLabel": "Zamknij modal",
13
+ "boxAI.contentAnswers.collapseModalAriaLabel": "Collapse Modal",
13
14
  "boxAI.contentAnswers.contentAnswersTitle": "Box AI",
14
15
  "boxAI.contentAnswers.continueAnyway": "Kontynuuj mimo wszystko",
15
16
  "boxAI.contentAnswers.copyToClipboard": "Skopiuj do schowka",
package/i18n/pt-BR.js CHANGED
@@ -10,6 +10,7 @@ export default {
10
10
  "boxAI.contentAnswers.cardTooltipTitleWithDocumentName": "De \"{title}\":",
11
11
  "boxAI.contentAnswers.clearConversationLabel": "Limpar conversa",
12
12
  "boxAI.contentAnswers.closeModalAriaLabel": "Fechar modal",
13
+ "boxAI.contentAnswers.collapseModalAriaLabel": "Collapse Modal",
13
14
  "boxAI.contentAnswers.contentAnswersTitle": "Box AI",
14
15
  "boxAI.contentAnswers.continueAnyway": "Continuar mesmo assim",
15
16
  "boxAI.contentAnswers.copyToClipboard": "Copiar para a área de transferência",
package/i18n/ru-RU.js CHANGED
@@ -10,6 +10,7 @@ export default {
10
10
  "boxAI.contentAnswers.cardTooltipTitleWithDocumentName": "Из \"{title}\":",
11
11
  "boxAI.contentAnswers.clearConversationLabel": "Очистить беседу",
12
12
  "boxAI.contentAnswers.closeModalAriaLabel": "Закрыть модальное окно",
13
+ "boxAI.contentAnswers.collapseModalAriaLabel": "Collapse Modal",
13
14
  "boxAI.contentAnswers.contentAnswersTitle": "ИИ Box",
14
15
  "boxAI.contentAnswers.continueAnyway": "Все равно продолжить",
15
16
  "boxAI.contentAnswers.copyToClipboard": "Копировать в буфер обмена",
package/i18n/sv-SE.js CHANGED
@@ -10,6 +10,7 @@ export default {
10
10
  "boxAI.contentAnswers.cardTooltipTitleWithDocumentName": "Från \"{title}\":",
11
11
  "boxAI.contentAnswers.clearConversationLabel": "Rensa konversation",
12
12
  "boxAI.contentAnswers.closeModalAriaLabel": "Stäng modal",
13
+ "boxAI.contentAnswers.collapseModalAriaLabel": "Collapse Modal",
13
14
  "boxAI.contentAnswers.contentAnswersTitle": "Box AI",
14
15
  "boxAI.contentAnswers.continueAnyway": "Fortsätt ändå",
15
16
  "boxAI.contentAnswers.copyToClipboard": "Kopiera till Urklipp",
package/i18n/tr-TR.js CHANGED
@@ -10,6 +10,7 @@ export default {
10
10
  "boxAI.contentAnswers.cardTooltipTitleWithDocumentName": "\"{title}\" kaynağından:",
11
11
  "boxAI.contentAnswers.clearConversationLabel": "Konuşmayı temizle",
12
12
  "boxAI.contentAnswers.closeModalAriaLabel": "Modalı kapat",
13
+ "boxAI.contentAnswers.collapseModalAriaLabel": "Collapse Modal",
13
14
  "boxAI.contentAnswers.contentAnswersTitle": "Box AI",
14
15
  "boxAI.contentAnswers.continueAnyway": "Yine de devam et",
15
16
  "boxAI.contentAnswers.copyToClipboard": "Panoya Kopyala",
package/i18n/zh-CN.js CHANGED
@@ -10,6 +10,7 @@ export default {
10
10
  "boxAI.contentAnswers.cardTooltipTitleWithDocumentName": "从“{title}”:",
11
11
  "boxAI.contentAnswers.clearConversationLabel": "清除对话",
12
12
  "boxAI.contentAnswers.closeModalAriaLabel": "关闭模式",
13
+ "boxAI.contentAnswers.collapseModalAriaLabel": "Collapse Modal",
13
14
  "boxAI.contentAnswers.contentAnswersTitle": "Box AI",
14
15
  "boxAI.contentAnswers.continueAnyway": "仍然继续",
15
16
  "boxAI.contentAnswers.copyToClipboard": "复制到剪贴板",
package/i18n/zh-TW.js CHANGED
@@ -10,6 +10,7 @@ export default {
10
10
  "boxAI.contentAnswers.cardTooltipTitleWithDocumentName": "來自「{title}」:",
11
11
  "boxAI.contentAnswers.clearConversationLabel": "清除對話",
12
12
  "boxAI.contentAnswers.closeModalAriaLabel": "關閉互動視窗",
13
+ "boxAI.contentAnswers.collapseModalAriaLabel": "Collapse Modal",
13
14
  "boxAI.contentAnswers.contentAnswersTitle": "Box AI",
14
15
  "boxAI.contentAnswers.continueAnyway": "仍繼續",
15
16
  "boxAI.contentAnswers.copyToClipboard": "複製到剪貼簿",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@box/box-ai-content-answers",
3
- "version": "0.69.3",
3
+ "version": "0.70.1",
4
4
  "peerDependencies": {
5
5
  "@box/blueprint-web": "^7.8.0",
6
6
  "@box/blueprint-web-assets": "^4.16.0",
@@ -14,9 +14,9 @@
14
14
  "remarkable": "^2.0.1"
15
15
  },
16
16
  "devDependencies": {
17
- "@box/blueprint-web": "^9.0.1",
17
+ "@box/blueprint-web": "^9.0.2",
18
18
  "@box/blueprint-web-assets": "^4.30.0",
19
- "@box/box-ai-agent-selector": "^0.17.1",
19
+ "@box/box-ai-agent-selector": "^0.17.2",
20
20
  "@box/storybook-utils": "^0.7.0",
21
21
  "@testing-library/react": "^15.0.6",
22
22
  "react": "^18.3.0",
@@ -54,5 +54,5 @@
54
54
  "**/*.css"
55
55
  ],
56
56
  "license": "SEE LICENSE IN LICENSE",
57
- "gitHead": "f2a6eccd12f3996673be6242bff1c7701cf80a8a"
57
+ "gitHead": "3336acc51ee37751c34b425b05337b5effd16b72"
58
58
  }
@@ -14,5 +14,10 @@ declare const messages: {
14
14
  description: string;
15
15
  id: string;
16
16
  };
17
+ collapseModalAriaLabel: {
18
+ defaultMessage: string;
19
+ description: string;
20
+ id: string;
21
+ };
17
22
  };
18
23
  export default messages;
@@ -39,6 +39,8 @@ export type IntelligenceModalProps = ModalProps & BoxAiContentAnswersProps & {
39
39
  onClearAction?: () => void;
40
40
  /** Callback function when an agent is selected */
41
41
  onSelectAgent?: (agent: AgentType) => void;
42
+ /** Determines the modal variant */
43
+ variant?: 'closable' | 'collapsible';
42
44
  };
43
45
  export declare const IntelligenceModal: React.FC<IntelligenceModalProps>;
44
46
  export default IntelligenceModal;