dfde17111c
* test: add test cases to `window.getEmbedNamespace` * test: add test cases when window.name doesn't have cal-embed= * test: add test case to `getembedTheme` returning the theme from embedStore * test: add test to `getEmbedTheme` returning the theme from query params * Small refactor to reduce the time taken by tests and fix missing typings for embed functions on window * Fix weird test failure * Fix type import error caught by api.test.test --------- Co-authored-by: Hariom Balhara <hariombalhara@gmail.com> |
||
---|---|---|
.. | ||
embed-core | ||
embed-react | ||
embed-snippet | ||
.eslintrc.js | ||
README.md | ||
vite.config.js |
README.md
Embeds
This folder contains all the various flavours of embeds.
core
contains the core library written in vanilla JS that manages the embed.
snippet
contains the Vanilla JS Code Snippet that can be installed on any website and would automatically fetch the core
library.
Please see the respective folder READMEs for details on them.
Publishing to NPM. It will soon be automated using changesets github action
To publish the packages. Following steps should be followed. All commands are to be run at the root.
yarn changeset
-> Creates changelog files and adds summary to changelog. Select embed packages only here.yarn changeset version
-> Bumps the versions as required- Get the PR reviewed and merged
yarn publish-embed
-> Releases all packages. We can't useyarn changeset publish
because it doesn't support workspace: prefix removal yet. See https://github.com/changesets/changesets/issues/432#issuecomment-1016365428