@atlaskit/range 10.1.2 → 11.0.1

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,40 @@
1
1
  # @atlaskit/range
2
2
 
3
+ ## 11.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`ee28cf33718b0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ee28cf33718b0) -
8
+ Add @atlassian/react-compiler-gating as a runtime dependency to enable React Compiler platform
9
+ gating.
10
+ - Updated dependencies
11
+
12
+ ## 11.0.0
13
+
14
+ ### Major Changes
15
+
16
+ - [`f2dc9097319f0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f2dc9097319f0) - ###
17
+ Dropped support for _legacy_ Typescript 4 types. **Typescript 5 is now the new minimum**.
18
+
19
+ Removes the `typesVersions` property and `dist/types-ts4.5` directory from the dist.
20
+
21
+ Types are now exclusively via the `"types": "dist/types/index.d.ts"` property.
22
+
23
+ ```diff
24
+ - "typesVersions": {
25
+ - ">=4.5 <4.9": {
26
+ - "*": [
27
+ - "dist/types-ts4.5/*",
28
+ - "dist/types-ts4.5/index.d.ts"
29
+ - ]
30
+ - }
31
+ - },
32
+ ```
33
+
34
+ ### Patch Changes
35
+
36
+ - Updated dependencies
37
+
3
38
  ## 10.1.2
4
39
 
5
40
  ### Patch Changes
@@ -36,6 +36,9 @@
36
36
  },
37
37
  {
38
38
  "path": "../../tokens/afm-cc/tsconfig.json"
39
+ },
40
+ {
41
+ "path": "../../../react-compiler/react-compiler-gating/afm-cc/tsconfig.json"
39
42
  }
40
43
  ]
41
44
  }
@@ -36,6 +36,9 @@
36
36
  },
37
37
  {
38
38
  "path": "../../tokens/afm-products/tsconfig.json"
39
+ },
40
+ {
41
+ "path": "../../../react-compiler/react-compiler-gating/afm-products/tsconfig.json"
39
42
  }
40
43
  ]
41
44
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/range",
3
- "version": "10.1.2",
3
+ "version": "11.0.1",
4
4
  "description": "A range lets users choose an approximate value on a slider.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -31,11 +31,12 @@
31
31
  }
32
32
  },
33
33
  "dependencies": {
34
- "@atlaskit/css": "^0.19.0",
35
- "@atlaskit/ds-lib": "^7.0.0",
36
- "@atlaskit/platform-feature-flags": "^1.1.0",
37
- "@atlaskit/theme": "^25.0.0",
38
- "@atlaskit/tokens": "^13.0.0",
34
+ "@atlaskit/css": "^1.0.0",
35
+ "@atlaskit/ds-lib": "^8.0.0",
36
+ "@atlaskit/platform-feature-flags": "^2.0.0",
37
+ "@atlaskit/theme": "^26.0.0",
38
+ "@atlaskit/tokens": "^15.0.0",
39
+ "@atlassian/react-compiler-gating": "^0.2.0",
39
40
  "@babel/runtime": "^7.0.0",
40
41
  "@compiled/react": "^0.20.0"
41
42
  },
@@ -46,15 +47,14 @@
46
47
  "@af/accessibility-testing": "workspace:^",
47
48
  "@af/integration-testing": "workspace:^",
48
49
  "@af/visual-regression": "workspace:^",
49
- "@atlaskit/button": "^23.11.0",
50
- "@atlaskit/checkbox": "^17.3.0",
51
- "@atlaskit/docs": "^11.8.0",
52
- "@atlaskit/form": "^15.5.0",
53
- "@atlaskit/link": "^3.4.0",
54
- "@atlaskit/primitives": "^19.0.0",
55
- "@atlaskit/section-message": "^8.13.0",
56
- "@atlaskit/tooltip": "^22.3.0",
57
- "@atlassian/react-compiler-gating": "workspace:^",
50
+ "@atlaskit/button": "^24.1.0",
51
+ "@atlaskit/checkbox": "^18.0.0",
52
+ "@atlaskit/docs": "^12.0.0",
53
+ "@atlaskit/form": "^16.0.0",
54
+ "@atlaskit/link": "^4.0.0",
55
+ "@atlaskit/primitives": "^20.0.0",
56
+ "@atlaskit/section-message": "^9.1.0",
57
+ "@atlaskit/tooltip": "^23.0.0",
58
58
  "@atlassian/ssr-tests": "workspace:^",
59
59
  "@atlassian/structured-docs-types": "workspace:^",
60
60
  "@testing-library/react": "^16.3.0",
@@ -87,14 +87,6 @@
87
87
  ]
88
88
  }
89
89
  },
90
- "typesVersions": {
91
- ">=4.5 <4.9": {
92
- "*": [
93
- "dist/types-ts4.5/*",
94
- "dist/types-ts4.5/index.d.ts"
95
- ]
96
- }
97
- },
98
90
  "platform-feature-flags": {
99
91
  "platform-dst-shape-theme-default": {
100
92
  "type": "boolean"
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/range.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/range.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/range.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/styled.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/styled.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/styled.d.ts"
17
10
  }
@@ -1,2 +0,0 @@
1
- export type { OwnProps, RangeProps } from '../range';
2
- export { default } from '../range';
@@ -1 +0,0 @@
1
- export { Input } from '../styled';
@@ -1,2 +0,0 @@
1
- export { default } from './range';
2
- export type { RangeProps } from './range';
@@ -1,50 +0,0 @@
1
- import React from 'react';
2
- export type OwnProps = {
3
- /**
4
- * Sets the default value if range is not set.
5
- */
6
- defaultValue?: number;
7
- /**
8
- * Sets whether the field range is disabled.
9
- */
10
- isDisabled?: boolean;
11
- /**
12
- * Sets the maximum value of the range.
13
- */
14
- max?: number;
15
- /**
16
- * Sets the minimum value of the range.
17
- */
18
- min?: number;
19
- /**
20
- * Hook to be invoked on change of the range.
21
- */
22
- onChange?: (value: number) => void;
23
- /**
24
- * Sets the step value for the range.
25
- */
26
- step?: number;
27
- /**
28
- * A `testId` prop is provided for specific elements. This is a unique string
29
- * that appears as a data attribute `data-testid` in the rendered code and
30
- * serves as a hook for automated tests.
31
- */
32
- testId?: string;
33
- /**
34
- * Sets the value of the range.
35
- */
36
- value?: number;
37
- };
38
- type Combine<First, Second> = Omit<First, keyof Second> & Second;
39
- export type RangeProps = Combine<Omit<React.InputHTMLAttributes<HTMLInputElement>, 'disabled' | 'required' | 'checked'>, OwnProps>;
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<React.PropsWithoutRef<RangeProps> & React.RefAttributes<HTMLInputElement>>;
50
- export default Range;
@@ -1,11 +0,0 @@
1
- type InputProps = React.InputHTMLAttributes<HTMLInputElement> & {
2
- ref: React.Ref<HTMLInputElement>;
3
- valuePercent: string;
4
- };
5
- declare const Input: React.ForwardRefExoticComponent<React.PropsWithoutRef<InputProps> & React.RefAttributes<HTMLInputElement>>;
6
- export {
7
- /**
8
- * __Input__
9
- * Internal-only styled input component.
10
- */
11
- Input, };