New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-calendly

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-calendly - npm Package Compare versions

Comparing version 4.0.1 to 4.1.0

8

CHANGELOG.md
# Changelog
## 4.1.0
- Added `salesforce_uuid` prefill option (https://github.com/tcampb/react-calendly/pull/128).
## 4.0.1
- Fixed issue that caused the `email` and `guests` prefill options to not be properly encoded (https://github.com/tcampb/react-calendly/issues/116).
## 4.0.0

@@ -4,0 +12,0 @@

3

dist/index.es.js

@@ -85,3 +85,3 @@ import { createElement, Component, Fragment, useEffect } from 'react';

var customAnswers = prefill.customAnswers, date = prefill.date, email = prefill.email, firstName = prefill.firstName, guests = prefill.guests, lastName = prefill.lastName, location = prefill.location, name = prefill.name;
var utmCampaign = utm.utmCampaign, utmContent = utm.utmContent, utmMedium = utm.utmMedium, utmSource = utm.utmSource, utmTerm = utm.utmTerm;
var utmCampaign = utm.utmCampaign, utmContent = utm.utmContent, utmMedium = utm.utmMedium, utmSource = utm.utmSource, utmTerm = utm.utmTerm, salesforce_uuid = utm.salesforce_uuid;
var queryStringIndex = url.indexOf("?");

@@ -111,2 +111,3 @@ var hasQueryString = queryStringIndex > -1;

utmTerm ? "utm_term=" + encodeURIComponent(utmTerm) : null,
salesforce_uuid ? "salesforce_uuid=" + encodeURIComponent(salesforce_uuid) : null,
embedType ? "embed_type=" + embedType : null,

@@ -113,0 +114,0 @@ /*

@@ -89,3 +89,3 @@ 'use strict';

var customAnswers = prefill.customAnswers, date = prefill.date, email = prefill.email, firstName = prefill.firstName, guests = prefill.guests, lastName = prefill.lastName, location = prefill.location, name = prefill.name;
var utmCampaign = utm.utmCampaign, utmContent = utm.utmContent, utmMedium = utm.utmMedium, utmSource = utm.utmSource, utmTerm = utm.utmTerm;
var utmCampaign = utm.utmCampaign, utmContent = utm.utmContent, utmMedium = utm.utmMedium, utmSource = utm.utmSource, utmTerm = utm.utmTerm, salesforce_uuid = utm.salesforce_uuid;
var queryStringIndex = url.indexOf("?");

@@ -115,2 +115,3 @@ var hasQueryString = queryStringIndex > -1;

utmTerm ? "utm_term=" + encodeURIComponent(utmTerm) : null,
salesforce_uuid ? "salesforce_uuid=" + encodeURIComponent(salesforce_uuid) : null,
embedType ? "embed_type=" + embedType : null,

@@ -117,0 +118,0 @@ /*

{
"name": "react-calendly",
"version": "4.0.1",
"version": "4.1.0",
"description": "Calendly integration for React apps",

@@ -5,0 +5,0 @@ "author": "tcampb",

@@ -104,2 +104,26 @@ # react-calendly

#### useCalendlyEventListener
```jsx
import React from "react";
import { useCalendlyEventListener, InlineWidget } from "react-calendly";
const App = () => {
useCalendlyEventListener({
onProfilePageViewed: () => console.log("onProfilePageViewed"),
onDateAndTimeSelected: () => console.log("onDateAndTimeSelected"),
onEventTypeViewed: () => console.log("onEventTypeViewed"),
onEventScheduled: (e) => console.log(e.data.payload),
});
return (
<div className="App">
<InlineWidget url="https://calendly.com/your_scheduling_page" />
</div>
);
};
export default App;
```
### Advanced Usage

@@ -106,0 +130,0 @@

@@ -37,2 +37,3 @@ declare type Optional<T extends object> = {

utmTerm: string;
salesforce_uuid: string;
}>;

@@ -143,2 +144,3 @@ /**

utmTerm: string;
salesforce_uuid: string;
}> | undefined;

@@ -145,0 +147,0 @@ embedType?: "Inline" | "PopupWidget" | "PopupButton" | undefined;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc