packages/embeds/embed-core/README.md
This is the vanilla JS core script that embeds Cal Link.
See https://developer.cal.com/embed/install-with-javascript
You can also see various example usages here
Run the following command and then you can test the embed in the automatically opened page http://localhost:3100/embed/
We have another html page to specifically test prerendering when using headless router in Demo http://localhost:3100/embed/routing-playground.html
yarn dev
Ensure that the main App is running on port 3000 (e.g. yarn dx) already. Also ensure dev server for embed-core is running and then run the following command: Start the server on 3100 port
yarn dev
And from another terminal you can run the following command to execute tests:
yarn embed-tests-quick
Note: getEmbedIframe and addEmbedListeners work as a team but they only support opening up embed in a fresh load. Opening an embed closing it and then opening another embed isn't supported yet.
yarn build
Make dist/embed.umd.js servable on URL http://cal.com/embed.js
main class on the element that has the entire content of the page with no auto margins
main class allows iframe height to adjust according to it, making sure that the content within main is visible without scrolling as long as device dimensions permit it.Unsupported Browsers and versions. Documenting them and gracefully handling that.
Need to create a booking Shell so that common changes for embed can be applied there.
Accessibility and UI/UX Issues let the user choose the loader for ModalBox If the website owner links the booking page directly for an event, should the user be able to go to events-listing page using back button ? Let the user specify both dark and light theme colors. Right now the colors specified are for light theme.
Branding
API
Automation Tests
Bundling Related
Debuggability
Color Scheme
Dev Experience/Ease of Installation
window.dataLayer.push) to inform SDK of something even if snippet is not yet on the page but would be there e.g. through GTM it would come late on the page ?Option to disable redirect banner and let parent handle redirect.
Release Issues
UI Config Features
If just iframe refreshes due to some reason, embed script can't replay the applied instructions.
React Component
onClick support with automatic preloadingShadow DOM is currently in open state, which probably means that any styling change on website can impact loader.
READMEs
cal.com/docs
app.cal.com