-
Notifications
You must be signed in to change notification settings - Fork 932
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add possibility to display message in the preview when an in-app tutorial is running #7379
Conversation
AlexandreSi
commented
Feb 6, 2025
•
edited
Loading
edited
![image](https://private-user-images.githubusercontent.com/32449369/410551542-7ea111d0-457b-4f95-b2bf-c8c70fcb5a93.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1MjcwODEsIm5iZiI6MTczOTUyNjc4MSwicGF0aCI6Ii8zMjQ0OTM2OS80MTA1NTE1NDItN2VhMTExZDAtNDU3Yi00Zjk1LWIyYmYtYzhjNzBmY2I1YTkzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE0VDA5NTMwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQxZjFjNmFjNzUzZWJkYTIwMGUxOGNjNGU1NjI3ZGFhZGEzODg1NTk2MWIyYmM1NzBkYjEyYjIyNTU0OWQ0ODQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.RTK8AA7IvAt8XstZkADvNPNPQRMU6BnPNKJ5SIb_Qi0)
@@ -0,0 +1,185 @@ | |||
const redHeroImage = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Put this into the namespace, otherwise the esbuild transpilation will create this as a global variable.
(we're sadly not using modules)
</div> | ||
</div> | ||
); | ||
if (_container) domElementContainer.appendChild(_container); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it can't be null/undefined here, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall lgtm!
// @ts-ignore - TS doesn't acknowledge the assignation above that excludes | ||
// the possibility that _container can be null. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could try:
const container = (<div ...)
domElementContainer.appendChild(_container = container)
not sure if better, but at least avoids a ts-ignore