@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 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.1.0",
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.1.0",
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.1.0",
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.1.0",
100
+ packageVersion: "20.2.0",
101
101
  analyticsData: analyticsContext,
102
102
  actionSubject: 'button'
103
103
  });
@@ -56,7 +56,7 @@ const AnchorNoRef = ({
56
56
  action: 'clicked',
57
57
  componentName: componentName || 'Anchor',
58
58
  packageName: "@atlaskit/primitives",
59
- packageVersion: "20.1.0",
59
+ packageVersion: "20.2.0",
60
60
  analyticsData: analyticsContext,
61
61
  actionSubject: 'link'
62
62
  });
@@ -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.1.0",
51
+ packageVersion: "20.2.0",
52
52
  analyticsData: analyticsContext,
53
53
  actionSubject: 'button'
54
54
  });
@@ -94,7 +94,7 @@ const AnchorNoRef = ({
94
94
  action: 'clicked',
95
95
  componentName: componentName || 'Anchor',
96
96
  packageName: "@atlaskit/primitives",
97
- packageVersion: "20.1.0",
97
+ packageVersion: "20.2.0",
98
98
  analyticsData: analyticsContext,
99
99
  actionSubject: 'link'
100
100
  });
@@ -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.1.0",
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.1.0",
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.1.0",
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.1.0",
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.1.0",
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 React, { type ReactNode } from 'react';
5
+ import React, { type JSX, type ReactNode } from 'react';
6
6
  import type { BasePrimitiveProps, BleedSpaceToken } from './types';
7
7
  export type BleedProps = {
8
8
  /**
@@ -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.0",
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.2.0",
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",