Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@r365/react-calendar-timeline

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@r365/react-calendar-timeline - npm Package Compare versions

Comparing version 0.22.1 to 0.23.0-beta

lib/lib/headers/ItemHeader.js

11

lib/index.js

@@ -6,3 +6,3 @@ 'use strict';

});
exports.TimelineStateConsumer = exports.DateHeader = exports.CustomHeader = exports.SidebarHeader = exports.TimelineHeaders = exports.CursorMarker = exports.CustomMarker = exports.TodayMarker = exports.TimelineMarkers = undefined;
exports.TimelineStateConsumer = exports.ItemHeader = exports.DateHeader = exports.CustomHeader = exports.SidebarHeader = exports.TimelineHeaders = exports.CursorMarker = exports.CustomMarker = exports.TodayMarker = exports.TimelineMarkers = undefined;

@@ -81,2 +81,11 @@ var _TimelineMarkers = require('./lib/markers/public/TimelineMarkers');

var _ItemHeader = require('./lib/headers/ItemHeader');
Object.defineProperty(exports, 'ItemHeader', {
enumerable: true,
get: function get() {
return _interopRequireDefault(_ItemHeader).default;
}
});
var _TimelineStateContext = require('./lib/timeline/TimelineStateContext');

@@ -83,0 +92,0 @@

1

lib/lib/row/GroupRows.js

@@ -58,3 +58,2 @@ 'use strict';

var lines = [];
for (var i = 0; i < lineCount; i++) {

@@ -61,0 +60,0 @@ lines.push(_react2.default.createElement(_GroupRow2.default, {

@@ -414,3 +414,4 @@ 'use strict';

timelineUnit: minUnit,
timelineWidth: this.state.width
timelineWidth: this.state.width,
keys: this.props.keys
},

@@ -417,0 +418,0 @@ _react2.default.createElement(

@@ -8,4 +8,2 @@ 'use strict';

var _TimelineStateProvide;
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

@@ -29,4 +27,2 @@

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

@@ -82,3 +78,4 @@

timelineUnit = _this$props.timelineUnit,
timelineWidth = _this$props.timelineWidth;
timelineWidth = _this$props.timelineWidth,
keys = _this$props.keys;

@@ -92,3 +89,4 @@ return {

timelineUnit: timelineUnit,
timelineWidth: timelineWidth // REVIEW,
timelineWidth: timelineWidth,
keys: keys // REVIEW,
};

@@ -142,3 +140,3 @@ };

TimelineStateProvider.propTypes = (_TimelineStateProvide = {
TimelineStateProvider.propTypes = {
children: _propTypes2.default.element.isRequired,

@@ -151,4 +149,6 @@ visibleTimeStart: _propTypes2.default.number.isRequired,

showPeriod: _propTypes2.default.func.isRequired,
timelineUnit: _propTypes2.default.string.isRequired
}, _defineProperty(_TimelineStateProvide, 'showPeriod', _propTypes2.default.func.isRequired), _defineProperty(_TimelineStateProvide, 'timelineUnit', _propTypes2.default.string.isRequired), _defineProperty(_TimelineStateProvide, 'timelineWidth', _propTypes2.default.number.isRequired), _TimelineStateProvide);
timelineUnit: _propTypes2.default.string.isRequired,
timelineWidth: _propTypes2.default.number.isRequired,
keys: _propTypes2.default.object.isRequired
};
var TimelineStateConsumer = exports.TimelineStateConsumer = Consumer;

@@ -443,3 +443,2 @@ 'use strict';

dimension.isDragging = isDragging;
memo.push({

@@ -450,3 +449,2 @@ id: itemId,

}
return memo;

@@ -453,0 +451,0 @@ }, []);

{
"name": "@r365/react-calendar-timeline",
"version": "0.22.1",
"version": "0.23.0-beta",
"description": "react calendar timeline",

@@ -95,3 +95,4 @@ "main": "lib/index.js",

"element-resize-detector": "^1.1.12",
"lodash.isequal": "^4.5.0"
"lodash.isequal": "^4.5.0",
"memoize-one": "^4.0.3"
},

@@ -98,0 +99,0 @@ "peerDependencies": {

@@ -10,6 +10,7 @@ import Timeline from './lib/Timeline'

export { default as TimelineHeaders } from './lib/headers/TimelineHeaders'
export {default as SidebarHeader} from './lib/headers/SidebarHeader'
export {default as CustomHeader} from './lib/headers/CustomHeader'
export {default as DateHeader} from './lib/headers/DateHeader'
export {TimelineStateConsumer} from './lib/timeline/TimelineStateContext'
export { default as SidebarHeader } from './lib/headers/SidebarHeader'
export { default as CustomHeader } from './lib/headers/CustomHeader'
export { default as DateHeader } from './lib/headers/DateHeader'
export { default as ItemHeader } from './lib/headers/ItemHeader'
export { TimelineStateConsumer } from './lib/timeline/TimelineStateContext'
export default Timeline

@@ -40,3 +40,2 @@ import PropTypes from 'prop-types'

let lines = []
for (let i = 0; i < lineCount; i++) {

@@ -43,0 +42,0 @@ lines.push(

@@ -986,2 +986,3 @@ import PropTypes from 'prop-types'

timelineWidth={this.state.width}
keys={this.props.keys}
>

@@ -988,0 +989,0 @@ <TimelineMarkersProvider>

@@ -46,5 +46,4 @@ import React from 'react'

timelineUnit: PropTypes.string.isRequired,
showPeriod: PropTypes.func.isRequired,
timelineUnit: PropTypes.string.isRequired,
timelineWidth: PropTypes.number.isRequired,
keys:PropTypes.object.isRequired,
}

@@ -74,2 +73,3 @@

timelineWidth,
keys,
} = this.props

@@ -84,2 +84,3 @@ return {

timelineWidth,
keys,
} // REVIEW,

@@ -86,0 +87,0 @@ }

@@ -434,3 +434,3 @@ import moment from 'moment'

let dimensionItems = visibleItems.reduce((memo, item) => {

@@ -462,3 +462,2 @@ const itemId = _get(item, keys.itemIdKey)

dimension.isDragging = isDragging
memo.push({

@@ -469,3 +468,2 @@ id: itemId,

}
return memo

@@ -481,3 +479,3 @@ }, [])

)
return { dimensionItems, height, groupHeights, groupTops }

@@ -484,0 +482,0 @@ }

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc