calcom/packages/embeds/embed-react
Hariom Balhara 174ed9f6d1
Embed Snippet Generator (#2597)
* Add support to dynamically change the theme

* Add Embed UI in app

* Update UI as per Figma

* Dynamicaly update Embed Code

* Get differnet modes working in preview

* Support Embed on EventType Edit, Team Link Fix and Mobile unsupported

* Fix auto theme switch in Embed Snippet generator

* Fix types

* Self Review fixes

* Remove Embed from App section

* Move get query after the middleware to let middleware work on it

* Add sandboxes in the document

* Add error handling for embed loading

* Fix types

* Update snapshots and fix bug identified by tests

* UI Fixes

* Add Embed Tests

* Respond in preview to width and height

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-05-05 08:29:49 -06:00
..
playwright Embed Miscellaneous Improvements and Fixes (#2499) 2022-04-25 10:03:00 +05:30
src Embed Miscellaneous Improvements and Fixes (#2499) 2022-04-25 10:03:00 +05:30
.gitignore Embed Miscellaneous Improvements and Fixes (#2499) 2022-04-25 10:03:00 +05:30
env.d.ts [Feature]Booking Embed (#2227) 2022-03-31 09:45:47 +01:00
index.html [Feature]Booking Embed (#2227) 2022-03-31 09:45:47 +01:00
package.json Embed Snippet Generator (#2597) 2022-05-05 08:29:49 -06:00
README.md Embed Miscellaneous Improvements and Fixes (#2499) 2022-04-25 10:03:00 +05:30
test-cal.tsx Embed Miscellaneous Improvements and Fixes (#2499) 2022-04-25 10:03:00 +05:30
tsconfig.json Feat/impersonate users (#2503) 2022-04-26 14:18:17 +05:30
vite.config.js Embed Miscellaneous Improvements and Fixes (#2499) 2022-04-25 10:03:00 +05:30

cal-react

Embed Cal Link as a React Component

To know how to use it, follow the steps at https://docs.cal.com/integrations/embed

TODO

  • Playwright tests.
    • Need to what these tests should be as embed-core already have tests. We probably just need to verify that embed-core API is called appropriately.
    • It would probably be better if Playwright tests exist at one place for all embeds.
  • Distribution
    • It would be better DX to serve the unbuilt version with JSX, instead of built version with React.createElement calls. But because of WebPack loaders not running on node_modules automatically, it doesn't work automatically.
    • Right now if a typescript project uses the package, VSCode takes the user to .d.ts files instead of the functions definitions. How to solve it ?