@atlaskit/primitives 5.1.0 → 5.1.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 +7 -0
- package/anchor/package.json +1 -1
- package/box/package.json +1 -1
- package/dist/cjs/components/anchor.js +1 -1
- package/dist/cjs/components/pressable.js +1 -1
- package/dist/es2019/components/anchor.js +1 -1
- package/dist/es2019/components/pressable.js +1 -1
- package/dist/esm/components/anchor.js +1 -1
- package/dist/esm/components/pressable.js +1 -1
- package/dist/types/components/anchor.d.ts +2 -25
- package/dist/types-ts4.5/components/anchor.d.ts +2 -25
- package/inline/package.json +1 -1
- package/package.json +3 -3
- package/pressable/package.json +1 -1
- package/responsive/package.json +1 -1
- package/stack/package.json +1 -1
- package/text/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/primitives
|
|
2
2
|
|
|
3
|
+
## 5.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116) [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) - Upgrade Typescript from `4.9.5` to `5.4.2`
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
|
|
3
10
|
## 5.1.0
|
|
4
11
|
|
|
5
12
|
### Minor Changes
|
package/anchor/package.json
CHANGED
package/box/package.json
CHANGED
|
@@ -76,7 +76,7 @@ var Anchor = function Anchor(_ref, ref) {
|
|
|
76
76
|
action: 'clicked',
|
|
77
77
|
componentName: componentName || 'Anchor',
|
|
78
78
|
packageName: "@atlaskit/primitives",
|
|
79
|
-
packageVersion: "5.1.
|
|
79
|
+
packageVersion: "5.1.1",
|
|
80
80
|
analyticsData: analyticsContext,
|
|
81
81
|
actionSubject: 'link'
|
|
82
82
|
});
|
|
@@ -80,7 +80,7 @@ var UNSAFE_PRESSABLE = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref)
|
|
|
80
80
|
action: 'clicked',
|
|
81
81
|
componentName: componentName || 'Pressable',
|
|
82
82
|
packageName: "@atlaskit/primitives",
|
|
83
|
-
packageVersion: "5.1.
|
|
83
|
+
packageVersion: "5.1.1",
|
|
84
84
|
analyticsData: analyticsContext,
|
|
85
85
|
actionSubject: 'button'
|
|
86
86
|
});
|
|
@@ -66,7 +66,7 @@ const UNSAFE_PRESSABLE = /*#__PURE__*/forwardRef(({
|
|
|
66
66
|
action: 'clicked',
|
|
67
67
|
componentName: componentName || 'Pressable',
|
|
68
68
|
packageName: "@atlaskit/primitives",
|
|
69
|
-
packageVersion: "5.1.
|
|
69
|
+
packageVersion: "5.1.1",
|
|
70
70
|
analyticsData: analyticsContext,
|
|
71
71
|
actionSubject: 'button'
|
|
72
72
|
});
|
|
@@ -66,7 +66,7 @@ var Anchor = function Anchor(_ref, ref) {
|
|
|
66
66
|
action: 'clicked',
|
|
67
67
|
componentName: componentName || 'Anchor',
|
|
68
68
|
packageName: "@atlaskit/primitives",
|
|
69
|
-
packageVersion: "5.1.
|
|
69
|
+
packageVersion: "5.1.1",
|
|
70
70
|
analyticsData: analyticsContext,
|
|
71
71
|
actionSubject: 'link'
|
|
72
72
|
});
|
|
@@ -70,7 +70,7 @@ var UNSAFE_PRESSABLE = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
70
70
|
action: 'clicked',
|
|
71
71
|
componentName: componentName || 'Pressable',
|
|
72
72
|
packageName: "@atlaskit/primitives",
|
|
73
|
-
packageVersion: "5.1.
|
|
73
|
+
packageVersion: "5.1.1",
|
|
74
74
|
analyticsData: analyticsContext,
|
|
75
75
|
actionSubject: 'button'
|
|
76
76
|
});
|
|
@@ -40,30 +40,7 @@ declare const Anchor: <RouterLinkConfig extends Record<string, any> = never>({ h
|
|
|
40
40
|
* - [Code](https://atlassian.design/components/primitives/anchor/code)
|
|
41
41
|
* - [Usage](https://atlassian.design/components/primitives/anchor/usage)
|
|
42
42
|
*/
|
|
43
|
-
declare const UNSAFE_ANCHOR: <RouterLinkConfig extends Record<string, any> = never>(props:
|
|
44
|
-
|
|
45
|
-
* `children` should be defined to ensure links have text.
|
|
46
|
-
*/
|
|
47
|
-
children: ReactNode;
|
|
48
|
-
/**
|
|
49
|
-
* Handler to be called on click. The second argument can be used to track analytics data. See the tutorial in the analytics-next package for details.
|
|
50
|
-
*/
|
|
51
|
-
onClick?: ((e: React.MouseEvent<HTMLAnchorElement>, analyticsEvent: UIAnalyticsEvent) => void) | undefined;
|
|
52
|
-
/**
|
|
53
|
-
* An optional name used to identify the interaction type to press listeners. For example, interaction tracing. For more information,
|
|
54
|
-
* see [UFO integration into Design System components](https://go.atlassian.com/react-ufo-dst-integration).
|
|
55
|
-
*/
|
|
56
|
-
interactionName?: string | undefined;
|
|
57
|
-
/**
|
|
58
|
-
* An optional component name used to identify this component to press listeners. This can be used if a parent component's name is preferred. For example, interaction tracing. For more information,
|
|
59
|
-
* see [UFO integration into Design System components](https://go.atlassian.com/react-ufo-dst-integration).
|
|
60
|
-
*/
|
|
61
|
-
componentName?: string | undefined;
|
|
62
|
-
/**
|
|
63
|
-
* Additional information to be included in the `context` of analytics events that come from anchor.
|
|
64
|
-
*/
|
|
65
|
-
analyticsContext?: Record<string, any> | undefined;
|
|
66
|
-
} & {
|
|
67
|
-
ref?: React.Ref<HTMLAnchorElement> | undefined;
|
|
43
|
+
declare const UNSAFE_ANCHOR: <RouterLinkConfig extends Record<string, any> = never>(props: AnchorProps<RouterLinkConfig> & {
|
|
44
|
+
ref?: Ref<HTMLAnchorElement>;
|
|
68
45
|
}) => ReturnType<typeof Anchor>;
|
|
69
46
|
export default UNSAFE_ANCHOR;
|
|
@@ -40,30 +40,7 @@ declare const Anchor: <RouterLinkConfig extends Record<string, any> = never>({ h
|
|
|
40
40
|
* - [Code](https://atlassian.design/components/primitives/anchor/code)
|
|
41
41
|
* - [Usage](https://atlassian.design/components/primitives/anchor/usage)
|
|
42
42
|
*/
|
|
43
|
-
declare const UNSAFE_ANCHOR: <RouterLinkConfig extends Record<string, any> = never>(props:
|
|
44
|
-
|
|
45
|
-
* `children` should be defined to ensure links have text.
|
|
46
|
-
*/
|
|
47
|
-
children: ReactNode;
|
|
48
|
-
/**
|
|
49
|
-
* Handler to be called on click. The second argument can be used to track analytics data. See the tutorial in the analytics-next package for details.
|
|
50
|
-
*/
|
|
51
|
-
onClick?: ((e: React.MouseEvent<HTMLAnchorElement>, analyticsEvent: UIAnalyticsEvent) => void) | undefined;
|
|
52
|
-
/**
|
|
53
|
-
* An optional name used to identify the interaction type to press listeners. For example, interaction tracing. For more information,
|
|
54
|
-
* see [UFO integration into Design System components](https://go.atlassian.com/react-ufo-dst-integration).
|
|
55
|
-
*/
|
|
56
|
-
interactionName?: string | undefined;
|
|
57
|
-
/**
|
|
58
|
-
* An optional component name used to identify this component to press listeners. This can be used if a parent component's name is preferred. For example, interaction tracing. For more information,
|
|
59
|
-
* see [UFO integration into Design System components](https://go.atlassian.com/react-ufo-dst-integration).
|
|
60
|
-
*/
|
|
61
|
-
componentName?: string | undefined;
|
|
62
|
-
/**
|
|
63
|
-
* Additional information to be included in the `context` of analytics events that come from anchor.
|
|
64
|
-
*/
|
|
65
|
-
analyticsContext?: Record<string, any> | undefined;
|
|
66
|
-
} & {
|
|
67
|
-
ref?: React.Ref<HTMLAnchorElement> | undefined;
|
|
43
|
+
declare const UNSAFE_ANCHOR: <RouterLinkConfig extends Record<string, any> = never>(props: AnchorProps<RouterLinkConfig> & {
|
|
44
|
+
ref?: Ref<HTMLAnchorElement>;
|
|
68
45
|
}) => ReturnType<typeof Anchor>;
|
|
69
46
|
export default UNSAFE_ANCHOR;
|
package/inline/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/primitives",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.1",
|
|
4
4
|
"description": "Primitives are token-backed low-level building blocks.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
"dependencies": {
|
|
125
125
|
"@atlaskit/analytics-next": "^9.2.0",
|
|
126
126
|
"@atlaskit/app-provider": "^1.0.0",
|
|
127
|
-
"@atlaskit/css": "^0.0.
|
|
127
|
+
"@atlaskit/css": "^0.0.5",
|
|
128
128
|
"@atlaskit/ds-lib": "^2.2.0",
|
|
129
129
|
"@atlaskit/interaction-context": "^2.1.0",
|
|
130
130
|
"@atlaskit/tokens": "^1.42.0",
|
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
"prettier": "^2.8.0",
|
|
150
150
|
"react-dom": "^16.8.0",
|
|
151
151
|
"ts-node": "^10.9.1",
|
|
152
|
-
"typescript": "~4.
|
|
152
|
+
"typescript": "~5.4.2",
|
|
153
153
|
"wait-for-expect": "^1.2.0"
|
|
154
154
|
},
|
|
155
155
|
"techstack": {
|
package/pressable/package.json
CHANGED
package/responsive/package.json
CHANGED
package/stack/package.json
CHANGED