@atlaskit/pragmatic-drag-and-drop-react-accessibility 1.1.12 → 1.2.0
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 +14 -0
- package/dist/cjs/drag-handle-button-small.js +6 -5
- package/dist/cjs/drag-handle-button.js +5 -3
- package/dist/es2019/drag-handle-button-small.js +4 -3
- package/dist/es2019/drag-handle-button.js +3 -1
- package/dist/esm/drag-handle-button-small.js +4 -3
- package/dist/esm/drag-handle-button.js +3 -1
- package/package.json +8 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/pragmatic-drag-and-drop-react-accessibility
|
|
2
2
|
|
|
3
|
+
## 1.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#150481](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/150481)
|
|
8
|
+
[`e750fb3633f6e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e750fb3633f6e) -
|
|
9
|
+
[ux] Enable new icons behind a feature flag.
|
|
10
|
+
|
|
11
|
+
## 1.1.13
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 1.1.12
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -9,14 +9,14 @@ exports.DragHandleButtonSmall = void 0;
|
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
12
|
-
var _dragHandler = _interopRequireDefault(require("@atlaskit/icon/glyph/drag-handler"));
|
|
13
12
|
var _dragHandle = _interopRequireDefault(require("@atlaskit/icon/utility/drag-handle"));
|
|
13
|
+
var _dragHandleDragHandler = _interopRequireDefault(require("@atlaskit/icon/utility/migration/drag-handle--drag-handler"));
|
|
14
14
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
15
15
|
var _primitives = require("@atlaskit/primitives");
|
|
16
16
|
var _dragHandleButtonBase = require("./drag-handle-button-base");
|
|
17
17
|
var _excluded = ["label"];
|
|
18
18
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
19
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
19
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
20
20
|
var iconSmallStyles = (0, _primitives.xcss)({
|
|
21
21
|
display: 'inline-flex',
|
|
22
22
|
marginInline: 'space.negative.050'
|
|
@@ -37,12 +37,13 @@ var DragHandleButtonSmall = exports.DragHandleButtonSmall = /*#__PURE__*/(0, _re
|
|
|
37
37
|
return /*#__PURE__*/_react.default.createElement(_dragHandleButtonBase.DragHandleButtonBase, (0, _extends2.default)({
|
|
38
38
|
ref: ref
|
|
39
39
|
}, buttonProps), /*#__PURE__*/_react.default.createElement(_primitives.Box, {
|
|
40
|
-
xcss: (0, _platformFeatureFlags.fg)('platform-component-visual-refresh') ? iconSmallStylesNew : iconSmallStyles
|
|
40
|
+
xcss: (0, _platformFeatureFlags.fg)('platform-component-visual-refresh') || (0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') ? iconSmallStylesNew : iconSmallStyles
|
|
41
41
|
}, (0, _platformFeatureFlags.fg)('platform-component-visual-refresh') ? /*#__PURE__*/_react.default.createElement(_dragHandle.default, {
|
|
42
42
|
color: "currentColor",
|
|
43
43
|
label: label
|
|
44
|
-
}) : /*#__PURE__*/_react.default.createElement(
|
|
44
|
+
}) : /*#__PURE__*/_react.default.createElement(_dragHandleDragHandler.default, {
|
|
45
|
+
color: "currentColor",
|
|
45
46
|
label: label,
|
|
46
|
-
|
|
47
|
+
LEGACY_size: "small"
|
|
47
48
|
})));
|
|
48
49
|
});
|
|
@@ -9,11 +9,11 @@ exports.DragHandleButton = void 0;
|
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
12
|
-
var
|
|
12
|
+
var _dragHandleDragHandler = _interopRequireDefault(require("@atlaskit/icon/utility/migration/drag-handle--drag-handler"));
|
|
13
13
|
var _dragHandleButtonBase = require("./drag-handle-button-base");
|
|
14
14
|
var _excluded = ["label"];
|
|
15
15
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
16
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
16
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
17
17
|
/**
|
|
18
18
|
* A button with pre-configured styling to look like a drag handle.
|
|
19
19
|
*
|
|
@@ -25,7 +25,9 @@ var DragHandleButton = exports.DragHandleButton = /*#__PURE__*/(0, _react.forwar
|
|
|
25
25
|
buttonProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
26
26
|
return /*#__PURE__*/_react.default.createElement(_dragHandleButtonBase.DragHandleButtonBase, (0, _extends2.default)({
|
|
27
27
|
ref: ref
|
|
28
|
-
}, buttonProps), /*#__PURE__*/_react.default.createElement(
|
|
28
|
+
}, buttonProps), /*#__PURE__*/_react.default.createElement(_dragHandleDragHandler.default, {
|
|
29
|
+
color: "currentColor",
|
|
30
|
+
spacing: "spacious",
|
|
29
31
|
label: label
|
|
30
32
|
}));
|
|
31
33
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
|
-
import DragHandlerIcon from '@atlaskit/icon/glyph/drag-handler';
|
|
4
3
|
import DragHandlerIconNew from '@atlaskit/icon/utility/drag-handle';
|
|
4
|
+
import DragHandlerIcon from '@atlaskit/icon/utility/migration/drag-handle--drag-handler';
|
|
5
5
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
6
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
7
7
|
import { DragHandleButtonBase } from './drag-handle-button-base';
|
|
@@ -26,12 +26,13 @@ export const DragHandleButtonSmall = /*#__PURE__*/forwardRef(function DragHandle
|
|
|
26
26
|
return /*#__PURE__*/React.createElement(DragHandleButtonBase, _extends({
|
|
27
27
|
ref: ref
|
|
28
28
|
}, buttonProps), /*#__PURE__*/React.createElement(Box, {
|
|
29
|
-
xcss: fg('platform-component-visual-refresh') ? iconSmallStylesNew : iconSmallStyles
|
|
29
|
+
xcss: fg('platform-component-visual-refresh') || fg('platform-visual-refresh-icons') ? iconSmallStylesNew : iconSmallStyles
|
|
30
30
|
}, fg('platform-component-visual-refresh') ? /*#__PURE__*/React.createElement(DragHandlerIconNew, {
|
|
31
31
|
color: "currentColor",
|
|
32
32
|
label: label
|
|
33
33
|
}) : /*#__PURE__*/React.createElement(DragHandlerIcon, {
|
|
34
|
+
color: "currentColor",
|
|
34
35
|
label: label,
|
|
35
|
-
|
|
36
|
+
LEGACY_size: "small"
|
|
36
37
|
})));
|
|
37
38
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
|
-
import DragHandlerIcon from '@atlaskit/icon/
|
|
3
|
+
import DragHandlerIcon from '@atlaskit/icon/utility/migration/drag-handle--drag-handler';
|
|
4
4
|
import { DragHandleButtonBase } from './drag-handle-button-base';
|
|
5
5
|
/**
|
|
6
6
|
* A button with pre-configured styling to look like a drag handle.
|
|
@@ -15,6 +15,8 @@ export const DragHandleButton = /*#__PURE__*/forwardRef(function DragHandleButto
|
|
|
15
15
|
return /*#__PURE__*/React.createElement(DragHandleButtonBase, _extends({
|
|
16
16
|
ref: ref
|
|
17
17
|
}, buttonProps), /*#__PURE__*/React.createElement(DragHandlerIcon, {
|
|
18
|
+
color: "currentColor",
|
|
19
|
+
spacing: "spacious",
|
|
18
20
|
label: label
|
|
19
21
|
}));
|
|
20
22
|
});
|
|
@@ -2,8 +2,8 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["label"];
|
|
4
4
|
import React, { forwardRef } from 'react';
|
|
5
|
-
import DragHandlerIcon from '@atlaskit/icon/glyph/drag-handler';
|
|
6
5
|
import DragHandlerIconNew from '@atlaskit/icon/utility/drag-handle';
|
|
6
|
+
import DragHandlerIcon from '@atlaskit/icon/utility/migration/drag-handle--drag-handler';
|
|
7
7
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
8
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
9
9
|
import { DragHandleButtonBase } from './drag-handle-button-base';
|
|
@@ -27,12 +27,13 @@ export var DragHandleButtonSmall = /*#__PURE__*/forwardRef(function DragHandleBu
|
|
|
27
27
|
return /*#__PURE__*/React.createElement(DragHandleButtonBase, _extends({
|
|
28
28
|
ref: ref
|
|
29
29
|
}, buttonProps), /*#__PURE__*/React.createElement(Box, {
|
|
30
|
-
xcss: fg('platform-component-visual-refresh') ? iconSmallStylesNew : iconSmallStyles
|
|
30
|
+
xcss: fg('platform-component-visual-refresh') || fg('platform-visual-refresh-icons') ? iconSmallStylesNew : iconSmallStyles
|
|
31
31
|
}, fg('platform-component-visual-refresh') ? /*#__PURE__*/React.createElement(DragHandlerIconNew, {
|
|
32
32
|
color: "currentColor",
|
|
33
33
|
label: label
|
|
34
34
|
}) : /*#__PURE__*/React.createElement(DragHandlerIcon, {
|
|
35
|
+
color: "currentColor",
|
|
35
36
|
label: label,
|
|
36
|
-
|
|
37
|
+
LEGACY_size: "small"
|
|
37
38
|
})));
|
|
38
39
|
});
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["label"];
|
|
4
4
|
import React, { forwardRef } from 'react';
|
|
5
|
-
import DragHandlerIcon from '@atlaskit/icon/
|
|
5
|
+
import DragHandlerIcon from '@atlaskit/icon/utility/migration/drag-handle--drag-handler';
|
|
6
6
|
import { DragHandleButtonBase } from './drag-handle-button-base';
|
|
7
7
|
/**
|
|
8
8
|
* A button with pre-configured styling to look like a drag handle.
|
|
@@ -16,6 +16,8 @@ export var DragHandleButton = /*#__PURE__*/forwardRef(function DragHandleButton(
|
|
|
16
16
|
return /*#__PURE__*/React.createElement(DragHandleButtonBase, _extends({
|
|
17
17
|
ref: ref
|
|
18
18
|
}, buttonProps), /*#__PURE__*/React.createElement(DragHandlerIcon, {
|
|
19
|
+
color: "currentColor",
|
|
20
|
+
spacing: "spacious",
|
|
19
21
|
label: label
|
|
20
22
|
}));
|
|
21
23
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/pragmatic-drag-and-drop-react-accessibility",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
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",
|
|
@@ -9,8 +9,6 @@
|
|
|
9
9
|
},
|
|
10
10
|
"atlassian": {
|
|
11
11
|
"team": "Design System Team",
|
|
12
|
-
"inPublicMirror": false,
|
|
13
|
-
"releaseModel": "continuous",
|
|
14
12
|
"runReact18": true,
|
|
15
13
|
"website": {
|
|
16
14
|
"name": "React accessibility",
|
|
@@ -39,10 +37,10 @@
|
|
|
39
37
|
},
|
|
40
38
|
"dependencies": {
|
|
41
39
|
"@atlaskit/focus-ring": "^1.6.0",
|
|
42
|
-
"@atlaskit/icon": "^22.
|
|
40
|
+
"@atlaskit/icon": "^22.22.0",
|
|
43
41
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
44
|
-
"@atlaskit/primitives": "^12.
|
|
45
|
-
"@atlaskit/tokens": "^
|
|
42
|
+
"@atlaskit/primitives": "^12.2.0",
|
|
43
|
+
"@atlaskit/tokens": "^2.0.0",
|
|
46
44
|
"@babel/runtime": "^7.0.0",
|
|
47
45
|
"@emotion/react": "^11.7.1"
|
|
48
46
|
},
|
|
@@ -51,7 +49,7 @@
|
|
|
51
49
|
},
|
|
52
50
|
"devDependencies": {
|
|
53
51
|
"@af/visual-regression": "*",
|
|
54
|
-
"@atlaskit/ds-lib": "^
|
|
52
|
+
"@atlaskit/ds-lib": "^3.1.0",
|
|
55
53
|
"@atlaskit/ssr": "*",
|
|
56
54
|
"@atlaskit/visual-regression": "*",
|
|
57
55
|
"@testing-library/react": "^12.1.5",
|
|
@@ -97,6 +95,9 @@
|
|
|
97
95
|
"platform-feature-flags": {
|
|
98
96
|
"platform-component-visual-refresh": {
|
|
99
97
|
"type": "boolean"
|
|
98
|
+
},
|
|
99
|
+
"platform-visual-refresh-icons": {
|
|
100
|
+
"type": "boolean"
|
|
100
101
|
}
|
|
101
102
|
}
|
|
102
103
|
}
|