From e16dc155554de4bcf75f443456fefa618539e552 Mon Sep 17 00:00:00 2001 From: Shibani Basava Date: Mon, 12 Feb 2024 10:59:32 +0000 Subject: [PATCH] feat: move features to their own file to compose on demand --- packages/chat-component/src/components/features.ts | 10 ++++++++++ packages/chat-component/src/components/index.ts | 13 +------------ 2 files changed, 11 insertions(+), 12 deletions(-) create mode 100644 packages/chat-component/src/components/features.ts diff --git a/packages/chat-component/src/components/features.ts b/packages/chat-component/src/components/features.ts new file mode 100644 index 00000000..8f0edc3d --- /dev/null +++ b/packages/chat-component/src/components/features.ts @@ -0,0 +1,10 @@ +// [COMPOSE COMPONENTS START] +import './voice-input.js'; +import './voice-input-button.js'; + +import './default-questions.js'; +import './teaser-list-component.js'; + +import './document-previewer.js'; +import './citation-previewer.js'; +// [COMPOSE COMPONENTS END] diff --git a/packages/chat-component/src/components/index.ts b/packages/chat-component/src/components/index.ts index 365560b8..9fa3d1e5 100644 --- a/packages/chat-component/src/components/index.ts +++ b/packages/chat-component/src/components/index.ts @@ -6,18 +6,7 @@ import './tab-component.js'; import './citation-list.js'; import './chat-thread-component.js'; import './chat-action-button.js'; - import './copy-entry-to-clipboard.js'; -// [COMPOSE COMPONENTS START] -import './voice-input.js'; -import './voice-input-button.js'; - -import './default-questions.js'; -import './teaser-list-component.js'; - -import './document-previewer.js'; -import './citation-previewer.js'; -// [COMPOSE COMPONENTS END] - +import './features.js'; export * from './chat-component.js';