cal.pub0.org/packages/embeds/embed-react
Hariom Balhara e1bf425c1c
Fix failing builds (#2908)
2022-05-27 11:07:02 -06:00
..
playwright Embed Code Generator: Fix Preview HTML and Embed Lib path for production (#2688) 2022-05-06 15:56:26 +00:00
src Fix @calcom/embed-react installation with TS project (#2870) 2022-05-27 09:37:02 -06:00
.gitignore Embed Miscellaneous Improvements and Fixes (#2499) 2022-04-25 10:03:00 +05:30
README.md Embed React improvements (#2782) 2022-05-18 16:25:30 +00:00
env.d.ts Fix @calcom/embed-react installation with TS project (#2870) 2022-05-27 09:37:02 -06:00
index.html
package.json Fix failing builds (#2908) 2022-05-27 11:07:02 -06:00
test-cal.tsx Embed React improvements (#2782) 2022-05-18 16:25:30 +00:00
tsconfig.json Fix @calcom/embed-react installation with TS project (#2870) 2022-05-27 09:37:02 -06:00
vite.config.js Fix @calcom/embed-react installation with TS project (#2870) 2022-05-27 09:37:02 -06:00

README.md

cal-react

Embed Cal Link as a React Component

To know how to use it, follow the steps at https://developer.cal.com/embed/install-with-react

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 ?