@atlaskit/feedback-collector 10.6.3 → 10.6.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 +6 -0
- package/dist/cjs/components/FeedbackButton.js +2 -2
- package/dist/cjs/components/FeedbackCollector.js +3 -4
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/FeedbackButton.js +1 -1
- package/dist/es2019/components/FeedbackCollector.js +1 -3
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/FeedbackButton.js +1 -1
- package/dist/esm/components/FeedbackCollector.js +3 -4
- package/dist/esm/version.json +1 -1
- package/package.json +3 -2
- package/report.api.md +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -21,14 +21,14 @@ var _flag = require("@atlaskit/flag");
|
|
|
21
21
|
|
|
22
22
|
var _feedback = _interopRequireDefault(require("@atlaskit/icon/glyph/feedback"));
|
|
23
23
|
|
|
24
|
-
var _IntlProviderWithResolvedMessages = require("../components/IntlProviderWithResolvedMessages");
|
|
25
|
-
|
|
26
24
|
var _messages = require("../messages");
|
|
27
25
|
|
|
28
26
|
var _FeedbackCollector = _interopRequireDefault(require("./FeedbackCollector"));
|
|
29
27
|
|
|
30
28
|
var _FeedbackFlag = _interopRequireDefault(require("./FeedbackFlag"));
|
|
31
29
|
|
|
30
|
+
var _IntlProviderWithResolvedMessages = require("./IntlProviderWithResolvedMessages");
|
|
31
|
+
|
|
32
32
|
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); }
|
|
33
33
|
|
|
34
34
|
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; }
|
|
@@ -109,17 +109,16 @@ var FeedbackCollector = /*#__PURE__*/function (_Component) {
|
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
postData = _buffer.Buffer.from(JSON.stringify(body)).toString('base64');
|
|
112
|
-
fetch("".concat(fetchUrl, "/feedback"),
|
|
112
|
+
fetch("".concat(fetchUrl, "/feedback"), {
|
|
113
113
|
method: 'POST',
|
|
114
114
|
headers: {
|
|
115
115
|
'Content-Type': 'application/json'
|
|
116
116
|
},
|
|
117
117
|
body: JSON.stringify({
|
|
118
118
|
data: postData
|
|
119
|
-
})
|
|
120
|
-
}, (0, _isApiGatewayUrl.isApiGatewayUrl)(_this.props.url) ? {
|
|
119
|
+
}),
|
|
121
120
|
credentials: 'include'
|
|
122
|
-
}
|
|
121
|
+
});
|
|
123
122
|
|
|
124
123
|
case 11:
|
|
125
124
|
_this.props.onClose(); // slightly delay confirming submit since we don't wait for the REST call to succeed
|
package/dist/cjs/version.json
CHANGED
|
@@ -3,10 +3,10 @@ import { useIntl } from 'react-intl-next';
|
|
|
3
3
|
import Button from '@atlaskit/button';
|
|
4
4
|
import { FlagGroup } from '@atlaskit/flag';
|
|
5
5
|
import FeedbackIcon from '@atlaskit/icon/glyph/feedback';
|
|
6
|
-
import { IntlProviderWithResolvedMessages } from '../components/IntlProviderWithResolvedMessages';
|
|
7
6
|
import { messages } from '../messages';
|
|
8
7
|
import FeedbackCollector from './FeedbackCollector';
|
|
9
8
|
import FeedbackFlag from './FeedbackFlag';
|
|
9
|
+
import { IntlProviderWithResolvedMessages } from './IntlProviderWithResolvedMessages';
|
|
10
10
|
|
|
11
11
|
/*
|
|
12
12
|
* Standard feedback button with "Give Feedback" as the text and speaker icon on the left of the text
|
package/dist/es2019/version.json
CHANGED
|
@@ -4,10 +4,10 @@ import { useIntl } from 'react-intl-next';
|
|
|
4
4
|
import Button from '@atlaskit/button';
|
|
5
5
|
import { FlagGroup } from '@atlaskit/flag';
|
|
6
6
|
import FeedbackIcon from '@atlaskit/icon/glyph/feedback';
|
|
7
|
-
import { IntlProviderWithResolvedMessages } from '../components/IntlProviderWithResolvedMessages';
|
|
8
7
|
import { messages } from '../messages';
|
|
9
8
|
import FeedbackCollector from './FeedbackCollector';
|
|
10
9
|
import FeedbackFlag from './FeedbackFlag';
|
|
10
|
+
import { IntlProviderWithResolvedMessages } from './IntlProviderWithResolvedMessages';
|
|
11
11
|
|
|
12
12
|
/*
|
|
13
13
|
* Standard feedback button with "Give Feedback" as the text and speaker icon on the left of the text
|
|
@@ -81,17 +81,16 @@ var FeedbackCollector = /*#__PURE__*/function (_Component) {
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
postData = Buffer.from(JSON.stringify(body)).toString('base64');
|
|
84
|
-
fetch("".concat(fetchUrl, "/feedback"),
|
|
84
|
+
fetch("".concat(fetchUrl, "/feedback"), {
|
|
85
85
|
method: 'POST',
|
|
86
86
|
headers: {
|
|
87
87
|
'Content-Type': 'application/json'
|
|
88
88
|
},
|
|
89
89
|
body: JSON.stringify({
|
|
90
90
|
data: postData
|
|
91
|
-
})
|
|
92
|
-
}, isApiGatewayUrl(_this.props.url) ? {
|
|
91
|
+
}),
|
|
93
92
|
credentials: 'include'
|
|
94
|
-
}
|
|
93
|
+
});
|
|
95
94
|
|
|
96
95
|
case 11:
|
|
97
96
|
_this.props.onClose(); // slightly delay confirming submit since we don't wait for the REST call to succeed
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/feedback-collector",
|
|
3
|
-
"version": "10.6.
|
|
3
|
+
"version": "10.6.4",
|
|
4
4
|
"description": "A component that collects feedback across Atlassian products.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
"typesVersions": {
|
|
16
16
|
">=4.0 <4.5": {
|
|
17
17
|
"*": [
|
|
18
|
-
"dist/types-ts4.0/*"
|
|
18
|
+
"dist/types-ts4.0/*",
|
|
19
|
+
"dist/types-ts4.0/index.d.ts"
|
|
19
20
|
]
|
|
20
21
|
}
|
|
21
22
|
},
|
package/report.api.md
CHANGED