@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 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) [`85525725cb0d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/85525725cb0d) - Migrated to the new button component
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) [`e3e2542b4963`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e3e2542b4963) - Update TypeScript type parameters when using `FormattedMessage` from `react-intl` to improve compatibility with React 18
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) [`454e72b7bf53`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/454e72b7bf53) - [ux] using the intl wrap correctly
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) [`6d14ed2a344b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6d14ed2a344b) - [ux] adding intl wrap
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) [`757870c8a6d4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/757870c8a6d4) - localise all strings in package
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) [`90eb988ffd4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/90eb988ffd4) - Add typecheck for GiveKudosLauncher JSON.parse call
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) [`7490bbf65f2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7490bbf65f2) - Exporting types
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) [`4ebab06438a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4ebab06438a) - [ux] Added types for the flag event listener. Added new flags for jira kudos success and failure.
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) [`61cb5313358`](https://bitbucket.org/atlassian/atlassian-frontend/commits/61cb5313358) - Removing unused dependencies and dev dependencies
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) [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
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) [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
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) [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
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) [`97a77b71c06`](https://bitbucket.org/atlassian/atlassian-frontend/commits/97a77b71c06) - Remove unneded @emotion/core devDep.
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) [`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.
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) [`e4c65882fae`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e4c65882fae) - Migrating from styled-components to emotion to fix VULN-1026121
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) [`62d324028bb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/62d324028bb) - Set z index for kudos drawer to modal layer
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) [`8561663af05`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8561663af05) - Add analytics when kudos drawer opened
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) [`5f8c2104be0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f8c2104be0) - [ux] Add icon to kudos created flag and increase kudos drawer z index
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) [`e5fbc101e73`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e5fbc101e73) - Remove analytics prop from give kudos component
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) [`f0564695480`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f0564695480) - Move GiveKudosLauncher into a Portal
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) [`e2eac5d9f0c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e2eac5d9f0c) - [ux] Add lazy loading support
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) [`dd476d8114a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/dd476d8114a) - [ux] Move give kudos to a public package and rename to atlaskit/give-kudos
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) [`5bf301d7026`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5bf301d7026) - [ux] Initial release
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 version
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
- "name": "@atlaskit/give-kudos",
3
- "version": "2.1.4",
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": "^17.14.0",
45
- "@atlaskit/drawer": "^7.7.0",
46
- "@atlaskit/icon": "^22.1.0",
47
- "@atlaskit/intl-messages-provider": "^1.0.2",
48
- "@atlaskit/modal-dialog": "^12.11.0",
49
- "@atlaskit/portal": "^4.4.0",
50
- "@atlaskit/theme": "^12.7.0",
51
- "@atlaskit/tokens": "^1.43.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
- "@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
64
- "@testing-library/react": "^12.1.5",
65
- "react-dom": "^16.8.0",
66
- "wait-for-expect": "^1.2.0"
67
- },
68
- "techstack": {
69
- "@atlassian/frontend": {
70
- "code-structure": [
71
- "tangerine-next"
72
- ],
73
- "import-structure": [
74
- "atlassian-conventions"
75
- ],
76
- "circular-dependencies": [
77
- "file-and-folder-level"
78
- ]
79
- },
80
- "@repo/internal": {
81
- "analytics": [
82
- "analytics-next"
83
- ],
84
- "design-tokens": [
85
- "color"
86
- ],
87
- "theming": [
88
- "react-context"
89
- ],
90
- "ui-components": [
91
- "lite-mode"
92
- ],
93
- "deprecation": [
94
- "no-deprecated-imports"
95
- ],
96
- "styling": [
97
- "emotion",
98
- "static"
99
- ],
100
- "imports": [
101
- "import-no-extraneous-disable-for-examples-and-docs"
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 [API Extractor](https://api-extractor.com/).
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
- // (undocumented)
26
- eventType: FlagEventType;
27
- // (undocumented)
28
- jiraKudosFormUrl?: string;
29
- // (undocumented)
30
- jiraKudosUrl?: string;
31
- // (undocumented)
32
- kudosUuid?: string;
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
- // (undocumented)
38
- CLOSE = 'close',
39
- // (undocumented)
40
- DIRTY = 'dirty',
41
- // (undocumented)
42
- JIRA_KUDOS_CREATED = 'jira-kudos-created',
43
- // (undocumented)
44
- JIRA_KUDOS_FAILED = 'jira-kudos-failed',
45
- // (undocumented)
46
- KUDOS_CREATED = 'kudos-created',
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
- // (undocumented)
52
- addFlag?: (flag: any) => void;
53
- // (undocumented)
54
- analyticsSource: string;
55
- // (undocumented)
56
- cloudId: string;
57
- // (undocumented)
58
- isOpen: boolean;
59
- // (undocumented)
60
- onClose: () => void;
61
- // (undocumented)
62
- recipient?: KudosRecipient;
63
- // (undocumented)
64
- teamCentralBaseUrl: string;
65
- // (undocumented)
66
- testId?: string;
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
- // (undocumented)
82
- recipientId: string;
83
- // (undocumented)
84
- type: KudosType;
78
+ // (undocumented)
79
+ recipientId: string;
80
+ // (undocumented)
81
+ type: KudosType;
85
82
  }
86
83
 
87
84
  // @public (undocumented)
88
85
  export enum KudosType {
89
- // (undocumented)
90
- INDIVIDUAL = 'individual',
91
- // (undocumented)
92
- TEAM = 'team',
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
- "react": "^16.8.0"
103
+ "react": "^16.8.0"
107
104
  }
108
105
  ```
109
106