react-big-calendar
Advanced tools
Comparing version 1.16.3 to 1.17.0
@@ -0,1 +1,8 @@ | ||
# [1.17.0](https://github.com/jquense/react-big-calendar/compare/v1.16.3...v1.17.0) (2024-12-11) | ||
### Features | ||
* adds a new event id accessor ([#2693](https://github.com/jquense/react-big-calendar/issues/2693)) ([9883ace](https://github.com/jquense/react-big-calendar/commit/9883ace5ae79829f41bbc3721a61e9f5fa45f61b)) | ||
## [1.16.3](https://github.com/jquense/react-big-calendar/compare/v1.16.2...v1.16.3) (2024-11-26) | ||
@@ -2,0 +9,0 @@ |
@@ -265,2 +265,3 @@ "use strict"; | ||
resourceTitleAccessor = _ref2.resourceTitleAccessor, | ||
eventIdAccessor = _ref2.eventIdAccessor, | ||
eventPropGetter = _ref2.eventPropGetter, | ||
@@ -320,3 +321,4 @@ backgroundEventPropGetter = _ref2.backgroundEventPropGetter, | ||
resourceId: (0, _accessors.wrapAccessor)(resourceIdAccessor), | ||
resourceTitle: (0, _accessors.wrapAccessor)(resourceTitleAccessor) | ||
resourceTitle: (0, _accessors.wrapAccessor)(resourceTitleAccessor), | ||
eventId: (0, _accessors.wrapAccessor)(eventIdAccessor) | ||
} | ||
@@ -348,2 +350,3 @@ }; | ||
resourceTitleAccessor: 'title', | ||
eventIdAccessor: 'id', | ||
longPressThreshold: 250, | ||
@@ -350,0 +353,0 @@ getNow: function getNow() { |
@@ -66,2 +66,3 @@ "use strict"; | ||
return styledEvents.map(function (_ref2, idx) { | ||
var _accessors$eventId; | ||
var event = _ref2.event, | ||
@@ -71,2 +72,3 @@ style = _ref2.style; | ||
var start = accessors.start(event); | ||
var key = (_accessors$eventId = accessors.eventId(event)) !== null && _accessors$eventId !== void 0 ? _accessors$eventId : 'evt_' + idx; | ||
var format = 'eventTimeRangeFormat'; | ||
@@ -87,3 +89,3 @@ var label; | ||
label: label, | ||
key: 'evt_' + idx, | ||
key: key, | ||
getters: getters, | ||
@@ -90,0 +92,0 @@ rtl: rtl, |
@@ -8,2 +8,3 @@ "use strict"; | ||
exports.default = void 0; | ||
var _propTypes = _interopRequireDefault(require("prop-types")); | ||
var _react = _interopRequireDefault(require("react")); | ||
@@ -17,2 +18,5 @@ var Header = function Header(_ref) { | ||
}; | ||
Header.propTypes = process.env.NODE_ENV !== "production" ? { | ||
label: _propTypes.default.node | ||
} : {}; | ||
var _default = exports.default = Header; |
{ | ||
"name": "react-big-calendar", | ||
"version": "1.16.3", | ||
"version": "1.17.0", | ||
"description": "Calendar! with events", | ||
@@ -5,0 +5,0 @@ "author": { |
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 too big to display
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
2587945
56414
5