🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@fullcalendar/react

Package Overview
Dependencies
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fullcalendar/react - npm Package Compare versions

Comparing version

to
6.1.0

3

dist/index.d.ts

@@ -12,2 +12,3 @@ import { Component } from 'react';

private customRenderingRequestId;
private handleCustomRendering;
private needsCustomRenderingResize;

@@ -21,3 +22,3 @@ private isInitialRender;

cancelCustomRendering(): void;
componentDidUpdate(prevProps: CalendarOptions): void;
componentDidUpdate(): void;
componentWillUnmount(): void;

@@ -24,0 +25,0 @@ getApi(): CalendarApi;

@@ -29,3 +29,4 @@ /* eslint-disable @typescript-eslint/no-explicit-any */

const customRenderingStore = new CustomRenderingStore();
this.calendar = new Calendar(this.elRef.current, Object.assign(Object.assign({}, this.props), { handleCustomRendering: customRenderingStore.handle.bind(customRenderingStore), customRenderingMetaMap: this.props }));
this.handleCustomRendering = customRenderingStore.handle.bind(customRenderingStore);
this.calendar = new Calendar(this.elRef.current, Object.assign(Object.assign({}, this.props), { handleCustomRendering: this.handleCustomRendering }));
this.calendar.render();

@@ -59,8 +60,5 @@ customRenderingStore.subscribe((customRenderingMap) => {

}
componentDidUpdate(prevProps) {
componentDidUpdate() {
this.isInitialRender = false;
const updates = computeUpdates(prevProps, this.props);
if (Object.keys(updates).length) {
this.calendar.resetOptions(Object.assign(Object.assign({}, updates), { customRenderingMetaMap: this.props }), true);
}
this.calendar.resetOptions(Object.assign(Object.assign({}, this.props), { handleCustomRendering: this.handleCustomRendering }));
if (this.needsCustomRenderingResize) {

@@ -80,14 +78,2 @@ this.needsCustomRenderingResize = false;

FullCalendar.act = (f) => { f(); };
// Utils
function computeUpdates(origObj, newObj) {
const updates = {};
if (newObj !== origObj) {
for (const key in newObj) {
if (newObj[key] !== origObj[key]) {
updates[key] = newObj[key];
}
}
}
return updates;
}
//# sourceMappingURL=index.js.map
{
"name": "@fullcalendar/react",
"version": "6.0.4",
"version": "6.1.0",
"title": "FullCalendar React Component",

@@ -20,3 +20,3 @@ "description": "The official React Component for FullCalendar",

"peerDependencies": {
"@fullcalendar/core": "~6.0.3",
"@fullcalendar/core": "~6.1.0",
"react": "^16.7.0 || ^17 || ^18",

@@ -29,5 +29,7 @@ "react-dom": "^16.7.0 || ^17 || ^18"

"@babel/preset-react": "^7.9.4",
"@fullcalendar/core": "~6.0.3",
"@fullcalendar/daygrid": "~6.0.3",
"@fullcalendar/list": "~6.0.3",
"@fullcalendar/core": "~6.1.0",
"@fullcalendar/daygrid": "~6.1.0",
"@fullcalendar/list": "~6.1.0",
"@fullcalendar/resource": "~6.1.0",
"@fullcalendar/resource-timeline": "~6.1.0",
"@rollup/plugin-babel": "^5.0.0",

@@ -34,0 +36,0 @@ "@rollup/plugin-commonjs": "^12.0.0",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet