react-calendly
Advanced tools
Comparing version 3.0.2 to 3.0.3
# Changelog | ||
## 3.0.3 | ||
- Supports new React 18 types (https://github.com/tcampb/react-calendly/pull/111). | ||
- Allows closing modal with an overlay click (https://github.com/tcampb/react-calendly/pull/110). | ||
## 3.0.2 | ||
@@ -4,0 +9,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { createElement, Fragment, Component } from 'react'; | ||
import { createElement, Component, Fragment } from 'react'; | ||
import { createPortal } from 'react-dom'; | ||
@@ -224,3 +224,3 @@ | ||
return createPortal(createElement("div", { className: "calendly-overlay" }, | ||
createElement("div", { className: "calendly-close-overlay" }), | ||
createElement("div", { onClick: props.onModalClose, className: "calendly-close-overlay" }), | ||
createElement("div", { className: "calendly-popup" }, | ||
@@ -227,0 +227,0 @@ createElement("div", { className: "calendly-popup-content" }, |
@@ -228,3 +228,3 @@ 'use strict'; | ||
return ReactDom.createPortal(React.createElement("div", { className: "calendly-overlay" }, | ||
React.createElement("div", { className: "calendly-close-overlay" }), | ||
React.createElement("div", { onClick: props.onModalClose, className: "calendly-close-overlay" }), | ||
React.createElement("div", { className: "calendly-popup" }, | ||
@@ -231,0 +231,0 @@ React.createElement("div", { className: "calendly-popup-content" }, |
{ | ||
"name": "react-calendly", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"description": "Calendly integration for React apps", | ||
@@ -5,0 +5,0 @@ "author": "tcampb", |
@@ -41,2 +41,3 @@ import * as React from "react"; | ||
onProfilePageViewed?: (e: ProfilePageViewedEvent) => any; | ||
children?: React.ReactNode; | ||
}; | ||
@@ -43,0 +44,0 @@ declare class CalendlyEventListener extends React.Component<Props> { |
import * as React from "react"; | ||
import { Props as ModalContentProps } from "./ModalContent"; | ||
interface Props extends ModalContentProps { | ||
onModalClose: (e: React.MouseEvent<HTMLButtonElement>) => void; | ||
onModalClose: (e: React.MouseEvent<HTMLElement>) => void; | ||
open: boolean; | ||
@@ -6,0 +6,0 @@ rootElement: HTMLElement; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
139436
1004