@box/box-ai-content-answers 0.86.2 → 0.87.2
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/chunks/clear-conversation-button.js +12 -13
- package/chunks/markdown.js +12168 -0
- package/esm/lib/box-ai-content-answers.js +11 -12
- package/esm/lib/components/agents/agent-editor.js +7 -8
- package/esm/lib/components/agents/agent-selector.js +3 -4
- package/esm/lib/components/answer/answer-content.js +5 -6
- package/esm/lib/components/answer/answer.js +604 -107
- package/esm/lib/components/answer/citation.js +4 -5
- package/esm/lib/components/answer/inline-error.js +4 -5
- package/esm/lib/components/answer/loading-element.js +4 -5
- package/esm/lib/components/answer/references.js +19 -20
- package/esm/lib/components/answer/thumb-buttons.js +11 -12
- package/esm/lib/components/chat/chat.js +13 -14
- package/esm/lib/components/common/markdown.js +3 -12212
- package/esm/lib/components/common/media-container.js +10 -11
- package/esm/lib/components/content/content.js +4 -5
- package/esm/lib/components/footer/footer-actions.js +3 -4
- package/esm/lib/components/footer/footer.js +3 -4
- package/esm/lib/components/modal-error/modal-error.js +3 -4
- package/esm/lib/components/question/question.js +12 -13
- package/esm/lib/components/suggested-questions/suggested-questions.js +10 -11
- package/esm/lib/components/suggested-questions/suggestions.js +8 -9
- package/esm/lib/components/welcome-message/contextual-items-message.js +4 -5
- package/esm/lib/components/welcome-message/items-dropdown.js +15 -16
- package/esm/lib/components/welcome-message/unsupported-items-notice.js +9 -10
- package/esm/lib/components/welcome-message/welcome-message.js +11 -12
- package/i18n/bn-IN.js +3 -3
- package/i18n/bn-IN.properties +7 -3
- package/i18n/da-DK.js +3 -3
- package/i18n/da-DK.properties +7 -3
- package/i18n/de-DE.js +3 -3
- package/i18n/de-DE.properties +7 -3
- package/i18n/en-AU.js +3 -3
- package/i18n/en-AU.properties +7 -3
- package/i18n/en-CA.js +1 -1
- package/i18n/en-CA.properties +5 -1
- package/i18n/en-GB.js +3 -3
- package/i18n/en-GB.properties +7 -3
- package/i18n/en-x-pseudo.js +59 -59
- package/i18n/en-x-pseudo.properties +61 -57
- package/i18n/es-419.js +3 -3
- package/i18n/es-419.properties +7 -3
- package/i18n/es-ES.js +3 -3
- package/i18n/es-ES.properties +7 -3
- package/i18n/fi-FI.js +3 -3
- package/i18n/fi-FI.properties +7 -3
- package/i18n/fr-CA.js +3 -3
- package/i18n/fr-CA.properties +7 -3
- package/i18n/fr-FR.js +3 -3
- package/i18n/fr-FR.properties +7 -3
- package/i18n/hi-IN.js +3 -3
- package/i18n/hi-IN.properties +7 -3
- package/i18n/it-IT.js +3 -3
- package/i18n/it-IT.properties +7 -3
- package/i18n/ja-JP.js +4 -4
- package/i18n/ja-JP.properties +8 -4
- package/i18n/ko-KR.js +3 -3
- package/i18n/ko-KR.properties +7 -3
- package/i18n/nb-NO.js +3 -3
- package/i18n/nb-NO.properties +7 -3
- package/i18n/nl-NL.js +3 -3
- package/i18n/nl-NL.properties +7 -3
- package/i18n/pl-PL.js +3 -3
- package/i18n/pl-PL.properties +7 -3
- package/i18n/pt-BR.js +3 -3
- package/i18n/pt-BR.properties +7 -3
- package/i18n/ru-RU.js +3 -3
- package/i18n/ru-RU.properties +7 -3
- package/i18n/sv-SE.js +3 -3
- package/i18n/sv-SE.properties +7 -3
- package/i18n/tr-TR.js +3 -3
- package/i18n/tr-TR.properties +7 -3
- package/i18n/zh-CN.js +3 -3
- package/i18n/zh-CN.properties +7 -3
- package/i18n/zh-TW.js +3 -3
- package/i18n/zh-TW.properties +7 -3
- package/package.json +7 -7
- package/types/lib/box-ai-content-answers.d.ts +1 -1
- package/types/lib/components/agents/agent-editor.d.ts +1 -1
- package/types/lib/components/agents/agent-selector.d.ts +1 -1
- package/types/lib/components/agents/stories/shared.d.ts +3 -3
- package/types/lib/components/answer/answer-content.d.ts +2 -2
- package/types/lib/components/answer/answer.d.ts +1 -1
- package/types/lib/components/answer/citation.d.ts +1 -1
- package/types/lib/components/answer/copy-button.d.ts +1 -1
- package/types/lib/components/answer/inline-error.d.ts +1 -1
- package/types/lib/components/answer/loading-element.d.ts +1 -1
- package/types/lib/components/answer/no-citations.d.ts +1 -1
- package/types/lib/components/answer/references.d.ts +1 -1
- package/types/lib/components/answer/stories/shared.d.ts +1 -1
- package/types/lib/components/answer/thumb-buttons.d.ts +1 -1
- package/types/lib/components/api-wrapper/api-wrapper.d.ts +1 -1
- package/types/lib/components/api-wrapper/constants.d.ts +1 -1
- package/types/lib/components/api-wrapper/content-answers-component.d.ts +1 -1
- package/types/lib/components/api-wrapper/hooks/useContentAnswers.d.ts +4 -4
- package/types/lib/components/api-wrapper/records.d.ts +1 -1
- package/types/lib/components/api-wrapper/stories/shared.d.ts +1 -1
- package/types/lib/components/api-wrapper/test-utils/ReadableStreamSimulator.d.ts +1 -1
- package/types/lib/components/api-wrapper/types.d.ts +3 -3
- package/types/lib/components/api-wrapper/utils/format.d.ts +1 -1
- package/types/lib/components/api-wrapper/utils/request.d.ts +3 -3
- package/types/lib/components/api-wrapper/utils/stream.d.ts +1 -1
- package/types/lib/components/chat/chat.d.ts +1 -1
- package/types/lib/components/common/constants.d.ts +1 -1
- package/types/lib/components/common/media-container.d.ts +2 -2
- package/types/lib/components/common/mock-data.d.ts +4 -4
- package/types/lib/components/content/content.d.ts +1 -1
- package/types/lib/components/footer/footer-actions.d.ts +1 -1
- package/types/lib/components/footer/footer.d.ts +1 -1
- package/types/lib/components/footer/stories/shared.d.ts +7 -7
- package/types/lib/components/modal/modal.d.ts +5 -5
- package/types/lib/components/modal/stories/shared.d.ts +2 -2
- package/types/lib/components/modal-error/stories/shared.d.ts +1 -1
- package/types/lib/components/question/question.d.ts +1 -1
- package/types/lib/components/question/stories/shared.d.ts +1 -1
- package/types/lib/components/suggested-questions/mocks.d.ts +1 -1
- package/types/lib/components/suggested-questions/stories/shared.d.ts +1 -1
- package/types/lib/components/suggested-questions/suggested-questions.d.ts +1 -1
- package/types/lib/components/suggested-questions/suggestions.d.ts +1 -1
- package/types/lib/components/welcome-message/contextual-items-message.d.ts +1 -1
- package/types/lib/components/welcome-message/items-dropdown.d.ts +1 -1
- package/types/lib/components/welcome-message/stories/shared.d.ts +4 -4
- package/types/lib/components/welcome-message/unsupported-items-notice.d.ts +1 -1
- package/types/lib/components/welcome-message/welcome-message.d.ts +1 -1
- package/types/lib/contexts/AgentsContext.d.ts +1 -1
- package/types/lib/stories/shared.d.ts +3 -3
- package/types/lib/types.d.ts +2 -2
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { WelcomeMessageProps } from '../../types';
|
|
2
2
|
export declare const WelcomeMessage: ({ contentName, contentType, items, parentItem, onItemClick, variant, warningNotice, warningNoticeAriaLabel, welcomeMessageClearText, }: WelcomeMessageProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default WelcomeMessage;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BoxAiContentAnswersProps } from '../../index';
|
|
2
2
|
export declare const defaultBoxAiContentAnswersProps: {
|
|
3
3
|
contentName: string;
|
|
4
4
|
contentType: string;
|
|
@@ -21,11 +21,11 @@ export declare const defaultBoxAiContentAnswersProps: {
|
|
|
21
21
|
id: string;
|
|
22
22
|
isCompleted: boolean;
|
|
23
23
|
isLoading: boolean;
|
|
24
|
-
error: import(
|
|
24
|
+
error: import('../types').ANSWER_ERROR;
|
|
25
25
|
prompt: string;
|
|
26
26
|
citations?: undefined;
|
|
27
27
|
})[];
|
|
28
|
-
suggestedQuestions: import(
|
|
28
|
+
suggestedQuestions: import('../types').SuggestedQuestionType[];
|
|
29
29
|
submitQuestion: (...args: any[]) => void;
|
|
30
30
|
userInfo: {
|
|
31
31
|
name: string;
|
package/types/lib/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { AgentType as AIStudioAgentType } from '@box/box-ai-agent-selector';
|
|
2
|
+
import { LOGGER_ACTION_CLICK, LOGGER_ACTION_KEYPRESS, LOGGER_ACTION_PROGRAMMATIC } from './components/common/constants';
|
|
3
3
|
export declare enum ANSWER_ERROR {
|
|
4
4
|
GENERAL = "general",
|
|
5
5
|
RATE_LIMITING = "rate_limiting",
|