react-calendly
Advanced tools
Comparing version 2.1.0 to 2.2.0
@@ -1,2 +0,2 @@ | ||
import { createElement, Fragment, Component, createRef } from 'react'; | ||
import { createRef, createElement, Component, Fragment } from 'react'; | ||
@@ -509,2 +509,12 @@ /*! ***************************************************************************** | ||
} | ||
if (this.options.prefill.date && this.options.prefill.date instanceof Date) { | ||
var month = this.options.prefill.date.getMonth() + 1; | ||
var day = this.options.prefill.date.getDate(); | ||
var year = this.options.prefill.date.getFullYear(); | ||
n["date"] = [ | ||
year, | ||
month < 10 ? "0" + month : month, | ||
day < 10 ? "0" + day : day | ||
].join('-'); | ||
} | ||
return n; | ||
@@ -511,0 +521,0 @@ }), |
@@ -513,2 +513,12 @@ 'use strict'; | ||
} | ||
if (this.options.prefill.date && this.options.prefill.date instanceof Date) { | ||
var month = this.options.prefill.date.getMonth() + 1; | ||
var day = this.options.prefill.date.getDate(); | ||
var year = this.options.prefill.date.getFullYear(); | ||
n["date"] = [ | ||
year, | ||
month < 10 ? "0" + month : month, | ||
day < 10 ? "0" + day : day | ||
].join('-'); | ||
} | ||
return n; | ||
@@ -515,0 +525,0 @@ }), |
{ | ||
"name": "react-calendly", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"description": "Calendly integration for React apps", | ||
@@ -5,0 +5,0 @@ "author": "tcampb", |
@@ -5,3 +5,3 @@ # react-calendly | ||
[![NPM](https://img.shields.io/npm/v/react-calendly.svg)](https://www.npmjs.com/package/react-calendly) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com) | ||
[![NPM](https://img.shields.io/npm/v/react-calendly.svg)](https://www.npmjs.com/package/react-calendly) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com) [![](https://raw.githubusercontent.com/storybooks/brand/master/badge/badge-storybook.svg)](https://tcampb.github.io/react-calendly) | ||
@@ -111,3 +111,4 @@ --- | ||
a10: 'a10' | ||
} | ||
}, | ||
date: new Date(Date.now() + 86400000) | ||
}} | ||
@@ -114,0 +115,0 @@ ``` |
@@ -39,2 +39,3 @@ import { Props as BadgeWidgetOptions } from "./components/PopupWidget/PopupWidget"; | ||
}>; | ||
date: Date; | ||
}>; | ||
@@ -41,0 +42,0 @@ export declare enum CalendlyEvent { |
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
274458
181
16