@atlaskit/contextual-survey 2.3.2 → 2.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 +14 -0
- package/dist/cjs/components/ContextualSurvey.js +1 -1
- package/dist/cjs/components/SuccessContainer.js +6 -4
- package/dist/cjs/components/SurveyContainer.js +3 -3
- package/dist/cjs/components/SurveyForm.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/es2019/components/SuccessContainer.js +5 -3
- package/dist/es2019/components/SurveyContainer.js +2 -2
- package/dist/esm/components/SuccessContainer.js +5 -3
- package/dist/esm/components/SurveyContainer.js +2 -2
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/contextual-survey
|
|
2
2
|
|
|
3
|
+
## 2.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#147230](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/147230)
|
|
8
|
+
[`0450aceb2400a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0450aceb2400a) -
|
|
9
|
+
Enable new icons behind a feature flag.
|
|
10
|
+
|
|
11
|
+
## 2.3.3
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 2.3.2
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -17,7 +17,7 @@ var _SurveyContainer = _interopRequireDefault(require("./SurveyContainer"));
|
|
|
17
17
|
var _SurveyForm = _interopRequireDefault(require("./SurveyForm"));
|
|
18
18
|
var _useEscapeToDismiss = _interopRequireDefault(require("./useEscapeToDismiss"));
|
|
19
19
|
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); }
|
|
20
|
-
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 &&
|
|
20
|
+
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; }
|
|
21
21
|
var DismissTrigger = exports.DismissTrigger = /*#__PURE__*/function (DismissTrigger) {
|
|
22
22
|
DismissTrigger["AutoDismiss"] = "AUTO_DISMISS";
|
|
23
23
|
DismissTrigger["Manual"] = "MANUAL";
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = require("@emotion/react");
|
|
9
|
-
var
|
|
9
|
+
var _successCheckCircle = _interopRequireDefault(require("@atlaskit/icon/core/migration/success--check-circle"));
|
|
10
10
|
var _colors = require("@atlaskit/theme/colors");
|
|
11
11
|
/**
|
|
12
12
|
* @jsxRuntime classic
|
|
@@ -24,12 +24,14 @@ var _default = exports.default = function _default(_ref) {
|
|
|
24
24
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
25
25
|
css: (0, _react.css)({
|
|
26
26
|
position: 'absolute',
|
|
27
|
-
top: "var(--ds-space-
|
|
27
|
+
top: "var(--ds-space-250, 20px)",
|
|
28
28
|
left: "var(--ds-space-300, 24px)"
|
|
29
29
|
})
|
|
30
|
-
}, (0, _react.jsx)(
|
|
30
|
+
}, (0, _react.jsx)(_successCheckCircle.default, {
|
|
31
|
+
spacing: "spacious",
|
|
31
32
|
label: "",
|
|
32
33
|
"aria-hidden": true,
|
|
33
|
-
|
|
34
|
+
color: "var(--ds-icon-success, ".concat(_colors.G300, ")"),
|
|
35
|
+
LEGACY_margin: "4px 0 0 0"
|
|
34
36
|
})), children);
|
|
35
37
|
};
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = require("@emotion/react");
|
|
9
9
|
var _customThemeButton = _interopRequireDefault(require("@atlaskit/button/custom-theme-button"));
|
|
10
|
-
var
|
|
10
|
+
var _closeCross = _interopRequireDefault(require("@atlaskit/icon/core/migration/close--cross"));
|
|
11
11
|
var _colors = require("@atlaskit/theme/colors");
|
|
12
12
|
var _constants = require("@atlaskit/theme/constants");
|
|
13
13
|
var _constants2 = require("../constants");
|
|
@@ -38,9 +38,9 @@ var _default = exports.default = function _default(_ref) {
|
|
|
38
38
|
right: "var(--ds-space-200, 16px)"
|
|
39
39
|
})
|
|
40
40
|
}, (0, _react.jsx)(_customThemeButton.default, {
|
|
41
|
-
iconBefore: (0, _react.jsx)(
|
|
41
|
+
iconBefore: (0, _react.jsx)(_closeCross.default, {
|
|
42
42
|
label: "",
|
|
43
|
-
|
|
43
|
+
color: "var(--ds-icon-subtle, ".concat(_colors.N50, ")")
|
|
44
44
|
}),
|
|
45
45
|
"aria-label": "Dismiss",
|
|
46
46
|
appearance: "subtle",
|
|
@@ -19,7 +19,7 @@ var _primitives = require("@atlaskit/primitives");
|
|
|
19
19
|
var _textarea = _interopRequireDefault(require("@atlaskit/textarea"));
|
|
20
20
|
var _FeedbackScoreButtons = _interopRequireDefault(require("./FeedbackScoreButtons"));
|
|
21
21
|
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); }
|
|
22
|
-
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 &&
|
|
22
|
+
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; }
|
|
23
23
|
/**
|
|
24
24
|
* @jsxRuntime classic
|
|
25
25
|
* @jsx jsx
|
package/dist/cjs/index.js
CHANGED
|
@@ -26,4 +26,4 @@ Object.defineProperty(exports, "SurveyMarshal", {
|
|
|
26
26
|
var _ContextualSurvey = _interopRequireWildcard(require("./components/ContextualSurvey"));
|
|
27
27
|
var _SurveyMarshal = _interopRequireDefault(require("./components/SurveyMarshal"));
|
|
28
28
|
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); }
|
|
29
|
-
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 &&
|
|
29
|
+
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; }
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
6
|
import { css, jsx } from '@emotion/react';
|
|
7
|
-
import CheckCircleIcon from '@atlaskit/icon/
|
|
7
|
+
import CheckCircleIcon from '@atlaskit/icon/core/migration/success--check-circle';
|
|
8
8
|
import { G300 } from '@atlaskit/theme/colors';
|
|
9
9
|
export default (({
|
|
10
10
|
children
|
|
@@ -17,11 +17,13 @@ export default (({
|
|
|
17
17
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
18
18
|
css: css({
|
|
19
19
|
position: 'absolute',
|
|
20
|
-
top: "var(--ds-space-
|
|
20
|
+
top: "var(--ds-space-250, 20px)",
|
|
21
21
|
left: "var(--ds-space-300, 24px)"
|
|
22
22
|
})
|
|
23
23
|
}, jsx(CheckCircleIcon, {
|
|
24
|
+
spacing: "spacious",
|
|
24
25
|
label: "",
|
|
25
26
|
"aria-hidden": true,
|
|
26
|
-
|
|
27
|
+
color: `var(--ds-icon-success, ${G300})`,
|
|
28
|
+
LEGACY_margin: "4px 0 0 0"
|
|
27
29
|
})), children));
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
6
|
import { css, jsx } from '@emotion/react';
|
|
7
7
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
8
|
-
import CrossIcon from '@atlaskit/icon/
|
|
8
|
+
import CrossIcon from '@atlaskit/icon/core/migration/close--cross';
|
|
9
9
|
import { N0, N50, N50A, N60A } from '@atlaskit/theme/colors';
|
|
10
10
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
11
11
|
import { surveyInnerWidth } from '../constants';
|
|
@@ -34,7 +34,7 @@ export default (({
|
|
|
34
34
|
}, jsx(Button, {
|
|
35
35
|
iconBefore: jsx(CrossIcon, {
|
|
36
36
|
label: "",
|
|
37
|
-
|
|
37
|
+
color: `var(--ds-icon-subtle, ${N50})`
|
|
38
38
|
}),
|
|
39
39
|
"aria-label": "Dismiss",
|
|
40
40
|
appearance: "subtle",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
6
|
import { css, jsx } from '@emotion/react';
|
|
7
|
-
import CheckCircleIcon from '@atlaskit/icon/
|
|
7
|
+
import CheckCircleIcon from '@atlaskit/icon/core/migration/success--check-circle';
|
|
8
8
|
import { G300 } from '@atlaskit/theme/colors';
|
|
9
9
|
export default (function (_ref) {
|
|
10
10
|
var children = _ref.children;
|
|
@@ -17,12 +17,14 @@ export default (function (_ref) {
|
|
|
17
17
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
18
18
|
css: css({
|
|
19
19
|
position: 'absolute',
|
|
20
|
-
top: "var(--ds-space-
|
|
20
|
+
top: "var(--ds-space-250, 20px)",
|
|
21
21
|
left: "var(--ds-space-300, 24px)"
|
|
22
22
|
})
|
|
23
23
|
}, jsx(CheckCircleIcon, {
|
|
24
|
+
spacing: "spacious",
|
|
24
25
|
label: "",
|
|
25
26
|
"aria-hidden": true,
|
|
26
|
-
|
|
27
|
+
color: "var(--ds-icon-success, ".concat(G300, ")"),
|
|
28
|
+
LEGACY_margin: "4px 0 0 0"
|
|
27
29
|
})), children);
|
|
28
30
|
});
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
6
|
import { css, jsx } from '@emotion/react';
|
|
7
7
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
8
|
-
import CrossIcon from '@atlaskit/icon/
|
|
8
|
+
import CrossIcon from '@atlaskit/icon/core/migration/close--cross';
|
|
9
9
|
import { N0, N50, N50A, N60A } from '@atlaskit/theme/colors';
|
|
10
10
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
11
11
|
import { surveyInnerWidth } from '../constants';
|
|
@@ -33,7 +33,7 @@ export default (function (_ref) {
|
|
|
33
33
|
}, jsx(Button, {
|
|
34
34
|
iconBefore: jsx(CrossIcon, {
|
|
35
35
|
label: "",
|
|
36
|
-
|
|
36
|
+
color: "var(--ds-icon-subtle, ".concat(N50, ")")
|
|
37
37
|
}),
|
|
38
38
|
"aria-label": "Dismiss",
|
|
39
39
|
appearance: "subtle",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/contextual-survey",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"description": "A React component used to ask the user for feedback",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -34,16 +34,16 @@
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@atlaskit/button": "^20.
|
|
37
|
+
"@atlaskit/button": "^20.2.0",
|
|
38
38
|
"@atlaskit/checkbox": "^14.0.0",
|
|
39
39
|
"@atlaskit/form": "^10.5.0",
|
|
40
40
|
"@atlaskit/heading": "^2.4.0",
|
|
41
|
-
"@atlaskit/icon": "^22.
|
|
42
|
-
"@atlaskit/primitives": "^12.
|
|
41
|
+
"@atlaskit/icon": "^22.20.0",
|
|
42
|
+
"@atlaskit/primitives": "^12.2.0",
|
|
43
43
|
"@atlaskit/textarea": "^5.6.0",
|
|
44
44
|
"@atlaskit/theme": "^13.0.0",
|
|
45
|
-
"@atlaskit/tokens": "^
|
|
46
|
-
"@atlaskit/tooltip": "^18.
|
|
45
|
+
"@atlaskit/tokens": "^2.0.0",
|
|
46
|
+
"@atlaskit/tooltip": "^18.8.0",
|
|
47
47
|
"@babel/runtime": "^7.0.0",
|
|
48
48
|
"@emotion/react": "^11.7.1",
|
|
49
49
|
"react-transition-group": "^4.4.1"
|