@atlaskit/pragmatic-drag-and-drop-react-accessibility 1.1.1 → 1.1.2
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 +116 -83
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,176 +1,209 @@
|
|
|
1
1
|
# @atlaskit/pragmatic-drag-and-drop-react-accessibility
|
|
2
2
|
|
|
3
|
+
## 1.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
3
9
|
## 1.1.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
6
12
|
|
|
7
|
-
-
|
|
13
|
+
- [#88354](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/88354)
|
|
14
|
+
[`4c87d9b4f0c2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4c87d9b4f0c2) -
|
|
15
|
+
The internal composition of this component has changed. There is no expected change in behavior.
|
|
8
16
|
|
|
9
17
|
## 1.1.0
|
|
10
18
|
|
|
11
19
|
### Minor Changes
|
|
12
20
|
|
|
13
|
-
-
|
|
21
|
+
- [#87853](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/87853)
|
|
22
|
+
[`54e884fd8d96`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/54e884fd8d96) -
|
|
23
|
+
Increasing `react` `peerDependency` range to include `react@17` and `react@18`.
|
|
14
24
|
|
|
15
25
|
## 1.0.7
|
|
16
26
|
|
|
17
27
|
### Patch Changes
|
|
18
28
|
|
|
19
|
-
-
|
|
29
|
+
- [#84398](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/84398)
|
|
30
|
+
[`77694db987fc`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/77694db987fc) -
|
|
31
|
+
Public release of Pragmatic drag and drop documentation
|
|
20
32
|
|
|
21
33
|
## 1.0.6
|
|
22
34
|
|
|
23
35
|
### Patch Changes
|
|
24
36
|
|
|
25
|
-
-
|
|
37
|
+
- [#84250](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/84250)
|
|
38
|
+
[`a1cc31800621`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a1cc31800621) -
|
|
39
|
+
Internal refactor: now relying on automatic fallback insertion for `token()`. This change
|
|
40
|
+
provides an improved experience for consumers who don't have Atlassian Design tokens enabled.
|
|
26
41
|
|
|
27
42
|
## 1.0.5
|
|
28
43
|
|
|
29
44
|
### Patch Changes
|
|
30
45
|
|
|
31
|
-
-
|
|
46
|
+
- [#83702](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83702)
|
|
47
|
+
[`4d9e25ab4eaa`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4d9e25ab4eaa) -
|
|
48
|
+
Updating the descriptions of Pragmatic drag and drop packages, so they each provide a consistent
|
|
49
|
+
description to various consumers, and so they are consistently formed amongst each other.
|
|
32
50
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
51
|
+
- `package.json` `description`
|
|
52
|
+
- `README.md`
|
|
53
|
+
- Website documentation
|
|
36
54
|
|
|
37
55
|
## 1.0.4
|
|
38
56
|
|
|
39
57
|
### Patch Changes
|
|
40
58
|
|
|
41
|
-
-
|
|
59
|
+
- [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
|
|
60
|
+
[`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
|
|
61
|
+
Upgrade Typescript from `4.9.5` to `5.4.2`
|
|
42
62
|
|
|
43
63
|
## 1.0.3
|
|
44
64
|
|
|
45
65
|
### Patch Changes
|
|
46
66
|
|
|
47
|
-
-
|
|
67
|
+
- Updated dependencies
|
|
48
68
|
|
|
49
69
|
## 1.0.2
|
|
50
70
|
|
|
51
71
|
### Patch Changes
|
|
52
72
|
|
|
53
|
-
-
|
|
73
|
+
- Updated dependencies
|
|
54
74
|
|
|
55
75
|
## 1.0.1
|
|
56
76
|
|
|
57
77
|
### Patch Changes
|
|
58
78
|
|
|
59
|
-
-
|
|
79
|
+
- Updated dependencies
|
|
60
80
|
|
|
61
81
|
## 1.0.0
|
|
62
82
|
|
|
63
83
|
### Major Changes
|
|
64
84
|
|
|
65
|
-
-
|
|
85
|
+
- [#70616](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70616)
|
|
86
|
+
[`42e57ea65fee`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/42e57ea65fee) -
|
|
87
|
+
This is our first `major` release (`1.0`) for all Pragmatic drag and drop packages.
|
|
66
88
|
|
|
67
|
-
|
|
89
|
+
For a detailed explanation of these changes, and how to upgrade (automatically) to `1.0` please
|
|
90
|
+
see our
|
|
91
|
+
[1.0 upgrade guide](http://atlassian.design/components/pragmatic-drag-and-drop/core-package/upgrade-guides/upgrade-guide-for-1.0)
|
|
68
92
|
|
|
69
93
|
## 0.5.1
|
|
70
94
|
|
|
71
95
|
### Patch Changes
|
|
72
96
|
|
|
73
|
-
-
|
|
97
|
+
- Updated dependencies
|
|
74
98
|
|
|
75
99
|
## 0.5.0
|
|
76
100
|
|
|
77
101
|
### Minor Changes
|
|
78
102
|
|
|
79
|
-
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
<
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
103
|
+
- [#59748](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59748)
|
|
104
|
+
[`70d293a2f8b8`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/70d293a2f8b8) -
|
|
105
|
+
Removed the `DragHandleDropdownMenu` and `DragHandleDropdownMenuSmall` exports. Composition with
|
|
106
|
+
`DropdownMenu` should be used instead.
|
|
107
|
+
|
|
108
|
+
This decision was made to avoid the risk of mismatched versions of `@atlaskit/dropdown-menu`,
|
|
109
|
+
which could occur when this package was bringing in a different version to the main one
|
|
110
|
+
installed. It is also preferable to encourage composition, which allows for greater flexibility
|
|
111
|
+
and control for consumers.
|
|
112
|
+
|
|
113
|
+
**Before**
|
|
114
|
+
|
|
115
|
+
```tsx
|
|
116
|
+
import { DropdownItem, DropdownItemGroup } from '@atlaskit/dropdown-menu';
|
|
117
|
+
import { DragHandleDropdownMenu } from '@atlaskit/pragmatic-drag-and-drop-react-accessibility/drag-handle-dropdown-menu';
|
|
118
|
+
|
|
119
|
+
function MyComponent() {
|
|
120
|
+
const myRef = useRef<HTMLButtonElement>(null);
|
|
121
|
+
return (
|
|
122
|
+
<DragHandleDropdownMenu triggerRef={myRef} label="Reorder">
|
|
123
|
+
<DropdownItemGroup>
|
|
124
|
+
<DropdownItem>Move up</DropdownItem>
|
|
125
|
+
<DropdownItem>Move down</DropdownItem>
|
|
126
|
+
</DropdownItemGroup>
|
|
127
|
+
</DragHandleDropdownMenu>
|
|
128
|
+
);
|
|
129
|
+
}
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
**After**
|
|
133
|
+
|
|
134
|
+
```tsx
|
|
135
|
+
import DropdownMenu, { DropdownItem, DropdownItemGroup } from '@atlaskit/dropdown-menu';
|
|
136
|
+
import mergeRefs from '@atlaskit/ds-lib/merge-refs';
|
|
137
|
+
import { DragHandleButton } from '@atlaskit/pragmatic-drag-and-drop-react-accessibility/drag-handle-button';
|
|
138
|
+
|
|
139
|
+
function MyComponent() {
|
|
140
|
+
const myRef = useRef<HTMLButtonElement>(null);
|
|
141
|
+
return (
|
|
142
|
+
<DropdownMenu
|
|
143
|
+
trigger={({ triggerRef, ...triggerProps }) => (
|
|
144
|
+
<DragHandleButton
|
|
145
|
+
ref={mergeRefs([myRef, triggerRef])}
|
|
146
|
+
{...triggerProps}
|
|
147
|
+
label="Reorder"
|
|
148
|
+
/>
|
|
149
|
+
)}
|
|
150
|
+
>
|
|
151
|
+
<DropdownItemGroup>
|
|
152
|
+
<DropdownItem>Move up</DropdownItem>
|
|
153
|
+
<DropdownItem>Move down</DropdownItem>
|
|
154
|
+
</DropdownItemGroup>
|
|
155
|
+
</DropdownMenu>
|
|
156
|
+
);
|
|
157
|
+
}
|
|
158
|
+
```
|
|
135
159
|
|
|
136
160
|
## 0.4.1
|
|
137
161
|
|
|
138
162
|
### Patch Changes
|
|
139
163
|
|
|
140
|
-
-
|
|
164
|
+
- Updated dependencies
|
|
141
165
|
|
|
142
166
|
## 0.4.0
|
|
143
167
|
|
|
144
168
|
### Minor Changes
|
|
145
169
|
|
|
146
|
-
-
|
|
147
|
-
|
|
170
|
+
- [#41296](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41296)
|
|
171
|
+
[`3e479ba1a4a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3e479ba1a4a) - [ux]
|
|
172
|
+
The drag handle icon now uses the `color.icon.subtle` token.
|
|
173
|
+
- [#41296](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41296)
|
|
174
|
+
[`ac64412c674`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ac64412c674) -
|
|
175
|
+
Introduced small variants of the drag handle button and drag handle dropdown menu.
|
|
148
176
|
|
|
149
|
-
|
|
150
|
-
|
|
177
|
+
These are intended for existing experiences with little space available to introduce a drag
|
|
178
|
+
handle. They are not recommended for general use.
|
|
151
179
|
|
|
152
|
-
|
|
153
|
-
|
|
180
|
+
These small variants can be accessed through the `/drag-handle-button-small` and
|
|
181
|
+
`/drag-handle-dropdown-menu-small` entrypoints.
|
|
154
182
|
|
|
155
183
|
### Patch Changes
|
|
156
184
|
|
|
157
|
-
-
|
|
185
|
+
- Updated dependencies
|
|
158
186
|
|
|
159
187
|
## 0.3.1
|
|
160
188
|
|
|
161
189
|
### Patch Changes
|
|
162
190
|
|
|
163
|
-
-
|
|
191
|
+
- Updated dependencies
|
|
164
192
|
|
|
165
193
|
## 0.3.0
|
|
166
194
|
|
|
167
195
|
### Minor Changes
|
|
168
196
|
|
|
169
|
-
-
|
|
197
|
+
- [#38144](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38144)
|
|
198
|
+
[`ee9aa9b7300`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ee9aa9b7300) - [ux]
|
|
199
|
+
The button now has `display: flex`
|
|
170
200
|
|
|
171
201
|
## 0.2.0
|
|
172
202
|
|
|
173
203
|
### Minor Changes
|
|
174
204
|
|
|
175
|
-
-
|
|
176
|
-
|
|
205
|
+
- [#38115](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38115)
|
|
206
|
+
[`ffb3e727aaf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ffb3e727aaf) - The
|
|
207
|
+
`type` of the `DragHandleButton` now defaults to `'button'` (instead of `'submit'`)
|
|
208
|
+
- [`9f5b56f5677`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9f5b56f5677) - The
|
|
209
|
+
`DragHandleButton` props now extend `ButtonHTMLAttributes` (instead of just `HTMLAttributes`)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/pragmatic-drag-and-drop-react-accessibility",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "An optional package for Pragmatic drag and drop containing react components to assist with setting up accessible experiences",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
"./drag-handle-button-small": "./src/drag-handle-button-small.tsx"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@atlaskit/focus-ring": "^1.
|
|
40
|
+
"@atlaskit/focus-ring": "^1.4.0",
|
|
41
41
|
"@atlaskit/icon": "^22.1.0",
|
|
42
|
-
"@atlaskit/primitives": "^
|
|
43
|
-
"@atlaskit/tokens": "^1.
|
|
42
|
+
"@atlaskit/primitives": "^6.0.0",
|
|
43
|
+
"@atlaskit/tokens": "^1.45.0",
|
|
44
44
|
"@babel/runtime": "^7.0.0",
|
|
45
45
|
"@emotion/react": "^11.7.1"
|
|
46
46
|
},
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@af/visual-regression": "*",
|
|
52
|
-
"@atlaskit/ds-lib": "^2.
|
|
52
|
+
"@atlaskit/ds-lib": "^2.3.0",
|
|
53
53
|
"@atlaskit/ssr": "*",
|
|
54
54
|
"@atlaskit/visual-regression": "*",
|
|
55
55
|
"@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
|