@atlaskit/contextual-survey 2.2.2 → 2.2.4

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,22 +1,35 @@
1
1
  # @atlaskit/contextual-survey
2
2
 
3
+ ## 2.2.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 2.2.3
10
+
11
+ ### Patch Changes
12
+
13
+ - [#38162](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38162) [`fd6bb9c9184`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd6bb9c9184) - Delete version.json
14
+ - Updated dependencies
15
+
3
16
  ## 2.2.2
4
17
 
5
18
  ### Patch Changes
6
19
 
7
- - [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
20
+ - [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793) [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
8
21
 
9
22
  ## 2.2.1
10
23
 
11
24
  ### Patch Changes
12
25
 
13
- - [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
26
+ - [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649) [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
14
27
 
15
28
  ## 2.2.0
16
29
 
17
30
  ### Minor Changes
18
31
 
19
- - [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
32
+ - [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258) [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
20
33
 
21
34
  ### Patch Changes
22
35
 
@@ -26,13 +39,13 @@
26
39
 
27
40
  ### Patch Changes
28
41
 
29
- - [`f655e8ed2d2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f655e8ed2d2) - Internal change to enforce token usage for spacing properties. There is no expected visual or behaviour change.
42
+ - [#33208](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33208) [`f655e8ed2d2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f655e8ed2d2) - Internal change to enforce token usage for spacing properties. There is no expected visual or behaviour change.
30
43
 
31
44
  ## 2.1.11
32
45
 
33
46
  ### Patch Changes
34
47
 
35
- - [`edf6745b956`](https://bitbucket.org/atlassian/atlassian-frontend/commits/edf6745b956) - Migrated use of `gridSize` to space tokens where possible. There is no expected visual or behaviour change.
48
+ - [#32162](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32162) [`edf6745b956`](https://bitbucket.org/atlassian/atlassian-frontend/commits/edf6745b956) - Migrated use of `gridSize` to space tokens where possible. There is no expected visual or behaviour change.
36
49
 
37
50
  ## 2.1.10
38
51
 
@@ -44,7 +57,7 @@
44
57
 
45
58
  ### Patch Changes
46
59
 
47
- - [`6455cf006b3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6455cf006b3) - Builds for this package now pass through a tokens babel plugin, removing runtime invocations of the tokens() function and improving performance.
60
+ - [#28324](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28324) [`6455cf006b3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6455cf006b3) - Builds for this package now pass through a tokens babel plugin, removing runtime invocations of the tokens() function and improving performance.
48
61
 
49
62
  ## 2.1.8
50
63
 
@@ -68,13 +81,13 @@
68
81
 
69
82
  ### Patch Changes
70
83
 
71
- - [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
84
+ - [#24874](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24874) [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
72
85
 
73
86
  ## 2.1.4
74
87
 
75
88
  ### Patch Changes
76
89
 
77
- - [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
90
+ - [#24492](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24492) [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
78
91
 
79
92
  ## 2.1.3
80
93
 
@@ -86,7 +99,7 @@
86
99
 
87
100
  ### Patch Changes
88
101
 
89
- - [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
102
+ - [#20650](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20650) [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
90
103
  - Updated dependencies
91
104
 
92
105
  ## 2.1.1
@@ -99,7 +112,7 @@
99
112
 
100
113
  ### Minor Changes
101
114
 
102
- - [`d943a822f6a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d943a822f6a) - [ux] Instrumented `@atlaskit/contextual-survey` with the new theming package, `@atlaskit/tokens`.
115
+ - [#19924](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/19924) [`d943a822f6a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d943a822f6a) - [ux] Instrumented `@atlaskit/contextual-survey` with the new theming package, `@atlaskit/tokens`.
103
116
 
104
117
  New tokens will be visible only in applications configured to use the new Tokens API (currently in alpha).
105
118
  These changes are intended to be interoperable with the legacy theme implementation. Legacy dark mode users should expect no visual or breaking changes.
@@ -120,7 +133,7 @@
120
133
 
121
134
  ### Patch Changes
122
135
 
123
- - [`cad4332df17`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cad4332df17) - [ux] Fixed flickering in context survey by removing theme overrides
136
+ - [#9510](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/9510) [`cad4332df17`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cad4332df17) - [ux] Fixed flickering in context survey by removing theme overrides
124
137
  - Updated dependencies
125
138
 
126
139
  ## 2.0.8
@@ -133,7 +146,7 @@
133
146
 
134
147
  ### Patch Changes
135
148
 
136
- - [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile packages using babel rather than tsc
149
+ - [#5857](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5857) [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile packages using babel rather than tsc
137
150
 
138
151
  ## 2.0.6
139
152
 
@@ -145,7 +158,7 @@
145
158
 
146
159
  ### Patch Changes
147
160
 
148
- - [`5f58283e1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f58283e1f) - Export types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules compiler option.
161
+ - [#5497](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5497) [`5f58283e1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f58283e1f) - Export types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules compiler option.
149
162
  This requires version 3.8 of Typescript, read more about how we handle Typescript versions here: https://atlaskit.atlassian.com/get-started
150
163
  Also add `typescript` to `devDependencies` to denote version that the package was built with.
151
164
 
@@ -171,7 +184,7 @@
171
184
 
172
185
  ### Patch Changes
173
186
 
174
- - [`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0
187
+ - [#3885](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3885) [`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0
175
188
 
176
189
  Since tslib is a dependency for all our packages we recommend that products also follow this tslib upgrade
177
190
  to prevent duplicates of tslib being bundled.
@@ -180,7 +193,7 @@
180
193
 
181
194
  ### Major Changes
182
195
 
183
- - [`87f4720f27`](https://bitbucket.org/atlassian/atlassian-frontend/commits/87f4720f27) - Officially dropping IE11 support, from this version onwards there are no warranties of the package working in IE11.
196
+ - [#3335](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3335) [`87f4720f27`](https://bitbucket.org/atlassian/atlassian-frontend/commits/87f4720f27) - Officially dropping IE11 support, from this version onwards there are no warranties of the package working in IE11.
184
197
  For more information see: https://community.developer.atlassian.com/t/atlaskit-to-drop-support-for-internet-explorer-11-from-1st-july-2020/39534
185
198
 
186
199
  ### Patch Changes
@@ -191,13 +204,13 @@
191
204
 
192
205
  ### Patch Changes
193
206
 
194
- - [`3ba793cffa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3ba793cffa) - Update all the theme imports in contextual-survey
207
+ - [#2884](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2884) [`3ba793cffa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3ba793cffa) - Update all the theme imports in contextual-survey
195
208
 
196
209
  ## 1.0.9
197
210
 
198
211
  ### Patch Changes
199
212
 
200
- - [`4560b65a4f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4560b65a4f) - upgrade react-transition-group to latest
213
+ - [#2677](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2677) [`4560b65a4f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4560b65a4f) - upgrade react-transition-group to latest
201
214
 
202
215
  ## 1.0.8
203
216
 
@@ -18,17 +18,15 @@ var _SurveyForm = _interopRequireDefault(require("./SurveyForm"));
18
18
  var _useEscapeToDismiss = _interopRequireDefault(require("./useEscapeToDismiss"));
19
19
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
20
20
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
21
- var DismissTrigger = /*#__PURE__*/function (DismissTrigger) {
21
+ var DismissTrigger = exports.DismissTrigger = /*#__PURE__*/function (DismissTrigger) {
22
22
  DismissTrigger["AutoDismiss"] = "AUTO_DISMISS";
23
23
  DismissTrigger["Manual"] = "MANUAL";
24
24
  DismissTrigger["Finished"] = "FINISHED";
25
25
  DismissTrigger["Unmount"] = "UNMOUNT";
26
26
  return DismissTrigger;
27
27
  }({});
28
- exports.DismissTrigger = DismissTrigger;
29
- var AUTO_DISAPPEAR_DURATION = 8000;
30
- exports.AUTO_DISAPPEAR_DURATION = AUTO_DISAPPEAR_DURATION;
31
- var _default = function _default(_ref) {
28
+ var AUTO_DISAPPEAR_DURATION = exports.AUTO_DISAPPEAR_DURATION = 8000;
29
+ var _default = exports.default = function _default(_ref) {
32
30
  var question = _ref.question,
33
31
  statement = _ref.statement,
34
32
  onDismiss = _ref.onDismiss,
@@ -225,5 +223,4 @@ var _default = function _default(_ref) {
225
223
  return /*#__PURE__*/_react.default.createElement(_SurveyContainer.default, {
226
224
  onDismiss: manualDismiss
227
225
  }, content);
228
- };
229
- exports.default = _default;
226
+ };
@@ -11,9 +11,8 @@ var _constants = require("@atlaskit/theme/constants");
11
11
  var _SuccessContainer = _interopRequireDefault(require("./SuccessContainer"));
12
12
  var _templateObject;
13
13
  /** @jsx jsx */
14
- var _default = function _default() {
14
+ var _default = exports.default = function _default() {
15
15
  return (0, _core.jsx)(_SuccessContainer.default, null, (0, _core.jsx)("h1", {
16
16
  css: (0, _core.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n font-size: ", "px;\n font-weight: 600;\n margin-top: 0;\n line-height: ", ";\n "])), (0, _constants.fontSize)(), "var(--ds-font-lineHeight-300, 24px)")
17
17
  }, "Thanks for your feedback"));
18
- };
19
- exports.default = _default;
18
+ };
@@ -13,7 +13,7 @@ var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
13
13
  var _templateObject, _templateObject2, _templateObject3, _templateObject4;
14
14
  /** @jsx jsx */
15
15
  var tooltipMessage = ['Strongly disagree', 'Disagree', 'Slightly disagree', 'Neutral', 'Slightly agree', 'Agree', 'Strongly agree'];
16
- var _default = function _default(_ref) {
16
+ var _default = exports.default = function _default(_ref) {
17
17
  var onChange = _ref.onChange,
18
18
  value = _ref.value;
19
19
  return (0, _core.jsx)("div", null, (0, _core.jsx)("div", {
@@ -45,5 +45,4 @@ var _default = function _default(_ref) {
45
45
  }, "Neutral"), (0, _core.jsx)("span", {
46
46
  css: (0, _core.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n text-align: right;\n "])))
47
47
  }, "Strongly agree")));
48
- };
49
- exports.default = _default;
48
+ };
@@ -16,7 +16,7 @@ var _constants = require("@atlaskit/theme/constants");
16
16
  var _SuccessContainer = _interopRequireDefault(require("./SuccessContainer"));
17
17
  var _templateObject, _templateObject2;
18
18
  /** @jsx jsx */
19
- var _default = function _default(_ref) {
19
+ var _default = exports.default = function _default(_ref) {
20
20
  var onAnswer = _ref.onAnswer;
21
21
  var _useState = (0, _react.useState)(null),
22
22
  _useState2 = (0, _slicedToArray2.default)(_useState, 2),
@@ -62,5 +62,4 @@ var _default = function _default(_ref) {
62
62
  isDisabled: isDisabled,
63
63
  isLoading: pending === 'yes'
64
64
  }, "Yes, sign me up")));
65
- };
66
- exports.default = _default;
65
+ };
@@ -12,10 +12,9 @@ var _constants = require("@atlaskit/theme/constants");
12
12
  var _SuccessContainer = _interopRequireDefault(require("./SuccessContainer"));
13
13
  var _templateObject;
14
14
  /** @jsx jsx */
15
- var _default = function _default(_ref) {
15
+ var _default = exports.default = function _default(_ref) {
16
16
  (0, _objectDestructuringEmpty2.default)(_ref);
17
17
  return (0, _core.jsx)(_SuccessContainer.default, null, (0, _core.jsx)("h1", {
18
18
  css: (0, _core.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n font-size: ", "px;\n font-weight: 600;\n line-height: ", ";\n margin: 0;\n "])), (0, _constants.fontSize)(), "var(--ds-font-lineHeight-300, 24px)")
19
19
  }, "Thanks for signing up"), (0, _core.jsx)("p", null, "We may reach out to you in the future to participate in additional research."));
20
- };
21
- exports.default = _default;
20
+ };
@@ -11,7 +11,7 @@ var _checkCircle = _interopRequireDefault(require("@atlaskit/icon/glyph/check-ci
11
11
  var _colors = require("@atlaskit/theme/colors");
12
12
  var _templateObject, _templateObject2;
13
13
  /** @jsx jsx */
14
- var _default = function _default(_ref) {
14
+ var _default = exports.default = function _default(_ref) {
15
15
  var children = _ref.children;
16
16
  return (0, _core.jsx)("section", {
17
17
  css: (0, _core.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n margin-left: ", ";\n "])), "var(--ds-space-500, 40px)")
@@ -22,5 +22,4 @@ var _default = function _default(_ref) {
22
22
  "aria-hidden": true,
23
23
  primaryColor: "var(--ds-icon-success, ".concat(_colors.G300, ")")
24
24
  })), children);
25
- };
26
- exports.default = _default;
25
+ };
@@ -14,7 +14,7 @@ var _constants = require("@atlaskit/theme/constants");
14
14
  var _constants2 = require("../constants");
15
15
  var _templateObject, _templateObject2;
16
16
  /** @jsx jsx */
17
- var _default = function _default(_ref) {
17
+ var _default = exports.default = function _default(_ref) {
18
18
  var children = _ref.children,
19
19
  onDismiss = _ref.onDismiss;
20
20
  return (0, _core.jsx)("div", {
@@ -30,5 +30,4 @@ var _default = function _default(_ref) {
30
30
  appearance: "subtle",
31
31
  onClick: onDismiss
32
32
  })), children);
33
- };
34
- exports.default = _default;
33
+ };
@@ -37,7 +37,7 @@ var getExpandedHeight = function getExpandedHeight(ref, state) {
37
37
  }
38
38
  };
39
39
  var transitionDuration = 200;
40
- var _default = function _default(_ref) {
40
+ var _default = exports.default = function _default(_ref) {
41
41
  var question = _ref.question,
42
42
  statement = _ref.statement,
43
43
  textPlaceholder = _ref.textPlaceholder,
@@ -129,5 +129,4 @@ var _default = function _default(_ref) {
129
129
  }, "Submit")));
130
130
  }));
131
131
  }));
132
- };
133
- exports.default = _default;
132
+ };
@@ -6,8 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = useEscapeToDismiss;
7
7
  exports.escape = void 0;
8
8
  var _react = require("react");
9
- var escape = 27;
10
- exports.escape = escape;
9
+ var escape = exports.escape = 27;
11
10
  function bind(target, eventName, handler, options) {
12
11
  target.addEventListener(eventName, handler, options);
13
12
  return function unbind() {
@@ -5,7 +5,5 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.surveyOffset = exports.surveyInnerWidth = void 0;
7
7
  var _constants = require("@atlaskit/theme/constants");
8
- var surveyInnerWidth = (0, _constants.gridSize)() * 55; // 440
9
- exports.surveyInnerWidth = surveyInnerWidth;
10
- var surveyOffset = (0, _constants.gridSize)() * 6; // 48
11
- exports.surveyOffset = surveyOffset;
8
+ var surveyInnerWidth = exports.surveyInnerWidth = (0, _constants.gridSize)() * 55; // 440
9
+ var surveyOffset = exports.surveyOffset = (0, _constants.gridSize)() * 6; // 48
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/contextual-survey",
3
- "version": "2.2.2",
3
+ "version": "2.2.4",
4
4
  "description": "A React component used to ask the user for feedback",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -31,13 +31,13 @@
31
31
  }
32
32
  },
33
33
  "dependencies": {
34
- "@atlaskit/button": "^16.7.0",
35
- "@atlaskit/checkbox": "^12.6.0",
34
+ "@atlaskit/button": "^16.13.0",
35
+ "@atlaskit/checkbox": "^13.0.0",
36
36
  "@atlaskit/form": "^8.11.0",
37
37
  "@atlaskit/icon": "^21.12.0",
38
- "@atlaskit/textarea": "^4.6.0",
39
- "@atlaskit/theme": "^12.5.0",
40
- "@atlaskit/tokens": "^1.4.0",
38
+ "@atlaskit/textarea": "^4.7.0",
39
+ "@atlaskit/theme": "^12.6.0",
40
+ "@atlaskit/tokens": "^1.28.0",
41
41
  "@atlaskit/tooltip": "^17.8.0",
42
42
  "@babel/runtime": "^7.0.0",
43
43
  "@emotion/core": "^10.0.9",
@@ -47,10 +47,9 @@
47
47
  "react": "^16.8.0"
48
48
  },
49
49
  "devDependencies": {
50
- "@atlaskit/checkbox": "^12.6.0",
51
- "@atlaskit/docs": "*",
52
50
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
53
51
  "@testing-library/react": "^12.1.5",
52
+ "@types/react-transition-group": "^2.0.6",
54
53
  "typescript": "~4.9.5"
55
54
  },
56
55
  "keywords": [
@@ -1,5 +0,0 @@
1
- {
2
- "name": "@atlaskit/contextual-survey",
3
- "version": "2.2.2",
4
- "sideEffects": false
5
- }
@@ -1,5 +0,0 @@
1
- {
2
- "name": "@atlaskit/contextual-survey",
3
- "version": "2.2.2",
4
- "sideEffects": false
5
- }
@@ -1,5 +0,0 @@
1
- {
2
- "name": "@atlaskit/contextual-survey",
3
- "version": "2.2.2",
4
- "sideEffects": false
5
- }