@atlaskit/primitives 20.2.0 → 20.2.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 +9 -0
- package/dist/cjs/compiled/components/anchor.js +1 -1
- package/dist/cjs/compiled/components/pressable.js +1 -1
- package/dist/cjs/components/anchor.js +1 -1
- package/dist/cjs/components/pressable.js +1 -1
- package/dist/es2019/compiled/components/anchor.js +1 -1
- package/dist/es2019/compiled/components/pressable.js +1 -1
- package/dist/es2019/components/anchor.js +1 -1
- package/dist/es2019/components/pressable.js +1 -1
- package/dist/esm/compiled/components/anchor.js +1 -1
- package/dist/esm/compiled/components/pressable.js +1 -1
- package/dist/esm/components/anchor.js +1 -1
- package/dist/esm/components/pressable.js +1 -1
- package/dist/types/compiled/components/anchor.d.ts +1 -1
- package/dist/types/compiled/components/bleed.d.ts +1 -1
- package/dist/types/compiled/components/box.d.ts +1 -1
- package/dist/types/compiled/components/focusable.d.ts +1 -1
- package/dist/types/compiled/responsive/hide.d.ts +1 -1
- package/dist/types/compiled/responsive/show.d.ts +1 -1
- package/dist/types/components/box.d.ts +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/primitives
|
|
2
2
|
|
|
3
|
+
## 20.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`86c21c639404f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/86c21c639404f) -
|
|
8
|
+
Run `scoped-jsx` codemod, migrating atlaskit components and examples to import the JSX type from
|
|
9
|
+
React and use logical CSS properties. The change is required for components to be compatible with
|
|
10
|
+
React 19 version, which removed JSX from global scope.
|
|
11
|
+
|
|
3
12
|
## 20.2.0
|
|
4
13
|
|
|
5
14
|
### Minor Changes
|
|
@@ -70,7 +70,7 @@ var AnchorNoRef = function AnchorNoRef(_ref, ref) {
|
|
|
70
70
|
action: 'clicked',
|
|
71
71
|
componentName: componentName || 'Anchor',
|
|
72
72
|
packageName: "@atlaskit/primitives",
|
|
73
|
-
packageVersion: "20.
|
|
73
|
+
packageVersion: "20.2.0",
|
|
74
74
|
analyticsData: analyticsContext,
|
|
75
75
|
actionSubject: 'link'
|
|
76
76
|
});
|
|
@@ -61,7 +61,7 @@ var Pressable = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
61
61
|
action: 'clicked',
|
|
62
62
|
componentName: componentName || 'Pressable',
|
|
63
63
|
packageName: "@atlaskit/primitives",
|
|
64
|
-
packageVersion: "20.
|
|
64
|
+
packageVersion: "20.2.0",
|
|
65
65
|
analyticsData: analyticsContext,
|
|
66
66
|
actionSubject: 'button'
|
|
67
67
|
});
|
|
@@ -105,7 +105,7 @@ var AnchorNoRef = function AnchorNoRef(_ref, ref) {
|
|
|
105
105
|
action: 'clicked',
|
|
106
106
|
componentName: componentName || 'Anchor',
|
|
107
107
|
packageName: "@atlaskit/primitives",
|
|
108
|
-
packageVersion: "20.
|
|
108
|
+
packageVersion: "20.2.0",
|
|
109
109
|
analyticsData: analyticsContext,
|
|
110
110
|
actionSubject: 'link'
|
|
111
111
|
});
|
|
@@ -97,7 +97,7 @@ var Pressable = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
97
97
|
action: 'clicked',
|
|
98
98
|
componentName: componentName || 'Pressable',
|
|
99
99
|
packageName: "@atlaskit/primitives",
|
|
100
|
-
packageVersion: "20.
|
|
100
|
+
packageVersion: "20.2.0",
|
|
101
101
|
analyticsData: analyticsContext,
|
|
102
102
|
actionSubject: 'button'
|
|
103
103
|
});
|
|
@@ -48,7 +48,7 @@ const Pressable = /*#__PURE__*/forwardRef(({
|
|
|
48
48
|
action: 'clicked',
|
|
49
49
|
componentName: componentName || 'Pressable',
|
|
50
50
|
packageName: "@atlaskit/primitives",
|
|
51
|
-
packageVersion: "20.
|
|
51
|
+
packageVersion: "20.2.0",
|
|
52
52
|
analyticsData: analyticsContext,
|
|
53
53
|
actionSubject: 'button'
|
|
54
54
|
});
|
|
@@ -86,7 +86,7 @@ const Pressable = /*#__PURE__*/forwardRef(({
|
|
|
86
86
|
action: 'clicked',
|
|
87
87
|
componentName: componentName || 'Pressable',
|
|
88
88
|
packageName: "@atlaskit/primitives",
|
|
89
|
-
packageVersion: "20.
|
|
89
|
+
packageVersion: "20.2.0",
|
|
90
90
|
analyticsData: analyticsContext,
|
|
91
91
|
actionSubject: 'button'
|
|
92
92
|
});
|
|
@@ -61,7 +61,7 @@ var AnchorNoRef = function AnchorNoRef(_ref, ref) {
|
|
|
61
61
|
action: 'clicked',
|
|
62
62
|
componentName: componentName || 'Anchor',
|
|
63
63
|
packageName: "@atlaskit/primitives",
|
|
64
|
-
packageVersion: "20.
|
|
64
|
+
packageVersion: "20.2.0",
|
|
65
65
|
analyticsData: analyticsContext,
|
|
66
66
|
actionSubject: 'link'
|
|
67
67
|
});
|
|
@@ -52,7 +52,7 @@ var Pressable = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
52
52
|
action: 'clicked',
|
|
53
53
|
componentName: componentName || 'Pressable',
|
|
54
54
|
packageName: "@atlaskit/primitives",
|
|
55
|
-
packageVersion: "20.
|
|
55
|
+
packageVersion: "20.2.0",
|
|
56
56
|
analyticsData: analyticsContext,
|
|
57
57
|
actionSubject: 'button'
|
|
58
58
|
});
|
|
@@ -99,7 +99,7 @@ var AnchorNoRef = function AnchorNoRef(_ref, ref) {
|
|
|
99
99
|
action: 'clicked',
|
|
100
100
|
componentName: componentName || 'Anchor',
|
|
101
101
|
packageName: "@atlaskit/primitives",
|
|
102
|
-
packageVersion: "20.
|
|
102
|
+
packageVersion: "20.2.0",
|
|
103
103
|
analyticsData: analyticsContext,
|
|
104
104
|
actionSubject: 'link'
|
|
105
105
|
});
|
|
@@ -91,7 +91,7 @@ var Pressable = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
91
91
|
action: 'clicked',
|
|
92
92
|
componentName: componentName || 'Pressable',
|
|
93
93
|
packageName: "@atlaskit/primitives",
|
|
94
|
-
packageVersion: "20.
|
|
94
|
+
packageVersion: "20.2.0",
|
|
95
95
|
analyticsData: analyticsContext,
|
|
96
96
|
actionSubject: 'button'
|
|
97
97
|
});
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
-
import { type ComponentPropsWithoutRef, type ReactNode, type Ref } from 'react';
|
|
5
|
+
import { type ComponentPropsWithoutRef, type JSX, type ReactNode, type Ref } from 'react';
|
|
6
6
|
import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
7
7
|
import { type RouterLinkComponentProps } from '@atlaskit/app-provider';
|
|
8
8
|
import type { BasePrimitiveProps, StyleProp } from './types';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
-
import { type ComponentPropsWithoutRef, type ComponentPropsWithRef, type ReactElement, type ReactNode } from 'react';
|
|
5
|
+
import { type ComponentPropsWithoutRef, type ComponentPropsWithRef, type JSX, type ReactElement, type ReactNode } from 'react';
|
|
6
6
|
import { type StrictXCSSProp, type XCSSAllProperties, type XCSSAllPseudos } from '@atlaskit/css';
|
|
7
7
|
import type { BackgroundColorToken, SVGElements } from '../../utils/types';
|
|
8
8
|
import type { BasePrimitiveProps, PaddingToken, StyleProp, SurfaceColorToken } from './types';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
-
import { type ComponentPropsWithoutRef, type ComponentPropsWithRef, type ReactElement, type ReactNode } from 'react';
|
|
5
|
+
import { type ComponentPropsWithoutRef, type ComponentPropsWithRef, type JSX, type ReactElement, type ReactNode } from 'react';
|
|
6
6
|
import type { BasePrimitiveProps, StyleProp } from '../components/types';
|
|
7
7
|
type AllowedElements = Exclude<keyof JSX.IntrinsicElements, 'button' | 'a'>;
|
|
8
8
|
type CustomElement<P = any> = {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
-
import { type ReactNode } from 'react';
|
|
5
|
+
import { type JSX, type ReactNode } from 'react';
|
|
6
6
|
import { type BasePrimitiveProps } from '../components/types';
|
|
7
7
|
import type { Breakpoint, ComponentAs } from './types';
|
|
8
8
|
type ResponsiveHideProps = {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
-
import { type ReactNode } from 'react';
|
|
5
|
+
import { type JSX, type ReactNode } from 'react';
|
|
6
6
|
import { type BasePrimitiveProps } from '../components/types';
|
|
7
7
|
import type { Breakpoint, ComponentAs } from './types';
|
|
8
8
|
type ResponsiveShowProps = {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
-
import { type ComponentPropsWithoutRef, type ComponentPropsWithRef, type ReactElement, type ReactNode } from 'react';
|
|
5
|
+
import { type ComponentPropsWithoutRef, type ComponentPropsWithRef, type JSX, type ReactElement, type ReactNode } from 'react';
|
|
6
6
|
import { type SVGElements } from '../utils/types';
|
|
7
7
|
import { type BackgroundColor, type Space } from '../xcss/style-maps.partial';
|
|
8
8
|
import type { BasePrimitiveProps, StyleProp } from './types';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/primitives",
|
|
3
|
-
"version": "20.2.
|
|
3
|
+
"version": "20.2.1",
|
|
4
4
|
"description": "Primitives are token-backed low-level building blocks.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -168,7 +168,7 @@
|
|
|
168
168
|
"@atlaskit/icon": "^36.1.0",
|
|
169
169
|
"@atlaskit/image": "^4.1.0",
|
|
170
170
|
"@atlaskit/link": "^4.1.0",
|
|
171
|
-
"@atlaskit/logo": "^21.
|
|
171
|
+
"@atlaskit/logo": "^21.3.0",
|
|
172
172
|
"@atlaskit/lozenge": "^14.1.0",
|
|
173
173
|
"@atlaskit/motion": "^7.2.0",
|
|
174
174
|
"@atlaskit/object": "^2.1.0",
|