box-ui-elements
Version:
Box UI Elements
60 lines • 1.55 kB
JavaScript
import ContentSidebar from '../ContentSidebar';
const mockFeatures = {
'boxai.sidebar.enabled': true
};
export const basic = {};
export const withFileTypeNotSupported = {
args: {
features: {
boxai: {
sidebar: {
disabledTooltip: 'Box AI is not currently supported for this file type',
enabled: true,
showOnlyNavButton: true
}
}
}
}
};
export default {
title: 'Elements/ContentSidebar/BoxAISidebar',
component: ContentSidebar,
args: {
features: mockFeatures,
fileId: global.FILE_ID,
token: global.TOKEN,
boxAISidebarProps: {
createSessionRequest: () => ({
encodedSession: '1234'
}),
fetchTimeout: {
initial: 20000
},
getAgentConfig: () => ({}),
getAIStudioAgents: () => ({}),
getAnswer: () => ({}),
getAnswerStreaming: () => ({}),
getSuggestedQuestions: null,
hostAppName: 'storybook-test',
isAgentSelectorEnabled: false,
isAIStudioAgentSelectorEnabled: true,
isCitationsEnabled: true,
isDebugModeEnabled: true,
isFeedbackEnabled: true,
isIntelligentQueryMode: false,
isMarkdownEnabled: true,
isResetChatEnabled: true,
isStopResponseEnabled: true,
isStreamingEnabled: false,
items: [{
id: '123',
name: 'Document (PDF).pdf',
type: 'file',
fileType: 'pdf',
status: 'supported'
}],
recordAction: () => ({})
}
}
};
//# sourceMappingURL=BoxAISidebar.stories.js.map