@atlaskit/color-picker 5.1.2 → 5.1.3
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 +10 -0
- package/dist/cjs/components/ColorPaletteMenu.js +2 -2
- package/dist/cjs/components/ColorPicker.js +1 -1
- package/dist/cjs/components/Trigger.js +0 -12
- package/dist/es2019/components/ColorPaletteMenu.js +2 -2
- package/dist/es2019/components/ColorPicker.js +1 -1
- package/dist/es2019/components/Trigger.js +0 -12
- package/dist/esm/components/ColorPaletteMenu.js +2 -2
- package/dist/esm/components/ColorPicker.js +1 -1
- package/dist/esm/components/Trigger.js +0 -12
- package/package.json +2 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @atlaskit/color-picker
|
|
2
2
|
|
|
3
|
+
## 5.1.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#155681](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/155681)
|
|
8
|
+
[`679a437d9a866`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/679a437d9a866) -
|
|
9
|
+
Internal refactors to support a feature flag being cleaned up in `@atlaskit/select` and
|
|
10
|
+
`@atlaskit/react-select`.
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
3
13
|
## 5.1.2
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -62,7 +62,7 @@ var ColorPaletteMenuWithoutAnalytics = exports.ColorPaletteMenuWithoutAnalytics
|
|
|
62
62
|
attributes: {
|
|
63
63
|
componentName: 'color-picker',
|
|
64
64
|
packageName: "@atlaskit/color-picker",
|
|
65
|
-
packageVersion: "5.1.
|
|
65
|
+
packageVersion: "5.1.3"
|
|
66
66
|
}
|
|
67
67
|
})(createAnalyticsEvent);
|
|
68
68
|
}
|
|
@@ -147,7 +147,7 @@ var ColorPaletteMenuWithoutAnalytics = exports.ColorPaletteMenuWithoutAnalytics
|
|
|
147
147
|
var _default = exports.default = (0, _analyticsNext.withAnalyticsContext)({
|
|
148
148
|
componentName: 'color-picker',
|
|
149
149
|
packageName: "@atlaskit/color-picker",
|
|
150
|
-
packageVersion: "5.1.
|
|
150
|
+
packageVersion: "5.1.3"
|
|
151
151
|
})((0, _analyticsNext.withAnalyticsEvents)()(ColorPaletteMenuWithoutAnalytics));
|
|
152
152
|
var colorCardWrapperStyles = null;
|
|
153
153
|
var colorPaletteContainerStyles = null;
|
|
@@ -41,7 +41,7 @@ var defaultPopperProps = {
|
|
|
41
41
|
placement: 'bottom-start'
|
|
42
42
|
};
|
|
43
43
|
var packageName = "@atlaskit/color-picker";
|
|
44
|
-
var packageVersion = "5.1.
|
|
44
|
+
var packageVersion = "5.1.3";
|
|
45
45
|
var ColorPickerWithoutAnalyticsBase = /*#__PURE__*/function (_React$Component) {
|
|
46
46
|
function ColorPickerWithoutAnalyticsBase() {
|
|
47
47
|
var _this;
|
|
@@ -31,18 +31,6 @@ var ColorCard = function ColorCard(_ref) {
|
|
|
31
31
|
event.preventDefault();
|
|
32
32
|
}, []);
|
|
33
33
|
var handleClick = (0, _react.useCallback)(function (event) {
|
|
34
|
-
/**
|
|
35
|
-
* The 'platform_dst_layer_observer_select' feature flag updates `PopupSelect` to close itself when
|
|
36
|
-
* the internal Select's `onMenuClose` prop is called.
|
|
37
|
-
*
|
|
38
|
-
* By moving focus to the trigger element after the select menu is open, it causes the select
|
|
39
|
-
* menu to think it is being closed, and call its `onMenuClose` prop.
|
|
40
|
-
*
|
|
41
|
-
* This results in the PopupSelect instantly closing when the user clicks to open it.
|
|
42
|
-
*/
|
|
43
|
-
if (!(0, _platformFeatureFlags.fg)('platform_dst_layer_observer_select')) {
|
|
44
|
-
event.currentTarget.focus();
|
|
45
|
-
}
|
|
46
34
|
if (onClick) {
|
|
47
35
|
event.preventDefault();
|
|
48
36
|
onClick();
|
|
@@ -42,7 +42,7 @@ export const ColorPaletteMenuWithoutAnalytics = ({
|
|
|
42
42
|
attributes: {
|
|
43
43
|
componentName: 'color-picker',
|
|
44
44
|
packageName: "@atlaskit/color-picker",
|
|
45
|
-
packageVersion: "5.1.
|
|
45
|
+
packageVersion: "5.1.3"
|
|
46
46
|
}
|
|
47
47
|
})(createAnalyticsEvent);
|
|
48
48
|
}
|
|
@@ -120,7 +120,7 @@ export const ColorPaletteMenuWithoutAnalytics = ({
|
|
|
120
120
|
export default withAnalyticsContext({
|
|
121
121
|
componentName: 'color-picker',
|
|
122
122
|
packageName: "@atlaskit/color-picker",
|
|
123
|
-
packageVersion: "5.1.
|
|
123
|
+
packageVersion: "5.1.3"
|
|
124
124
|
})(withAnalyticsEvents()(ColorPaletteMenuWithoutAnalytics));
|
|
125
125
|
const colorCardWrapperStyles = null;
|
|
126
126
|
const colorPaletteContainerStyles = null;
|
|
@@ -24,7 +24,7 @@ const defaultPopperProps = {
|
|
|
24
24
|
placement: 'bottom-start'
|
|
25
25
|
};
|
|
26
26
|
const packageName = "@atlaskit/color-picker";
|
|
27
|
-
const packageVersion = "5.1.
|
|
27
|
+
const packageVersion = "5.1.3";
|
|
28
28
|
class ColorPickerWithoutAnalyticsBase extends React.Component {
|
|
29
29
|
constructor(...args) {
|
|
30
30
|
super(...args);
|
|
@@ -20,18 +20,6 @@ const ColorCard = ({
|
|
|
20
20
|
event.preventDefault();
|
|
21
21
|
}, []);
|
|
22
22
|
const handleClick = useCallback(event => {
|
|
23
|
-
/**
|
|
24
|
-
* The 'platform_dst_layer_observer_select' feature flag updates `PopupSelect` to close itself when
|
|
25
|
-
* the internal Select's `onMenuClose` prop is called.
|
|
26
|
-
*
|
|
27
|
-
* By moving focus to the trigger element after the select menu is open, it causes the select
|
|
28
|
-
* menu to think it is being closed, and call its `onMenuClose` prop.
|
|
29
|
-
*
|
|
30
|
-
* This results in the PopupSelect instantly closing when the user clicks to open it.
|
|
31
|
-
*/
|
|
32
|
-
if (!fg('platform_dst_layer_observer_select')) {
|
|
33
|
-
event.currentTarget.focus();
|
|
34
|
-
}
|
|
35
23
|
if (onClick) {
|
|
36
24
|
event.preventDefault();
|
|
37
25
|
onClick();
|
|
@@ -52,7 +52,7 @@ export var ColorPaletteMenuWithoutAnalytics = function ColorPaletteMenuWithoutAn
|
|
|
52
52
|
attributes: {
|
|
53
53
|
componentName: 'color-picker',
|
|
54
54
|
packageName: "@atlaskit/color-picker",
|
|
55
|
-
packageVersion: "5.1.
|
|
55
|
+
packageVersion: "5.1.3"
|
|
56
56
|
}
|
|
57
57
|
})(createAnalyticsEvent);
|
|
58
58
|
}
|
|
@@ -137,7 +137,7 @@ export var ColorPaletteMenuWithoutAnalytics = function ColorPaletteMenuWithoutAn
|
|
|
137
137
|
export default withAnalyticsContext({
|
|
138
138
|
componentName: 'color-picker',
|
|
139
139
|
packageName: "@atlaskit/color-picker",
|
|
140
|
-
packageVersion: "5.1.
|
|
140
|
+
packageVersion: "5.1.3"
|
|
141
141
|
})(withAnalyticsEvents()(ColorPaletteMenuWithoutAnalytics));
|
|
142
142
|
var colorCardWrapperStyles = null;
|
|
143
143
|
var colorPaletteContainerStyles = null;
|
|
@@ -31,7 +31,7 @@ var defaultPopperProps = {
|
|
|
31
31
|
placement: 'bottom-start'
|
|
32
32
|
};
|
|
33
33
|
var packageName = "@atlaskit/color-picker";
|
|
34
|
-
var packageVersion = "5.1.
|
|
34
|
+
var packageVersion = "5.1.3";
|
|
35
35
|
var ColorPickerWithoutAnalyticsBase = /*#__PURE__*/function (_React$Component) {
|
|
36
36
|
function ColorPickerWithoutAnalyticsBase() {
|
|
37
37
|
var _this;
|
|
@@ -21,18 +21,6 @@ var ColorCard = function ColorCard(_ref) {
|
|
|
21
21
|
event.preventDefault();
|
|
22
22
|
}, []);
|
|
23
23
|
var handleClick = useCallback(function (event) {
|
|
24
|
-
/**
|
|
25
|
-
* The 'platform_dst_layer_observer_select' feature flag updates `PopupSelect` to close itself when
|
|
26
|
-
* the internal Select's `onMenuClose` prop is called.
|
|
27
|
-
*
|
|
28
|
-
* By moving focus to the trigger element after the select menu is open, it causes the select
|
|
29
|
-
* menu to think it is being closed, and call its `onMenuClose` prop.
|
|
30
|
-
*
|
|
31
|
-
* This results in the PopupSelect instantly closing when the user clicks to open it.
|
|
32
|
-
*/
|
|
33
|
-
if (!fg('platform_dst_layer_observer_select')) {
|
|
34
|
-
event.currentTarget.focus();
|
|
35
|
-
}
|
|
36
24
|
if (onClick) {
|
|
37
25
|
event.preventDefault();
|
|
38
26
|
onClick();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/color-picker",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.3",
|
|
4
4
|
"description": "Jira Color Picker Component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@atlaskit/css": "^0.10.0",
|
|
34
34
|
"@atlaskit/icon": "^26.0.0",
|
|
35
35
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
36
|
-
"@atlaskit/select": "^20.
|
|
36
|
+
"@atlaskit/select": "^20.5.0",
|
|
37
37
|
"@atlaskit/theme": "^18.0.0",
|
|
38
38
|
"@atlaskit/tokens": "^4.8.0",
|
|
39
39
|
"@atlaskit/tooltip": "^20.0.0",
|
|
@@ -82,9 +82,6 @@
|
|
|
82
82
|
},
|
|
83
83
|
"one_event_rules_them_all_fg": {
|
|
84
84
|
"type": "boolean"
|
|
85
|
-
},
|
|
86
|
-
"platform_dst_layer_observer_select": {
|
|
87
|
-
"type": "boolean"
|
|
88
85
|
}
|
|
89
86
|
},
|
|
90
87
|
"sideEffects": [
|