react-calendly
Advanced tools
Comparing version 3.0.0 to 3.0.1
# Changelog | ||
## 3.0.1 | ||
- Fixes uri encoding bug (https://github.com/tcampb/react-calendly/pull/102). | ||
## 3.0.0 | ||
@@ -4,0 +8,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { createElement, Component, Fragment } from 'react'; | ||
import { createElement, Fragment, Component } from 'react'; | ||
import { createPortal } from 'react-dom'; | ||
@@ -98,14 +98,14 @@ | ||
hideGdprBanner ? "hide_gdpr_banner=1" : null, | ||
name ? "name=" + encodeURI(name) : null, | ||
location ? "location=" + encodeURI(location) : null, | ||
firstName ? "first_name=" + encodeURI(firstName) : null, | ||
lastName ? "last_name=" + encodeURI(lastName) : null, | ||
name ? "name=" + encodeURIComponent(name) : null, | ||
location ? "location=" + encodeURIComponent(location) : null, | ||
firstName ? "first_name=" + encodeURIComponent(firstName) : null, | ||
lastName ? "last_name=" + encodeURIComponent(lastName) : null, | ||
guests ? "guests=" + guests.join(",") : null, | ||
email ? "email=" + email : null, | ||
date && date instanceof Date ? "date=" + formatDate(date) : null, | ||
utmCampaign ? "utm_campaign=" + encodeURI(utmCampaign) : null, | ||
utmContent ? "utm_content=" + encodeURI(utmContent) : null, | ||
utmMedium ? "utm_medium=" + encodeURI(utmMedium) : null, | ||
utmSource ? "utm_source=" + encodeURI(utmSource) : null, | ||
utmTerm ? "utm_term=" + encodeURI(utmTerm) : null, | ||
utmCampaign ? "utm_campaign=" + encodeURIComponent(utmCampaign) : null, | ||
utmContent ? "utm_content=" + encodeURIComponent(utmContent) : null, | ||
utmMedium ? "utm_medium=" + encodeURIComponent(utmMedium) : null, | ||
utmSource ? "utm_source=" + encodeURIComponent(utmSource) : null, | ||
utmTerm ? "utm_term=" + encodeURIComponent(utmTerm) : null, | ||
embedType ? "embed_type=" + embedType : null, | ||
@@ -140,3 +140,3 @@ /* | ||
return []; | ||
return customAnswersFiltered.map(function (key) { return key + "=" + encodeURI(customAnswers[key]); }); | ||
return customAnswersFiltered.map(function (key) { return key + "=" + encodeURIComponent(customAnswers[key]); }); | ||
}; | ||
@@ -143,0 +143,0 @@ |
@@ -102,14 +102,14 @@ 'use strict'; | ||
hideGdprBanner ? "hide_gdpr_banner=1" : null, | ||
name ? "name=" + encodeURI(name) : null, | ||
location ? "location=" + encodeURI(location) : null, | ||
firstName ? "first_name=" + encodeURI(firstName) : null, | ||
lastName ? "last_name=" + encodeURI(lastName) : null, | ||
name ? "name=" + encodeURIComponent(name) : null, | ||
location ? "location=" + encodeURIComponent(location) : null, | ||
firstName ? "first_name=" + encodeURIComponent(firstName) : null, | ||
lastName ? "last_name=" + encodeURIComponent(lastName) : null, | ||
guests ? "guests=" + guests.join(",") : null, | ||
email ? "email=" + email : null, | ||
date && date instanceof Date ? "date=" + formatDate(date) : null, | ||
utmCampaign ? "utm_campaign=" + encodeURI(utmCampaign) : null, | ||
utmContent ? "utm_content=" + encodeURI(utmContent) : null, | ||
utmMedium ? "utm_medium=" + encodeURI(utmMedium) : null, | ||
utmSource ? "utm_source=" + encodeURI(utmSource) : null, | ||
utmTerm ? "utm_term=" + encodeURI(utmTerm) : null, | ||
utmCampaign ? "utm_campaign=" + encodeURIComponent(utmCampaign) : null, | ||
utmContent ? "utm_content=" + encodeURIComponent(utmContent) : null, | ||
utmMedium ? "utm_medium=" + encodeURIComponent(utmMedium) : null, | ||
utmSource ? "utm_source=" + encodeURIComponent(utmSource) : null, | ||
utmTerm ? "utm_term=" + encodeURIComponent(utmTerm) : null, | ||
embedType ? "embed_type=" + embedType : null, | ||
@@ -144,3 +144,3 @@ /* | ||
return []; | ||
return customAnswersFiltered.map(function (key) { return key + "=" + encodeURI(customAnswers[key]); }); | ||
return customAnswersFiltered.map(function (key) { return key + "=" + encodeURIComponent(customAnswers[key]); }); | ||
}; | ||
@@ -147,0 +147,0 @@ |
{ | ||
"name": "react-calendly", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Calendly integration for React apps", | ||
@@ -5,0 +5,0 @@ "author": "tcampb", |
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
138879
21
1003