@atlaskit/give-kudos 2.1.4 → 2.1.5
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 +79 -24
- package/dist/cjs/ui/GiveKudosLauncher/main.js +1 -1
- package/dist/es2019/ui/GiveKudosLauncher/main.js +2 -0
- package/dist/esm/ui/GiveKudosLauncher/main.js +2 -0
- package/dist/types/common/utils/fetch-messages-for-locale.d.ts +1 -1
- package/dist/types/ui/GiveKudosLauncher/main.d.ts +1 -1
- package/dist/types-ts4.5/common/utils/fetch-messages-for-locale.d.ts +1 -1
- package/dist/types-ts4.5/ui/GiveKudosLauncher/main.d.ts +1 -1
- package/package.json +103 -105
- package/report.api.md +47 -50
package/CHANGELOG.md
CHANGED
|
@@ -1,22 +1,35 @@
|
|
|
1
1
|
# @atlassian/give-kudos
|
|
2
2
|
|
|
3
|
+
## 2.1.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
3
9
|
## 2.1.4
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
6
12
|
|
|
7
|
-
- [#92007](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92007)
|
|
13
|
+
- [#92007](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92007)
|
|
14
|
+
[`85525725cb0d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/85525725cb0d) -
|
|
15
|
+
Migrated to the new button component
|
|
8
16
|
|
|
9
17
|
## 2.1.3
|
|
10
18
|
|
|
11
19
|
### Patch Changes
|
|
12
20
|
|
|
13
|
-
- [#90546](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/90546)
|
|
21
|
+
- [#90546](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/90546)
|
|
22
|
+
[`e3e2542b4963`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e3e2542b4963) -
|
|
23
|
+
Update TypeScript type parameters when using `FormattedMessage` from `react-intl` to improve
|
|
24
|
+
compatibility with React 18
|
|
14
25
|
|
|
15
26
|
## 2.1.2
|
|
16
27
|
|
|
17
28
|
### Patch Changes
|
|
18
29
|
|
|
19
|
-
- [#78714](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/78714)
|
|
30
|
+
- [#78714](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/78714)
|
|
31
|
+
[`454e72b7bf53`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/454e72b7bf53) -
|
|
32
|
+
[ux] using the intl wrap correctly
|
|
20
33
|
|
|
21
34
|
This changeset exists because a PR touches these packages in a way that doesn't require a release
|
|
22
35
|
|
|
@@ -24,13 +37,17 @@
|
|
|
24
37
|
|
|
25
38
|
### Patch Changes
|
|
26
39
|
|
|
27
|
-
- [#75997](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/75997)
|
|
40
|
+
- [#75997](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/75997)
|
|
41
|
+
[`6d14ed2a344b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6d14ed2a344b) -
|
|
42
|
+
[ux] adding intl wrap
|
|
28
43
|
|
|
29
44
|
## 2.1.0
|
|
30
45
|
|
|
31
46
|
### Minor Changes
|
|
32
47
|
|
|
33
|
-
- [#65577](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65577)
|
|
48
|
+
- [#65577](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65577)
|
|
49
|
+
[`757870c8a6d4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/757870c8a6d4) -
|
|
50
|
+
localise all strings in package
|
|
34
51
|
|
|
35
52
|
## 2.0.4
|
|
36
53
|
|
|
@@ -48,43 +65,57 @@
|
|
|
48
65
|
|
|
49
66
|
### Patch Changes
|
|
50
67
|
|
|
51
|
-
- [#43141](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43141)
|
|
68
|
+
- [#43141](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43141)
|
|
69
|
+
[`90eb988ffd4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/90eb988ffd4) - Add
|
|
70
|
+
typecheck for GiveKudosLauncher JSON.parse call
|
|
52
71
|
|
|
53
72
|
## 2.0.1
|
|
54
73
|
|
|
55
74
|
### Patch Changes
|
|
56
75
|
|
|
57
|
-
- [#38301](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38301)
|
|
76
|
+
- [#38301](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38301)
|
|
77
|
+
[`7490bbf65f2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7490bbf65f2) -
|
|
78
|
+
Exporting types
|
|
58
79
|
|
|
59
80
|
## 2.0.0
|
|
60
81
|
|
|
61
82
|
### Major Changes
|
|
62
83
|
|
|
63
|
-
- [#36918](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/36918)
|
|
84
|
+
- [#36918](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/36918)
|
|
85
|
+
[`4ebab06438a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4ebab06438a) - [ux]
|
|
86
|
+
Added types for the flag event listener. Added new flags for jira kudos success and failure.
|
|
64
87
|
|
|
65
88
|
## 1.1.3
|
|
66
89
|
|
|
67
90
|
### Patch Changes
|
|
68
91
|
|
|
69
|
-
- [#34443](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34443)
|
|
92
|
+
- [#34443](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34443)
|
|
93
|
+
[`61cb5313358`](https://bitbucket.org/atlassian/atlassian-frontend/commits/61cb5313358) - Removing
|
|
94
|
+
unused dependencies and dev dependencies
|
|
70
95
|
|
|
71
96
|
## 1.1.2
|
|
72
97
|
|
|
73
98
|
### Patch Changes
|
|
74
99
|
|
|
75
|
-
- [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793)
|
|
100
|
+
- [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793)
|
|
101
|
+
[`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure
|
|
102
|
+
legacy types are published for TS 4.5-4.8
|
|
76
103
|
|
|
77
104
|
## 1.1.1
|
|
78
105
|
|
|
79
106
|
### Patch Changes
|
|
80
107
|
|
|
81
|
-
- [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649)
|
|
108
|
+
- [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649)
|
|
109
|
+
[`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade
|
|
110
|
+
Typescript from `4.5.5` to `4.9.5`
|
|
82
111
|
|
|
83
112
|
## 1.1.0
|
|
84
113
|
|
|
85
114
|
### Minor Changes
|
|
86
115
|
|
|
87
|
-
- [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258)
|
|
116
|
+
- [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258)
|
|
117
|
+
[`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip
|
|
118
|
+
minor dependency bump
|
|
88
119
|
|
|
89
120
|
### Patch Changes
|
|
90
121
|
|
|
@@ -94,7 +125,9 @@
|
|
|
94
125
|
|
|
95
126
|
### Patch Changes
|
|
96
127
|
|
|
97
|
-
- [#30930](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/30930)
|
|
128
|
+
- [#30930](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/30930)
|
|
129
|
+
[`97a77b71c06`](https://bitbucket.org/atlassian/atlassian-frontend/commits/97a77b71c06) - Remove
|
|
130
|
+
unneded @emotion/core devDep.
|
|
98
131
|
|
|
99
132
|
## 1.0.5
|
|
100
133
|
|
|
@@ -112,7 +145,10 @@
|
|
|
112
145
|
|
|
113
146
|
### Patch Changes
|
|
114
147
|
|
|
115
|
-
- [#28324](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28324)
|
|
148
|
+
- [#28324](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28324)
|
|
149
|
+
[`6455cf006b3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6455cf006b3) - Builds
|
|
150
|
+
for this package now pass through a tokens babel plugin, removing runtime invocations of the
|
|
151
|
+
tokens() function and improving performance.
|
|
116
152
|
|
|
117
153
|
## 1.0.2
|
|
118
154
|
|
|
@@ -130,7 +166,9 @@
|
|
|
130
166
|
|
|
131
167
|
### Major Changes
|
|
132
168
|
|
|
133
|
-
- [#27889](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/27889)
|
|
169
|
+
- [#27889](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/27889)
|
|
170
|
+
[`e4c65882fae`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e4c65882fae) -
|
|
171
|
+
Migrating from styled-components to emotion to fix VULN-1026121
|
|
134
172
|
|
|
135
173
|
## 0.8.1
|
|
136
174
|
|
|
@@ -142,52 +180,69 @@
|
|
|
142
180
|
|
|
143
181
|
### Minor Changes
|
|
144
182
|
|
|
145
|
-
- [#25940](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/25940)
|
|
183
|
+
- [#25940](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/25940)
|
|
184
|
+
[`62d324028bb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/62d324028bb) - Set z
|
|
185
|
+
index for kudos drawer to modal layer
|
|
146
186
|
|
|
147
187
|
## 0.7.0
|
|
148
188
|
|
|
149
189
|
### Minor Changes
|
|
150
190
|
|
|
151
|
-
- [#23625](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/23625)
|
|
191
|
+
- [#23625](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/23625)
|
|
192
|
+
[`8561663af05`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8561663af05) - Add
|
|
193
|
+
analytics when kudos drawer opened
|
|
152
194
|
|
|
153
195
|
## 0.6.0
|
|
154
196
|
|
|
155
197
|
### Minor Changes
|
|
156
198
|
|
|
157
|
-
- [#23706](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/23706)
|
|
199
|
+
- [#23706](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/23706)
|
|
200
|
+
[`5f8c2104be0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f8c2104be0) - [ux] Add
|
|
201
|
+
icon to kudos created flag and increase kudos drawer z index
|
|
158
202
|
|
|
159
203
|
## 0.5.0
|
|
160
204
|
|
|
161
205
|
### Minor Changes
|
|
162
206
|
|
|
163
|
-
- [#23074](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/23074)
|
|
207
|
+
- [#23074](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/23074)
|
|
208
|
+
[`e5fbc101e73`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e5fbc101e73) - Remove
|
|
209
|
+
analytics prop from give kudos component
|
|
164
210
|
|
|
165
211
|
## 0.4.0
|
|
166
212
|
|
|
167
213
|
### Minor Changes
|
|
168
214
|
|
|
169
|
-
- [#22915](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/22915)
|
|
215
|
+
- [#22915](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/22915)
|
|
216
|
+
[`f0564695480`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f0564695480) - Move
|
|
217
|
+
GiveKudosLauncher into a Portal
|
|
170
218
|
|
|
171
219
|
## 0.3.0
|
|
172
220
|
|
|
173
221
|
### Minor Changes
|
|
174
222
|
|
|
175
|
-
- [#22527](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/22527)
|
|
223
|
+
- [#22527](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/22527)
|
|
224
|
+
[`e2eac5d9f0c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e2eac5d9f0c) - [ux] Add
|
|
225
|
+
lazy loading support
|
|
176
226
|
|
|
177
227
|
## 0.2.0
|
|
178
228
|
|
|
179
229
|
### Minor Changes
|
|
180
230
|
|
|
181
|
-
- [#22495](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/22495)
|
|
231
|
+
- [#22495](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/22495)
|
|
232
|
+
[`dd476d8114a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/dd476d8114a) - [ux]
|
|
233
|
+
Move give kudos to a public package and rename to atlaskit/give-kudos
|
|
182
234
|
|
|
183
235
|
## 0.1.0
|
|
184
236
|
|
|
185
237
|
### Minor Changes
|
|
186
238
|
|
|
187
|
-
- [#22426](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/22426)
|
|
239
|
+
- [#22426](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/22426)
|
|
240
|
+
[`5bf301d7026`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5bf301d7026) - [ux]
|
|
241
|
+
Initial release
|
|
188
242
|
|
|
189
243
|
## 0.0.1
|
|
190
244
|
|
|
191
245
|
### Patch Changes
|
|
192
246
|
|
|
193
|
-
- [`650c976b33d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/650c976b33d) - Initial
|
|
247
|
+
- [`650c976b33d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/650c976b33d) - Initial
|
|
248
|
+
version
|
|
@@ -29,7 +29,7 @@ var _types = require("../../types");
|
|
|
29
29
|
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); }
|
|
30
30
|
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 && Object.prototype.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; }
|
|
31
31
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
32
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /** @jsx jsx */
|
|
32
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
33
33
|
var iframeStyles = (0, _react2.css)({
|
|
34
34
|
border: 0
|
|
35
35
|
});
|
|
@@ -2,6 +2,8 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
/** @jsx jsx */
|
|
3
3
|
|
|
4
4
|
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
5
|
+
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
5
7
|
import { css, jsx } from '@emotion/react';
|
|
6
8
|
import { FormattedMessage, useIntl } from 'react-intl-next';
|
|
7
9
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
@@ -6,6 +6,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
6
6
|
/** @jsx jsx */
|
|
7
7
|
|
|
8
8
|
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
9
|
+
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
11
|
import { css, jsx } from '@emotion/react';
|
|
10
12
|
import { FormattedMessage, useIntl } from 'react-intl-next';
|
|
11
13
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { I18NMessages } from '@atlaskit/intl-messages-provider';
|
|
1
|
+
import { type I18NMessages } from '@atlaskit/intl-messages-provider';
|
|
2
2
|
export declare const fetchMessagesForLocale: (locale: string) => Promise<I18NMessages | undefined>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
|
-
import { GiveKudosDrawerProps } from '../../types';
|
|
3
|
+
import { type GiveKudosDrawerProps } from '../../types';
|
|
4
4
|
declare const ComposedGiveKudosLauncher: (props: GiveKudosDrawerProps) => jsx.JSX.Element;
|
|
5
5
|
export default ComposedGiveKudosLauncher;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { I18NMessages } from '@atlaskit/intl-messages-provider';
|
|
1
|
+
import { type I18NMessages } from '@atlaskit/intl-messages-provider';
|
|
2
2
|
export declare const fetchMessagesForLocale: (locale: string) => Promise<I18NMessages | undefined>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
|
-
import { GiveKudosDrawerProps } from '../../types';
|
|
3
|
+
import { type GiveKudosDrawerProps } from '../../types';
|
|
4
4
|
declare const ComposedGiveKudosLauncher: (props: GiveKudosDrawerProps) => jsx.JSX.Element;
|
|
5
5
|
export default ComposedGiveKudosLauncher;
|
package/package.json
CHANGED
|
@@ -1,106 +1,104 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0"
|
|
106
|
-
}
|
|
2
|
+
"name": "@atlaskit/give-kudos",
|
|
3
|
+
"version": "2.1.5",
|
|
4
|
+
"description": "Give Kudos experience ",
|
|
5
|
+
"author": "Atlassian Pty Ltd",
|
|
6
|
+
"license": "Apache-2.0",
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"registry": "https://registry.npmjs.org/"
|
|
9
|
+
},
|
|
10
|
+
"atlassian": {
|
|
11
|
+
"team": "Team Central",
|
|
12
|
+
"inPublicMirror": false,
|
|
13
|
+
"releaseModel": "continuous",
|
|
14
|
+
"website": {
|
|
15
|
+
"name": "Give Kudos"
|
|
16
|
+
},
|
|
17
|
+
"i18n": true
|
|
18
|
+
},
|
|
19
|
+
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
20
|
+
"main": "dist/cjs/index.js",
|
|
21
|
+
"module": "dist/esm/index.js",
|
|
22
|
+
"module:es2019": "dist/es2019/index.js",
|
|
23
|
+
"types": "dist/types/index.d.ts",
|
|
24
|
+
"typesVersions": {
|
|
25
|
+
">=4.5 <4.9": {
|
|
26
|
+
"*": [
|
|
27
|
+
"dist/types-ts4.5/*",
|
|
28
|
+
"dist/types-ts4.5/index.d.ts"
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"sideEffects": false,
|
|
33
|
+
"atlaskit:src": "src/index.ts",
|
|
34
|
+
"af:exports": {
|
|
35
|
+
".": "./src/index.ts"
|
|
36
|
+
},
|
|
37
|
+
"scripts": {
|
|
38
|
+
"lint": "(cd ../../.. && yarn eslint 'packages/team-central/give-kudos/**/*.{ts,tsx}')",
|
|
39
|
+
"test": "(cd ../../.. && yarn test 'packages/team-central/give-kudos')",
|
|
40
|
+
"typecheck": "NODE_OPTIONS=--max-old-space-size=4096 tsc --noEmit --project ./tsconfig.json"
|
|
41
|
+
},
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"@atlaskit/analytics-next": "^9.3.0",
|
|
44
|
+
"@atlaskit/button": "^18.0.0",
|
|
45
|
+
"@atlaskit/drawer": "^7.12.0",
|
|
46
|
+
"@atlaskit/icon": "^22.4.0",
|
|
47
|
+
"@atlaskit/intl-messages-provider": "^1.0.2",
|
|
48
|
+
"@atlaskit/modal-dialog": "^12.14.0",
|
|
49
|
+
"@atlaskit/portal": "^4.6.0",
|
|
50
|
+
"@atlaskit/theme": "^12.11.0",
|
|
51
|
+
"@atlaskit/tokens": "^1.52.0",
|
|
52
|
+
"@babel/runtime": "^7.0.0",
|
|
53
|
+
"@emotion/react": "^11.7.1",
|
|
54
|
+
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
55
|
+
},
|
|
56
|
+
"peerDependencies": {
|
|
57
|
+
"react": "^16.8.0",
|
|
58
|
+
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
59
|
+
},
|
|
60
|
+
"devDependencies": {
|
|
61
|
+
"@af/integration-testing": "*",
|
|
62
|
+
"@atlaskit/ssr": "*",
|
|
63
|
+
"@testing-library/react": "^12.1.5",
|
|
64
|
+
"react-dom": "^16.8.0",
|
|
65
|
+
"wait-for-expect": "^1.2.0"
|
|
66
|
+
},
|
|
67
|
+
"techstack": {
|
|
68
|
+
"@atlassian/frontend": {
|
|
69
|
+
"code-structure": [
|
|
70
|
+
"tangerine-next"
|
|
71
|
+
],
|
|
72
|
+
"import-structure": [
|
|
73
|
+
"atlassian-conventions"
|
|
74
|
+
],
|
|
75
|
+
"circular-dependencies": [
|
|
76
|
+
"file-and-folder-level"
|
|
77
|
+
]
|
|
78
|
+
},
|
|
79
|
+
"@repo/internal": {
|
|
80
|
+
"analytics": [
|
|
81
|
+
"analytics-next"
|
|
82
|
+
],
|
|
83
|
+
"design-tokens": [
|
|
84
|
+
"color"
|
|
85
|
+
],
|
|
86
|
+
"theming": [
|
|
87
|
+
"react-context"
|
|
88
|
+
],
|
|
89
|
+
"ui-components": [
|
|
90
|
+
"lite-mode"
|
|
91
|
+
],
|
|
92
|
+
"deprecation": [
|
|
93
|
+
"no-deprecated-imports"
|
|
94
|
+
],
|
|
95
|
+
"styling": [
|
|
96
|
+
"emotion",
|
|
97
|
+
"static"
|
|
98
|
+
],
|
|
99
|
+
"imports": [
|
|
100
|
+
"import-no-extraneous-disable-for-examples-and-docs"
|
|
101
|
+
]
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
package/report.api.md
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
## API Report File for "@atlaskit/give-kudos"
|
|
4
4
|
|
|
5
|
-
> Do not edit this file. This report is auto-generated using
|
|
5
|
+
> Do not edit this file. This report is auto-generated using
|
|
6
|
+
> [API Extractor](https://api-extractor.com/).
|
|
6
7
|
> [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
7
8
|
|
|
8
9
|
### Table of contents
|
|
@@ -22,74 +23,70 @@ import { LazyExoticComponent } from 'react';
|
|
|
22
23
|
|
|
23
24
|
// @public (undocumented)
|
|
24
25
|
export interface FlagEvent {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
26
|
+
// (undocumented)
|
|
27
|
+
eventType: FlagEventType;
|
|
28
|
+
// (undocumented)
|
|
29
|
+
jiraKudosFormUrl?: string;
|
|
30
|
+
// (undocumented)
|
|
31
|
+
jiraKudosUrl?: string;
|
|
32
|
+
// (undocumented)
|
|
33
|
+
kudosUuid?: string;
|
|
33
34
|
}
|
|
34
35
|
|
|
35
36
|
// @public (undocumented)
|
|
36
37
|
export enum FlagEventType {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
38
|
+
// (undocumented)
|
|
39
|
+
CLOSE = 'close',
|
|
40
|
+
// (undocumented)
|
|
41
|
+
DIRTY = 'dirty',
|
|
42
|
+
// (undocumented)
|
|
43
|
+
JIRA_KUDOS_CREATED = 'jira-kudos-created',
|
|
44
|
+
// (undocumented)
|
|
45
|
+
JIRA_KUDOS_FAILED = 'jira-kudos-failed',
|
|
46
|
+
// (undocumented)
|
|
47
|
+
KUDOS_CREATED = 'kudos-created',
|
|
47
48
|
}
|
|
48
49
|
|
|
49
50
|
// @public (undocumented)
|
|
50
51
|
export interface GiveKudosDrawerProps {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
52
|
+
// (undocumented)
|
|
53
|
+
addFlag?: (flag: any) => void;
|
|
54
|
+
// (undocumented)
|
|
55
|
+
analyticsSource: string;
|
|
56
|
+
// (undocumented)
|
|
57
|
+
cloudId: string;
|
|
58
|
+
// (undocumented)
|
|
59
|
+
isOpen: boolean;
|
|
60
|
+
// (undocumented)
|
|
61
|
+
onClose: () => void;
|
|
62
|
+
// (undocumented)
|
|
63
|
+
recipient?: KudosRecipient;
|
|
64
|
+
// (undocumented)
|
|
65
|
+
teamCentralBaseUrl: string;
|
|
66
|
+
// (undocumented)
|
|
67
|
+
testId?: string;
|
|
67
68
|
}
|
|
68
69
|
|
|
69
70
|
// @public (undocumented)
|
|
70
|
-
export const GiveKudosLauncher: (
|
|
71
|
-
props: GiveKudosDrawerProps,
|
|
72
|
-
) => jsx.JSX.Element;
|
|
71
|
+
export const GiveKudosLauncher: (props: GiveKudosDrawerProps) => jsx.JSX.Element;
|
|
73
72
|
|
|
74
73
|
// @public (undocumented)
|
|
75
|
-
export const GiveKudosLauncherLazy: LazyExoticComponent<
|
|
76
|
-
(props: GiveKudosDrawerProps) => jsx
|
|
77
|
-
>;
|
|
74
|
+
export const GiveKudosLauncherLazy: LazyExoticComponent<(props: GiveKudosDrawerProps) => jsx>;
|
|
78
75
|
|
|
79
76
|
// @public (undocumented)
|
|
80
77
|
export interface KudosRecipient {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
78
|
+
// (undocumented)
|
|
79
|
+
recipientId: string;
|
|
80
|
+
// (undocumented)
|
|
81
|
+
type: KudosType;
|
|
85
82
|
}
|
|
86
83
|
|
|
87
84
|
// @public (undocumented)
|
|
88
85
|
export enum KudosType {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
86
|
+
// (undocumented)
|
|
87
|
+
INDIVIDUAL = 'individual',
|
|
88
|
+
// (undocumented)
|
|
89
|
+
TEAM = 'team',
|
|
93
90
|
}
|
|
94
91
|
|
|
95
92
|
// (No @packageDocumentation comment for this package)
|
|
@@ -103,7 +100,7 @@ export enum KudosType {
|
|
|
103
100
|
|
|
104
101
|
```json
|
|
105
102
|
{
|
|
106
|
-
|
|
103
|
+
"react": "^16.8.0"
|
|
107
104
|
}
|
|
108
105
|
```
|
|
109
106
|
|