@atlaskit/field-range
Advanced tools
Comparing version 7.1.1 to 8.0.0
# @atlaskit/field-range | ||
## 8.0.0 | ||
### Major Changes | ||
- [major][c0102a3ea2](https://bitbucket.org/atlassian/atlassian-frontend/commits/c0102a3ea2): | ||
BREAKING CHANGE: As part of AFP-1404, we are dropping flow support. It means that those packages are not typed. Consumer will need to manually add their types to the component.Background ticket: https://product-fabric.atlassian.net/browse/AFP-1397Plan: https://product-fabric.atlassian.net/wiki/spaces/AFP/pages/1052870901/Drop+Flow+Support+Plan | ||
### Patch Changes | ||
- @atlaskit/section-message@4.1.4 | ||
- @atlaskit/docs@8.3.1 | ||
## 7.1.1 | ||
@@ -4,0 +17,0 @@ |
@@ -30,2 +30,3 @@ "use strict"; | ||
/* eslint-disable react/prop-types */ | ||
if (process.env.NODE_ENV !== 'production' && !process.env.CI) { | ||
@@ -47,3 +48,2 @@ // eslint-disable-next-line no-console | ||
_this = (0, _possibleConstructorReturn2.default)(this, (0, _getPrototypeOf2.default)(Slider).call(this, props)); | ||
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "props", void 0); | ||
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "inputElement", void 0); | ||
@@ -65,2 +65,3 @@ (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "state", void 0); | ||
// the safest thing we can do in this situation. | ||
// https://flow.org/en/docs/types/casting/#toc-type-casting-through-any | ||
var target = e.target; | ||
@@ -67,0 +68,0 @@ var value = parseFloat(target.value); |
{ | ||
"name": "@atlaskit/field-range", | ||
"version": "7.1.1", | ||
"version": "8.0.0", | ||
"sideEffects": false | ||
} |
@@ -8,2 +8,4 @@ import _classCallCheck from "@babel/runtime/helpers/classCallCheck"; | ||
import _defineProperty from "@babel/runtime/helpers/defineProperty"; | ||
/* eslint-disable react/prop-types */ | ||
import React, { Component } from 'react'; | ||
@@ -30,4 +32,2 @@ import { Input } from './styled'; | ||
_defineProperty(_assertThisInitialized(_this), "props", void 0); | ||
_defineProperty(_assertThisInitialized(_this), "inputElement", void 0); | ||
@@ -52,2 +52,3 @@ | ||
// the safest thing we can do in this situation. | ||
// https://flow.org/en/docs/types/casting/#toc-type-casting-through-any | ||
var target = e.target; | ||
@@ -54,0 +55,0 @@ var value = parseFloat(target.value); |
{ | ||
"name": "@atlaskit/field-range", | ||
"version": "7.1.1", | ||
"version": "8.0.0", | ||
"sideEffects": false | ||
} |
@@ -1,4 +0,3 @@ | ||
// @flow | ||
import React from 'react'; | ||
import { md, Example, Props, code } from '@atlaskit/docs'; | ||
import { md, Example, code, Props } from '@atlaskit/docs'; | ||
import SectionMessage from '@atlaskit/section-message'; | ||
@@ -35,3 +34,167 @@ | ||
<Props | ||
props={require('!!extract-react-types-loader!../src/FieldRange')} | ||
props={{ | ||
kind: 'program', | ||
component: { | ||
kind: 'generic', | ||
value: { | ||
kind: 'object', | ||
members: [ | ||
{ | ||
kind: 'property', | ||
key: { | ||
kind: 'id', | ||
name: 'disabled', | ||
}, | ||
value: { | ||
kind: 'boolean', | ||
}, | ||
optional: true, | ||
leadingComments: [ | ||
{ | ||
type: 'commentBlock', | ||
value: 'if the field range needs to be disabled', | ||
raw: '* if the field range needs to be disabled ', | ||
}, | ||
], | ||
default: { | ||
kind: 'boolean', | ||
value: false, | ||
}, | ||
}, | ||
{ | ||
kind: 'property', | ||
key: { | ||
kind: 'id', | ||
name: 'max', | ||
}, | ||
value: { | ||
kind: 'number', | ||
}, | ||
optional: false, | ||
leadingComments: [ | ||
{ | ||
type: 'commentBlock', | ||
value: 'Maximum value of the range', | ||
raw: '* Maximum value of the range ', | ||
}, | ||
], | ||
default: { | ||
kind: 'number', | ||
value: 100, | ||
}, | ||
}, | ||
{ | ||
kind: 'property', | ||
key: { | ||
kind: 'id', | ||
name: 'min', | ||
}, | ||
value: { | ||
kind: 'number', | ||
}, | ||
optional: false, | ||
leadingComments: [ | ||
{ | ||
type: 'commentBlock', | ||
value: 'Minimum value of the range', | ||
raw: '* Minimum value of the range ', | ||
}, | ||
], | ||
default: { | ||
kind: 'number', | ||
value: 0, | ||
}, | ||
}, | ||
{ | ||
kind: 'property', | ||
key: { | ||
kind: 'id', | ||
name: 'onChange', | ||
}, | ||
value: { | ||
parameters: [ | ||
{ | ||
kind: 'param', | ||
value: { | ||
kind: 'number', | ||
}, | ||
type: null, | ||
}, | ||
], | ||
returnType: { | ||
kind: 'mixed', | ||
}, | ||
kind: 'function', | ||
}, | ||
optional: true, | ||
leadingComments: [ | ||
{ | ||
type: 'commentBlock', | ||
value: 'Hook to be invoked on change of the range', | ||
raw: '* Hook to be invoked on change of the range ', | ||
}, | ||
], | ||
default: { | ||
kind: 'function', | ||
id: null, | ||
async: false, | ||
generator: false, | ||
parameters: [], | ||
returnType: null, | ||
}, | ||
}, | ||
{ | ||
kind: 'property', | ||
key: { | ||
kind: 'id', | ||
name: 'step', | ||
}, | ||
value: { | ||
kind: 'number', | ||
}, | ||
optional: true, | ||
leadingComments: [ | ||
{ | ||
type: 'commentBlock', | ||
value: 'Step value for the range', | ||
raw: '* Step value for the range ', | ||
}, | ||
], | ||
default: { | ||
kind: 'number', | ||
value: 0.1, | ||
}, | ||
}, | ||
{ | ||
kind: 'property', | ||
key: { | ||
kind: 'id', | ||
name: 'value', | ||
}, | ||
value: { | ||
kind: 'number', | ||
}, | ||
optional: false, | ||
leadingComments: [ | ||
{ | ||
type: 'commentBlock', | ||
value: 'Value of the range', | ||
raw: '* Value of the range ', | ||
}, | ||
], | ||
default: { | ||
kind: 'number', | ||
value: 0, | ||
}, | ||
}, | ||
], | ||
referenceIdName: 'Props', | ||
}, | ||
name: { | ||
kind: 'id', | ||
name: 'Slider', | ||
type: null, | ||
}, | ||
}, | ||
}} | ||
heading="FieldRange Props" | ||
@@ -38,0 +201,0 @@ /> |
{ | ||
"name": "@atlaskit/field-range", | ||
"version": "7.1.1", | ||
"version": "8.0.0", | ||
"description": "Component which renders a slider and is a substitute of the native input[range] element", | ||
"publishConfig": { | ||
"registry": "https://registry.npmjs.org/" | ||
}, | ||
"license": "Apache-2.0", | ||
@@ -20,4 +23,6 @@ "module": "dist/esm/index.js", | ||
"team": "core", | ||
"internal": true | ||
"internal": true, | ||
"deprecated": "@atlaskit/field-range is deprecated in favor of @atlaskit/range." | ||
}, | ||
"team": "Design System Team", | ||
"repository": "https://bitbucket.org/atlassian/atlaskit-mk-2", | ||
@@ -34,6 +39,6 @@ "dependencies": { | ||
"@atlaskit/build-utils": "^2.2.5", | ||
"@atlaskit/docs": "^8.1.8", | ||
"@atlaskit/section-message": "^4.1.1", | ||
"@atlaskit/docs": "^8.3.1", | ||
"@atlaskit/section-message": "^4.1.4", | ||
"@atlaskit/ssr": "^0.1.1", | ||
"enzyme": "^3.7.0", | ||
"enzyme": "^3.10.0", | ||
"react-dom": "^16.8.0" | ||
@@ -46,2 +51,2 @@ }, | ||
] | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
60714
587