@atlaskit/give-kudos 2.0.3 → 2.1.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 +12 -0
- package/dist/cjs/messages.js +15 -0
- package/dist/cjs/ui/GiveKudosLauncher/main.js +7 -7
- package/dist/es2019/messages.js +15 -0
- package/dist/es2019/ui/GiveKudosLauncher/main.js +7 -7
- package/dist/esm/messages.js +15 -0
- package/dist/esm/ui/GiveKudosLauncher/main.js +7 -7
- package/dist/types/messages.d.ts +15 -0
- package/dist/types-ts4.5/messages.d.ts +15 -0
- package/package.json +4 -5
- package/tmp/api-report-tmp.d.ts +0 -82
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlassian/give-kudos
|
|
2
2
|
|
|
3
|
+
## 2.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#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
|
|
8
|
+
|
|
9
|
+
## 2.0.4
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 2.0.3
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/cjs/messages.js
CHANGED
|
@@ -55,6 +55,21 @@ var messages = (0, _reactIntlNext.defineMessages)({
|
|
|
55
55
|
id: 'team-central.give-kudos.unsaved.warning.close',
|
|
56
56
|
defaultMessage: 'Close',
|
|
57
57
|
description: 'Button that closes the warning modal and closes the drawer.'
|
|
58
|
+
},
|
|
59
|
+
confirmCloseTitle: {
|
|
60
|
+
defaultMessage: 'Confirm Close',
|
|
61
|
+
description: 'Close kudos drawer confirmation modal title',
|
|
62
|
+
id: 'team-central.give-kudos.confirm-close.title'
|
|
63
|
+
},
|
|
64
|
+
closeDrawerButtonLabel: {
|
|
65
|
+
defaultMessage: 'Close drawer',
|
|
66
|
+
description: 'Close kudos drawer button label',
|
|
67
|
+
id: 'team-central.give-kudos.close-button.label'
|
|
68
|
+
},
|
|
69
|
+
successIconLabel: {
|
|
70
|
+
defaultMessage: 'Success',
|
|
71
|
+
description: 'Success icon label',
|
|
72
|
+
id: 'team-central.give-kudos.success-icon.label'
|
|
58
73
|
}
|
|
59
74
|
});
|
|
60
75
|
var _default = exports.default = messages;
|
|
@@ -114,7 +114,7 @@ var GiveKudosLauncher = function GiveKudosLauncher(props) {
|
|
|
114
114
|
}
|
|
115
115
|
})),
|
|
116
116
|
icon: (0, _react2.jsx)(_checkCircle.default, {
|
|
117
|
-
label:
|
|
117
|
+
label: intl.formatMessage(_messages.default.successIconLabel),
|
|
118
118
|
primaryColor: "var(--ds-icon-success, ".concat(_colors.G300, ")")
|
|
119
119
|
})
|
|
120
120
|
});
|
|
@@ -125,7 +125,7 @@ var GiveKudosLauncher = function GiveKudosLauncher(props) {
|
|
|
125
125
|
id: "kudosCreatedFlag-".concat(flagEvent.kudosUuid),
|
|
126
126
|
description: (0, _react2.jsx)(_reactIntlNext.FormattedMessage, _messages.default.JiraKudosCreatedDescriptionFlag),
|
|
127
127
|
icon: (0, _react2.jsx)(_checkCircle.default, {
|
|
128
|
-
label:
|
|
128
|
+
label: intl.formatMessage(_messages.default.successIconLabel),
|
|
129
129
|
primaryColor: "var(--ds-icon-success, ".concat(_colors.G300, ")")
|
|
130
130
|
}),
|
|
131
131
|
actions: [{
|
|
@@ -170,7 +170,7 @@ var GiveKudosLauncher = function GiveKudosLauncher(props) {
|
|
|
170
170
|
// Not a known FlagEventType
|
|
171
171
|
return;
|
|
172
172
|
}
|
|
173
|
-
}, [addFlag, closeDrawer, sendAnalytic, teamCentralBaseUrl]);
|
|
173
|
+
}, [addFlag, closeDrawer, sendAnalytic, teamCentralBaseUrl, intl]);
|
|
174
174
|
var messageListener = (0, _react.useCallback)(function (event) {
|
|
175
175
|
if (!props.isOpen) {
|
|
176
176
|
return;
|
|
@@ -193,7 +193,7 @@ var GiveKudosLauncher = function GiveKudosLauncher(props) {
|
|
|
193
193
|
}
|
|
194
194
|
})),
|
|
195
195
|
icon: (0, _react2.jsx)(_checkCircle.default, {
|
|
196
|
-
label:
|
|
196
|
+
label: intl.formatMessage(_messages.default.successIconLabel),
|
|
197
197
|
primaryColor: "var(--ds-icon-success, ".concat(_colors.G300, ")")
|
|
198
198
|
})
|
|
199
199
|
});
|
|
@@ -212,7 +212,7 @@ var GiveKudosLauncher = function GiveKudosLauncher(props) {
|
|
|
212
212
|
// Swallow any errors
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
|
-
}, [props.isOpen, closeDrawer, sendAnalytic, addFlag, teamCentralBaseUrl, createFlagWithJsonStringifiedInput]);
|
|
215
|
+
}, [props.isOpen, closeDrawer, sendAnalytic, addFlag, teamCentralBaseUrl, createFlagWithJsonStringifiedInput, intl]);
|
|
216
216
|
(0, _react.useEffect)(function () {
|
|
217
217
|
window.removeEventListener('message', messageListenerEventHandler.current);
|
|
218
218
|
messageListenerEventHandler.current = messageListener;
|
|
@@ -268,7 +268,7 @@ var GiveKudosLauncher = function GiveKudosLauncher(props) {
|
|
|
268
268
|
onClick: handleCloseDrawerClicked,
|
|
269
269
|
css: sidebarButtonStyles
|
|
270
270
|
}, (0, _react2.jsx)(_arrowLeft.default, {
|
|
271
|
-
label:
|
|
271
|
+
label: intl.formatMessage(_messages.default.closeDrawerButtonLabel)
|
|
272
272
|
})));
|
|
273
273
|
};
|
|
274
274
|
var renderDrawer = (0, _react.useMemo)(function () {
|
|
@@ -302,7 +302,7 @@ var GiveKudosLauncher = function GiveKudosLauncher(props) {
|
|
|
302
302
|
}, (0, _react2.jsx)(_modalDialog.ModalTransition, null, isCloseConfirmModalOpen && (0, _react2.jsx)(_modalDialog.default, {
|
|
303
303
|
onClose: closeWarningModal,
|
|
304
304
|
width: "small"
|
|
305
|
-
}, (0, _react2.jsx)(_modalDialog.ModalHeader, null, (0, _react2.jsx)(_modalDialog.ModalTitle, null,
|
|
305
|
+
}, (0, _react2.jsx)(_modalDialog.ModalHeader, null, (0, _react2.jsx)(_modalDialog.ModalTitle, null, (0, _react2.jsx)(_reactIntlNext.FormattedMessage, _messages.default.confirmCloseTitle))), (0, _react2.jsx)(_modalDialog.ModalBody, null, (0, _react2.jsx)(_reactIntlNext.FormattedMessage, _messages.default.unsavedKudosWarning)), (0, _react2.jsx)(_modalDialog.ModalFooter, null, (0, _react2.jsx)(_standardButton.default, {
|
|
306
306
|
appearance: "subtle",
|
|
307
307
|
onClick: closeWarningModal,
|
|
308
308
|
autoFocus: true
|
package/dist/es2019/messages.js
CHANGED
|
@@ -49,6 +49,21 @@ const messages = defineMessages({
|
|
|
49
49
|
id: 'team-central.give-kudos.unsaved.warning.close',
|
|
50
50
|
defaultMessage: 'Close',
|
|
51
51
|
description: 'Button that closes the warning modal and closes the drawer.'
|
|
52
|
+
},
|
|
53
|
+
confirmCloseTitle: {
|
|
54
|
+
defaultMessage: 'Confirm Close',
|
|
55
|
+
description: 'Close kudos drawer confirmation modal title',
|
|
56
|
+
id: 'team-central.give-kudos.confirm-close.title'
|
|
57
|
+
},
|
|
58
|
+
closeDrawerButtonLabel: {
|
|
59
|
+
defaultMessage: 'Close drawer',
|
|
60
|
+
description: 'Close kudos drawer button label',
|
|
61
|
+
id: 'team-central.give-kudos.close-button.label'
|
|
62
|
+
},
|
|
63
|
+
successIconLabel: {
|
|
64
|
+
defaultMessage: 'Success',
|
|
65
|
+
description: 'Success icon label',
|
|
66
|
+
id: 'team-central.give-kudos.success-icon.label'
|
|
52
67
|
}
|
|
53
68
|
});
|
|
54
69
|
export default messages;
|
|
@@ -98,7 +98,7 @@ const GiveKudosLauncher = props => {
|
|
|
98
98
|
}
|
|
99
99
|
})),
|
|
100
100
|
icon: jsx(SuccessIcon, {
|
|
101
|
-
label:
|
|
101
|
+
label: intl.formatMessage(messages.successIconLabel),
|
|
102
102
|
primaryColor: `var(--ds-icon-success, ${G300})`
|
|
103
103
|
})
|
|
104
104
|
});
|
|
@@ -109,7 +109,7 @@ const GiveKudosLauncher = props => {
|
|
|
109
109
|
id: `kudosCreatedFlag-${flagEvent.kudosUuid}`,
|
|
110
110
|
description: jsx(FormattedMessage, messages.JiraKudosCreatedDescriptionFlag),
|
|
111
111
|
icon: jsx(SuccessIcon, {
|
|
112
|
-
label:
|
|
112
|
+
label: intl.formatMessage(messages.successIconLabel),
|
|
113
113
|
primaryColor: `var(--ds-icon-success, ${G300})`
|
|
114
114
|
}),
|
|
115
115
|
actions: [{
|
|
@@ -152,7 +152,7 @@ const GiveKudosLauncher = props => {
|
|
|
152
152
|
// Not a known FlagEventType
|
|
153
153
|
return;
|
|
154
154
|
}
|
|
155
|
-
}, [addFlag, closeDrawer, sendAnalytic, teamCentralBaseUrl]);
|
|
155
|
+
}, [addFlag, closeDrawer, sendAnalytic, teamCentralBaseUrl, intl]);
|
|
156
156
|
const messageListener = useCallback(event => {
|
|
157
157
|
if (!props.isOpen) {
|
|
158
158
|
return;
|
|
@@ -173,7 +173,7 @@ const GiveKudosLauncher = props => {
|
|
|
173
173
|
}
|
|
174
174
|
})),
|
|
175
175
|
icon: jsx(SuccessIcon, {
|
|
176
|
-
label:
|
|
176
|
+
label: intl.formatMessage(messages.successIconLabel),
|
|
177
177
|
primaryColor: `var(--ds-icon-success, ${G300})`
|
|
178
178
|
})
|
|
179
179
|
});
|
|
@@ -192,7 +192,7 @@ const GiveKudosLauncher = props => {
|
|
|
192
192
|
// Swallow any errors
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
|
-
}, [props.isOpen, closeDrawer, sendAnalytic, addFlag, teamCentralBaseUrl, createFlagWithJsonStringifiedInput]);
|
|
195
|
+
}, [props.isOpen, closeDrawer, sendAnalytic, addFlag, teamCentralBaseUrl, createFlagWithJsonStringifiedInput, intl]);
|
|
196
196
|
useEffect(() => {
|
|
197
197
|
window.removeEventListener('message', messageListenerEventHandler.current);
|
|
198
198
|
messageListenerEventHandler.current = messageListener;
|
|
@@ -248,7 +248,7 @@ const GiveKudosLauncher = props => {
|
|
|
248
248
|
onClick: handleCloseDrawerClicked,
|
|
249
249
|
css: sidebarButtonStyles
|
|
250
250
|
}, jsx(ArrowLeft, {
|
|
251
|
-
label:
|
|
251
|
+
label: intl.formatMessage(messages.closeDrawerButtonLabel)
|
|
252
252
|
})));
|
|
253
253
|
};
|
|
254
254
|
const renderDrawer = useMemo(() => {
|
|
@@ -282,7 +282,7 @@ const GiveKudosLauncher = props => {
|
|
|
282
282
|
}, jsx(ModalTransition, null, isCloseConfirmModalOpen && jsx(Modal, {
|
|
283
283
|
onClose: closeWarningModal,
|
|
284
284
|
width: "small"
|
|
285
|
-
}, jsx(ModalHeader, null, jsx(ModalTitle, null,
|
|
285
|
+
}, jsx(ModalHeader, null, jsx(ModalTitle, null, jsx(FormattedMessage, messages.confirmCloseTitle))), jsx(ModalBody, null, jsx(FormattedMessage, messages.unsavedKudosWarning)), jsx(ModalFooter, null, jsx(Button, {
|
|
286
286
|
appearance: "subtle",
|
|
287
287
|
onClick: closeWarningModal,
|
|
288
288
|
autoFocus: true
|
package/dist/esm/messages.js
CHANGED
|
@@ -49,6 +49,21 @@ var messages = defineMessages({
|
|
|
49
49
|
id: 'team-central.give-kudos.unsaved.warning.close',
|
|
50
50
|
defaultMessage: 'Close',
|
|
51
51
|
description: 'Button that closes the warning modal and closes the drawer.'
|
|
52
|
+
},
|
|
53
|
+
confirmCloseTitle: {
|
|
54
|
+
defaultMessage: 'Confirm Close',
|
|
55
|
+
description: 'Close kudos drawer confirmation modal title',
|
|
56
|
+
id: 'team-central.give-kudos.confirm-close.title'
|
|
57
|
+
},
|
|
58
|
+
closeDrawerButtonLabel: {
|
|
59
|
+
defaultMessage: 'Close drawer',
|
|
60
|
+
description: 'Close kudos drawer button label',
|
|
61
|
+
id: 'team-central.give-kudos.close-button.label'
|
|
62
|
+
},
|
|
63
|
+
successIconLabel: {
|
|
64
|
+
defaultMessage: 'Success',
|
|
65
|
+
description: 'Success icon label',
|
|
66
|
+
id: 'team-central.give-kudos.success-icon.label'
|
|
52
67
|
}
|
|
53
68
|
});
|
|
54
69
|
export default messages;
|
|
@@ -106,7 +106,7 @@ var GiveKudosLauncher = function GiveKudosLauncher(props) {
|
|
|
106
106
|
}
|
|
107
107
|
})),
|
|
108
108
|
icon: jsx(SuccessIcon, {
|
|
109
|
-
label:
|
|
109
|
+
label: intl.formatMessage(messages.successIconLabel),
|
|
110
110
|
primaryColor: "var(--ds-icon-success, ".concat(G300, ")")
|
|
111
111
|
})
|
|
112
112
|
});
|
|
@@ -117,7 +117,7 @@ var GiveKudosLauncher = function GiveKudosLauncher(props) {
|
|
|
117
117
|
id: "kudosCreatedFlag-".concat(flagEvent.kudosUuid),
|
|
118
118
|
description: jsx(FormattedMessage, messages.JiraKudosCreatedDescriptionFlag),
|
|
119
119
|
icon: jsx(SuccessIcon, {
|
|
120
|
-
label:
|
|
120
|
+
label: intl.formatMessage(messages.successIconLabel),
|
|
121
121
|
primaryColor: "var(--ds-icon-success, ".concat(G300, ")")
|
|
122
122
|
}),
|
|
123
123
|
actions: [{
|
|
@@ -162,7 +162,7 @@ var GiveKudosLauncher = function GiveKudosLauncher(props) {
|
|
|
162
162
|
// Not a known FlagEventType
|
|
163
163
|
return;
|
|
164
164
|
}
|
|
165
|
-
}, [addFlag, closeDrawer, sendAnalytic, teamCentralBaseUrl]);
|
|
165
|
+
}, [addFlag, closeDrawer, sendAnalytic, teamCentralBaseUrl, intl]);
|
|
166
166
|
var messageListener = useCallback(function (event) {
|
|
167
167
|
if (!props.isOpen) {
|
|
168
168
|
return;
|
|
@@ -185,7 +185,7 @@ var GiveKudosLauncher = function GiveKudosLauncher(props) {
|
|
|
185
185
|
}
|
|
186
186
|
})),
|
|
187
187
|
icon: jsx(SuccessIcon, {
|
|
188
|
-
label:
|
|
188
|
+
label: intl.formatMessage(messages.successIconLabel),
|
|
189
189
|
primaryColor: "var(--ds-icon-success, ".concat(G300, ")")
|
|
190
190
|
})
|
|
191
191
|
});
|
|
@@ -204,7 +204,7 @@ var GiveKudosLauncher = function GiveKudosLauncher(props) {
|
|
|
204
204
|
// Swallow any errors
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
|
-
}, [props.isOpen, closeDrawer, sendAnalytic, addFlag, teamCentralBaseUrl, createFlagWithJsonStringifiedInput]);
|
|
207
|
+
}, [props.isOpen, closeDrawer, sendAnalytic, addFlag, teamCentralBaseUrl, createFlagWithJsonStringifiedInput, intl]);
|
|
208
208
|
useEffect(function () {
|
|
209
209
|
window.removeEventListener('message', messageListenerEventHandler.current);
|
|
210
210
|
messageListenerEventHandler.current = messageListener;
|
|
@@ -260,7 +260,7 @@ var GiveKudosLauncher = function GiveKudosLauncher(props) {
|
|
|
260
260
|
onClick: handleCloseDrawerClicked,
|
|
261
261
|
css: sidebarButtonStyles
|
|
262
262
|
}, jsx(ArrowLeft, {
|
|
263
|
-
label:
|
|
263
|
+
label: intl.formatMessage(messages.closeDrawerButtonLabel)
|
|
264
264
|
})));
|
|
265
265
|
};
|
|
266
266
|
var renderDrawer = useMemo(function () {
|
|
@@ -294,7 +294,7 @@ var GiveKudosLauncher = function GiveKudosLauncher(props) {
|
|
|
294
294
|
}, jsx(ModalTransition, null, isCloseConfirmModalOpen && jsx(Modal, {
|
|
295
295
|
onClose: closeWarningModal,
|
|
296
296
|
width: "small"
|
|
297
|
-
}, jsx(ModalHeader, null, jsx(ModalTitle, null,
|
|
297
|
+
}, jsx(ModalHeader, null, jsx(ModalTitle, null, jsx(FormattedMessage, messages.confirmCloseTitle))), jsx(ModalBody, null, jsx(FormattedMessage, messages.unsavedKudosWarning)), jsx(ModalFooter, null, jsx(Button, {
|
|
298
298
|
appearance: "subtle",
|
|
299
299
|
onClick: closeWarningModal,
|
|
300
300
|
autoFocus: true
|
package/dist/types/messages.d.ts
CHANGED
|
@@ -49,5 +49,20 @@ declare const messages: {
|
|
|
49
49
|
defaultMessage: string;
|
|
50
50
|
description: string;
|
|
51
51
|
};
|
|
52
|
+
confirmCloseTitle: {
|
|
53
|
+
defaultMessage: string;
|
|
54
|
+
description: string;
|
|
55
|
+
id: string;
|
|
56
|
+
};
|
|
57
|
+
closeDrawerButtonLabel: {
|
|
58
|
+
defaultMessage: string;
|
|
59
|
+
description: string;
|
|
60
|
+
id: string;
|
|
61
|
+
};
|
|
62
|
+
successIconLabel: {
|
|
63
|
+
defaultMessage: string;
|
|
64
|
+
description: string;
|
|
65
|
+
id: string;
|
|
66
|
+
};
|
|
52
67
|
};
|
|
53
68
|
export default messages;
|
|
@@ -49,5 +49,20 @@ declare const messages: {
|
|
|
49
49
|
defaultMessage: string;
|
|
50
50
|
description: string;
|
|
51
51
|
};
|
|
52
|
+
confirmCloseTitle: {
|
|
53
|
+
defaultMessage: string;
|
|
54
|
+
description: string;
|
|
55
|
+
id: string;
|
|
56
|
+
};
|
|
57
|
+
closeDrawerButtonLabel: {
|
|
58
|
+
defaultMessage: string;
|
|
59
|
+
description: string;
|
|
60
|
+
id: string;
|
|
61
|
+
};
|
|
62
|
+
successIconLabel: {
|
|
63
|
+
defaultMessage: string;
|
|
64
|
+
description: string;
|
|
65
|
+
id: string;
|
|
66
|
+
};
|
|
52
67
|
};
|
|
53
68
|
export default messages;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/give-kudos",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Give Kudos experience ",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -40,13 +40,13 @@
|
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@atlaskit/analytics-next": "^9.1.0",
|
|
43
|
-
"@atlaskit/button": "^
|
|
43
|
+
"@atlaskit/button": "^17.2.0",
|
|
44
44
|
"@atlaskit/drawer": "^7.6.0",
|
|
45
45
|
"@atlaskit/icon": "^22.0.0",
|
|
46
|
-
"@atlaskit/modal-dialog": "^12.
|
|
46
|
+
"@atlaskit/modal-dialog": "^12.10.0",
|
|
47
47
|
"@atlaskit/portal": "^4.4.0",
|
|
48
48
|
"@atlaskit/theme": "^12.6.0",
|
|
49
|
-
"@atlaskit/tokens": "^1.
|
|
49
|
+
"@atlaskit/tokens": "^1.33.0",
|
|
50
50
|
"@babel/runtime": "^7.0.0",
|
|
51
51
|
"@emotion/react": "^11.7.1",
|
|
52
52
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
@@ -57,7 +57,6 @@
|
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@af/integration-testing": "*",
|
|
59
59
|
"@atlaskit/ssr": "*",
|
|
60
|
-
"@atlaskit/webdriver-runner": "*",
|
|
61
60
|
"@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
|
|
62
61
|
"@testing-library/react": "^12.1.5",
|
|
63
62
|
"react-dom": "^16.8.0",
|
package/tmp/api-report-tmp.d.ts
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
## API Report File for "@atlaskit/give-kudos"
|
|
2
|
-
|
|
3
|
-
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
|
|
7
|
-
/// <reference types="react" />
|
|
8
|
-
|
|
9
|
-
import { jsx } from '@emotion/react';
|
|
10
|
-
import { LazyExoticComponent } from 'react';
|
|
11
|
-
|
|
12
|
-
// @public (undocumented)
|
|
13
|
-
export interface FlagEvent {
|
|
14
|
-
// (undocumented)
|
|
15
|
-
eventType: FlagEventType;
|
|
16
|
-
// (undocumented)
|
|
17
|
-
jiraKudosFormUrl?: string;
|
|
18
|
-
// (undocumented)
|
|
19
|
-
jiraKudosUrl?: string;
|
|
20
|
-
// (undocumented)
|
|
21
|
-
kudosUuid?: string;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
// @public (undocumented)
|
|
25
|
-
export enum FlagEventType {
|
|
26
|
-
// (undocumented)
|
|
27
|
-
CLOSE = "close",
|
|
28
|
-
// (undocumented)
|
|
29
|
-
DIRTY = "dirty",
|
|
30
|
-
// (undocumented)
|
|
31
|
-
JIRA_KUDOS_CREATED = "jira-kudos-created",
|
|
32
|
-
// (undocumented)
|
|
33
|
-
JIRA_KUDOS_FAILED = "jira-kudos-failed",
|
|
34
|
-
// (undocumented)
|
|
35
|
-
KUDOS_CREATED = "kudos-created"
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
// @public (undocumented)
|
|
39
|
-
export interface GiveKudosDrawerProps {
|
|
40
|
-
// (undocumented)
|
|
41
|
-
addFlag?: (flag: any) => void;
|
|
42
|
-
// (undocumented)
|
|
43
|
-
analyticsSource: string;
|
|
44
|
-
// (undocumented)
|
|
45
|
-
cloudId: string;
|
|
46
|
-
// (undocumented)
|
|
47
|
-
isOpen: boolean;
|
|
48
|
-
// (undocumented)
|
|
49
|
-
onClose: () => void;
|
|
50
|
-
// (undocumented)
|
|
51
|
-
recipient?: KudosRecipient;
|
|
52
|
-
// (undocumented)
|
|
53
|
-
teamCentralBaseUrl: string;
|
|
54
|
-
// (undocumented)
|
|
55
|
-
testId?: string;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
// @public (undocumented)
|
|
59
|
-
export const GiveKudosLauncher: (props: GiveKudosDrawerProps) => jsx.JSX.Element;
|
|
60
|
-
|
|
61
|
-
// @public (undocumented)
|
|
62
|
-
export const GiveKudosLauncherLazy: LazyExoticComponent<(props: GiveKudosDrawerProps) => jsx>;
|
|
63
|
-
|
|
64
|
-
// @public (undocumented)
|
|
65
|
-
export interface KudosRecipient {
|
|
66
|
-
// (undocumented)
|
|
67
|
-
recipientId: string;
|
|
68
|
-
// (undocumented)
|
|
69
|
-
type: KudosType;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
// @public (undocumented)
|
|
73
|
-
export enum KudosType {
|
|
74
|
-
// (undocumented)
|
|
75
|
-
INDIVIDUAL = "individual",
|
|
76
|
-
// (undocumented)
|
|
77
|
-
TEAM = "team"
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
// (No @packageDocumentation comment for this package)
|
|
81
|
-
|
|
82
|
-
```
|