cal.pub0.org/packages/embeds/embed-snippet
Hariom Balhara 67cc3a6409
Embed Code Generator: Fix Preview HTML and Embed Lib path for production (#2688)
* Improve logging

* Improve logging

* Keep embed origin conigurable

* Make embed URL and embed origin conigurable through env

* Gitignore public embed

* Add fingerprint to preview as well

* Fix path

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-05-06 15:56:26 +00:00
..
src Embed Code Generator: Fix Preview HTML and Embed Lib path for production (#2688) 2022-05-06 15:56:26 +00:00
README.md Embed: Bump Versions and update Readmes and descriptions (#2507) 2022-04-15 18:55:36 +01:00
env.d.ts [Feature]Booking Embed (#2227) 2022-03-31 09:45:47 +01:00
package.json Embed: Bump Versions and update Readmes and descriptions (#2507) 2022-04-15 18:55:36 +01:00
tsconfig.json [Feature]Booking Embed (#2227) 2022-03-31 09:45:47 +01:00
vite.config.js Embed Code Generator: Fix Preview HTML and Embed Lib path for production (#2688) 2022-05-06 15:56:26 +00:00

README.md

embed-snippet

Vanilla JS embed snippet that is responsible to fetch @calcom/embed-core and thus show Cal Link as an embed on a page.

Development

yarn build will generate dist/snippet.es.js

  • which can be used as <script type="module" src=...
  • You can also copy the appropriate portion of the code and install it directly as <script>CODE_SUGGESTED_TO_BE_COPIED</script>