@fullcalendar/core
Advanced tools
Comparing version 5.0.0-beta.3 to 5.0.0-beta.4
20
main.js
/*! | ||
FullCalendar v5.0.0-beta.3 | ||
FullCalendar v5.0.0-beta.4 | ||
Docs & License: https://fullcalendar.io/ | ||
(c) 2019 Adam Shaw | ||
*/ | ||
import { flushToDom } from './vdom'; | ||
import './vdom'; | ||
import { __extends, __assign } from 'tslib'; | ||
import { computeCalendarClassNames, computeCalendarHeight, render, createElement, CustomContentRenderContext, CalendarContent, DelayedRunner, CalendarDataManager, isArraysEqual, applyStyleProp, CalendarApi } from '@fullcalendar/common'; | ||
import { render, createElement, CalendarRoot, CustomContentRenderContext, CalendarContent, flushToDom, DelayedRunner, CalendarDataManager, isArraysEqual, applyStyleProp, CalendarApi } from '@fullcalendar/common'; | ||
export * from '@fullcalendar/common'; | ||
@@ -35,7 +35,9 @@ | ||
_this.isRendered = true; | ||
var currentData = _this.currentData; | ||
_this.setClassNames(computeCalendarClassNames(currentData)); | ||
_this.setHeight(computeCalendarHeight(currentData)); | ||
render(createElement(CustomContentRenderContext.Provider, { value: _this.customContentRenderId }, | ||
createElement(CalendarContent, __assign({}, currentData))), _this.el); | ||
var currentData_1 = _this.currentData; | ||
render(createElement(CalendarRoot, { options: currentData_1.calendarOptions, theme: currentData_1.theme, emitter: currentData_1.emitter }, function (classNames, height, isHeightAuto, forPrint) { | ||
_this.setClassNames(classNames); | ||
_this.setHeight(height); | ||
return (createElement(CustomContentRenderContext.Provider, { value: _this.customContentRenderId }, | ||
createElement(CalendarContent, __assign({ isHeightAuto: isHeightAuto, forPrint: forPrint }, currentData_1)))); | ||
}), _this.el); | ||
} | ||
@@ -58,3 +60,2 @@ else if (_this.isRendered) { | ||
}); | ||
_this.trigger('_init'); | ||
return _this; | ||
@@ -81,3 +82,2 @@ } | ||
this.renderRunner.request(); | ||
this.trigger('_destroy'); | ||
} | ||
@@ -84,0 +84,0 @@ }; |
{ | ||
"name": "@fullcalendar/core", | ||
"version": "5.0.0-beta.3", | ||
"version": "5.0.0-beta.4", | ||
"title": "FullCalendar Core Package", | ||
@@ -8,3 +8,3 @@ "description": "Provides core functionality, including the Calendar class", | ||
"dependencies": { | ||
"@fullcalendar/common": "5.0.0-beta.3", | ||
"@fullcalendar/common": "5.0.0-beta.4", | ||
"preact": "^10.0.5", | ||
@@ -11,0 +11,0 @@ "tslib": "^1.9.3" |
@@ -18,4 +18,4 @@ import * as preact from 'preact'; | ||
type VUIEvent = UIEvent; | ||
function flushToDom(): void; | ||
} | ||
} | ||
export declare function flushToDom(): void; |
@@ -9,3 +9,4 @@ import { __extends } from "tslib"; | ||
Fragment: preact.Fragment, | ||
createContext: createContext | ||
createContext: createContext, | ||
flushToDom: flushToDom | ||
}; | ||
@@ -15,3 +16,3 @@ | ||
export function flushToDom() { | ||
function flushToDom() { | ||
var oldDebounceRendering = preact.options.debounceRendering; | ||
@@ -18,0 +19,0 @@ var callbackQ = []; |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
88096
3154
0
+ Added@fullcalendar/common@5.0.0-beta.4(transitive)
- Removed@fullcalendar/common@5.0.0-beta.3(transitive)