chore: Update version in main for embeds that are already released. (#9822)
* Release latest embeds * Release latest embeds * Ensure that unpublished packages arent imported * linter is important to catch unexpected imports * Create new release * Add a new patch
This commit is contained in:
1 parent
1566a80e40
commit
2a8eca7885
13 files changed
+162
-21
No files matched your search
@@ -1,5 +1,41 @@
|
||||
# @calcom/embed-react
|
||||
|
||||
## 1.3.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- Fix module import of the embed-react package
|
||||
|
||||
## 1.2.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Improve UI instruction layout typings
|
||||
- Updated dependencies
|
||||
- @calcom/embed-snippet@1.1.2
|
||||
- @calcom/embed-core@1.3.2
|
||||
|
||||
## 1.2.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- layout type fix as zod-utils can't be used in npm package
|
||||
- Updated dependencies
|
||||
- @calcom/embed-snippet@1.1.1
|
||||
- @calcom/embed-core@1.3.1
|
||||
|
||||
## 1.2.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- Supports new booker layout
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @calcom/embed-core@1.3.0
|
||||
- @calcom/embed-snippet@1.1.0
|
||||
|
||||
## 1.1.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@calcom/embed-react",
|
||||
"sideEffects": false,
|
||||
"version": "1.1.1",
|
||||
"version": "1.3.0",
|
||||
"description": "Embed Cal Link as a React Component",
|
||||
"license": "SEE LICENSE IN LICENSE",
|
||||
"repository": {
|
||||
@@ -11,7 +11,7 @@
|
||||
},
|
||||
"scripts": {
|
||||
"dev": "vite --port=3101 --open",
|
||||
"build": "rm -rf dist && vite build && tsc --emitDeclarationOnly --declarationDir dist",
|
||||
"build": "rm -rf dist && vite build && cp ./dist/Cal.es.js ./dist/Cal.es.mjs && tsc --emitDeclarationOnly --declarationDir dist",
|
||||
"preview": "vite preview",
|
||||
"type-check": "tsc --pretty --noEmit",
|
||||
"type-check:ci": "tsc-absolute --pretty --noEmit",
|
||||
@@ -21,13 +21,13 @@
|
||||
"embed-tests-update-snapshots:ci": "yarn embed-tests-quick --update-snapshots",
|
||||
"packaged:tests": "cd test/packaged && yarn tsc --noEmit && yarn run -T test -- --packaged-embed-tests-only",
|
||||
"withEmbedPublishEnv": "NEXT_PUBLIC_EMBED_LIB_URL='https://app.cal.com/embed/embed.js' NEXT_PUBLIC_WEBAPP_URL='https://app.cal.com' yarn",
|
||||
"prepack": "yarn withEmbedPublishEnv build && yarn packaged:tests",
|
||||
"prepack": "yarn ../../../ lint --filter='@calcom/embed-react' && yarn withEmbedPublishEnv build && yarn packaged:tests",
|
||||
"embed-web-start": "yarn workspace @calcom/web start",
|
||||
"embed-dev": "yarn workspace @calcom/embed-react dev",
|
||||
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist"
|
||||
},
|
||||
"main": "./dist/Cal.umd.js",
|
||||
"module": "./dist/Cal.es.js",
|
||||
"module": "./dist/Cal.es.mjs",
|
||||
"types": "./dist/embed-react/src/index.d.ts",
|
||||
"peerDependencies": {
|
||||
"react": "^18.2.0",
|
||||
@@ -38,7 +38,7 @@
|
||||
],
|
||||
"exports": {
|
||||
".": {
|
||||
"import": "./dist/Cal.es.js",
|
||||
"import": "./dist/Cal.es.mjs",
|
||||
"require": "./dist/Cal.umd.js"
|
||||
}
|
||||
},
|
||||
|
||||
@@ -11,6 +11,14 @@ import { getCalApi } from "@calcom/embed-react";
|
||||
|
||||
const api = getCalApi();
|
||||
|
||||
test("Check that the API is available", () => {
|
||||
test("Check that the API is available", async () => {
|
||||
expect(api).toBeDefined()
|
||||
const awaitedApi = await api;
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
awaitedApi('floatingButton', {
|
||||
config: {
|
||||
// @ts-expect-error We are intentionaly testing invalid value
|
||||
layout: 'wrongview'
|
||||
}
|
||||
})
|
||||
});
|
||||
Reference in new issue
Block a user