cal.pub0.org/packages/embeds/embed-react
Omar López accf845f0e
Allows tree shaking unused modules (#3752)
* Allows tree shaking unused modules

* don't tree shake embed-core side effects

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-08-11 10:36:30 -06:00
..
playwright Add embed tests in CI (#2887) 2022-05-30 22:41:05 +05:30
src Feat/design system (#3051) 2022-07-22 18:39:50 -06:00
.gitignore
LICENSE Add licenses to embeds (#2984) 2022-06-07 08:25:55 +00:00
README.md Runs format script 2022-06-24 07:37:56 -06:00
env.d.ts
index.html
package.json Allows tree shaking unused modules (#3752) 2022-08-11 10:36:30 -06:00
test-cal.tsx Improvement: Add React to Embed Snippet Generator (#3018) 2022-06-09 10:35:18 +05:30
tsconfig.json Add embed tests in CI (#2887) 2022-05-30 22:41:05 +05:30
vite.config.js

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 ?