diff --git a/CHANGELOG.md b/CHANGELOG.md index 0f1965b5ff..c500809615 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -101,6 +101,7 @@ Notes: web developers are advised to use [`~` (tilde range)](https://github.com/ - Resolved [#5463](https://github.com/microsoft/BotFramework-WebChat/issues/5463). Added attachment preview for `sendAttachmentOn: "send"`, in PR [#5464](https://github.com/microsoft/BotFramework-WebChat/pull/5464), by [@compulim](https://github.com/compulim), in PR [#5492](https://github.com/microsoft/BotFramework-WebChat/pull/5492), by [@OEvgeny](https://github.com/OEvgeny) - Attaching files will no longer remove previously attached files - Updated Fluent theme to use the new attachment preview feature +- Added collapsible activity and activity with abstract handling, in PR [#5506](https://github.com/microsoft/BotFramework-WebChat/pull/5506), by [@OEvgeny](https://github.com/OEvgeny) ### Changed diff --git a/__tests__/__image_snapshots__/html/avatar-empty-initials-js-avatar-with-empty-initials-should-leave-gutter-space-1-snap.png b/__tests__/__image_snapshots__/html/avatar-empty-initials-js-avatar-with-empty-initials-should-leave-gutter-space-1-snap.png index 0bd9e5fb0a..917f25e1ee 100644 Binary files a/__tests__/__image_snapshots__/html/avatar-empty-initials-js-avatar-with-empty-initials-should-leave-gutter-space-1-snap.png and b/__tests__/__image_snapshots__/html/avatar-empty-initials-js-avatar-with-empty-initials-should-leave-gutter-space-1-snap.png differ diff --git a/__tests__/__image_snapshots__/html/citation-accordion-js-citation-accordion-should-expand-and-collapse-on-click-1-snap.png b/__tests__/__image_snapshots__/html/citation-accordion-js-citation-accordion-should-expand-and-collapse-on-click-1-snap.png index fbe057cb8b..2d0912d78a 100644 Binary files a/__tests__/__image_snapshots__/html/citation-accordion-js-citation-accordion-should-expand-and-collapse-on-click-1-snap.png and b/__tests__/__image_snapshots__/html/citation-accordion-js-citation-accordion-should-expand-and-collapse-on-click-1-snap.png differ diff --git a/__tests__/__image_snapshots__/html/citation-accordion-js-citation-accordion-should-expand-and-collapse-on-click-2-snap.png b/__tests__/__image_snapshots__/html/citation-accordion-js-citation-accordion-should-expand-and-collapse-on-click-2-snap.png index 23f08ef8f2..fb8327d312 100644 Binary files a/__tests__/__image_snapshots__/html/citation-accordion-js-citation-accordion-should-expand-and-collapse-on-click-2-snap.png and b/__tests__/__image_snapshots__/html/citation-accordion-js-citation-accordion-should-expand-and-collapse-on-click-2-snap.png differ diff --git a/__tests__/__image_snapshots__/html/citation-accordion-js-citation-accordion-should-expand-and-collapse-on-click-3-snap.png b/__tests__/__image_snapshots__/html/citation-accordion-js-citation-accordion-should-expand-and-collapse-on-click-3-snap.png index fbe057cb8b..2d0912d78a 100644 Binary files a/__tests__/__image_snapshots__/html/citation-accordion-js-citation-accordion-should-expand-and-collapse-on-click-3-snap.png and b/__tests__/__image_snapshots__/html/citation-accordion-js-citation-accordion-should-expand-and-collapse-on-click-3-snap.png differ diff --git a/__tests__/__image_snapshots__/html/citation-basic-js-citation-should-display-1-snap.png b/__tests__/__image_snapshots__/html/citation-basic-js-citation-should-display-1-snap.png index b6c206b27e..56cb46a576 100644 Binary files a/__tests__/__image_snapshots__/html/citation-basic-js-citation-should-display-1-snap.png and b/__tests__/__image_snapshots__/html/citation-basic-js-citation-should-display-1-snap.png differ diff --git a/__tests__/__image_snapshots__/html/citation-show-modal-close-button-js-citation-modal-dialog-should-close-when-clicking-on-close-button-2-snap.png b/__tests__/__image_snapshots__/html/citation-show-modal-close-button-js-citation-modal-dialog-should-close-when-clicking-on-close-button-2-snap.png index 7216d2c56e..1db6689d65 100644 Binary files a/__tests__/__image_snapshots__/html/citation-show-modal-close-button-js-citation-modal-dialog-should-close-when-clicking-on-close-button-2-snap.png and b/__tests__/__image_snapshots__/html/citation-show-modal-close-button-js-citation-modal-dialog-should-close-when-clicking-on-close-button-2-snap.png differ diff --git a/__tests__/__image_snapshots__/html/citation-show-modal-close-escape-js-citation-modal-dialog-should-close-when-escape-key-is-pressed-2-snap.png b/__tests__/__image_snapshots__/html/citation-show-modal-close-escape-js-citation-modal-dialog-should-close-when-escape-key-is-pressed-2-snap.png index 7216d2c56e..1db6689d65 100644 Binary files a/__tests__/__image_snapshots__/html/citation-show-modal-close-escape-js-citation-modal-dialog-should-close-when-escape-key-is-pressed-2-snap.png and b/__tests__/__image_snapshots__/html/citation-show-modal-close-escape-js-citation-modal-dialog-should-close-when-escape-key-is-pressed-2-snap.png differ diff --git a/__tests__/__image_snapshots__/html/citation-show-modal-width-desktop-js-citation-modal-dialog-should-show-60-on-desktop-1-snap.png b/__tests__/__image_snapshots__/html/citation-show-modal-width-desktop-js-citation-modal-dialog-should-show-60-on-desktop-1-snap.png index 93c24c8b91..d1933e2010 100644 Binary files a/__tests__/__image_snapshots__/html/citation-show-modal-width-desktop-js-citation-modal-dialog-should-show-60-on-desktop-1-snap.png and b/__tests__/__image_snapshots__/html/citation-show-modal-width-desktop-js-citation-modal-dialog-should-show-60-on-desktop-1-snap.png differ diff --git a/__tests__/__image_snapshots__/html/citation-show-modal-width-desktop-js-citation-modal-dialog-should-show-60-on-desktop-2-snap.png b/__tests__/__image_snapshots__/html/citation-show-modal-width-desktop-js-citation-modal-dialog-should-show-60-on-desktop-2-snap.png index f0f84e5d7b..acd70791ae 100644 Binary files a/__tests__/__image_snapshots__/html/citation-show-modal-width-desktop-js-citation-modal-dialog-should-show-60-on-desktop-2-snap.png and b/__tests__/__image_snapshots__/html/citation-show-modal-width-desktop-js-citation-modal-dialog-should-show-60-on-desktop-2-snap.png differ diff --git a/__tests__/__image_snapshots__/html/citation-show-modal-width-mobile-js-citation-modal-dialog-should-show-full-width-on-mobile-device-1-snap.png b/__tests__/__image_snapshots__/html/citation-show-modal-width-mobile-js-citation-modal-dialog-should-show-full-width-on-mobile-device-1-snap.png index fbe057cb8b..2d0912d78a 100644 Binary files a/__tests__/__image_snapshots__/html/citation-show-modal-width-mobile-js-citation-modal-dialog-should-show-full-width-on-mobile-device-1-snap.png and b/__tests__/__image_snapshots__/html/citation-show-modal-width-mobile-js-citation-modal-dialog-should-show-full-width-on-mobile-device-1-snap.png differ diff --git a/__tests__/__image_snapshots__/html/hooks-use-create-activity-renderer-js-use-create-activity-renderer-should-render-activity-1-snap.png b/__tests__/__image_snapshots__/html/hooks-use-create-activity-renderer-js-use-create-activity-renderer-should-render-activity-1-snap.png index d779ff6c34..845293a827 100644 Binary files a/__tests__/__image_snapshots__/html/hooks-use-create-activity-renderer-js-use-create-activity-renderer-should-render-activity-1-snap.png and b/__tests__/__image_snapshots__/html/hooks-use-create-activity-renderer-js-use-create-activity-renderer-should-render-activity-1-snap.png differ diff --git a/__tests__/__image_snapshots__/html/identifier-as-string-js-link-definition-should-display-identifier-of-type-string-1-snap.png b/__tests__/__image_snapshots__/html/identifier-as-string-js-link-definition-should-display-identifier-of-type-string-1-snap.png index fe21654123..eaafa7bf45 100644 Binary files a/__tests__/__image_snapshots__/html/identifier-as-string-js-link-definition-should-display-identifier-of-type-string-1-snap.png and b/__tests__/__image_snapshots__/html/identifier-as-string-js-link-definition-should-display-identifier-of-type-string-1-snap.png differ diff --git a/__tests__/__image_snapshots__/html/reference-js-link-definition-should-reference-sample-1-snap.png b/__tests__/__image_snapshots__/html/reference-js-link-definition-should-reference-sample-1-snap.png index 3b86fd82cd..b4cac0b886 100644 Binary files a/__tests__/__image_snapshots__/html/reference-js-link-definition-should-reference-sample-1-snap.png and b/__tests__/__image_snapshots__/html/reference-js-link-definition-should-reference-sample-1-snap.png differ diff --git a/__tests__/__image_snapshots__/html/timestamp-prepend-text-js-timestamp-prepend-text-1-snap.png b/__tests__/__image_snapshots__/html/timestamp-prepend-text-js-timestamp-prepend-text-1-snap.png index 2f7d3f0f59..6e13263636 100644 Binary files a/__tests__/__image_snapshots__/html/timestamp-prepend-text-js-timestamp-prepend-text-1-snap.png and b/__tests__/__image_snapshots__/html/timestamp-prepend-text-js-timestamp-prepend-text-1-snap.png differ diff --git a/__tests__/__image_snapshots__/html/wrap-zero-width-space-js-link-definition-should-word-wrap-pure-identifier-to-next-line-but-not-text-content-1-snap.png b/__tests__/__image_snapshots__/html/wrap-zero-width-space-js-link-definition-should-word-wrap-pure-identifier-to-next-line-but-not-text-content-1-snap.png index d1f7c75ee1..b8288dd9d6 100644 Binary files a/__tests__/__image_snapshots__/html/wrap-zero-width-space-js-link-definition-should-word-wrap-pure-identifier-to-next-line-but-not-text-content-1-snap.png and b/__tests__/__image_snapshots__/html/wrap-zero-width-space-js-link-definition-should-word-wrap-pure-identifier-to-next-line-but-not-text-content-1-snap.png differ diff --git a/__tests__/html/accessibility.activity.stackedLayoutRole.html b/__tests__/html/accessibility.activity.stackedLayoutRole.html index dec84de3e5..261e48e5b7 100644 --- a/__tests__/html/accessibility.activity.stackedLayoutRole.html +++ b/__tests__/html/accessibility.activity.stackedLayoutRole.html @@ -23,7 +23,7 @@ await pageConditions.minNumActivitiesShown(2); await pageConditions.scrollToBottomCompleted(); - const messageRole = document.querySelector('.webchat__stacked-layout__message-row').getAttribute('role'); + const messageRole = document.querySelector('.stacked-layout__message-row').getAttribute('role'); expect(messageRole).toEqual('group'); }); diff --git a/__tests__/html2/activity/citation.longRef.copilot.html.snap-1.png b/__tests__/html2/activity/citation.longRef.copilot.html.snap-1.png index 7859598853..bb3429b99e 100644 Binary files a/__tests__/html2/activity/citation.longRef.copilot.html.snap-1.png and b/__tests__/html2/activity/citation.longRef.copilot.html.snap-1.png differ diff --git a/__tests__/html2/activity/citation.longRef.fluent.html.snap-1.png b/__tests__/html2/activity/citation.longRef.fluent.html.snap-1.png index 136078ce33..36bdadf762 100644 Binary files a/__tests__/html2/activity/citation.longRef.fluent.html.snap-1.png and b/__tests__/html2/activity/citation.longRef.fluent.html.snap-1.png differ diff --git a/__tests__/html2/activity/citation.longRef.html.snap-1.png b/__tests__/html2/activity/citation.longRef.html.snap-1.png index 1bddc38fc4..107c6e799d 100644 Binary files a/__tests__/html2/activity/citation.longRef.html.snap-1.png and b/__tests__/html2/activity/citation.longRef.html.snap-1.png differ diff --git a/__tests__/html2/activity/collapsible.copilot.dark.html b/__tests__/html2/activity/collapsible.copilot.dark.html new file mode 100644 index 0000000000..0c9e65dc3e --- /dev/null +++ b/__tests__/html2/activity/collapsible.copilot.dark.html @@ -0,0 +1,10 @@ + + +
+{code}
+ = ComponentType
>; +type ComposedComponent
= ComponentType ;
+ }
+>;
+type PipelineComponent = ComponentType