@atlaskit/range 7.3.0 → 7.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/afm-jira/tsconfig.json +2 -3
- package/afm-post-office/tsconfig.json +30 -0
- package/dist/cjs/range.js +13 -2
- package/dist/cjs/styled.js +2 -1
- package/dist/es2019/range.js +13 -2
- package/dist/es2019/styled.js +1 -1
- package/dist/esm/range.js +13 -2
- package/dist/esm/styled.js +1 -1
- package/dist/types/range.d.ts +11 -2
- package/dist/types/styled.d.ts +1 -1
- package/dist/types-ts4.5/range.d.ts +11 -2
- package/dist/types-ts4.5/styled.d.ts +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @atlaskit/range
|
|
2
2
|
|
|
3
|
+
## 7.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#127511](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/127511)
|
|
8
|
+
[`db30e29344013`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/db30e29344013) -
|
|
9
|
+
Widening range of `react` and `react-dom` peer dependencies from `^16.8.0 || ^17.0.0 || ~18.2.0`
|
|
10
|
+
to the wider range of ``^16.8.0 || ^17.0.0 || ^18.0.0` (where applicable).
|
|
11
|
+
|
|
12
|
+
This change has been done to enable usage of `react@18.3` as well as to have a consistent peer
|
|
13
|
+
dependency range for `react` and `react-dom` for `/platform` packages.
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
19
|
+
## 7.3.1
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- [#120049](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/120049)
|
|
24
|
+
[`77504ff274f72`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/77504ff274f72) -
|
|
25
|
+
DSP-19576: Assign names to anonymous default exports
|
|
26
|
+
|
|
3
27
|
## 7.3.0
|
|
4
28
|
|
|
5
29
|
### Minor Changes
|
package/afm-jira/tsconfig.json
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
"extends": "../../../../tsconfig.
|
|
2
|
+
"extends": "../../../../tsconfig.entry-points.jira.json",
|
|
3
3
|
"compilerOptions": {
|
|
4
4
|
"declaration": true,
|
|
5
5
|
"target": "es5",
|
|
6
6
|
"outDir": "../../../../../tsDist/@atlaskit__range/app",
|
|
7
7
|
"composite": true,
|
|
8
|
-
"rootDir": "../"
|
|
9
|
-
"baseUrl": "../"
|
|
8
|
+
"rootDir": "../"
|
|
10
9
|
},
|
|
11
10
|
"include": [
|
|
12
11
|
"../src/**/*.ts",
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../../../tsconfig.entry-points.post-office.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"declaration": true,
|
|
5
|
+
"target": "es5",
|
|
6
|
+
"outDir": "../../../../../tsDist/@atlaskit__range/app",
|
|
7
|
+
"composite": true,
|
|
8
|
+
"rootDir": "../"
|
|
9
|
+
},
|
|
10
|
+
"include": [
|
|
11
|
+
"../src/**/*.ts",
|
|
12
|
+
"../src/**/*.tsx"
|
|
13
|
+
],
|
|
14
|
+
"exclude": [
|
|
15
|
+
"../src/**/__tests__/*",
|
|
16
|
+
"../src/**/*.test.*",
|
|
17
|
+
"../src/**/test.*"
|
|
18
|
+
],
|
|
19
|
+
"references": [
|
|
20
|
+
{
|
|
21
|
+
"path": "../../ds-lib/afm-post-office/tsconfig.json"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"path": "../../theme/afm-post-office/tsconfig.json"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"path": "../../tokens/afm-post-office/tsconfig.json"
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
}
|
package/dist/cjs/range.js
CHANGED
|
@@ -40,7 +40,17 @@ var getRoundedPercentValue = function getRoundedPercentValue(value, min, max, st
|
|
|
40
40
|
return percent;
|
|
41
41
|
};
|
|
42
42
|
var noop = _noop.default;
|
|
43
|
-
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* __Range__
|
|
46
|
+
*
|
|
47
|
+
* A range lets users choose an approximate value on a slider.
|
|
48
|
+
*
|
|
49
|
+
* - [Examples](https://atlassian.design/components/range/examples)
|
|
50
|
+
* - [Code](https://atlassian.design/components/range/code)
|
|
51
|
+
* - [Usage](https://atlassian.design/components/range/usage)
|
|
52
|
+
*/
|
|
53
|
+
var Range = /*#__PURE__*/(0, _react.forwardRef)(function Range(props, ref) {
|
|
44
54
|
var _props$isDisabled = props.isDisabled,
|
|
45
55
|
isDisabled = _props$isDisabled === void 0 ? false : _props$isDisabled,
|
|
46
56
|
_props$defaultValue = props.defaultValue,
|
|
@@ -82,4 +92,5 @@ var _default = exports.default = /*#__PURE__*/(0, _react.forwardRef)(function Ra
|
|
|
82
92
|
valuePercent: valuePercent,
|
|
83
93
|
"data-testid": testId
|
|
84
94
|
}, spreadProps));
|
|
85
|
-
});
|
|
95
|
+
});
|
|
96
|
+
var _default = exports.default = Range;
|
package/dist/cjs/styled.js
CHANGED
|
@@ -19,7 +19,8 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
19
19
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
20
20
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /**
|
|
21
21
|
* @jsxRuntime classic
|
|
22
|
-
|
|
22
|
+
* @jsx jsx
|
|
23
|
+
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
23
24
|
var VAR_THUMB_BORDER_COLOR = '--thumb-border';
|
|
24
25
|
var VAR_THUMB_SHADOW = '--thumb-shadow';
|
|
25
26
|
var VAR_THUMB_BACKGROUND_COLOR = '--thumb-bg';
|
package/dist/es2019/range.js
CHANGED
|
@@ -25,7 +25,17 @@ const getRoundedPercentValue = (value, min, max, step) => {
|
|
|
25
25
|
return percent;
|
|
26
26
|
};
|
|
27
27
|
const noop = __noop;
|
|
28
|
-
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* __Range__
|
|
31
|
+
*
|
|
32
|
+
* A range lets users choose an approximate value on a slider.
|
|
33
|
+
*
|
|
34
|
+
* - [Examples](https://atlassian.design/components/range/examples)
|
|
35
|
+
* - [Code](https://atlassian.design/components/range/code)
|
|
36
|
+
* - [Usage](https://atlassian.design/components/range/usage)
|
|
37
|
+
*/
|
|
38
|
+
const Range = /*#__PURE__*/forwardRef(function Range(props, ref) {
|
|
29
39
|
const {
|
|
30
40
|
isDisabled = false,
|
|
31
41
|
defaultValue = 50,
|
|
@@ -61,4 +71,5 @@ export default /*#__PURE__*/forwardRef(function Range(props, ref) {
|
|
|
61
71
|
valuePercent: valuePercent,
|
|
62
72
|
"data-testid": testId
|
|
63
73
|
}, spreadProps));
|
|
64
|
-
});
|
|
74
|
+
});
|
|
75
|
+
export default Range;
|
package/dist/es2019/styled.js
CHANGED
package/dist/esm/range.js
CHANGED
|
@@ -31,7 +31,17 @@ var getRoundedPercentValue = function getRoundedPercentValue(value, min, max, st
|
|
|
31
31
|
return percent;
|
|
32
32
|
};
|
|
33
33
|
var noop = __noop;
|
|
34
|
-
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* __Range__
|
|
37
|
+
*
|
|
38
|
+
* A range lets users choose an approximate value on a slider.
|
|
39
|
+
*
|
|
40
|
+
* - [Examples](https://atlassian.design/components/range/examples)
|
|
41
|
+
* - [Code](https://atlassian.design/components/range/code)
|
|
42
|
+
* - [Usage](https://atlassian.design/components/range/usage)
|
|
43
|
+
*/
|
|
44
|
+
var Range = /*#__PURE__*/forwardRef(function Range(props, ref) {
|
|
35
45
|
var _props$isDisabled = props.isDisabled,
|
|
36
46
|
isDisabled = _props$isDisabled === void 0 ? false : _props$isDisabled,
|
|
37
47
|
_props$defaultValue = props.defaultValue,
|
|
@@ -73,4 +83,5 @@ export default /*#__PURE__*/forwardRef(function Range(props, ref) {
|
|
|
73
83
|
valuePercent: valuePercent,
|
|
74
84
|
"data-testid": testId
|
|
75
85
|
}, spreadProps));
|
|
76
|
-
});
|
|
86
|
+
});
|
|
87
|
+
export default Range;
|
package/dist/esm/styled.js
CHANGED
|
@@ -7,8 +7,8 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
7
7
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8
8
|
/**
|
|
9
9
|
* @jsxRuntime classic
|
|
10
|
+
* @jsx jsx
|
|
10
11
|
*/
|
|
11
|
-
/** @jsx jsx */
|
|
12
12
|
|
|
13
13
|
import { forwardRef } from 'react';
|
|
14
14
|
|
package/dist/types/range.d.ts
CHANGED
|
@@ -37,5 +37,14 @@ export type OwnProps = {
|
|
|
37
37
|
};
|
|
38
38
|
type Combine<First, Second> = Omit<First, keyof Second> & Second;
|
|
39
39
|
export type RangeProps = Combine<Omit<React.InputHTMLAttributes<HTMLInputElement>, 'disabled' | 'required' | 'checked'>, OwnProps>;
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
/**
|
|
41
|
+
* __Range__
|
|
42
|
+
*
|
|
43
|
+
* A range lets users choose an approximate value on a slider.
|
|
44
|
+
*
|
|
45
|
+
* - [Examples](https://atlassian.design/components/range/examples)
|
|
46
|
+
* - [Code](https://atlassian.design/components/range/code)
|
|
47
|
+
* - [Usage](https://atlassian.design/components/range/usage)
|
|
48
|
+
*/
|
|
49
|
+
declare const Range: React.ForwardRefExoticComponent<Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "checked" | "disabled" | "required">, keyof OwnProps> & OwnProps & React.RefAttributes<HTMLInputElement>>;
|
|
50
|
+
export default Range;
|
package/dist/types/styled.d.ts
CHANGED
|
@@ -37,5 +37,14 @@ export type OwnProps = {
|
|
|
37
37
|
};
|
|
38
38
|
type Combine<First, Second> = Omit<First, keyof Second> & Second;
|
|
39
39
|
export type RangeProps = Combine<Omit<React.InputHTMLAttributes<HTMLInputElement>, 'disabled' | 'required' | 'checked'>, OwnProps>;
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
/**
|
|
41
|
+
* __Range__
|
|
42
|
+
*
|
|
43
|
+
* A range lets users choose an approximate value on a slider.
|
|
44
|
+
*
|
|
45
|
+
* - [Examples](https://atlassian.design/components/range/examples)
|
|
46
|
+
* - [Code](https://atlassian.design/components/range/code)
|
|
47
|
+
* - [Usage](https://atlassian.design/components/range/usage)
|
|
48
|
+
*/
|
|
49
|
+
declare const Range: React.ForwardRefExoticComponent<Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "checked" | "disabled" | "required">, keyof OwnProps> & OwnProps & React.RefAttributes<HTMLInputElement>>;
|
|
50
|
+
export default Range;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/range",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.4.0",
|
|
4
4
|
"description": "A range lets users choose an approximate value on a slider.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -27,21 +27,21 @@
|
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@atlaskit/ds-lib": "^2.
|
|
31
|
-
"@atlaskit/theme": "^12.
|
|
32
|
-
"@atlaskit/tokens": "^1.
|
|
30
|
+
"@atlaskit/ds-lib": "^2.4.0",
|
|
31
|
+
"@atlaskit/theme": "^12.12.0",
|
|
32
|
+
"@atlaskit/tokens": "^1.58.0",
|
|
33
33
|
"@babel/runtime": "^7.0.0",
|
|
34
34
|
"@emotion/react": "^11.7.1"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"react": "^16.8.0 || ^17.0.0 ||
|
|
37
|
+
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@af/accessibility-testing": "*",
|
|
41
41
|
"@af/visual-regression": "*",
|
|
42
|
-
"@atlaskit/checkbox": "^13.
|
|
42
|
+
"@atlaskit/checkbox": "^13.7.0",
|
|
43
43
|
"@atlaskit/ssr": "*",
|
|
44
|
-
"@atlaskit/tooltip": "^18.
|
|
44
|
+
"@atlaskit/tooltip": "^18.7.0",
|
|
45
45
|
"@atlaskit/visual-regression": "*",
|
|
46
46
|
"@emotion/styled": "^11.0.0",
|
|
47
47
|
"@testing-library/react": "^12.1.5",
|