@box/box-ai-content-answers 0.154.4 → 0.156.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.
- package/dist/esm/lib/components/answer/constants.js +3 -3
- package/dist/esm/lib/components/answer/feedback-tooltip.js +87 -84
- package/dist/esm/lib/components/answer/messages.js +1 -1
- package/dist/esm/lib/components/api-wrapper/hooks/useContentAnswers.js +113 -109
- package/dist/esm/lib/components/api-wrapper/records.js +10 -8
- package/dist/esm/lib/components/api-wrapper/utils/stream.js +27 -27
- package/dist/esm/lib/components/chat/chat.js +90 -84
- package/dist/esm/lib/components/thinkingBubble/boxAILoadingIndicator.js +235 -0
- package/dist/esm/lib/components/thinkingBubble/messages.js +26 -0
- package/dist/esm/lib/components/thinkingBubble/thinkingBubble.js +122 -0
- package/dist/i18n/bn-IN.js +5 -0
- package/dist/i18n/da-DK.js +5 -0
- package/dist/i18n/de-DE.js +5 -0
- package/dist/i18n/en-AU.js +5 -0
- package/dist/i18n/en-CA.js +5 -0
- package/dist/i18n/en-GB.js +5 -0
- package/dist/i18n/en-US.js +6 -1
- package/dist/i18n/en-US.properties +12 -2
- package/dist/i18n/en-x-pseudo.js +5 -0
- package/dist/i18n/es-419.js +5 -0
- package/dist/i18n/es-ES.js +5 -0
- package/dist/i18n/fi-FI.js +5 -0
- package/dist/i18n/fr-CA.js +5 -0
- package/dist/i18n/fr-FR.js +5 -0
- package/dist/i18n/hi-IN.js +5 -0
- package/dist/i18n/it-IT.js +5 -0
- package/dist/i18n/ja-JP.js +5 -0
- package/dist/i18n/json/src/lib/components/answer/messages.json +1 -1
- package/dist/i18n/json/src/lib/components/thinkingBubble/messages.json +1 -0
- package/dist/i18n/ko-KR.js +5 -0
- package/dist/i18n/nb-NO.js +5 -0
- package/dist/i18n/nl-NL.js +5 -0
- package/dist/i18n/pl-PL.js +5 -0
- package/dist/i18n/pt-BR.js +5 -0
- package/dist/i18n/ru-RU.js +5 -0
- package/dist/i18n/sv-SE.js +5 -0
- package/dist/i18n/tr-TR.js +5 -0
- package/dist/i18n/zh-CN.js +5 -0
- package/dist/i18n/zh-TW.js +5 -0
- package/dist/styles/boxAILoadingIndicator.css +1 -0
- package/dist/styles/feedback-tooltip.css +1 -1
- package/dist/styles/thinkingBubble.css +1 -0
- package/dist/types/lib/components/answer/constants.d.ts +1 -1
- package/dist/types/lib/components/api-wrapper/records.d.ts +1 -0
- package/dist/types/lib/components/api-wrapper/types.d.ts +1 -0
- package/dist/types/lib/components/thinkingBubble/boxAILoadingIndicator.d.ts +3 -0
- package/dist/types/lib/components/thinkingBubble/messages.d.ts +28 -0
- package/dist/types/lib/components/thinkingBubble/thinkingBubble.d.ts +26 -0
- package/dist/types/lib/types.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import b from "lodash/camelCase";
|
|
2
|
-
import { A as
|
|
2
|
+
import { A as s } from "../../../../../chunks/types.js";
|
|
3
3
|
const d = {
|
|
4
4
|
chunk: 15 * 1e3,
|
|
5
5
|
// fetch timeout for each chunk. We need to abort the fetch if needed.
|
|
6
6
|
initial: 45 * 1e3
|
|
7
7
|
// latency p99 (30s) + buffer. Other host integrations can override this value.
|
|
8
8
|
}, N = {
|
|
9
|
-
RESPONSE_FAILED:
|
|
10
|
-
RESPONSE_INTERRUPTED:
|
|
11
|
-
RESPONSE_STOPPED:
|
|
9
|
+
RESPONSE_FAILED: s.RESPONSE_FAILED,
|
|
10
|
+
RESPONSE_INTERRUPTED: s.RESPONSE_INTERRUPTED,
|
|
11
|
+
RESPONSE_STOPPED: s.RESPONSE_STOPPED
|
|
12
12
|
}, O = {
|
|
13
13
|
CONTINUE: "continue",
|
|
14
14
|
DONE: "done",
|
|
@@ -32,31 +32,31 @@ class T {
|
|
|
32
32
|
}
|
|
33
33
|
// eslint-disable-next-line class-methods-use-this
|
|
34
34
|
parseNDJSON(r, i, t) {
|
|
35
|
-
const
|
|
35
|
+
const n = new TextDecoder().decode(i), o = r.partialData + n, a = /\r?\n/, e = o.trim().split(a);
|
|
36
36
|
r.partialData = o.endsWith(`
|
|
37
|
-
`) || o.endsWith("}") ? "" :
|
|
37
|
+
`) || o.endsWith("}") ? "" : e.pop() || "";
|
|
38
38
|
let E = "";
|
|
39
|
-
|
|
40
|
-
const l = JSON.parse(
|
|
41
|
-
l[t] && (E += l[t]), Object.entries(l).forEach(([u,
|
|
39
|
+
e.forEach((h) => {
|
|
40
|
+
const l = JSON.parse(h);
|
|
41
|
+
l[t] && (E += l[t]), l.thinking_answer && (r.thinkingAnswer || (r.thinkingAnswer = ""), r.thinkingAnswer += l.thinking_answer), Object.entries(l).forEach(([u, c]) => {
|
|
42
42
|
const C = b(u);
|
|
43
|
-
C !== t && (r[C] =
|
|
43
|
+
C !== t && C !== "thinkingAnswer" && (r[C] = c);
|
|
44
44
|
});
|
|
45
45
|
}), r.data += E;
|
|
46
46
|
}
|
|
47
|
-
receiveStreamedResponse(r, i, t,
|
|
47
|
+
receiveStreamedResponse(r, i, t, n = "answer", o, a) {
|
|
48
48
|
var u;
|
|
49
|
-
const
|
|
49
|
+
const e = this.initializeStreamedResponseState(), E = (u = i.body) == null ? void 0 : u.getReader();
|
|
50
50
|
if (this.chunkTimeout = (o == null ? void 0 : o.chunk) || d.chunk, !E) {
|
|
51
|
-
this.handleNoResponseBody(t,
|
|
51
|
+
this.handleNoResponseBody(t, e);
|
|
52
52
|
return;
|
|
53
53
|
}
|
|
54
|
-
let
|
|
54
|
+
let h;
|
|
55
55
|
const l = () => {
|
|
56
|
-
E.read().then((
|
|
57
|
-
this.handleChunkSuccess(
|
|
58
|
-
}).catch((
|
|
59
|
-
this.handleChunkError(
|
|
56
|
+
E.read().then((c) => {
|
|
57
|
+
this.handleChunkSuccess(h, t, c, r, e, n), c.done || (h = this.setChunkTimeout(r, a), l());
|
|
58
|
+
}).catch((c) => {
|
|
59
|
+
this.handleChunkError(h, t, r, e);
|
|
60
60
|
});
|
|
61
61
|
};
|
|
62
62
|
l();
|
|
@@ -73,23 +73,23 @@ class T {
|
|
|
73
73
|
partialData: ""
|
|
74
74
|
};
|
|
75
75
|
}
|
|
76
|
-
handleChunkSuccess(r, i, t,
|
|
76
|
+
handleChunkSuccess(r, i, t, n, o, a) {
|
|
77
77
|
if (!t)
|
|
78
78
|
return;
|
|
79
79
|
clearTimeout(r);
|
|
80
80
|
const {
|
|
81
|
-
completionReason:
|
|
81
|
+
completionReason: e
|
|
82
82
|
} = o;
|
|
83
|
-
o.isCompleted = t.done ||
|
|
83
|
+
o.isCompleted = t.done || e !== null, t.value && this.parseNDJSON(o, t.value, a), o.isCompleted && (this.removeAbortController(n), e !== O.DONE && (o.data ? o.error = e === O.CONTINUE ? N.RESPONSE_INTERRUPTED : N.RESPONSE_FAILED : o.error = s.NO_CONTENT)), i(o);
|
|
84
84
|
}
|
|
85
|
-
handleChunkError(r, i, t,
|
|
86
|
-
|
|
85
|
+
handleChunkError(r, i, t, n) {
|
|
86
|
+
n.error = N.RESPONSE_FAILED;
|
|
87
87
|
const o = this.abortControllerMap.get(t);
|
|
88
|
-
o && o.isUserInitiatedAbort && (
|
|
88
|
+
o && o.isUserInitiatedAbort && (n.error = N.RESPONSE_STOPPED, n.isAborted = o.isUserInitiatedAbort), n.isCompleted = !0, this.removeAbortController(t), clearTimeout(r), i(n);
|
|
89
89
|
}
|
|
90
90
|
// eslint-disable-next-line class-methods-use-this
|
|
91
91
|
handleNoResponseBody(r, i) {
|
|
92
|
-
i.error =
|
|
92
|
+
i.error = s.NO_CONTENT, i.isCompleted = !0, r(i);
|
|
93
93
|
}
|
|
94
94
|
removeAbortController(r) {
|
|
95
95
|
this.abortControllerMap.delete(r);
|
|
@@ -104,10 +104,10 @@ class T {
|
|
|
104
104
|
}, this.chunkTimeout);
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
|
-
const
|
|
107
|
+
const f = new T();
|
|
108
108
|
export {
|
|
109
109
|
d as FETCH_TIMEOUT,
|
|
110
110
|
O as STREAMING_COMPLETION_REASON,
|
|
111
111
|
N as STREAM_ERROR,
|
|
112
|
-
|
|
112
|
+
f as default
|
|
113
113
|
};
|
|
@@ -1,37 +1,38 @@
|
|
|
1
|
-
import { Text as
|
|
2
|
-
import { BoxAiLogo as
|
|
3
|
-
import { Size10 as
|
|
4
|
-
import
|
|
5
|
-
import * as
|
|
6
|
-
import { useIntl as
|
|
7
|
-
import { Answer as
|
|
8
|
-
import { MediaContainer as
|
|
9
|
-
import { Question as
|
|
10
|
-
import { SuggestedQuestions as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
14
|
-
import
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
import { Text as Y } from "@box/blueprint-web";
|
|
2
|
+
import { BoxAiLogo as Z } from "@box/blueprint-web-assets/icons/Logo";
|
|
3
|
+
import { Size10 as f } from "@box/blueprint-web-assets/tokens/tokens";
|
|
4
|
+
import $ from "clsx";
|
|
5
|
+
import * as w from "react";
|
|
6
|
+
import { useIntl as L } from "react-intl";
|
|
7
|
+
import { Answer as P } from "../answer/answer.js";
|
|
8
|
+
import { MediaContainer as S } from "../common/media-container.js";
|
|
9
|
+
import { Question as ee } from "../question/question.js";
|
|
10
|
+
import { SuggestedQuestions as te } from "../suggested-questions/suggested-questions.js";
|
|
11
|
+
import { ThinkingBubble as oe } from "../thinkingBubble/thinkingBubble.js";
|
|
12
|
+
import ae from "../welcome-message/messages.js";
|
|
13
|
+
import { WelcomeMessage as ie } from "../welcome-message/welcome-message.js";
|
|
14
|
+
import { jsx as e, jsxs as _ } from "react/jsx-runtime";
|
|
15
|
+
import '../../../../styles/chat.css';const re = "_chat_77vqr_1", se = "_clearChatText_77vqr_1", ne = "_landingPage_77vqr_7", ce = "_askQuestionText_77vqr_15", le = "_iconAvatar_77vqr_23", me = "_sidebar_77vqr_39", a = {
|
|
16
|
+
chat: re,
|
|
17
|
+
clearChatText: se,
|
|
18
|
+
landingPage: ne,
|
|
19
|
+
askQuestionText: ce,
|
|
20
|
+
iconAvatar: le,
|
|
21
|
+
sidebar: me
|
|
22
|
+
}, qe = ({
|
|
22
23
|
askSuggestedQuestion: h,
|
|
23
24
|
contentType: n,
|
|
24
|
-
hasCustomSuggestedQuestions:
|
|
25
|
-
hasRequestInProgress:
|
|
25
|
+
hasCustomSuggestedQuestions: T,
|
|
26
|
+
hasRequestInProgress: x,
|
|
26
27
|
isCitationsEnabled: b,
|
|
27
|
-
isFeedbackEnabled:
|
|
28
|
-
isFeedbackFormEnabled:
|
|
28
|
+
isFeedbackEnabled: C,
|
|
29
|
+
isFeedbackFormEnabled: v,
|
|
29
30
|
isInlineCitationsEnabled: g = !1,
|
|
30
31
|
isMarkdownEnabled: k,
|
|
31
|
-
isSessionLoading:
|
|
32
|
-
onCitationClick:
|
|
33
|
-
onAnswerCopy:
|
|
34
|
-
onFeedbackFormSubmit:
|
|
32
|
+
isSessionLoading: u = !1,
|
|
33
|
+
onCitationClick: q,
|
|
34
|
+
onAnswerCopy: F,
|
|
35
|
+
onFeedbackFormSubmit: A,
|
|
35
36
|
onSuggestedQuestionInteraction: I,
|
|
36
37
|
questions: N,
|
|
37
38
|
recordAction: c,
|
|
@@ -42,109 +43,114 @@ import '../../../../styles/chat.css';const ae = "_chat_77vqr_1", re = "_clearCha
|
|
|
42
43
|
shouldFeedbackFormIncludeFeedbackText: j,
|
|
43
44
|
shouldFeedbackIncludePromptData: y,
|
|
44
45
|
shouldShowLandingPage: o,
|
|
45
|
-
useAnimation:
|
|
46
|
+
useAnimation: B,
|
|
46
47
|
variant: t = "modal",
|
|
47
|
-
hostAppName:
|
|
48
|
+
hostAppName: M = "",
|
|
48
49
|
isReactMarkdownEnabled: z,
|
|
49
|
-
welcomeMessageClearText:
|
|
50
|
-
...
|
|
50
|
+
welcomeMessageClearText: R,
|
|
51
|
+
...p
|
|
51
52
|
}) => {
|
|
52
53
|
const {
|
|
53
|
-
formatMessage:
|
|
54
|
-
} =
|
|
55
|
-
|
|
54
|
+
formatMessage: W
|
|
55
|
+
} = L(), [D, E] = w.useState(null), G = (i, r) => {
|
|
56
|
+
E(i ? r : null);
|
|
56
57
|
};
|
|
57
58
|
return /* @__PURE__ */ e("div", {
|
|
58
59
|
className: a.chat,
|
|
59
60
|
"data-testid": "content-answers-chat",
|
|
60
|
-
children: /* @__PURE__ */
|
|
61
|
-
className:
|
|
61
|
+
children: /* @__PURE__ */ _("div", {
|
|
62
|
+
className: $({
|
|
62
63
|
[a.landingPage]: o,
|
|
63
64
|
[a.sidebar]: t === "sidebar"
|
|
64
65
|
}),
|
|
65
|
-
children: [o && /* @__PURE__ */ e(
|
|
66
|
+
children: [o && /* @__PURE__ */ e(S.Figure, {
|
|
66
67
|
variant: t,
|
|
67
68
|
children: /* @__PURE__ */ e("div", {
|
|
68
69
|
className: a.iconAvatar,
|
|
69
|
-
children: /* @__PURE__ */ e(
|
|
70
|
-
height:
|
|
70
|
+
children: /* @__PURE__ */ e(Z, {
|
|
71
|
+
height: f,
|
|
71
72
|
role: "presentation",
|
|
72
|
-
width:
|
|
73
|
+
width: f
|
|
73
74
|
})
|
|
74
75
|
})
|
|
75
|
-
}), /* @__PURE__ */ e(
|
|
76
|
+
}), /* @__PURE__ */ e(ie, {
|
|
76
77
|
contentType: "",
|
|
77
78
|
shouldShowLandingPage: o,
|
|
78
|
-
...
|
|
79
|
+
...p,
|
|
79
80
|
variant: t
|
|
80
|
-
}), o && m !== void 0 && l !== void 0 && /* @__PURE__ */ e(
|
|
81
|
+
}), o && m !== void 0 && l !== void 0 && /* @__PURE__ */ e(te, {
|
|
81
82
|
askSuggestedQuestion: h,
|
|
82
|
-
hasCustomSuggestedQuestions:
|
|
83
|
-
isLoading:
|
|
83
|
+
hasCustomSuggestedQuestions: T,
|
|
84
|
+
isLoading: x,
|
|
84
85
|
onSuggestedQuestionInteraction: I,
|
|
85
86
|
recordAction: c,
|
|
86
87
|
setAskSuggestedQuestion: l,
|
|
87
88
|
suggestedQuestions: m,
|
|
88
89
|
suggestedQuestionsRequestState: Q,
|
|
89
90
|
variant: t
|
|
90
|
-
}), /* @__PURE__ */ e(
|
|
91
|
+
}), /* @__PURE__ */ e(Y, {
|
|
91
92
|
as: "p",
|
|
92
93
|
className: a.clearChatText,
|
|
93
|
-
children:
|
|
94
|
+
children: R || W(ae.welcomeClearChatText, {
|
|
94
95
|
type: n
|
|
95
96
|
})
|
|
96
97
|
}), !o && /* @__PURE__ */ e("ul", {
|
|
97
98
|
children: N.map(({
|
|
98
|
-
answer:
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
99
|
+
answer: i,
|
|
100
|
+
thinkingAnswer: r,
|
|
101
|
+
citations: H,
|
|
102
|
+
id: s,
|
|
103
|
+
isCompleted: J,
|
|
104
|
+
isLoading: K,
|
|
105
|
+
error: U,
|
|
106
|
+
prompt: d,
|
|
107
|
+
promptType: V,
|
|
108
|
+
feedbackValue: X
|
|
109
|
+
}) => /* @__PURE__ */ _("li", {
|
|
110
|
+
children: [/* @__PURE__ */ e(ee, {
|
|
111
|
+
prompt: d,
|
|
110
112
|
variant: t
|
|
111
|
-
}), /* @__PURE__ */ e(
|
|
112
|
-
|
|
113
|
-
|
|
113
|
+
}), r && /* @__PURE__ */ e(oe, {
|
|
114
|
+
content: r,
|
|
115
|
+
isThinkingComplete: !!i,
|
|
116
|
+
variant: t
|
|
117
|
+
}), /* @__PURE__ */ e(P, {
|
|
118
|
+
answer: i,
|
|
119
|
+
citations: H,
|
|
114
120
|
contentType: n,
|
|
115
|
-
error:
|
|
116
|
-
feedbackValue:
|
|
117
|
-
hostAppName:
|
|
121
|
+
error: U,
|
|
122
|
+
feedbackValue: X,
|
|
123
|
+
hostAppName: M,
|
|
118
124
|
isCitationsEnabled: b,
|
|
119
|
-
isCompleted:
|
|
120
|
-
isFeedbackEnabled:
|
|
121
|
-
isFeedbackFormEnabled:
|
|
122
|
-
isFeedbackTooltipOpen:
|
|
125
|
+
isCompleted: J,
|
|
126
|
+
isFeedbackEnabled: C,
|
|
127
|
+
isFeedbackFormEnabled: v,
|
|
128
|
+
isFeedbackTooltipOpen: D === s,
|
|
123
129
|
isInlineCitationsEnabled: g,
|
|
124
|
-
isLoading:
|
|
130
|
+
isLoading: K || u,
|
|
125
131
|
isMarkdownEnabled: k,
|
|
126
132
|
isReactMarkdownEnabled: z,
|
|
127
|
-
items:
|
|
128
|
-
onAnswerCopy:
|
|
129
|
-
onCitationClick:
|
|
130
|
-
onFeedbackFormSubmit:
|
|
131
|
-
onFeedbackTooltipOpenChange:
|
|
132
|
-
prompt:
|
|
133
|
-
promptType:
|
|
134
|
-
questionId:
|
|
133
|
+
items: p.items,
|
|
134
|
+
onAnswerCopy: F,
|
|
135
|
+
onCitationClick: q,
|
|
136
|
+
onFeedbackFormSubmit: A,
|
|
137
|
+
onFeedbackTooltipOpenChange: G,
|
|
138
|
+
prompt: d,
|
|
139
|
+
promptType: V,
|
|
140
|
+
questionId: s,
|
|
135
141
|
recordAction: c,
|
|
136
142
|
setAnswerFeedback: O,
|
|
137
143
|
shouldFeedbackFormIncludeFeedbackText: j,
|
|
138
144
|
shouldFeedbackIncludePromptData: y,
|
|
139
|
-
useAnimation:
|
|
145
|
+
useAnimation: B,
|
|
140
146
|
variant: t
|
|
141
147
|
})]
|
|
142
|
-
},
|
|
148
|
+
}, s))
|
|
143
149
|
})]
|
|
144
150
|
})
|
|
145
151
|
});
|
|
146
152
|
};
|
|
147
153
|
export {
|
|
148
|
-
|
|
149
|
-
|
|
154
|
+
qe as Chat,
|
|
155
|
+
qe as default
|
|
150
156
|
};
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import '../../../../styles/boxAILoadingIndicator.css';const t = "_boxAILoadingIndicator_ddl80_1", l = "_ring_ddl80_1", i = "_ringTwo_ddl80_11", a = "_blueRing_ddl80_18", n = "_blueDraw_ddl80_1", s = "_blueFade_ddl80_1", p = "_blueRingTwo_ddl80_22", c = "_purpleRing_ddl80_25", d = "_purpleDraw_ddl80_1", g = "_purpleFade_ddl80_1", y = "_purpleRingTwo_ddl80_29", _ = "_magentaRing_ddl80_32", u = "_magentaDraw_ddl80_1", w = "_magentaFade_ddl80_1", m = "_magentaRingTwo_ddl80_36", x = "_bgRings_ddl80_39", o = {
|
|
3
|
+
boxAILoadingIndicator: t,
|
|
4
|
+
ring: l,
|
|
5
|
+
ringTwo: i,
|
|
6
|
+
blueRing: a,
|
|
7
|
+
blueDraw: n,
|
|
8
|
+
blueFade: s,
|
|
9
|
+
blueRingTwo: p,
|
|
10
|
+
purpleRing: c,
|
|
11
|
+
purpleDraw: d,
|
|
12
|
+
purpleFade: g,
|
|
13
|
+
purpleRingTwo: y,
|
|
14
|
+
magentaRing: _,
|
|
15
|
+
magentaDraw: u,
|
|
16
|
+
magentaFade: w,
|
|
17
|
+
magentaRingTwo: m,
|
|
18
|
+
bgRings: x
|
|
19
|
+
}, h = () => /* @__PURE__ */ r("svg", {
|
|
20
|
+
className: o.boxAILoadingIndicator,
|
|
21
|
+
viewBox: "0 0 400 400",
|
|
22
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
23
|
+
children: [/* @__PURE__ */ r("defs", {
|
|
24
|
+
children: [/* @__PURE__ */ r("linearGradient", {
|
|
25
|
+
id: "magentaGradient",
|
|
26
|
+
x1: "0%",
|
|
27
|
+
x2: "100%",
|
|
28
|
+
y1: "0%",
|
|
29
|
+
y2: "100%",
|
|
30
|
+
children: [/* @__PURE__ */ e("stop", {
|
|
31
|
+
offset: "0%",
|
|
32
|
+
style: {
|
|
33
|
+
stopColor: "#FF80FF",
|
|
34
|
+
stopOpacity: 1
|
|
35
|
+
}
|
|
36
|
+
}), /* @__PURE__ */ e("stop", {
|
|
37
|
+
offset: "50%",
|
|
38
|
+
style: {
|
|
39
|
+
stopColor: "#FF00FF",
|
|
40
|
+
stopOpacity: 1
|
|
41
|
+
}
|
|
42
|
+
}), /* @__PURE__ */ e("stop", {
|
|
43
|
+
offset: "100%",
|
|
44
|
+
style: {
|
|
45
|
+
stopColor: "#CC00CC",
|
|
46
|
+
stopOpacity: 1
|
|
47
|
+
}
|
|
48
|
+
})]
|
|
49
|
+
}), /* @__PURE__ */ r("linearGradient", {
|
|
50
|
+
id: "purpleGradient",
|
|
51
|
+
x1: "0%",
|
|
52
|
+
x2: "100%",
|
|
53
|
+
y1: "0%",
|
|
54
|
+
y2: "100%",
|
|
55
|
+
children: [/* @__PURE__ */ e("stop", {
|
|
56
|
+
offset: "0%",
|
|
57
|
+
style: {
|
|
58
|
+
stopColor: "#BB66EE",
|
|
59
|
+
stopOpacity: 1
|
|
60
|
+
}
|
|
61
|
+
}), /* @__PURE__ */ e("stop", {
|
|
62
|
+
offset: "50%",
|
|
63
|
+
style: {
|
|
64
|
+
stopColor: "#9933CC",
|
|
65
|
+
stopOpacity: 1
|
|
66
|
+
}
|
|
67
|
+
}), /* @__PURE__ */ e("stop", {
|
|
68
|
+
offset: "100%",
|
|
69
|
+
style: {
|
|
70
|
+
stopColor: "#7722AA",
|
|
71
|
+
stopOpacity: 1
|
|
72
|
+
}
|
|
73
|
+
})]
|
|
74
|
+
}), /* @__PURE__ */ r("linearGradient", {
|
|
75
|
+
id: "blueGradient",
|
|
76
|
+
x1: "0%",
|
|
77
|
+
x2: "100%",
|
|
78
|
+
y1: "0%",
|
|
79
|
+
y2: "100%",
|
|
80
|
+
children: [/* @__PURE__ */ e("stop", {
|
|
81
|
+
offset: "0%",
|
|
82
|
+
style: {
|
|
83
|
+
stopColor: "#77BBFF",
|
|
84
|
+
stopOpacity: 1
|
|
85
|
+
}
|
|
86
|
+
}), /* @__PURE__ */ e("stop", {
|
|
87
|
+
offset: "50%",
|
|
88
|
+
style: {
|
|
89
|
+
stopColor: "#3399FF",
|
|
90
|
+
stopOpacity: 1
|
|
91
|
+
}
|
|
92
|
+
}), /* @__PURE__ */ e("stop", {
|
|
93
|
+
offset: "100%",
|
|
94
|
+
style: {
|
|
95
|
+
stopColor: "#0077DD",
|
|
96
|
+
stopOpacity: 1
|
|
97
|
+
}
|
|
98
|
+
})]
|
|
99
|
+
}), /* @__PURE__ */ r("filter", {
|
|
100
|
+
height: "140%",
|
|
101
|
+
id: "whiteBorder",
|
|
102
|
+
width: "140%",
|
|
103
|
+
x: "-20%",
|
|
104
|
+
y: "-20%",
|
|
105
|
+
children: [/* @__PURE__ */ e("feMorphology", {
|
|
106
|
+
in: "SourceAlpha",
|
|
107
|
+
operator: "dilate",
|
|
108
|
+
radius: "5",
|
|
109
|
+
result: "expanded"
|
|
110
|
+
}), /* @__PURE__ */ e("feFlood", {
|
|
111
|
+
floodColor: "white",
|
|
112
|
+
floodOpacity: "1",
|
|
113
|
+
result: "whiteColor"
|
|
114
|
+
}), /* @__PURE__ */ e("feComposite", {
|
|
115
|
+
in: "whiteColor",
|
|
116
|
+
in2: "expanded",
|
|
117
|
+
operator: "in",
|
|
118
|
+
result: "whiteBorder"
|
|
119
|
+
}), /* @__PURE__ */ e("feComposite", {
|
|
120
|
+
in: "SourceGraphic",
|
|
121
|
+
in2: "whiteBorder",
|
|
122
|
+
operator: "over"
|
|
123
|
+
})]
|
|
124
|
+
}), /* @__PURE__ */ e("clipPath", {
|
|
125
|
+
id: "clip1",
|
|
126
|
+
children: /* @__PURE__ */ e("path", {
|
|
127
|
+
d: "M0,200 L400,200 L400,400 L0,400 z"
|
|
128
|
+
})
|
|
129
|
+
}), /* @__PURE__ */ e("clipPath", {
|
|
130
|
+
id: "clip2",
|
|
131
|
+
children: /* @__PURE__ */ e("path", {
|
|
132
|
+
d: "M0,0 L400,0 L400,200 L0,200 z"
|
|
133
|
+
})
|
|
134
|
+
})]
|
|
135
|
+
}), /* @__PURE__ */ r("g", {
|
|
136
|
+
className: o.bgRings,
|
|
137
|
+
children: [/* @__PURE__ */ r("g", {
|
|
138
|
+
clipPath: "url(#clip1)",
|
|
139
|
+
children: [/* @__PURE__ */ e("ellipse", {
|
|
140
|
+
className: `${o.ringTwo} ${o.blueRingTwo}`,
|
|
141
|
+
cx: "200",
|
|
142
|
+
cy: "200",
|
|
143
|
+
rx: "80",
|
|
144
|
+
ry: "160",
|
|
145
|
+
transform: "rotate(-60, 200, 200)"
|
|
146
|
+
}), /* @__PURE__ */ e("ellipse", {
|
|
147
|
+
className: `${o.ringTwo} ${o.purpleRingTwo}`,
|
|
148
|
+
cx: "200",
|
|
149
|
+
cy: "200",
|
|
150
|
+
rx: "80",
|
|
151
|
+
ry: "160",
|
|
152
|
+
transform: "rotate(60, 200, 200)"
|
|
153
|
+
}), /* @__PURE__ */ e("ellipse", {
|
|
154
|
+
className: `${o.ringTwo} ${o.magentaRingTwo}`,
|
|
155
|
+
cx: "200",
|
|
156
|
+
cy: "200",
|
|
157
|
+
rx: "80",
|
|
158
|
+
ry: "160"
|
|
159
|
+
})]
|
|
160
|
+
}), /* @__PURE__ */ r("g", {
|
|
161
|
+
clipPath: "url(#clip2)",
|
|
162
|
+
children: [/* @__PURE__ */ e("ellipse", {
|
|
163
|
+
className: `${o.ringTwo} ${o.magentaRingTwo}`,
|
|
164
|
+
cx: "200",
|
|
165
|
+
cy: "200",
|
|
166
|
+
rx: "80",
|
|
167
|
+
ry: "160"
|
|
168
|
+
}), /* @__PURE__ */ e("ellipse", {
|
|
169
|
+
className: `${o.ringTwo} ${o.blueRingTwo}`,
|
|
170
|
+
cx: "200",
|
|
171
|
+
cy: "200",
|
|
172
|
+
rx: "80",
|
|
173
|
+
ry: "160",
|
|
174
|
+
transform: "rotate(-60, 200, 200)"
|
|
175
|
+
}), /* @__PURE__ */ e("ellipse", {
|
|
176
|
+
className: `${o.ringTwo} ${o.purpleRingTwo}`,
|
|
177
|
+
cx: "200",
|
|
178
|
+
cy: "200",
|
|
179
|
+
rx: "80",
|
|
180
|
+
ry: "160",
|
|
181
|
+
transform: "rotate(60, 200, 200)"
|
|
182
|
+
})]
|
|
183
|
+
})]
|
|
184
|
+
}), /* @__PURE__ */ r("g", {
|
|
185
|
+
clipPath: "url(#clip1)",
|
|
186
|
+
children: [/* @__PURE__ */ e("ellipse", {
|
|
187
|
+
className: `${o.ring} ${o.blueRing}`,
|
|
188
|
+
cx: "200",
|
|
189
|
+
cy: "200",
|
|
190
|
+
rx: "80",
|
|
191
|
+
ry: "160",
|
|
192
|
+
transform: "rotate(-60, 200, 200)"
|
|
193
|
+
}), /* @__PURE__ */ e("ellipse", {
|
|
194
|
+
className: `${o.ring} ${o.purpleRing}`,
|
|
195
|
+
cx: "200",
|
|
196
|
+
cy: "200",
|
|
197
|
+
rx: "80",
|
|
198
|
+
ry: "160",
|
|
199
|
+
transform: "rotate(60, 200, 200)"
|
|
200
|
+
}), /* @__PURE__ */ e("ellipse", {
|
|
201
|
+
className: `${o.ring} ${o.magentaRing}`,
|
|
202
|
+
cx: "200",
|
|
203
|
+
cy: "200",
|
|
204
|
+
rx: "80",
|
|
205
|
+
ry: "160"
|
|
206
|
+
})]
|
|
207
|
+
}), /* @__PURE__ */ r("g", {
|
|
208
|
+
clipPath: "url(#clip2)",
|
|
209
|
+
children: [/* @__PURE__ */ e("ellipse", {
|
|
210
|
+
className: `${o.ring} ${o.magentaRing}`,
|
|
211
|
+
cx: "200",
|
|
212
|
+
cy: "200",
|
|
213
|
+
rx: "80",
|
|
214
|
+
ry: "160"
|
|
215
|
+
}), /* @__PURE__ */ e("ellipse", {
|
|
216
|
+
className: `${o.ring} ${o.blueRing}`,
|
|
217
|
+
cx: "200",
|
|
218
|
+
cy: "200",
|
|
219
|
+
rx: "80",
|
|
220
|
+
ry: "160",
|
|
221
|
+
transform: "rotate(-60, 200, 200)"
|
|
222
|
+
}), /* @__PURE__ */ e("ellipse", {
|
|
223
|
+
className: `${o.ring} ${o.purpleRing}`,
|
|
224
|
+
cx: "200",
|
|
225
|
+
cy: "200",
|
|
226
|
+
rx: "80",
|
|
227
|
+
ry: "160",
|
|
228
|
+
transform: "rotate(60, 200, 200)"
|
|
229
|
+
})]
|
|
230
|
+
})]
|
|
231
|
+
});
|
|
232
|
+
export {
|
|
233
|
+
h as BoxAILoadingIndicator,
|
|
234
|
+
h as default
|
|
235
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { defineMessages as n } from "react-intl";
|
|
2
|
+
const t = n({
|
|
3
|
+
thinkingInProgress: {
|
|
4
|
+
id: "boxui.contentAnswers.thinkingInProgress",
|
|
5
|
+
defaultMessage: "Thinking..."
|
|
6
|
+
},
|
|
7
|
+
thinkingCompleted: {
|
|
8
|
+
id: "boxui.contentAnswers.thinkingCompleted",
|
|
9
|
+
defaultMessage: "Thinking Complete"
|
|
10
|
+
},
|
|
11
|
+
thinkingContentScrollableArea: {
|
|
12
|
+
id: "boxui.contentAnswers.thinkingContentScrollableArea",
|
|
13
|
+
defaultMessage: "Thinking content scrollable area"
|
|
14
|
+
},
|
|
15
|
+
expandThinkingContent: {
|
|
16
|
+
id: "boxui.contentAnswers.expandThinkingContent",
|
|
17
|
+
defaultMessage: "Expand"
|
|
18
|
+
},
|
|
19
|
+
collapseThinkingContent: {
|
|
20
|
+
id: "boxui.contentAnswers.collapseThinkingContent",
|
|
21
|
+
defaultMessage: "Collapse"
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
export {
|
|
25
|
+
t as default
|
|
26
|
+
};
|