feat: v2 embed (#4477)
* Add support for custom tabNameKey and use embedTabName as the key for embed to avoid conflict with event-types tabName property * Fix tests * Code cleanup * feat: v2 embed * fix: button black default, reuse horitzontalTabs v2 * fix: remove comment, remove linkProps from NavTabs v2 * fix: height: 98% to avoid overflow * fix: add embed to event type detail page * fix: add also tabNames embed-code embed-react * fix: add tabNames w empty divs * Update Embed component as per V2 Co-authored-by: Hariom Balhara <[email protected]> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> Co-authored-by: Agusti Fernandez Pardo <[email protected]> Co-authored-by: Alex van Andel <[email protected]>
This commit is contained in:
14 files changed
+857
-143
No files matched your search
@@ -21,7 +21,7 @@
|
||||
</head>
|
||||
<script type="module" src="./src/preview.ts"></script>
|
||||
<body>
|
||||
<div id="my-embed" style="width: 100%; height: 100%; overflow: scroll"></div>
|
||||
<div id="my-embed" style="width: 100%; height: 90%; overflow: scroll"></div>
|
||||
<script type="module">
|
||||
|
||||
</script>
|
||||
|
||||
@@ -252,10 +252,6 @@ export const methods = {
|
||||
ui: function style(uiConfig: UiConfig) {
|
||||
// TODO: Create automatic logger for all methods. Useful for debugging.
|
||||
log("Method: ui called", uiConfig);
|
||||
if (window.CalComPlan && window.CalComPlan !== "PRO") {
|
||||
log(`Upgrade to PRO for "ui" instruction to work`, window.CalComPlan);
|
||||
return;
|
||||
}
|
||||
const stylesConfig = uiConfig.styles;
|
||||
|
||||
// In case where parent gives instructions before CalComPlan is set.
|
||||
|
||||
@@ -276,8 +276,8 @@ export class Cal {
|
||||
hideButtonIcon = false,
|
||||
attributes,
|
||||
buttonPosition = "bottom-right",
|
||||
buttonColor = "rgb(255, 202, 0)",
|
||||
buttonTextColor = "rgb(20, 30, 47)",
|
||||
buttonColor = "rgb(0, 0, 0)",
|
||||
buttonTextColor = "rgb(255, 255, 255)",
|
||||
}: {
|
||||
calLink: string;
|
||||
buttonText?: string;
|
||||
|
||||
Reference in new issue
Block a user