@atlaskit/media-test-helpers 34.3.0 → 34.4.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
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/media-test-helpers
|
|
2
2
|
|
|
3
|
+
## 34.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#141754](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/141754)
|
|
8
|
+
[`71bcccc5aa956`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/71bcccc5aa956) -
|
|
9
|
+
Enable new icons behind a feature flag.
|
|
10
|
+
|
|
3
11
|
## 34.3.0
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
|
@@ -13,8 +13,8 @@ var _primitives = require("@atlaskit/primitives");
|
|
|
13
13
|
var _react = _interopRequireWildcard(require("react"));
|
|
14
14
|
var _textfield = _interopRequireDefault(require("@atlaskit/textfield"));
|
|
15
15
|
var _helpers = require("./helpers");
|
|
16
|
-
var
|
|
17
|
-
var
|
|
16
|
+
var _crossCircleSelectClear = _interopRequireDefault(require("@atlaskit/icon/core/migration/cross-circle--select-clear"));
|
|
17
|
+
var _chevronDownHipchatChevronDown = _interopRequireDefault(require("@atlaskit/icon/utility/migration/chevron-down--hipchat-chevron-down"));
|
|
18
18
|
var _standardButton = _interopRequireDefault(require("@atlaskit/button/standard-button"));
|
|
19
19
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
20
20
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
@@ -136,9 +136,10 @@ var MediaFeatureFlagsDropdown = function MediaFeatureFlagsDropdown(_ref6) {
|
|
|
136
136
|
onClick: function onClick() {
|
|
137
137
|
return setIsOpen(!isOpen);
|
|
138
138
|
},
|
|
139
|
-
iconAfter: /*#__PURE__*/_react.default.createElement(
|
|
139
|
+
iconAfter: /*#__PURE__*/_react.default.createElement(_chevronDownHipchatChevronDown.default, {
|
|
140
|
+
color: "currentColor",
|
|
140
141
|
label: "",
|
|
141
|
-
|
|
142
|
+
LEGACY_size: "small"
|
|
142
143
|
})
|
|
143
144
|
}), "Media Feature Flags");
|
|
144
145
|
}
|
|
@@ -150,9 +151,10 @@ var MediaFeatureFlagsDropdown = function MediaFeatureFlagsDropdown(_ref6) {
|
|
|
150
151
|
style: {
|
|
151
152
|
marginLeft: 10
|
|
152
153
|
},
|
|
153
|
-
iconBefore: /*#__PURE__*/_react.default.createElement(
|
|
154
|
+
iconBefore: /*#__PURE__*/_react.default.createElement(_crossCircleSelectClear.default, {
|
|
155
|
+
color: "currentColor",
|
|
154
156
|
label: "Star icon",
|
|
155
|
-
|
|
157
|
+
LEGACY_size: "small"
|
|
156
158
|
}),
|
|
157
159
|
onClick: function onClick() {
|
|
158
160
|
(0, _helpers.clearAllLocalFeatureFlags)();
|
|
@@ -3,8 +3,8 @@ import { Stack, xcss } from '@atlaskit/primitives';
|
|
|
3
3
|
import React, { useState } from 'react';
|
|
4
4
|
import Textfield from '@atlaskit/textfield';
|
|
5
5
|
import { getMediaFeatureFlags, clearAllLocalFeatureFlags, setLocalFeatureFlag } from './helpers';
|
|
6
|
-
import SelectClearIcon from '@atlaskit/icon/
|
|
7
|
-
import HipchatChevronDownIcon from '@atlaskit/icon/
|
|
6
|
+
import SelectClearIcon from '@atlaskit/icon/core/migration/cross-circle--select-clear';
|
|
7
|
+
import HipchatChevronDownIcon from '@atlaskit/icon/utility/migration/chevron-down--hipchat-chevron-down';
|
|
8
8
|
import Button from '@atlaskit/button/standard-button';
|
|
9
9
|
import Tooltip from '@atlaskit/tooltip';
|
|
10
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -111,8 +111,9 @@ const MediaFeatureFlagsDropdown = ({
|
|
|
111
111
|
isSelected: isOpen,
|
|
112
112
|
onClick: () => setIsOpen(!isOpen),
|
|
113
113
|
iconAfter: /*#__PURE__*/React.createElement(HipchatChevronDownIcon, {
|
|
114
|
+
color: "currentColor",
|
|
114
115
|
label: "",
|
|
115
|
-
|
|
116
|
+
LEGACY_size: "small"
|
|
116
117
|
})
|
|
117
118
|
}), "Media Feature Flags")
|
|
118
119
|
}), /*#__PURE__*/React.createElement(Tooltip, {
|
|
@@ -124,8 +125,9 @@ const MediaFeatureFlagsDropdown = ({
|
|
|
124
125
|
marginLeft: 10
|
|
125
126
|
},
|
|
126
127
|
iconBefore: /*#__PURE__*/React.createElement(SelectClearIcon, {
|
|
128
|
+
color: "currentColor",
|
|
127
129
|
label: "Star icon",
|
|
128
|
-
|
|
130
|
+
LEGACY_size: "small"
|
|
129
131
|
}),
|
|
130
132
|
onClick: () => {
|
|
131
133
|
clearAllLocalFeatureFlags();
|
|
@@ -5,8 +5,8 @@ import { Stack, xcss } from '@atlaskit/primitives';
|
|
|
5
5
|
import React, { useState } from 'react';
|
|
6
6
|
import Textfield from '@atlaskit/textfield';
|
|
7
7
|
import { getMediaFeatureFlags, clearAllLocalFeatureFlags, setLocalFeatureFlag } from './helpers';
|
|
8
|
-
import SelectClearIcon from '@atlaskit/icon/
|
|
9
|
-
import HipchatChevronDownIcon from '@atlaskit/icon/
|
|
8
|
+
import SelectClearIcon from '@atlaskit/icon/core/migration/cross-circle--select-clear';
|
|
9
|
+
import HipchatChevronDownIcon from '@atlaskit/icon/utility/migration/chevron-down--hipchat-chevron-down';
|
|
10
10
|
import Button from '@atlaskit/button/standard-button';
|
|
11
11
|
import Tooltip from '@atlaskit/tooltip';
|
|
12
12
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -126,8 +126,9 @@ var MediaFeatureFlagsDropdown = function MediaFeatureFlagsDropdown(_ref6) {
|
|
|
126
126
|
return setIsOpen(!isOpen);
|
|
127
127
|
},
|
|
128
128
|
iconAfter: /*#__PURE__*/React.createElement(HipchatChevronDownIcon, {
|
|
129
|
+
color: "currentColor",
|
|
129
130
|
label: "",
|
|
130
|
-
|
|
131
|
+
LEGACY_size: "small"
|
|
131
132
|
})
|
|
132
133
|
}), "Media Feature Flags");
|
|
133
134
|
}
|
|
@@ -140,8 +141,9 @@ var MediaFeatureFlagsDropdown = function MediaFeatureFlagsDropdown(_ref6) {
|
|
|
140
141
|
marginLeft: 10
|
|
141
142
|
},
|
|
142
143
|
iconBefore: /*#__PURE__*/React.createElement(SelectClearIcon, {
|
|
144
|
+
color: "currentColor",
|
|
143
145
|
label: "Star icon",
|
|
144
|
-
|
|
146
|
+
LEGACY_size: "small"
|
|
145
147
|
}),
|
|
146
148
|
onClick: function onClick() {
|
|
147
149
|
clearAllLocalFeatureFlags();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-test-helpers",
|
|
3
|
-
"version": "34.
|
|
3
|
+
"version": "34.4.0",
|
|
4
4
|
"description": "Collection of test helpers used in media component stories and specs",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@atlaskit/locale": "^2.8.0",
|
|
33
33
|
"@atlaskit/media-client": "^28.0.0",
|
|
34
34
|
"@atlaskit/media-common": "^11.4.0",
|
|
35
|
-
"@atlaskit/media-ui": "^25.
|
|
35
|
+
"@atlaskit/media-ui": "^25.14.0",
|
|
36
36
|
"@atlaskit/popup": "^1.25.0",
|
|
37
37
|
"@atlaskit/primitives": "12.1.2",
|
|
38
38
|
"@atlaskit/tabs": "^16.4.0",
|