@atlaskit/feedback-collector 13.12.1 → 13.13.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 +14 -0
- package/dist/cjs/components/FeedbackButton.js +5 -4
- package/dist/cjs/components/FeedbackCollector.js +1 -1
- package/dist/cjs/components/FeedbackFlag.js +4 -3
- package/dist/cjs/components/FeedbackForm.js +4 -3
- package/dist/es2019/components/FeedbackButton.js +5 -4
- package/dist/es2019/components/FeedbackCollector.js +1 -1
- package/dist/es2019/components/FeedbackFlag.js +3 -2
- package/dist/es2019/components/FeedbackForm.js +3 -2
- package/dist/esm/components/FeedbackButton.js +5 -4
- package/dist/esm/components/FeedbackCollector.js +1 -1
- package/dist/esm/components/FeedbackFlag.js +3 -2
- package/dist/esm/components/FeedbackForm.js +3 -2
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/feedback-collector
|
|
2
2
|
|
|
3
|
+
## 13.13.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 13.13.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#144606](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/144606)
|
|
14
|
+
[`92e041153fa2e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/92e041153fa2e) -
|
|
15
|
+
[ux] Enable new icons behind a feature flag.
|
|
16
|
+
|
|
3
17
|
## 13.12.1
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -12,7 +12,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
12
12
|
var _reactIntlNext = require("react-intl-next");
|
|
13
13
|
var _new = _interopRequireDefault(require("@atlaskit/button/new"));
|
|
14
14
|
var _flag = require("@atlaskit/flag");
|
|
15
|
-
var _feedback = _interopRequireDefault(require("@atlaskit/icon/
|
|
15
|
+
var _feedback = _interopRequireDefault(require("@atlaskit/icon/core/migration/feedback"));
|
|
16
16
|
var _messages = require("../messages");
|
|
17
17
|
var _FeedbackCollector = _interopRequireDefault(require("./FeedbackCollector"));
|
|
18
18
|
var _FeedbackFlag = _interopRequireDefault(require("./FeedbackFlag"));
|
|
@@ -42,9 +42,10 @@ var FeedbackButton = function FeedbackButton(props) {
|
|
|
42
42
|
return setIsOpen(true);
|
|
43
43
|
},
|
|
44
44
|
iconBefore: function iconBefore(iconProps) {
|
|
45
|
-
return /*#__PURE__*/_react.default.createElement(_feedback.default, (0, _extends2.default)({
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
return /*#__PURE__*/_react.default.createElement(_feedback.default, (0, _extends2.default)({
|
|
46
|
+
LEGACY_size: "small",
|
|
47
|
+
color: "currentColor"
|
|
48
|
+
}, iconProps));
|
|
48
49
|
}
|
|
49
50
|
}, formatMessage(_messages.messages.giveFeedback)), isOpen && /*#__PURE__*/_react.default.createElement(_FeedbackCollector.default, {
|
|
50
51
|
locale: locale,
|
|
@@ -166,7 +166,7 @@ var FeedbackCollector = exports.default = /*#__PURE__*/function (_Component) {
|
|
|
166
166
|
}, {
|
|
167
167
|
key: "getPackageVersion",
|
|
168
168
|
value: function getPackageVersion() {
|
|
169
|
-
return "13.
|
|
169
|
+
return "13.13.1" || 'Unknown, at least 11.0.0';
|
|
170
170
|
}
|
|
171
171
|
}, {
|
|
172
172
|
key: "getEntitlementInformation",
|
|
@@ -8,7 +8,7 @@ exports.default = void 0;
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _reactIntlNext = require("react-intl-next");
|
|
10
10
|
var _flag = require("@atlaskit/flag");
|
|
11
|
-
var
|
|
11
|
+
var _successCheckCircle = _interopRequireDefault(require("@atlaskit/icon/core/migration/success--check-circle"));
|
|
12
12
|
var _colors = require("@atlaskit/theme/colors");
|
|
13
13
|
var _messages = require("../messages");
|
|
14
14
|
var _IntlProviderWithResolvedMessages = require("./IntlProviderWithResolvedMessages");
|
|
@@ -18,8 +18,9 @@ var FeedbackFlag = function FeedbackFlag(_ref) {
|
|
|
18
18
|
var _useIntl = (0, _reactIntlNext.useIntl)(),
|
|
19
19
|
formatMessage = _useIntl.formatMessage;
|
|
20
20
|
return /*#__PURE__*/_react.default.createElement(_flag.AutoDismissFlag, {
|
|
21
|
-
icon: /*#__PURE__*/_react.default.createElement(
|
|
22
|
-
|
|
21
|
+
icon: /*#__PURE__*/_react.default.createElement(_successCheckCircle.default, {
|
|
22
|
+
spacing: "spacious",
|
|
23
|
+
color: "var(--ds-icon-success, ".concat(_colors.G300, ")"),
|
|
23
24
|
label: "Success"
|
|
24
25
|
}),
|
|
25
26
|
id: "feedbackSent",
|
|
@@ -17,7 +17,7 @@ var _reactIntlNext = require("react-intl-next");
|
|
|
17
17
|
var _standardButton = _interopRequireDefault(require("@atlaskit/button/standard-button"));
|
|
18
18
|
var _checkbox = require("@atlaskit/checkbox");
|
|
19
19
|
var _form = _interopRequireWildcard(require("@atlaskit/form"));
|
|
20
|
-
var
|
|
20
|
+
var _closeEditorClose = _interopRequireDefault(require("@atlaskit/icon/core/migration/close--editor-close"));
|
|
21
21
|
var _link = _interopRequireDefault(require("@atlaskit/link"));
|
|
22
22
|
var _modalDialog = _interopRequireWildcard(require("@atlaskit/modal-dialog"));
|
|
23
23
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
@@ -152,9 +152,10 @@ var FeedbackForm = function FeedbackForm(_ref) {
|
|
|
152
152
|
spacing: 'none',
|
|
153
153
|
onClick: onClose,
|
|
154
154
|
appearance: 'subtle'
|
|
155
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
155
|
+
}, /*#__PURE__*/_react.default.createElement(_closeEditorClose.default, {
|
|
156
|
+
spacing: "spacious",
|
|
156
157
|
label: "Close Modal",
|
|
157
|
-
|
|
158
|
+
color: "var(--ds-text-subtle, ".concat(_colors.N500, ")")
|
|
158
159
|
}))), /*#__PURE__*/_react.default.createElement(_modalDialog.ModalBody, null, /*#__PURE__*/_react.default.createElement("p", {
|
|
159
160
|
style: {
|
|
160
161
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
@@ -3,7 +3,7 @@ import React, { useState } from 'react';
|
|
|
3
3
|
import { useIntl } from 'react-intl-next';
|
|
4
4
|
import Button from '@atlaskit/button/new';
|
|
5
5
|
import { FlagGroup } from '@atlaskit/flag';
|
|
6
|
-
import FeedbackIcon from '@atlaskit/icon/
|
|
6
|
+
import FeedbackIcon from '@atlaskit/icon/core/migration/feedback';
|
|
7
7
|
import { messages } from '../messages';
|
|
8
8
|
import FeedbackCollector from './FeedbackCollector';
|
|
9
9
|
import FeedbackFlag from './FeedbackFlag';
|
|
@@ -25,9 +25,10 @@ const FeedbackButton = props => {
|
|
|
25
25
|
} = props;
|
|
26
26
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button, {
|
|
27
27
|
onClick: () => setIsOpen(true),
|
|
28
|
-
iconBefore: iconProps => /*#__PURE__*/React.createElement(FeedbackIcon, _extends({
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
iconBefore: iconProps => /*#__PURE__*/React.createElement(FeedbackIcon, _extends({
|
|
29
|
+
LEGACY_size: "small",
|
|
30
|
+
color: "currentColor"
|
|
31
|
+
}, iconProps))
|
|
31
32
|
}, formatMessage(messages.giveFeedback)), isOpen && /*#__PURE__*/React.createElement(FeedbackCollector, {
|
|
32
33
|
locale: locale,
|
|
33
34
|
onClose: () => setIsOpen(false),
|
|
@@ -91,7 +91,7 @@ export default class FeedbackCollector extends Component {
|
|
|
91
91
|
return FeedbackCollector.defaultProps.url;
|
|
92
92
|
}
|
|
93
93
|
getPackageVersion() {
|
|
94
|
-
return "13.
|
|
94
|
+
return "13.13.1" || 'Unknown, at least 11.0.0';
|
|
95
95
|
}
|
|
96
96
|
async getEntitlementInformation() {
|
|
97
97
|
var _entitlementDetails, _entitlementDetails2, _productName, _entitlement, _productEntitlement;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl-next';
|
|
3
3
|
import { AutoDismissFlag } from '@atlaskit/flag';
|
|
4
|
-
import SuccessIcon from '@atlaskit/icon/
|
|
4
|
+
import SuccessIcon from '@atlaskit/icon/core/migration/success--check-circle';
|
|
5
5
|
import { G300 } from '@atlaskit/theme/colors';
|
|
6
6
|
import { messages } from '../messages';
|
|
7
7
|
import { IntlProviderWithResolvedMessages } from './IntlProviderWithResolvedMessages';
|
|
@@ -14,7 +14,8 @@ const FeedbackFlag = ({
|
|
|
14
14
|
} = useIntl();
|
|
15
15
|
return /*#__PURE__*/React.createElement(AutoDismissFlag, {
|
|
16
16
|
icon: /*#__PURE__*/React.createElement(SuccessIcon, {
|
|
17
|
-
|
|
17
|
+
spacing: "spacious",
|
|
18
|
+
color: `var(--ds-icon-success, ${G300})`,
|
|
18
19
|
label: "Success"
|
|
19
20
|
}),
|
|
20
21
|
id: "feedbackSent",
|
|
@@ -4,7 +4,7 @@ import { FormattedMessage, useIntl } from 'react-intl-next';
|
|
|
4
4
|
import Button from '@atlaskit/button/standard-button';
|
|
5
5
|
import { Checkbox } from '@atlaskit/checkbox';
|
|
6
6
|
import Form, { Field, Fieldset, RequiredAsterisk } from '@atlaskit/form';
|
|
7
|
-
import EditorCloseIcon from '@atlaskit/icon/
|
|
7
|
+
import EditorCloseIcon from '@atlaskit/icon/core/migration/close--editor-close';
|
|
8
8
|
import Link from '@atlaskit/link';
|
|
9
9
|
import Modal, { ModalBody, ModalFooter, ModalHeader, ModalTitle } from '@atlaskit/modal-dialog';
|
|
10
10
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
@@ -100,8 +100,9 @@ const FeedbackForm = ({
|
|
|
100
100
|
onClick: onClose,
|
|
101
101
|
appearance: 'subtle'
|
|
102
102
|
}, /*#__PURE__*/React.createElement(EditorCloseIcon, {
|
|
103
|
+
spacing: "spacious",
|
|
103
104
|
label: "Close Modal",
|
|
104
|
-
|
|
105
|
+
color: `var(--ds-text-subtle, ${N500})`
|
|
105
106
|
}))), /*#__PURE__*/React.createElement(ModalBody, null, /*#__PURE__*/React.createElement("p", {
|
|
106
107
|
style: {
|
|
107
108
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
@@ -4,7 +4,7 @@ import React, { useState } from 'react';
|
|
|
4
4
|
import { useIntl } from 'react-intl-next';
|
|
5
5
|
import Button from '@atlaskit/button/new';
|
|
6
6
|
import { FlagGroup } from '@atlaskit/flag';
|
|
7
|
-
import FeedbackIcon from '@atlaskit/icon/
|
|
7
|
+
import FeedbackIcon from '@atlaskit/icon/core/migration/feedback';
|
|
8
8
|
import { messages } from '../messages';
|
|
9
9
|
import FeedbackCollector from './FeedbackCollector';
|
|
10
10
|
import FeedbackFlag from './FeedbackFlag';
|
|
@@ -32,9 +32,10 @@ var FeedbackButton = function FeedbackButton(props) {
|
|
|
32
32
|
return setIsOpen(true);
|
|
33
33
|
},
|
|
34
34
|
iconBefore: function iconBefore(iconProps) {
|
|
35
|
-
return /*#__PURE__*/React.createElement(FeedbackIcon, _extends({
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
return /*#__PURE__*/React.createElement(FeedbackIcon, _extends({
|
|
36
|
+
LEGACY_size: "small",
|
|
37
|
+
color: "currentColor"
|
|
38
|
+
}, iconProps));
|
|
38
39
|
}
|
|
39
40
|
}, formatMessage(messages.giveFeedback)), isOpen && /*#__PURE__*/React.createElement(FeedbackCollector, {
|
|
40
41
|
locale: locale,
|
|
@@ -156,7 +156,7 @@ var FeedbackCollector = /*#__PURE__*/function (_Component) {
|
|
|
156
156
|
}, {
|
|
157
157
|
key: "getPackageVersion",
|
|
158
158
|
value: function getPackageVersion() {
|
|
159
|
-
return "13.
|
|
159
|
+
return "13.13.1" || 'Unknown, at least 11.0.0';
|
|
160
160
|
}
|
|
161
161
|
}, {
|
|
162
162
|
key: "getEntitlementInformation",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl-next';
|
|
3
3
|
import { AutoDismissFlag } from '@atlaskit/flag';
|
|
4
|
-
import SuccessIcon from '@atlaskit/icon/
|
|
4
|
+
import SuccessIcon from '@atlaskit/icon/core/migration/success--check-circle';
|
|
5
5
|
import { G300 } from '@atlaskit/theme/colors';
|
|
6
6
|
import { messages } from '../messages';
|
|
7
7
|
import { IntlProviderWithResolvedMessages } from './IntlProviderWithResolvedMessages';
|
|
@@ -12,7 +12,8 @@ var FeedbackFlag = function FeedbackFlag(_ref) {
|
|
|
12
12
|
formatMessage = _useIntl.formatMessage;
|
|
13
13
|
return /*#__PURE__*/React.createElement(AutoDismissFlag, {
|
|
14
14
|
icon: /*#__PURE__*/React.createElement(SuccessIcon, {
|
|
15
|
-
|
|
15
|
+
spacing: "spacious",
|
|
16
|
+
color: "var(--ds-icon-success, ".concat(G300, ")"),
|
|
16
17
|
label: "Success"
|
|
17
18
|
}),
|
|
18
19
|
id: "feedbackSent",
|
|
@@ -13,7 +13,7 @@ import { FormattedMessage, useIntl } from 'react-intl-next';
|
|
|
13
13
|
import Button from '@atlaskit/button/standard-button';
|
|
14
14
|
import { Checkbox } from '@atlaskit/checkbox';
|
|
15
15
|
import Form, { Field, Fieldset, RequiredAsterisk } from '@atlaskit/form';
|
|
16
|
-
import EditorCloseIcon from '@atlaskit/icon/
|
|
16
|
+
import EditorCloseIcon from '@atlaskit/icon/core/migration/close--editor-close';
|
|
17
17
|
import Link from '@atlaskit/link';
|
|
18
18
|
import Modal, { ModalBody, ModalFooter, ModalHeader, ModalTitle } from '@atlaskit/modal-dialog';
|
|
19
19
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
@@ -143,8 +143,9 @@ var FeedbackForm = function FeedbackForm(_ref) {
|
|
|
143
143
|
onClick: onClose,
|
|
144
144
|
appearance: 'subtle'
|
|
145
145
|
}, /*#__PURE__*/React.createElement(EditorCloseIcon, {
|
|
146
|
+
spacing: "spacious",
|
|
146
147
|
label: "Close Modal",
|
|
147
|
-
|
|
148
|
+
color: "var(--ds-text-subtle, ".concat(N500, ")")
|
|
148
149
|
}))), /*#__PURE__*/React.createElement(ModalBody, null, /*#__PURE__*/React.createElement("p", {
|
|
149
150
|
style: {
|
|
150
151
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/feedback-collector",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.13.1",
|
|
4
4
|
"description": "A component that collects feedback across Atlassian products.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -38,19 +38,19 @@
|
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@atlaskit/button": "^20.
|
|
41
|
+
"@atlaskit/button": "^20.2.0",
|
|
42
42
|
"@atlaskit/checkbox": "^14.0.0",
|
|
43
43
|
"@atlaskit/flag": "^15.8.0",
|
|
44
44
|
"@atlaskit/form": "^10.5.0",
|
|
45
45
|
"@atlaskit/icon": "^22.18.0",
|
|
46
46
|
"@atlaskit/link": "^1.2.1",
|
|
47
|
-
"@atlaskit/modal-dialog": "^12.
|
|
47
|
+
"@atlaskit/modal-dialog": "^12.17.0",
|
|
48
48
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
49
49
|
"@atlaskit/section-message": "^6.6.0",
|
|
50
50
|
"@atlaskit/select": "^17.19.0",
|
|
51
51
|
"@atlaskit/textarea": "^5.6.0",
|
|
52
52
|
"@atlaskit/theme": "^13.0.0",
|
|
53
|
-
"@atlaskit/tokens": "^
|
|
53
|
+
"@atlaskit/tokens": "^2.0.0",
|
|
54
54
|
"@babel/runtime": "^7.0.0",
|
|
55
55
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
56
56
|
},
|