Skip to content

Commit 5a3defd

Browse files
committed
fix(*): lit errors after merging master
1 parent 901affe commit 5a3defd

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

src/components/chat/message-attachments.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { consume } from '@lit/context';
2-
import { LitElement, html } from 'lit';
2+
import { html, LitElement } from 'lit';
33
import { property } from 'lit/decorators.js';
44
import IgcIconButtonComponent from '../button/icon-button.js';
55
import { chatContext } from '../common/context.js';
@@ -8,11 +8,11 @@ import IgcExpansionPanelComponent from '../expansion-panel/expansion-panel.js';
88
import IgcIconComponent from '../icon/icon.js';
99
import { registerIconFromText } from '../icon/icon.registry.js';
1010
import type IgcChatComponent from './chat.js';
11-
import { styles } from './themes/message-attachments.base.css';
11+
import { styles } from './themes/message-attachments.base.css.js';
1212
import {
13-
type IgcMessageAttachment,
1413
closeIcon,
1514
fileIcon,
15+
type IgcMessageAttachment,
1616
imageIcon,
1717
moreIcon,
1818
previewIcon,

src/components/common/definitions/defineAllComponents.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import IgcCardMediaComponent from '../../card/card.media.js';
1515
import IgcCarouselComponent from '../../carousel/carousel.js';
1616
import IgcCarouselIndicatorComponent from '../../carousel/carousel-indicator.js';
1717
import IgcCarouselSlideComponent from '../../carousel/carousel-slide.js';
18-
import IgcCarouselComponent from '../../carousel/carousel.js';
1918
import IgcChatComponent from '../../chat/chat.js';
2019
import IgcCheckboxComponent from '../../checkbox/checkbox.js';
2120
import IgcSwitchComponent from '../../checkbox/switch.js';

stories/chat.stories.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,13 @@ function generateAIResponse(message: string): string {
360360
return "You're welcome! Let me know if you need anything else.";
361361
}
362362
if (lowerMessage.includes('code')) {
363-
return "Here's an example of code formatting:\n\n```javascript\nfunction greet(name) {\n return `Hello, ${name}!`;\n}\n\nconsole.log(greet('world'));\n```";
363+
return `Here's an example of code formatting:
364+
\`\`\`javascript
365+
function greet(name) {
366+
return \`Hello, \${name}!\`;
367+
}
368+
console.log(greet('world'));
369+
\`\`\``;
364370
}
365371
if (lowerMessage.includes('image') || lowerMessage.includes('picture')) {
366372
return "Here's an image!";

0 commit comments

Comments
 (0)