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

victory-bar

Package Overview
Dependencies
Maintainers
20
Versions
177
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

victory-bar - npm Package Compare versions

Comparing version 36.6.12 to 36.7.0

6

CHANGELOG.md
# victory-bar
## 36.7.0
### Minor Changes
- added ref forwarding for path and bar components ([#2673](https://github.com/FormidableLabs/victory/pull/2673))
## 36.6.12

@@ -4,0 +10,0 @@

13

es/bar.js

@@ -10,3 +10,3 @@ import _assign from "lodash/assign";

import PropTypes from "prop-types";
import React from "react";
import React, { forwardRef } from "react";
import { CommonProps, Helpers, Path } from "victory-core";

@@ -50,5 +50,6 @@ import { getStyle, getBarWidth, getCornerRadius } from "./bar-helper-methods";

});
};
}; // eslint-disable-next-line prefer-arrow-callback
var Bar = function (props) {
var Bar = /*#__PURE__*/forwardRef(function Bar(props, ref) {
props = evaluateProps(props);

@@ -74,6 +75,6 @@ var _props = props,

transform: props.transform || defaultTransform,
tabIndex: props.tabIndex
tabIndex: props.tabIndex,
ref: ref
}));
};
});
Bar.propTypes = _objectSpread(_objectSpread({}, CommonProps.primitiveProps), {}, {

@@ -80,0 +81,0 @@ alignment: PropTypes.oneOf(["start", "middle", "end"]),

@@ -12,3 +12,3 @@ "use strict";

var _react = _interopRequireDefault(require("react"));
var _react = _interopRequireWildcard(require("react"));

@@ -21,2 +21,6 @@ var _victoryCore = require("victory-core");

function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -69,5 +73,6 @@

});
};
}; // eslint-disable-next-line prefer-arrow-callback
var Bar = function (props) {
var Bar = /*#__PURE__*/(0, _react.forwardRef)(function Bar(props, ref) {
props = evaluateProps(props);

@@ -93,6 +98,6 @@ var _props = props,

transform: props.transform || defaultTransform,
tabIndex: props.tabIndex
tabIndex: props.tabIndex,
ref: ref
}));
};
});
Bar.propTypes = _objectSpread(_objectSpread({}, _victoryCore.CommonProps.primitiveProps), {}, {

@@ -99,0 +104,0 @@ alignment: _propTypes.default.oneOf(["start", "middle", "end"]),

{
"name": "victory-bar",
"version": "36.6.12",
"version": "36.7.0",
"description": "Bar Component for Victory",

@@ -25,4 +25,4 @@ "keywords": [

"prop-types": "^15.8.1",
"victory-core": "^36.6.12",
"victory-vendor": "^36.6.12"
"victory-core": "^36.7.0",
"victory-vendor": "^36.7.0"
},

@@ -29,0 +29,0 @@ "peerDependencies": {

import { assign } from "lodash";
import PropTypes from "prop-types";
import React from "react";
import React, { forwardRef } from "react";
import { CommonProps, Helpers, Path } from "victory-core";

@@ -44,3 +44,4 @@ import { getStyle, getBarWidth, getCornerRadius } from "./bar-helper-methods";

const Bar = (props) => {
// eslint-disable-next-line prefer-arrow-callback
const Bar = forwardRef(function Bar(props, ref) {
props = evaluateProps(props);

@@ -67,4 +68,5 @@ const { polar, origin, style, barWidth, cornerRadius } = props;

tabIndex: props.tabIndex,
ref,
});
};
});

@@ -71,0 +73,0 @@ Bar.propTypes = {

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc