Skip to content

Commit 5351921

Browse files
authored
CSS Modules: migrate Text Attachment components (#5670)
* CSS Modules: migrate Text Attachment components * Fix remaining tests * Changelog
1 parent 32c4e5d commit 5351921

File tree

56 files changed

+765
-288
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+765
-288
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,10 @@ Breaking changes in this release:
313313
- Bumped Chrome in Docker to 141 from 110, in PR [#5619](https://github.com/microsoft/BotFramework-WebChat/pull/5619), by [@compulim](https://github.com/compulim)
314314
- Bumped to [`valibot@1.2.0`](https://npmjs.com/package/valibot/v/1.2.0), in PR [#5650](https://github.com/microsoft/BotFramework-WebChat/pull/5650), by [@compulim](https://github.com/compulim)
315315
- Pinned to [`botframework-directlinespeech-sdk@4.18.1-main.20251208.8ccadd6`](https://npmjs.com/package/botframework-directlinespeech-sdk/v/4.18.1-main.20251208.8ccadd6), by [@OEvgeny](https://github.com/OEvgeny) in PR [#5662](https://github.com/microsoft/BotFramework-WebChat/pull/5662)
316-
- Converted remaining activity components to CSS Modules, in PR [#5668](https://github.com/microsoft/BotFramework-WebChat/pull/5668), in PR [#5669](https://github.com/microsoft/BotFramework-WebChat/pull/5669), by [@OEvgeny](https://github.com/OEvgeny)
316+
- Converted activity components to CSS Modules
317+
- Bubble, carousel, say-alt, in PR [#5668](https://github.com/microsoft/BotFramework-WebChat/pull/5668), by [@OEvgeny](https://github.com/OEvgeny)
318+
- Activity status, in PR [#5669](https://github.com/microsoft/BotFramework-WebChat/pull/5669), by [@OEvgeny](https://github.com/OEvgeny)
319+
- Text attachment and related components, in PR [#5670](https://github.com/microsoft/BotFramework-WebChat/pull/5670), by [@OEvgeny](https://github.com/OEvgeny)
317320

318321
### Deprecated
319322

__tests__/html2/activity/citation.longRef.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353

5454
await host.snapshot('local');
5555

56-
const markdownElement = pageElements.activities()[0].querySelector('.webchat__text-content__markdown');
56+
const markdownElement = pageElements.activities()[0].querySelector('.text-content__markdown');
5757
const markdownLinks = markdownElement.querySelectorAll('a');
5858
const markdownButtons = markdownElement.querySelectorAll('button');
5959

__tests__/html2/basic/customIcons.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@
3939
--webchat__fluent-icon--mask: var(--icon);
4040
}
4141

42-
#webchat .webchat__activity-button .component-icon.icon--view-code {
42+
#webchat .activity-button .component-icon.icon--view-code {
4343
--webchat__component-icon--mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M8 17.308L2.692 12L8 6.692l.714.714l-4.6 4.6L8.708 16.6zm8 0l-.713-.714l4.6-4.6L15.292 7.4L16 6.692L21.308 12z'/%3E%3C/svg%3E");
4444
}
4545

46-
#webchat .webchat__activity-button .component-icon.icon--copy {
46+
#webchat .activity-button .component-icon.icon--copy {
4747
--webchat__component-icon--mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9.116 17q-.691 0-1.153-.462T7.5 15.385V4.615q0-.69.463-1.153T9.116 3h7.769q.69 0 1.153.462t.462 1.153v10.77q0 .69-.462 1.152T16.884 17zm0-1h7.769q.23 0 .423-.192t.192-.423V4.615q0-.23-.192-.423T16.884 4H9.116q-.231 0-.424.192t-.192.423v10.77q0 .23.192.423t.423.192m-3 4q-.69 0-1.153-.462T4.5 18.385V6.615h1v11.77q0 .23.192.423t.423.192h8.77v1zM8.5 16V4z'/%3E%3C/svg%3E");
4848
}
4949
</style>

__tests__/html2/citation/basic.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444

4545
await host.snapshot('local');
4646

47-
const markdownElement = pageElements.activities()[0].querySelector('.webchat__text-content__markdown');
47+
const markdownElement = pageElements.activities()[0].querySelector('.text-content__markdown');
4848
const markdownLinks = markdownElement.querySelectorAll('a');
4949
const markdownButtons = markdownElement.querySelectorAll('button');
5050

__tests__/html2/citation/claimInterpreter/dangerousLink.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757

5858
await host.snapshot('local');
5959

60-
const markdownElement = pageElements.activities()[0].querySelector('.webchat__text-content__markdown');
60+
const markdownElement = pageElements.activities()[0].querySelector('.text-content__markdown');
6161
const markdownLinks = markdownElement.querySelectorAll('a');
6262

6363
// The javascript: shouldn't be a link.

__tests__/html2/citation/markdownPreferredOverEntities.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878

7979
await host.snapshot('local');
8080

81-
const markdownElement = pageElements.activities()[0].querySelector('.webchat__text-content__markdown');
81+
const markdownElement = pageElements.activities()[0].querySelector('.text-content__markdown');
8282
const markdownClickableLinks = markdownElement.querySelectorAll('a[href]');
8383

8484
// The javascript: shouldn't be a link.

__tests__/html2/citation/showModal.close.button.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
type: 'message'
4242
});
4343

44-
const markdownElement = pageElements.activities()[0].querySelector('.webchat__text-content__markdown');
44+
const markdownElement = pageElements.activities()[0].querySelector('.text-content__markdown');
4545
const markdownButtons = markdownElement.querySelectorAll('button');
4646

4747
await host.click(markdownButtons[0]);

__tests__/html2/citation/showModal.close.escape.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
type: 'message'
4242
});
4343

44-
const markdownElement = pageElements.activities()[0].querySelector('.webchat__text-content__markdown');
44+
const markdownElement = pageElements.activities()[0].querySelector('.text-content__markdown');
4545
const markdownButtons = markdownElement.querySelectorAll('button');
4646

4747
await host.click(markdownButtons[0]);

__tests__/html2/citation/showModal.markdown.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
type: 'message'
4343
});
4444

45-
const markdownElement = pageElements.activities()[0].querySelector('.webchat__text-content__markdown');
45+
const markdownElement = pageElements.activities()[0].querySelector('.text-content__markdown');
4646
const markdownButtons = markdownElement.querySelectorAll('button');
4747

4848
await host.click(markdownButtons[0]);

__tests__/html2/citation/showModal.width.desktop.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444

4545
await host.snapshot('local');
4646

47-
const markdownElement = pageElements.activities()[0].querySelector('.webchat__text-content__markdown');
47+
const markdownElement = pageElements.activities()[0].querySelector('.text-content__markdown');
4848
const markdownButtons = markdownElement.querySelectorAll('button');
4949

5050
await host.click(markdownButtons[0]);

0 commit comments

Comments
 (0)