Socket
Socket
Sign inDemoInstall

react-big-calendar

Package Overview
Dependencies
33
Maintainers
3
Versions
173
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.6.9 to 1.7.0

7

CHANGELOG.md

@@ -0,1 +1,8 @@

# [1.7.0](https://github.com/jquense/react-big-calendar/compare/v1.6.9...v1.7.0) (2023-06-02)
### Features
* Support multiple resources on an event ([91155c5](https://github.com/jquense/react-big-calendar/commit/91155c5193f0a0b3899cb84c1dbfc6480fca4c0c)), closes [#2405](https://github.com/jquense/react-big-calendar/issues/2405) [#1649](https://github.com/jquense/react-big-calendar/issues/1649)
## [1.6.9](https://github.com/jquense/react-big-calendar/compare/v1.6.8...v1.6.9) (2023-03-24)

@@ -2,0 +9,0 @@

6

lib/addons/dragAndDrop/EventWrapper.js

@@ -49,3 +49,7 @@ "use strict";

var isResizeHandle = (_e$target$getAttribut = e.target.getAttribute('class')) === null || _e$target$getAttribut === void 0 ? void 0 : _e$target$getAttribut.includes('rbc-addons-dnd-resize');
if (!isResizeHandle) _this.context.draggable.onBeginAction(_this.props.event, 'move');
if (!isResizeHandle) {
var extendedEvent = _this.props.event;
extendedEvent.sourceResource = _this.props.resource;
_this.context.draggable.onBeginAction(_this.props.event, 'move');
}
};

@@ -52,0 +56,0 @@ return _this;

5

lib/DayColumn.js

@@ -95,5 +95,8 @@ "use strict";

accessors: accessors,
resource: _this.props.resource,
selected: (0, _selection.isSelected)(event, selected),
onClick: function onClick(e) {
return _this._select(event, e);
return _this._select((0, _objectSpread2.default)((0, _objectSpread2.default)({}, event), {}, {
sourceResource: _this.props.resource
}), e);
},

@@ -100,0 +103,0 @@ onDoubleClick: function onDoubleClick(e) {

@@ -27,5 +27,13 @@ "use strict";

var id = accessors.resource(event) || NONE;
var resourceEvents = eventsByResource.get(id) || [];
resourceEvents.push(event);
eventsByResource.set(id, resourceEvents);
if (Array.isArray(id)) {
id.forEach(function (item) {
var resourceEvents = eventsByResource.get(item) || [];
resourceEvents.push(event);
eventsByResource.set(item, resourceEvents);
});
} else {
var resourceEvents = eventsByResource.get(id) || [];
resourceEvents.push(event);
eventsByResource.set(id, resourceEvents);
}
});

@@ -32,0 +40,0 @@ return eventsByResource;

{
"name": "react-big-calendar",
"version": "1.6.9",
"version": "1.7.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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc