-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve copy code button in various contexts
- Loading branch information
Showing
46 changed files
with
334 additions
and
98 deletions.
There are no files selected for viewing
Binary file modified
BIN
+24.9 KB
(110%)
...lied-dark-theme-applied-side-by-side-left-transcript-right-codeblock-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+25.2 KB
(110%)
...lied-dark-theme-applied-side-by-side-left-transcript-right-codeblock-2-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-41.2 KB
(86%)
...lied-dark-theme-applied-side-by-side-left-transcript-right-codeblock-3-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+62.2 KB
(130%)
...lied-dark-theme-applied-side-by-side-left-transcript-right-codeblock-4-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+246 KB
...lied-dark-theme-applied-side-by-side-left-transcript-right-codeblock-5-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+25 KB
(110%)
...dark-theme-applied-side-by-side-left-transcript-right-codeblock-dark-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+25.2 KB
(110%)
...dark-theme-applied-side-by-side-left-transcript-right-codeblock-dark-2-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-41.2 KB
(86%)
...dark-theme-applied-side-by-side-left-transcript-right-codeblock-dark-3-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+61.8 KB
(130%)
...dark-theme-applied-side-by-side-left-transcript-right-codeblock-dark-4-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+246 KB
...dark-theme-applied-side-by-side-left-transcript-right-codeblock-dark-5-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+27.2 KB
(110%)
...js-fluent-theme-applied-side-by-side-left-transcript-right-codeblock-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+26.5 KB
(110%)
...js-fluent-theme-applied-side-by-side-left-transcript-right-codeblock-2-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-60.5 KB
(82%)
...js-fluent-theme-applied-side-by-side-left-transcript-right-codeblock-3-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+78.1 KB
(130%)
...js-fluent-theme-applied-side-by-side-left-transcript-right-codeblock-4-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+273 KB
...js-fluent-theme-applied-side-by-side-left-transcript-right-codeblock-5-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+27.5 KB
(110%)
...uent-theme-applied-side-by-side-left-transcript-right-codeblock-dark-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+26.7 KB
(110%)
...uent-theme-applied-side-by-side-left-transcript-right-codeblock-dark-2-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-58.8 KB
(82%)
...uent-theme-applied-side-by-side-left-transcript-right-codeblock-dark-3-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+77.1 KB
(130%)
...uent-theme-applied-side-by-side-left-transcript-right-codeblock-dark-4-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+274 KB
...uent-theme-applied-side-by-side-left-transcript-right-codeblock-dark-5-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
130 changes: 130 additions & 0 deletions
130
__tests__/html/activityGrouping.disableAbsoluteTimestamp.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
<!doctype html> | ||
<html lang="en-US"> | ||
|
||
<head> | ||
<link href="/assets/index.css" rel="stylesheet" type="text/css" /> | ||
<script crossorigin="anonymous" src="/test-harness.js"></script> | ||
<script crossorigin="anonymous" src="/test-page-object.js"></script> | ||
<script crossorigin="anonymous" src="/__dist__/webchat-es5.js"></script> | ||
<!-- <script crossorigin="anonymous" src="https://unpkg.com/botframework-webchat@main/dist/webchat.js"></script> --> | ||
<!-- <script crossorigin="anonymous" src="https://unpkg.com/[email protected]/dist/webchat.js"></script> --> | ||
</head> | ||
|
||
<body> | ||
<main id="webchat"></main> | ||
<script> | ||
run = fn => fn(); | ||
run(async function () { | ||
const clock = lolex.createClock(); | ||
|
||
const { directLine, store } = testHelpers.createDirectLineEmulator({ ponyfill: clock }); | ||
|
||
WebChat.renderWebChat( | ||
{ | ||
directLine, | ||
ponyfill: clock, | ||
store, | ||
styleOptions: { | ||
"autoScrollSnapOnPage": true, | ||
"avatarBorderRadius": 0, | ||
"botAvatarBackgroundColor": "green", | ||
"botAvatarImage": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABABAMAAABYR2ztAAAAHlBMVEUNirz////J5fDC4e5br9FVrdBAoso4n8gtmcQllcLl2pCDAAAAMElEQVR42mMYBaNgeANDQTAQIl/BjI6OQJGOjk58thSKAYlRBaMKiFcwmjVHwVAHAFOkDndKDHQVAAAAAElFTkSuQmCC", | ||
"botAvatarInitials": "VA", | ||
"bubbleBackground": "rgba(232, 232, 232, 1)", | ||
"bubbleBorderWidth": 0, | ||
"bubbleFromUserBackground": "rgba(219, 241, 251, 1)", | ||
"bubbleFromUserBorderWidth": 0, | ||
"bubbleFromUserNubOffset": "top", | ||
"bubbleFromUserNubSize": 8, | ||
"bubbleNubOffset": "bottom", | ||
"bubbleNubSize": 8, | ||
"groupTimestamp": 0, | ||
"hideUploadButton": true, | ||
"markdownRenderHTML": false, | ||
"suggestedActionBorder": "solid", | ||
"suggestedActionBorderColor": "rgba(0,150,214,1)", | ||
"suggestedActionBorderRadius": 3, | ||
"suggestedActionBorderStyle": "solid", | ||
"suggestedActionBorderWidth": 1, | ||
"suggestedActionLayout": "stacked", | ||
"suggestedActionsStackedLayoutButtonTextWrap": true, | ||
"suggestedActionTextColor": "#00679a", | ||
"timestampFormat": "absolute" | ||
} | ||
}, | ||
document.getElementById('webchat') | ||
); | ||
|
||
await pageConditions.webChatRendered(); | ||
|
||
clock.tick(1000); | ||
|
||
await ( | ||
await directLine.emulateOutgoingActivity( | ||
'Culpa qui non id occaecat consectetur veniam laborum Lorem nulla commodo.' | ||
) | ||
).resolveAll(); | ||
|
||
await directLine.emulateIncomingActivity( | ||
'Est labore mollit do cillum cillum est amet tempor quis reprehenderit veniam sunt.' | ||
) | ||
|
||
await directLine.emulateIncomingActivity( | ||
'Elit adipisicing laborum sit anim.' | ||
); | ||
|
||
clock.tick(2000); | ||
|
||
await directLine.emulateIncomingActivity({ | ||
type: 'message', | ||
from: { role: 'bot1', name: 'Bot' }, | ||
text: 'Another custom.', | ||
}); | ||
|
||
await directLine.emulateIncomingActivity({ | ||
type: 'message', | ||
text: '', | ||
attachments: [{ | ||
"contentType": "application/vnd.microsoft.card.adaptive", | ||
"content": { | ||
"type": "AdaptiveCard", | ||
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json", | ||
"version": "1.2", | ||
"body": [ | ||
{ | ||
"type": "TextBlock", | ||
"text": "Did this solve the problem?", | ||
"wrap": true | ||
}, | ||
{ | ||
"type": "ActionSet", | ||
"actions": [ | ||
{ | ||
"type": "Action.Submit", | ||
"title": "Yes", | ||
"data": { | ||
"value": "Yes" | ||
} | ||
}, | ||
{ | ||
"type": "Action.Submit", | ||
"title": "No", | ||
"data": { | ||
"value": "No" | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
}] | ||
}); | ||
|
||
clock.tick(5000); | ||
|
||
await host.snapshot(); | ||
}); | ||
</script> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
__tests__/html2/markdown/codeBlock/layout.code-block-dark.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<script> | ||
location = './layout?code-block-theme=github-dark-default'; | ||
</script> | ||
</head> | ||
<body></body> | ||
</html> |
Binary file added
BIN
+41.1 KB
__tests__/html2/markdown/codeBlock/layout.code-block-dark.html.snap-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/bundle/src/markdown/createHTMLContentTransformMiddleware.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.