cal.pub0.org/packages/embeds/embed-react
depfu[bot] db01f7be19
Update all Yarn dependencies (2022-05-16) (#2769)
* Update all Yarn dependencies (2022-05-16)

* Upgrade dependencies

* Removes deprecated packages

* Upgrades deps

* Updates submodules

* Update yarn.lock

* Linting

* Linting

* Update website

* Build fixes

* TODO: fix this

* Module resolving

* Type fixes

* Intercom fixes on SSG

* Fixes infinite loop

* Upgrades to React 18

* Type fixes

* Locks node version to 14

* Upgrades daily-js

* Readds missing types

* Upgrades playwright

* Noop when intercom is not installed

* Update website

* Removed yarn.lock in favor of monorepo

Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
Co-authored-by: zomars <zomars@me.com>
2022-05-17 19:31:49 +00:00
..
playwright Embed Code Generator: Fix Preview HTML and Embed Lib path for production (#2688) 2022-05-06 15:56:26 +00:00
src Update all Yarn dependencies (2022-05-16) (#2769) 2022-05-17 19:31:49 +00:00
.gitignore Embed Miscellaneous Improvements and Fixes (#2499) 2022-04-25 10:03:00 +05:30
README.md 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 Update all Yarn dependencies (2022-05-16) (#2769) 2022-05-17 19:31:49 +00:00
test-cal.tsx Embed Code Generator: Fix Preview HTML and Embed Lib path for production (#2688) 2022-05-06 15:56:26 +00:00
tsconfig.json Feat/impersonate users (#2503) 2022-04-26 14:18:17 +05:30
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

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 ?