react-calendly
Advanced tools
Comparing version 2.2.2 to 2.2.3
@@ -425,2 +425,3 @@ import { createRef, createElement, Component, Fragment } from 'react'; | ||
(t.prototype.build = function () { | ||
var iframeTitle = this.options && this.options.iframeTitle; | ||
return ((this.node = document.createElement("iframe")), | ||
@@ -431,2 +432,3 @@ (this.node.src = this.getSource()), | ||
(this.node.frameBorder = "0"), | ||
(this.node.title = iframeTitle || "Calendly Scheduling Page"), | ||
(this.node.onload = (function () { | ||
@@ -720,2 +722,3 @@ var calendlySpinnerElement = this.node.parentElement.querySelector(".calendly-spinner"); | ||
utm: options.utm, | ||
iframeTitle: options.iframeTitle | ||
}; | ||
@@ -774,2 +777,3 @@ window.Calendly.initPopupWidget(widgetOptions); | ||
utm: this.props.utm, | ||
iframeTitle: this.props.iframeTitle | ||
}); | ||
@@ -792,2 +796,3 @@ }; | ||
utm: this.props.utm, | ||
iframeTitle: this.props.iframeTitle | ||
}); | ||
@@ -817,3 +822,3 @@ }; | ||
return (prevProps.url !== this.props.url || | ||
["pageSettings", "prefill", "utm"].some(function (prop) { | ||
["pageSettings", "prefill", "utm", "iframeTitle"].some(function (prop) { | ||
return JSON.stringify(prevProps[prop]) !== JSON.stringify(_this.props[prop]); | ||
@@ -848,2 +853,3 @@ })); | ||
utm: this.props.utm, | ||
iframeTitle: this.props.iframeTitle | ||
}; | ||
@@ -850,0 +856,0 @@ return (createElement("button", { onClick: createClickHandler(widgetOptions), style: this.props.styles || {}, className: this.props.className || "" }, this.props.text)); |
@@ -429,2 +429,3 @@ 'use strict'; | ||
(t.prototype.build = function () { | ||
var iframeTitle = this.options && this.options.iframeTitle; | ||
return ((this.node = document.createElement("iframe")), | ||
@@ -435,2 +436,3 @@ (this.node.src = this.getSource()), | ||
(this.node.frameBorder = "0"), | ||
(this.node.title = iframeTitle || "Calendly Scheduling Page"), | ||
(this.node.onload = (function () { | ||
@@ -724,2 +726,3 @@ var calendlySpinnerElement = this.node.parentElement.querySelector(".calendly-spinner"); | ||
utm: options.utm, | ||
iframeTitle: options.iframeTitle | ||
}; | ||
@@ -778,2 +781,3 @@ window.Calendly.initPopupWidget(widgetOptions); | ||
utm: this.props.utm, | ||
iframeTitle: this.props.iframeTitle | ||
}); | ||
@@ -796,2 +800,3 @@ }; | ||
utm: this.props.utm, | ||
iframeTitle: this.props.iframeTitle | ||
}); | ||
@@ -821,3 +826,3 @@ }; | ||
return (prevProps.url !== this.props.url || | ||
["pageSettings", "prefill", "utm"].some(function (prop) { | ||
["pageSettings", "prefill", "utm", "iframeTitle"].some(function (prop) { | ||
return JSON.stringify(prevProps[prop]) !== JSON.stringify(_this.props[prop]); | ||
@@ -852,2 +857,3 @@ })); | ||
utm: this.props.utm, | ||
iframeTitle: this.props.iframeTitle | ||
}; | ||
@@ -854,0 +860,0 @@ return (React.createElement("button", { onClick: createClickHandler(widgetOptions), style: this.props.styles || {}, className: this.props.className || "" }, this.props.text)); |
{ | ||
"name": "react-calendly", | ||
"version": "2.2.2", | ||
"version": "2.2.3", | ||
"description": "Calendly integration for React apps", | ||
@@ -5,0 +5,0 @@ "author": "tcampb", |
@@ -54,2 +54,7 @@ import { Props as BadgeWidgetOptions } from "./components/PopupWidget/PopupWidget"; | ||
}>; | ||
/** | ||
* @description The default title is Calendly Scheduling Page | ||
* @see {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/title} | ||
*/ | ||
export declare type IframeTitle = string; | ||
export declare type PageSettings = Optional<{ | ||
@@ -56,0 +61,0 @@ /** |
import * as React from "react"; | ||
import '../../calendly-widget.css'; | ||
import { PageSettings, Prefill, Utm } from "../../calendly"; | ||
import { PageSettings, Prefill, Utm, IframeTitle } from "../../calendly"; | ||
export interface Props { | ||
@@ -10,2 +10,3 @@ url: string; | ||
pageSettings?: PageSettings; | ||
iframeTitle?: IframeTitle; | ||
} | ||
@@ -17,2 +18,3 @@ export interface InlineWidgetOptions { | ||
utm?: Utm; | ||
iframeTitle?: IframeTitle; | ||
} | ||
@@ -19,0 +21,0 @@ declare class InlineWidget extends React.Component<Props> { |
import * as React from "react"; | ||
import '../../calendly-widget.css'; | ||
import { PageSettings, Prefill, Utm } from "../../calendly"; | ||
import { PageSettings, Prefill, Utm, IframeTitle } from "../../calendly"; | ||
export interface Props { | ||
@@ -12,2 +12,3 @@ url: string; | ||
className?: string; | ||
iframeTitle?: IframeTitle; | ||
} | ||
@@ -18,2 +19,3 @@ export interface PopupWidgetOptions { | ||
utm?: Utm; | ||
iframeTitle?: IframeTitle; | ||
} | ||
@@ -20,0 +22,0 @@ declare class PopupButton extends React.Component<Props> { |
import * as React from "react"; | ||
import '../../calendly-widget.css'; | ||
import { PageSettings, Prefill, Utm } from "../../calendly"; | ||
import { PageSettings, Prefill, Utm, IframeTitle } from "../../calendly"; | ||
export interface Props { | ||
@@ -13,2 +13,3 @@ url: string; | ||
pageSettings?: PageSettings; | ||
iframeTitle?: IframeTitle; | ||
} | ||
@@ -15,0 +16,0 @@ declare class PopupWidget extends React.Component<Props> { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
278436
15
2111