@box/box-ai-content-answers 0.112.1 → 0.112.3
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/welcome-message/contextual-items-message.js +30 -32
- package/dist/esm/lib/components/welcome-message/messages.js +1 -1
- package/dist/i18n/en-US.js +1 -1
- package/dist/i18n/en-US.properties +1 -1
- package/dist/i18n/json/src/lib/components/welcome-message/messages.json +1 -1
- package/dist/styles/contextual-items-message.css +1 -1
- package/package.json +4 -4
|
@@ -1,53 +1,51 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { FormattedMessage as
|
|
3
|
-
import { ItemsDropdown as
|
|
1
|
+
import _ from "clsx";
|
|
2
|
+
import { FormattedMessage as a } from "react-intl";
|
|
3
|
+
import { ItemsDropdown as f } from "./items-dropdown.js";
|
|
4
4
|
import m from "./messages.js";
|
|
5
|
-
import { jsxs as
|
|
6
|
-
import '../../../../styles/contextual-items-message.css';const D = "
|
|
5
|
+
import { jsxs as w, jsx as s } from "react/jsx-runtime";
|
|
6
|
+
import '../../../../styles/contextual-items-message.css';const D = "_commonWelcomeTextStyles_gq51l_1", L = "_fileLandingText_gq51l_1", u = "_welcomeFileDataLandingText_gq51l_1", b = "_askQuestionText_gq51l_1", q = "_sidebar_gq51l_4", N = "_itemsDropdown_gq51l_38", o = {
|
|
7
7
|
commonWelcomeTextStyles: D,
|
|
8
8
|
fileLandingText: L,
|
|
9
|
-
welcomeFileDataLandingText:
|
|
10
|
-
askQuestionText:
|
|
11
|
-
sidebar:
|
|
12
|
-
itemsDropdown:
|
|
13
|
-
},
|
|
14
|
-
contentName:
|
|
9
|
+
welcomeFileDataLandingText: u,
|
|
10
|
+
askQuestionText: b,
|
|
11
|
+
sidebar: q,
|
|
12
|
+
itemsDropdown: N
|
|
13
|
+
}, h = ({
|
|
14
|
+
contentName: c,
|
|
15
15
|
isUsedInsideSidebar: d = !1,
|
|
16
|
-
onDropdownOpenChange:
|
|
17
|
-
onItemClick:
|
|
16
|
+
onDropdownOpenChange: x,
|
|
17
|
+
onItemClick: r,
|
|
18
18
|
parentItem: e,
|
|
19
|
-
shouldShowLandingPage:
|
|
19
|
+
shouldShowLandingPage: t,
|
|
20
20
|
supportedItems: i
|
|
21
21
|
}) => {
|
|
22
|
-
var
|
|
23
|
-
const
|
|
24
|
-
return /* @__PURE__ */
|
|
25
|
-
className:
|
|
26
|
-
[o.askQuestionText]: !
|
|
27
|
-
[o.welcomeFileDataLandingText]:
|
|
22
|
+
var l;
|
|
23
|
+
const g = i.length || 1, T = ((l = i[0]) == null ? void 0 : l.name) || c, n = (e == null ? void 0 : e.id) !== "0" ? e == null ? void 0 : e.name : void 0;
|
|
24
|
+
return /* @__PURE__ */ w("div", {
|
|
25
|
+
className: _({
|
|
26
|
+
[o.askQuestionText]: !t,
|
|
27
|
+
[o.welcomeFileDataLandingText]: t,
|
|
28
28
|
[o.sidebar]: d
|
|
29
29
|
}),
|
|
30
30
|
children: [/* @__PURE__ */ s("div", {
|
|
31
31
|
className: o.welcomeText,
|
|
32
32
|
children: /* @__PURE__ */ s("b", {
|
|
33
|
-
children: /* @__PURE__ */ s(
|
|
33
|
+
children: /* @__PURE__ */ s(a, {
|
|
34
34
|
...m.welcomeAskQuestionLandingText
|
|
35
35
|
})
|
|
36
36
|
})
|
|
37
37
|
}), /* @__PURE__ */ s("div", {
|
|
38
38
|
className: o.fileLandingText,
|
|
39
|
-
children: /* @__PURE__ */ s(
|
|
39
|
+
children: /* @__PURE__ */ s(a, {
|
|
40
40
|
...m.fileLandingText,
|
|
41
41
|
values: {
|
|
42
|
-
firstItemName:
|
|
43
|
-
parentItem:
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
numberOfItems: _,
|
|
47
|
-
files: /* @__PURE__ */ s(w, {
|
|
42
|
+
firstItemName: T,
|
|
43
|
+
parentItem: n && `'${n}'`,
|
|
44
|
+
numberOfItems: g,
|
|
45
|
+
files: /* @__PURE__ */ s(f, {
|
|
48
46
|
className: o.itemsDropdown,
|
|
49
|
-
onDropdownOpenChange:
|
|
50
|
-
onItemClick:
|
|
47
|
+
onDropdownOpenChange: x,
|
|
48
|
+
onItemClick: r,
|
|
51
49
|
supportedItems: i
|
|
52
50
|
})
|
|
53
51
|
}
|
|
@@ -56,6 +54,6 @@ import '../../../../styles/contextual-items-message.css';const D = "_commonWelco
|
|
|
56
54
|
});
|
|
57
55
|
};
|
|
58
56
|
export {
|
|
59
|
-
|
|
60
|
-
|
|
57
|
+
h as ContextualItemsMessage,
|
|
58
|
+
h as default
|
|
61
59
|
};
|
|
@@ -18,7 +18,7 @@ const t = e({
|
|
|
18
18
|
},
|
|
19
19
|
fileLandingText: {
|
|
20
20
|
id: "boxAI.contentAnswers.fileLandingText",
|
|
21
|
-
defaultMessage: "{numberOfItems, plural, =1 {{firstItemName}} other {
|
|
21
|
+
defaultMessage: "{numberOfItems, plural, =1 {{firstItemName}} other {{files}}}{parentItem, select, undefined {} other { in {parentItem}}}"
|
|
22
22
|
},
|
|
23
23
|
welcomeMessageFilesLink: {
|
|
24
24
|
id: "boxAI.contentAnswers.welcomeMessageFilesLink",
|
package/dist/i18n/en-US.js
CHANGED
|
@@ -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.fileLandingText": "{numberOfItems, plural, =1 {{firstItemName}} other {
|
|
23
|
+
"boxAI.contentAnswers.fileLandingText": "{numberOfItems, plural, =1 {{firstItemName}} other {{files}}}{parentItem, select, undefined {} other { in {parentItem}}}",
|
|
24
24
|
"boxAI.contentAnswers.hasQuestionsTooltip": "Return to Box AI",
|
|
25
25
|
"boxAI.contentAnswers.inlineAgentNotFoundErrorText": "The selected agent is unavailable. Switching to the default agent.",
|
|
26
26
|
"boxAI.contentAnswers.inlineErrorText": "Box AI is having trouble generating a response right now. Please try again.",
|
|
@@ -41,7 +41,7 @@ boxAI.contentAnswers.disabledTooltipPermissionsFailed = Unable to check permissi
|
|
|
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
43
|
# Content Answers welcome message for asking questions. {firstItemName} is the name of the content, {files} is a list of items, and {parentItem} is the name of the parent item.
|
|
44
|
-
boxAI.contentAnswers.fileLandingText = {numberOfItems, plural, =1 {{firstItemName}} other {
|
|
44
|
+
boxAI.contentAnswers.fileLandingText = {numberOfItems, plural, =1 {{firstItemName}} other {{files}}}{parentItem, select, undefined {} other { in {parentItem}}}
|
|
45
45
|
# Existing questions tooltip message for Content Answers entry point button
|
|
46
46
|
boxAI.contentAnswers.hasQuestionsTooltip = Return to Box AI
|
|
47
47
|
# Content Answers error message when the answer fails due to an invalid agent
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"id":"boxAI.contentAnswers.largeFileSizeWarningTitle","description":"Box AI Q&A file too large warning title. {numberOfItems} is the number of items used in the context","defaultMessage":"Box AI won’t be able to access the entire {numberOfItems, plural, =1 {text} other {content}}, which might affect its answers."},{"id":"boxAI.contentAnswers.largeFileSizeWarningDescription","description":"Box AI Q&A file too large warning description. {numberOfItems} is the number of items used in the context","defaultMessage":"The text content of {numberOfItems, plural, =1 {this file} other {one or more files}} is too large for Box AI to process."},{"id":"boxAI.contentAnswers.welcomeAskQuestionText","description":"Content Answers welcome message for asking questions. {firstItemName} is the name of the content, {files} is a list of items, and {parentItem} is the name of the parent item.","defaultMessage":"Welcome to Box AI. Ask questions about {numberOfItems, plural, =1 {{firstItemName}} other {these {files}}}{parentItem, select, undefined {} other { in {parentItem}}}."},{"id":"boxAI.contentAnswers.welcomeAskQuestionLandingText","description":"Content Answers welcome message for asking questions. {firstItemName} is the name of the content, {files} is a list of items, and {parentItem} is the name of the parent item.","defaultMessage":"Welcome to Box AI"},{"id":"boxAI.contentAnswers.fileLandingText","description":"Content Answers welcome message for asking questions. {firstItemName} is the name of the content, {files} is a list of items, and {parentItem} is the name of the parent item.","defaultMessage":"{numberOfItems, plural, =1 {{firstItemName}} other {
|
|
1
|
+
[{"id":"boxAI.contentAnswers.largeFileSizeWarningTitle","description":"Box AI Q&A file too large warning title. {numberOfItems} is the number of items used in the context","defaultMessage":"Box AI won’t be able to access the entire {numberOfItems, plural, =1 {text} other {content}}, which might affect its answers."},{"id":"boxAI.contentAnswers.largeFileSizeWarningDescription","description":"Box AI Q&A file too large warning description. {numberOfItems} is the number of items used in the context","defaultMessage":"The text content of {numberOfItems, plural, =1 {this file} other {one or more files}} is too large for Box AI to process."},{"id":"boxAI.contentAnswers.welcomeAskQuestionText","description":"Content Answers welcome message for asking questions. {firstItemName} is the name of the content, {files} is a list of items, and {parentItem} is the name of the parent item.","defaultMessage":"Welcome to Box AI. Ask questions about {numberOfItems, plural, =1 {{firstItemName}} other {these {files}}}{parentItem, select, undefined {} other { in {parentItem}}}."},{"id":"boxAI.contentAnswers.welcomeAskQuestionLandingText","description":"Content Answers welcome message for asking questions. {firstItemName} is the name of the content, {files} is a list of items, and {parentItem} is the name of the parent item.","defaultMessage":"Welcome to Box AI"},{"id":"boxAI.contentAnswers.fileLandingText","description":"Content Answers welcome message for asking questions. {firstItemName} is the name of the content, {files} is a list of items, and {parentItem} is the name of the parent item.","defaultMessage":"{numberOfItems, plural, =1 {{firstItemName}} other {{files}}}{parentItem, select, undefined {} other { in {parentItem}}}"},{"id":"boxAI.contentAnswers.welcomeMessageFilesLink","description":"Link that show the number of files that are going to be displayed within the modal","defaultMessage":"{numberOfItems, plural,\n one {# file}\n other {# files}\n }"},{"id":"boxAI.contentAnswers.welcomeMessageItemsLink","description":"Link that show the number of items that are going to be displayed within the modal","defaultMessage":"{numberOfItems, plural,\n one {# item}\n other {# items}\n }"},{"id":"boxAI.contentAnswers.welcomeClearChatText","description":"Content Answers welcome message for clearing the chat. {type} is the type of content that we are going to query","defaultMessage":"Chat cleared when you close {type}"},{"id":"boxAI.contentAnswers.unsupportedItems","description":"Warning message that shows how many files are not supported by Box AI","defaultMessage":"{numberOfFiles, plural,\n one {{files} is unavailable for Box AI}\n other {{files} are unavailable for Box AI}\n }"},{"id":"boxAI.contentAnswers.unsupportedFormatLabel","description":"Label that shows within the modal to show how many files are not supported by Box AI due to correct format","defaultMessage":"Unsupported format"},{"id":"boxAI.contentAnswers.noPermissionsLabel","description":"Label that shows within the modal to show how many files are not supported by Box AI due to file not having permissions","defaultMessage":"No Box AI permissions"},{"id":"boxAi.contentAnswers.closeItemList","description":"Label that shows up while someone hover on close button of files dropdown","defaultMessage":"Close file items list"}]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._commonWelcomeTextStyles_gq51l_1 ._fileLandingText_gq51l_1,._welcomeFileDataLandingText_gq51l_1 ._fileLandingText_gq51l_1,._askQuestionText_gq51l_1 ._fileLandingText_gq51l_1{color:#6f6f6f}._commonWelcomeTextStyles_gq51l_1._sidebar_gq51l_4,._sidebar_gq51l_4._welcomeFileDataLandingText_gq51l_1,._sidebar_gq51l_4._askQuestionText_gq51l_1{font-size:1.125rem}._askQuestionText_gq51l_1{font-size:1.125rem;line-height:1.5rem;padding-top:1.75rem;padding-bottom:.75rem}._askQuestionText_gq51l_1 ._fileLandingText_gq51l_1{font-size:.9375rem}._askQuestionText_gq51l_1._sidebar_gq51l_4{padding-top:1.5rem}._welcomeFileDataLandingText_gq51l_1{display:flex;align-items:center;justify-content:center;flex-direction:column;font-size:1.3125rem;gap:0;line-height:2rem}._welcomeFileDataLandingText_gq51l_1 ._fileLandingText_gq51l_1{font-size:1.125rem;text-align:center}._welcomeFileDataLandingText_gq51l_1 ._fileLandingText_gq51l_1 a{font-size:1.125rem;text-decoration:none}._welcomeFileDataLandingText_gq51l_1 ._itemsDropdown_gq51l_38{font-size:.9375rem}._welcomeFileDataLandingText_gq51l_1._sidebar_gq51l_4{line-height:1.5rem}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@box/box-ai-content-answers",
|
|
3
|
-
"version": "0.112.
|
|
3
|
+
"version": "0.112.3",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@box/blueprint-web": "^7.8.0",
|
|
6
6
|
"@box/blueprint-web-assets": "^4.35.0",
|
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"@box/babel-plugin-target-attributes": "1.3.0",
|
|
19
|
-
"@box/blueprint-web": "^
|
|
19
|
+
"@box/blueprint-web": "^10.0.0",
|
|
20
20
|
"@box/blueprint-web-assets": "^4.37.3",
|
|
21
|
-
"@box/box-ai-agent-selector": "^0.34.
|
|
22
|
-
"@box/item-icon": "^0.9.
|
|
21
|
+
"@box/box-ai-agent-selector": "^0.34.1",
|
|
22
|
+
"@box/item-icon": "^0.9.102",
|
|
23
23
|
"@box/storybook-utils": "^0.9.0",
|
|
24
24
|
"@testing-library/react": "^15.0.6",
|
|
25
25
|
"react": "^18.3.0",
|