@atlaskit/range 8.0.1 → 8.1.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 CHANGED
@@ -1,5 +1,23 @@
1
1
  # @atlaskit/range
2
2
 
3
+ ## 8.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#109060](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/109060)
8
+ [`4660ec858a305`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4660ec858a305) -
9
+ Update `React` from v16 to v18
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
15
+ ## 8.0.2
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies
20
+
3
21
  ## 8.0.1
4
22
 
5
23
  ### Patch Changes
@@ -1,4 +1,4 @@
1
- /* styled.tsx generated by @compiled/babel-plugin v0.33.0 */
1
+ /* styled.tsx generated by @compiled/babel-plugin v0.36.0 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* styled.tsx generated by @compiled/babel-plugin v0.33.0 */
1
+ /* styled.tsx generated by @compiled/babel-plugin v0.36.0 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./styled.compiled.css";
4
4
  import * as React from 'react';
@@ -1,4 +1,4 @@
1
- /* styled.tsx generated by @compiled/babel-plugin v0.33.0 */
1
+ /* styled.tsx generated by @compiled/babel-plugin v0.36.0 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
4
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
@@ -1,9 +1,11 @@
1
1
  /// <reference types="react" />
2
+ type InputProps = React.InputHTMLAttributes<HTMLInputElement> & {
3
+ ref: React.Ref<HTMLInputElement>;
4
+ valuePercent: string;
5
+ };
2
6
  /**
3
7
  * __Input__
4
8
  * Internal-only styled input component.
5
9
  */
6
- export declare const Input: import("react").ForwardRefExoticComponent<Pick<import("react").InputHTMLAttributes<HTMLInputElement> & {
7
- ref: React.Ref<HTMLInputElement>;
8
- valuePercent: string;
9
- }, keyof import("react").InputHTMLAttributes<HTMLInputElement> | "valuePercent"> & import("react").RefAttributes<HTMLInputElement>>;
10
+ export declare const Input: import("react").ForwardRefExoticComponent<Omit<InputProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
11
+ export {};
@@ -1,9 +1,11 @@
1
1
  /// <reference types="react" />
2
+ type InputProps = React.InputHTMLAttributes<HTMLInputElement> & {
3
+ ref: React.Ref<HTMLInputElement>;
4
+ valuePercent: string;
5
+ };
2
6
  /**
3
7
  * __Input__
4
8
  * Internal-only styled input component.
5
9
  */
6
- export declare const Input: import("react").ForwardRefExoticComponent<Pick<import("react").InputHTMLAttributes<HTMLInputElement> & {
7
- ref: React.Ref<HTMLInputElement>;
8
- valuePercent: string;
9
- }, keyof import("react").InputHTMLAttributes<HTMLInputElement> | "valuePercent"> & import("react").RefAttributes<HTMLInputElement>>;
10
+ export declare const Input: import("react").ForwardRefExoticComponent<Omit<InputProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
11
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/range",
3
- "version": "8.0.1",
3
+ "version": "8.1.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/"
@@ -25,10 +25,10 @@
25
25
  }
26
26
  },
27
27
  "dependencies": {
28
- "@atlaskit/css": "^0.7.0",
29
- "@atlaskit/ds-lib": "^3.3.0",
30
- "@atlaskit/theme": "^14.0.0",
31
- "@atlaskit/tokens": "^2.5.0",
28
+ "@atlaskit/css": "^0.8.0",
29
+ "@atlaskit/ds-lib": "^3.5.0",
30
+ "@atlaskit/theme": "^14.1.0",
31
+ "@atlaskit/tokens": "^3.3.0",
32
32
  "@babel/runtime": "^7.0.0",
33
33
  "@compiled/react": "^0.18.1"
34
34
  },
@@ -39,16 +39,16 @@
39
39
  "@af/accessibility-testing": "*",
40
40
  "@af/integration-testing": "*",
41
41
  "@af/visual-regression": "*",
42
- "@atlaskit/checkbox": "^15.2.0",
42
+ "@atlaskit/checkbox": "^15.3.0",
43
43
  "@atlaskit/ssr": "*",
44
- "@atlaskit/tooltip": "^19.0.0",
44
+ "@atlaskit/tooltip": "^19.1.0",
45
45
  "@atlaskit/visual-regression": "*",
46
46
  "@emotion/styled": "^11.0.0",
47
- "@testing-library/react": "^12.1.5",
47
+ "@testing-library/react": "^13.4.0",
48
48
  "@types/jscodeshift": "^0.11.0",
49
49
  "jscodeshift": "^0.13.0",
50
50
  "lodash": "^4.17.21",
51
- "react-dom": "^16.8.0",
51
+ "react-dom": "^18.2.0",
52
52
  "storybook-addon-performance": "^0.17.3",
53
53
  "typescript": "~5.4.2"
54
54
  },
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
-
3
- import Range from '../src';
4
-
5
- export default () => <Range step={1} onChange={(value) => console.log('new value', value)} />;
@@ -1,37 +0,0 @@
1
- import React from 'react';
2
-
3
- import { fireEvent } from '@testing-library/react';
4
- import type { InteractionTaskArgs, PublicInteractionTask } from 'storybook-addon-performance';
5
-
6
- import Range from '../src';
7
-
8
- const interactionTasks: PublicInteractionTask[] = [
9
- {
10
- name: 'Changing input value',
11
- description: 'Change the input value of a range with 500 steps',
12
- run: async ({ container }: InteractionTaskArgs): Promise<void> => {
13
- const range: HTMLElement | null = container.querySelector('[data-testid="my-range"]');
14
- if (range == null) {
15
- throw new Error('Could not find range element');
16
- }
17
- for (let i = 251; i < 300; i++) {
18
- fireEvent.change(range, { target: { value: i } });
19
- }
20
- },
21
- },
22
- ];
23
-
24
- function PerformanceComponent() {
25
- return <Range defaultValue={250} min={0} max={500} testId="my-range" />;
26
- }
27
-
28
- PerformanceComponent.story = {
29
- name: 'Performance',
30
- parameters: {
31
- performance: {
32
- interactions: interactionTasks,
33
- },
34
- },
35
- };
36
-
37
- export default PerformanceComponent;