@fullcalendar/core
Advanced tools
Comparing version 5.10.1 to 5.11.0
/*! | ||
FullCalendar v5.10.1 | ||
FullCalendar v5.10.2 | ||
Docs & License: https://fullcalendar.io/ | ||
@@ -39,8 +39,10 @@ (c) 2021 Adam Shaw | ||
var currentData_1 = _this.currentData; | ||
common.render(common.createElement(common.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 (common.createElement(common.CustomContentRenderContext.Provider, { value: _this.customContentRenderId }, | ||
common.createElement(common.CalendarContent, tslib.__assign({ isHeightAuto: isHeightAuto, forPrint: forPrint }, currentData_1)))); | ||
}), _this.el); | ||
common.flushSync(function () { | ||
common.render(common.createElement(common.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 (common.createElement(common.CustomContentRenderContext.Provider, { value: _this.customContentRenderId }, | ||
common.createElement(common.CalendarContent, tslib.__assign({ isHeightAuto: isHeightAuto, forPrint: forPrint }, currentData_1)))); | ||
}), _this.el); | ||
}); | ||
} | ||
@@ -53,3 +55,2 @@ else if (_this.isRendered) { | ||
} | ||
common.flushToDom(); | ||
}; | ||
@@ -92,4 +93,6 @@ _this.el = el; | ||
Calendar.prototype.updateSize = function () { | ||
_super.prototype.updateSize.call(this); | ||
common.flushToDom(); | ||
var _this = this; | ||
common.flushSync(function () { | ||
_super.prototype.updateSize.call(_this); | ||
}); | ||
}; | ||
@@ -96,0 +99,0 @@ Calendar.prototype.batchRendering = function (func) { |
25
main.js
/*! | ||
FullCalendar v5.10.1 | ||
FullCalendar v5.10.2 | ||
Docs & License: https://fullcalendar.io/ | ||
@@ -8,3 +8,3 @@ (c) 2021 Adam Shaw | ||
import { __extends, __assign } from 'tslib'; | ||
import { render, createElement, CalendarRoot, CustomContentRenderContext, CalendarContent, unmountComponentAtNode, flushToDom, DelayedRunner, CalendarDataManager, isArraysEqual, applyStyleProp, CalendarApi } from '@fullcalendar/common'; | ||
import { flushSync, render, createElement, CalendarRoot, CustomContentRenderContext, CalendarContent, unmountComponentAtNode, DelayedRunner, CalendarDataManager, isArraysEqual, applyStyleProp, CalendarApi } from '@fullcalendar/common'; | ||
export * from '@fullcalendar/common'; | ||
@@ -37,8 +37,10 @@ | ||
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); | ||
flushSync(function () { | ||
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); | ||
}); | ||
} | ||
@@ -51,3 +53,2 @@ else if (_this.isRendered) { | ||
} | ||
flushToDom(); | ||
}; | ||
@@ -90,4 +91,6 @@ _this.el = el; | ||
Calendar.prototype.updateSize = function () { | ||
_super.prototype.updateSize.call(this); | ||
flushToDom(); | ||
var _this = this; | ||
flushSync(function () { | ||
_super.prototype.updateSize.call(_this); | ||
}); | ||
}; | ||
@@ -94,0 +97,0 @@ Calendar.prototype.batchRendering = function (func) { |
{ | ||
"name": "@fullcalendar/core", | ||
"version": "5.10.1", | ||
"version": "5.11.0", | ||
"title": "FullCalendar Core Package", | ||
@@ -8,3 +8,3 @@ "description": "Provides core functionality, including the Calendar class", | ||
"dependencies": { | ||
"@fullcalendar/common": "~5.10.1", | ||
"@fullcalendar/common": "~5.11.0", | ||
"preact": "^10.0.5", | ||
@@ -33,4 +33,4 @@ "tslib": "^2.1.0" | ||
"devDependencies": { | ||
"@fullcalendar/core-preact": "5.10.1" | ||
"@fullcalendar/core-preact": "5.11.0" | ||
} | ||
} |
@@ -43,3 +43,3 @@ 'use strict'; | ||
createPortal: preactCompat__namespace.createPortal, | ||
flushToDom: flushToDom, | ||
flushSync: flushSync, | ||
unmountComponentAtNode: unmountComponentAtNode, | ||
@@ -51,3 +51,4 @@ }; | ||
// TODO: link gh issues | ||
function flushToDom() { | ||
function flushSync(runBeforeFlush) { | ||
runBeforeFlush(); | ||
var oldDebounceRendering = preact__namespace.options.debounceRendering; // orig | ||
@@ -54,0 +55,0 @@ var callbackQ = []; |
@@ -20,5 +20,5 @@ import * as preact from 'preact'; | ||
type VUIEvent = UIEvent; | ||
function flushToDom(): void; | ||
function flushSync(callback: () => void): void; | ||
function unmountComponentAtNode(node: HTMLElement): void; | ||
} | ||
} |
@@ -18,3 +18,3 @@ import { __extends } from 'tslib'; | ||
createPortal: preactCompat.createPortal, | ||
flushToDom: flushToDom, | ||
flushSync: flushSync, | ||
unmountComponentAtNode: unmountComponentAtNode, | ||
@@ -26,3 +26,4 @@ }; | ||
// TODO: link gh issues | ||
function flushToDom() { | ||
function flushSync(runBeforeFlush) { | ||
runBeforeFlush(); | ||
var oldDebounceRendering = preact.options.debounceRendering; // orig | ||
@@ -29,0 +30,0 @@ var callbackQ = []; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
889180
18186
+ Added@fullcalendar/common@5.11.5(transitive)
- Removed@fullcalendar/common@5.10.1(transitive)
Updated@fullcalendar/common@~5.11.0