@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.
- package/esm/lib/components/modal/messages.js +6 -2
- package/esm/lib/components/modal/modal.js +94 -91
- package/i18n/bn-IN.js +1 -0
- package/i18n/da-DK.js +1 -0
- package/i18n/de-DE.js +1 -0
- package/i18n/en-AU.js +1 -0
- package/i18n/en-CA.js +1 -0
- package/i18n/en-GB.js +1 -0
- package/i18n/en-US.js +1 -0
- package/i18n/en-US.properties +2 -0
- package/i18n/en-x-pseudo.js +1 -0
- package/i18n/es-419.js +1 -0
- package/i18n/es-ES.js +1 -0
- package/i18n/fi-FI.js +1 -0
- package/i18n/fr-CA.js +1 -0
- package/i18n/fr-FR.js +1 -0
- package/i18n/hi-IN.js +1 -0
- package/i18n/it-IT.js +1 -0
- package/i18n/ja-JP.js +1 -0
- package/i18n/json/src/lib/components/modal/messages.json +1 -1
- package/i18n/ko-KR.js +1 -0
- package/i18n/nb-NO.js +1 -0
- package/i18n/nl-NL.js +1 -0
- package/i18n/pl-PL.js +1 -0
- package/i18n/pt-BR.js +1 -0
- package/i18n/ru-RU.js +1 -0
- package/i18n/sv-SE.js +1 -0
- package/i18n/tr-TR.js +1 -0
- package/i18n/zh-CN.js +1 -0
- package/i18n/zh-TW.js +1 -0
- package/package.json +4 -4
- package/types/lib/components/modal/messages.d.ts +5 -0
- package/types/lib/components/modal/modal.d.ts +2 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineMessages as e } from "react-intl";
|
|
2
|
-
const
|
|
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
|
-
|
|
21
|
+
s as default
|
|
18
22
|
};
|
|
@@ -1,63 +1,65 @@
|
|
|
1
1
|
import "../../../../styles/modal.css";
|
|
2
|
-
import { useBreakpoint as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
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
|
|
7
|
-
import
|
|
8
|
-
import { useIntl as
|
|
9
|
-
import { BoxAiContentAnswers as
|
|
10
|
-
import { AgentsProvider as
|
|
11
|
-
import { A as
|
|
12
|
-
import { AgentSelector as
|
|
13
|
-
import { LOGGER_BASE_CONFIG as B, LOGGER_ACTION_CLICK as
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import { jsxs as
|
|
17
|
-
const
|
|
18
|
-
BoxAIIconColor:
|
|
19
|
-
modalHeader:
|
|
20
|
-
contentAnswersModal:
|
|
21
|
-
boxAiContentAnswers:
|
|
22
|
-
clearButton:
|
|
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:
|
|
25
|
-
modalHeaderContainer:
|
|
26
|
-
agentSelectorTrigger:
|
|
27
|
-
agentSelectorContent:
|
|
28
|
-
},
|
|
29
|
-
children:
|
|
25
|
+
contentAnswerModal: ge,
|
|
26
|
+
modalHeaderContainer: _e,
|
|
27
|
+
agentSelectorTrigger: fe,
|
|
28
|
+
agentSelectorContent: Ce
|
|
29
|
+
}, He = ({
|
|
30
|
+
children: N,
|
|
30
31
|
getAIStudioAgents: f,
|
|
31
|
-
hasCustomSuggestedQuestions:
|
|
32
|
+
hasCustomSuggestedQuestions: S,
|
|
32
33
|
hostAppName: m,
|
|
33
34
|
isAgentSelectorEnabled: C,
|
|
34
|
-
isAIStudioAgentSelectorEnabled:
|
|
35
|
-
isDebugModeEnabled:
|
|
36
|
-
isResetChatEnabled:
|
|
37
|
-
isStopResponseEnabled:
|
|
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:
|
|
45
|
-
|
|
45
|
+
stopPropagationOnEsc: H,
|
|
46
|
+
variant: h = "closable",
|
|
47
|
+
...k
|
|
46
48
|
}) => {
|
|
47
|
-
var
|
|
49
|
+
var v, T;
|
|
48
50
|
const {
|
|
49
|
-
open:
|
|
50
|
-
defaultOpen:
|
|
51
|
-
onOpenChange:
|
|
52
|
-
modal:
|
|
53
|
-
...
|
|
54
|
-
} =
|
|
55
|
-
|
|
56
|
-
const
|
|
57
|
-
o && (
|
|
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
|
-
|
|
60
|
-
|
|
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
|
-
}, [
|
|
69
|
-
|
|
70
|
-
}, [
|
|
71
|
-
const
|
|
72
|
-
p && (p(),
|
|
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:
|
|
76
|
+
action: ae,
|
|
75
77
|
target: "clearChat"
|
|
76
78
|
}));
|
|
77
|
-
},
|
|
78
|
-
defaultOpen:
|
|
79
|
-
modal:
|
|
80
|
-
onOpenChange:
|
|
81
|
-
open:
|
|
82
|
-
children: [/* @__PURE__ */ e(
|
|
83
|
-
children:
|
|
84
|
-
}), /* @__PURE__ */
|
|
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(
|
|
90
|
+
children: [/* @__PURE__ */ e(l.Header, {
|
|
89
91
|
className: t.modalHeaderContainer,
|
|
90
|
-
children: /* @__PURE__ */
|
|
92
|
+
children: /* @__PURE__ */ _("div", {
|
|
91
93
|
className: t.modalHeader,
|
|
92
|
-
children: [!
|
|
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(
|
|
99
|
+
}), /* @__PURE__ */ e(D, {
|
|
98
100
|
as: "span",
|
|
99
101
|
variant: "titleMedium",
|
|
100
|
-
children:
|
|
101
|
-
}), !
|
|
102
|
+
children: n.formatMessage(c.contentAnswersTitle)
|
|
103
|
+
}), !d && C && /* @__PURE__ */ e(ne, {
|
|
102
104
|
onSelectAgent: R,
|
|
103
|
-
recordAction:
|
|
104
|
-
}),
|
|
105
|
+
recordAction: a
|
|
106
|
+
}), d && /* @__PURE__ */ e(Y, {
|
|
105
107
|
contentClassName: t.agentSelectorContent,
|
|
106
|
-
fetcher:
|
|
108
|
+
fetcher: Q,
|
|
107
109
|
hostAppName: m,
|
|
108
110
|
recordAction: o,
|
|
109
|
-
requestState:
|
|
111
|
+
requestState: F ? re.ERROR : void 0,
|
|
110
112
|
shouldHideAgentSelectorOnLoad: !0,
|
|
111
113
|
triggerChipClassName: t.agentSelectorTrigger
|
|
112
114
|
})]
|
|
113
115
|
})
|
|
114
|
-
}),
|
|
115
|
-
content:
|
|
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(
|
|
120
|
-
"aria-label":
|
|
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:
|
|
125
|
+
icon: V,
|
|
126
|
+
onClick: j,
|
|
125
127
|
size: "small"
|
|
126
128
|
})
|
|
127
|
-
}), /* @__PURE__ */ e(
|
|
128
|
-
"aria-label": c.formatMessage(
|
|
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(
|
|
134
|
+
}), /* @__PURE__ */ e(ee, {
|
|
132
135
|
className: t.boxAiContentAnswers,
|
|
133
|
-
hasCustomSuggestedQuestions:
|
|
134
|
-
isAgentSelectorEnabled: !
|
|
135
|
-
isAIStudioAgentSelectorEnabled:
|
|
136
|
-
isDebugModeEnabled:
|
|
137
|
-
isStopResponseEnabled:
|
|
138
|
-
recordAction:
|
|
139
|
-
...
|
|
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(
|
|
144
|
-
children: /* @__PURE__ */ e(
|
|
145
|
-
children:
|
|
146
|
+
return E ? /* @__PURE__ */ e(Z, {
|
|
147
|
+
children: /* @__PURE__ */ e(te, {
|
|
148
|
+
children: w
|
|
146
149
|
})
|
|
147
|
-
}) :
|
|
150
|
+
}) : w;
|
|
148
151
|
};
|
|
149
152
|
export {
|
|
150
|
-
|
|
151
|
-
|
|
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",
|
package/i18n/en-US.properties
CHANGED
|
@@ -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
|
package/i18n/en-x-pseudo.js
CHANGED
|
@@ -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.
|
|
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.
|
|
17
|
+
"@box/blueprint-web": "^9.0.2",
|
|
18
18
|
"@box/blueprint-web-assets": "^4.30.0",
|
|
19
|
-
"@box/box-ai-agent-selector": "^0.17.
|
|
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": "
|
|
57
|
+
"gitHead": "3336acc51ee37751c34b425b05337b5effd16b72"
|
|
58
58
|
}
|
|
@@ -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;
|