@calcom/embed-react
TypeScript icon, indicating that this package has built-in type declarations

1.5.1 • Public • Published

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

Development

Following command starts a hot reloading server yarn dev

If you are working with embed on website, don't forget to do yarn build after every change.

Running Tests

Runs tests and updates the snapshots. Right now we don't care about snapshots yarn embed-tests-quick --update-snapshots 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 ?

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.5.113,928latest
1.0.6-beta.102beta

Version History

VersionDownloads (Last 7 Days)Published
1.5.113,928
1.5.04,388
1.4.01,290
1.3.2876
1.3.01,604
1.2.219
1.2.18
1.2.00
1.1.180
1.1.01
1.0.128
1.0.111
1.0.1078
1.0.919
1.0.80
1.0.71
1.0.61
1.0.6-beta.102
1.0.6-beta.91
1.0.6-beta.81
1.0.6-beta.72
1.0.6-beta.61
1.0.1-beta.72
1.0.6-beta.52
1.0.6-beta.41
1.0.6-beta.31
1.0.6-beta.21
1.0.6-beta.12
1.0.54
1.0.5-01
1.0.41
1.0.4-02
1.0.31
1.0.3-01
1.0.22
1.0.11
1.0.01

Package Sidebar

Install

npm i @calcom/embed-react

Weekly Downloads

19,353

Version

1.5.1

License

SEE LICENSE IN LICENSE

Unpacked Size

72.5 kB

Total Files

15

Last publish

Collaborators

  • somay_chauhan
  • morgan-calcom
  • keithwillcal
  • zomars-cal
  • lauris-cal
  • iambalhara
  • baileypumfleet
  • peer_rich