@backstage-community/plugin-shortcuts 0.3.24 → 0.3.25
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/AddShortcut.esm.js +102 -0
- package/dist/AddShortcut.esm.js.map +1 -0
- package/dist/EditShortcut.esm.js +116 -0
- package/dist/EditShortcut.esm.js.map +1 -0
- package/dist/ShortcutForm.esm.js +147 -0
- package/dist/ShortcutForm.esm.js.map +1 -0
- package/dist/ShortcutIcon.esm.js +22 -0
- package/dist/ShortcutIcon.esm.js.map +1 -0
- package/dist/ShortcutItem.esm.js +76 -0
- package/dist/ShortcutItem.esm.js.map +1 -0
- package/dist/Shortcuts.esm.js +51 -0
- package/dist/Shortcuts.esm.js.map +1 -0
- package/dist/api/DefaultShortcutsApi.esm.js +64 -0
- package/dist/api/DefaultShortcutsApi.esm.js.map +1 -0
- package/dist/api/ShortcutApi.esm.js +8 -0
- package/dist/api/ShortcutApi.esm.js.map +1 -0
- package/dist/deprecated.esm.js +7 -0
- package/dist/deprecated.esm.js.map +1 -0
- package/dist/index.esm.js +4 -96
- package/dist/index.esm.js.map +1 -1
- package/dist/plugin.esm.js +23 -0
- package/dist/plugin.esm.js.map +1 -0
- package/package.json +12 -8
- package/dist/esm/Shortcuts-BtnNxS7L.esm.js +0 -478
- package/dist/esm/Shortcuts-BtnNxS7L.esm.js.map +0 -1
|
@@ -1,478 +0,0 @@
|
|
|
1
|
-
import React, { useRef, useEffect, useState } from 'react';
|
|
2
|
-
import useObservable from 'react-use/esm/useObservable';
|
|
3
|
-
import PlayListAddIcon from '@material-ui/icons/PlaylistAdd';
|
|
4
|
-
import { makeStyles } from '@material-ui/core/styles';
|
|
5
|
-
import IconButton from '@material-ui/core/IconButton';
|
|
6
|
-
import Tooltip from '@material-ui/core/Tooltip';
|
|
7
|
-
import EditIcon from '@material-ui/icons/Edit';
|
|
8
|
-
import Avatar from '@material-ui/core/Avatar';
|
|
9
|
-
import Button from '@material-ui/core/Button';
|
|
10
|
-
import Card from '@material-ui/core/Card';
|
|
11
|
-
import CardHeader from '@material-ui/core/CardHeader';
|
|
12
|
-
import Popover from '@material-ui/core/Popover';
|
|
13
|
-
import { useForm, Controller } from 'react-hook-form';
|
|
14
|
-
import CardActions from '@material-ui/core/CardActions';
|
|
15
|
-
import CardContent from '@material-ui/core/CardContent';
|
|
16
|
-
import TextField from '@material-ui/core/TextField';
|
|
17
|
-
import '@backstage/theme';
|
|
18
|
-
import 'uuid';
|
|
19
|
-
import 'zen-observable';
|
|
20
|
-
import { shortcutsApiRef } from '../index.esm.js';
|
|
21
|
-
import { useApi, alertApiRef, useAnalytics } from '@backstage/core-plugin-api';
|
|
22
|
-
import DeleteIcon from '@material-ui/icons/Delete';
|
|
23
|
-
import { SidebarItem, SidebarScrollWrapper, Progress } from '@backstage/core-components';
|
|
24
|
-
import { useLocation } from 'react-router-dom';
|
|
25
|
-
|
|
26
|
-
const useStyles$4 = makeStyles((theme) => ({
|
|
27
|
-
avatar: (props) => ({
|
|
28
|
-
color: theme.palette.getContrastText(props.color),
|
|
29
|
-
backgroundColor: props.color,
|
|
30
|
-
width: 28,
|
|
31
|
-
height: 28,
|
|
32
|
-
fontWeight: "bold",
|
|
33
|
-
fontSize: 13,
|
|
34
|
-
filter: "contrast(150%) brightness(1.4)"
|
|
35
|
-
})
|
|
36
|
-
}));
|
|
37
|
-
const ShortcutIcon = (props) => {
|
|
38
|
-
const classes = useStyles$4(props);
|
|
39
|
-
return /* @__PURE__ */ React.createElement(Avatar, { className: classes.avatar }, props.text);
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
const useStyles$3 = makeStyles((theme) => ({
|
|
43
|
-
field: {
|
|
44
|
-
marginBottom: theme.spacing(2)
|
|
45
|
-
},
|
|
46
|
-
actionRoot: {
|
|
47
|
-
paddingLeft: theme.spacing(2),
|
|
48
|
-
paddingBottom: theme.spacing(3),
|
|
49
|
-
justifyContent: "flex-start"
|
|
50
|
-
}
|
|
51
|
-
}));
|
|
52
|
-
const ShortcutForm = ({
|
|
53
|
-
formValues,
|
|
54
|
-
onSave,
|
|
55
|
-
onClose,
|
|
56
|
-
allowExternalLinks
|
|
57
|
-
}) => {
|
|
58
|
-
var _a, _b;
|
|
59
|
-
const classes = useStyles$3();
|
|
60
|
-
const shortcutApi = useApi(shortcutsApiRef);
|
|
61
|
-
const shortcutData = useObservable(
|
|
62
|
-
shortcutApi.shortcut$(),
|
|
63
|
-
shortcutApi.get()
|
|
64
|
-
);
|
|
65
|
-
const { current: originalValues } = useRef({
|
|
66
|
-
url: (_a = formValues == null ? void 0 : formValues.url) != null ? _a : "",
|
|
67
|
-
title: (_b = formValues == null ? void 0 : formValues.title) != null ? _b : ""
|
|
68
|
-
});
|
|
69
|
-
const {
|
|
70
|
-
handleSubmit,
|
|
71
|
-
reset,
|
|
72
|
-
control,
|
|
73
|
-
formState: { errors }
|
|
74
|
-
} = useForm({
|
|
75
|
-
mode: "onChange",
|
|
76
|
-
defaultValues: originalValues
|
|
77
|
-
});
|
|
78
|
-
const titleIsUnique = (title) => {
|
|
79
|
-
if (title !== originalValues.title && shortcutData.some((shortcutTitle) => shortcutTitle.title === title))
|
|
80
|
-
return "A shortcut with this title already exists";
|
|
81
|
-
return true;
|
|
82
|
-
};
|
|
83
|
-
const urlIsUnique = (url) => {
|
|
84
|
-
if (url !== originalValues.url && shortcutData.some((shortcutUrl) => shortcutUrl.url === url))
|
|
85
|
-
return "A shortcut with this url already exists";
|
|
86
|
-
return true;
|
|
87
|
-
};
|
|
88
|
-
useEffect(() => {
|
|
89
|
-
reset(formValues);
|
|
90
|
-
}, [reset, formValues]);
|
|
91
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(CardContent, null, /* @__PURE__ */ React.createElement(
|
|
92
|
-
Controller,
|
|
93
|
-
{
|
|
94
|
-
name: "url",
|
|
95
|
-
control,
|
|
96
|
-
rules: {
|
|
97
|
-
required: true,
|
|
98
|
-
validate: urlIsUnique,
|
|
99
|
-
...allowExternalLinks ? {
|
|
100
|
-
pattern: {
|
|
101
|
-
value: /^(https?:\/\/)|\//,
|
|
102
|
-
message: "Must start with http(s):// or /"
|
|
103
|
-
}
|
|
104
|
-
} : {
|
|
105
|
-
pattern: {
|
|
106
|
-
value: /^\//,
|
|
107
|
-
message: "Must be a relative URL (starts with a /)"
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
},
|
|
111
|
-
render: ({ field }) => {
|
|
112
|
-
var _a2;
|
|
113
|
-
return /* @__PURE__ */ React.createElement(
|
|
114
|
-
TextField,
|
|
115
|
-
{
|
|
116
|
-
...field,
|
|
117
|
-
error: !!errors.url,
|
|
118
|
-
helperText: (_a2 = errors.url) == null ? void 0 : _a2.message,
|
|
119
|
-
type: "text",
|
|
120
|
-
placeholder: "Enter a URL",
|
|
121
|
-
InputLabelProps: {
|
|
122
|
-
shrink: true
|
|
123
|
-
},
|
|
124
|
-
className: classes.field,
|
|
125
|
-
fullWidth: true,
|
|
126
|
-
label: "Shortcut URL",
|
|
127
|
-
variant: "outlined",
|
|
128
|
-
autoComplete: "off"
|
|
129
|
-
}
|
|
130
|
-
);
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
), /* @__PURE__ */ React.createElement(
|
|
134
|
-
Controller,
|
|
135
|
-
{
|
|
136
|
-
name: "title",
|
|
137
|
-
control,
|
|
138
|
-
rules: {
|
|
139
|
-
required: true,
|
|
140
|
-
validate: titleIsUnique,
|
|
141
|
-
minLength: {
|
|
142
|
-
value: 2,
|
|
143
|
-
message: "Must be at least 2 characters"
|
|
144
|
-
}
|
|
145
|
-
},
|
|
146
|
-
render: ({ field }) => {
|
|
147
|
-
var _a2;
|
|
148
|
-
return /* @__PURE__ */ React.createElement(
|
|
149
|
-
TextField,
|
|
150
|
-
{
|
|
151
|
-
...field,
|
|
152
|
-
error: !!errors.title,
|
|
153
|
-
helperText: (_a2 = errors.title) == null ? void 0 : _a2.message,
|
|
154
|
-
type: "text",
|
|
155
|
-
placeholder: "Enter a display name",
|
|
156
|
-
InputLabelProps: {
|
|
157
|
-
shrink: true
|
|
158
|
-
},
|
|
159
|
-
className: classes.field,
|
|
160
|
-
fullWidth: true,
|
|
161
|
-
label: "Display Name",
|
|
162
|
-
variant: "outlined",
|
|
163
|
-
autoComplete: "off"
|
|
164
|
-
}
|
|
165
|
-
);
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
)), /* @__PURE__ */ React.createElement(CardActions, { classes: { root: classes.actionRoot } }, /* @__PURE__ */ React.createElement(
|
|
169
|
-
Button,
|
|
170
|
-
{
|
|
171
|
-
variant: "contained",
|
|
172
|
-
color: "primary",
|
|
173
|
-
size: "large",
|
|
174
|
-
onClick: handleSubmit(onSave)
|
|
175
|
-
},
|
|
176
|
-
"Save"
|
|
177
|
-
), /* @__PURE__ */ React.createElement(Button, { variant: "outlined", size: "large", onClick: onClose }, "Cancel")));
|
|
178
|
-
};
|
|
179
|
-
|
|
180
|
-
const useStyles$2 = makeStyles((theme) => ({
|
|
181
|
-
card: {
|
|
182
|
-
width: 400
|
|
183
|
-
},
|
|
184
|
-
header: {
|
|
185
|
-
marginBottom: theme.spacing(1)
|
|
186
|
-
},
|
|
187
|
-
button: {
|
|
188
|
-
marginTop: theme.spacing(1)
|
|
189
|
-
}
|
|
190
|
-
}));
|
|
191
|
-
const EditShortcut = ({
|
|
192
|
-
shortcut,
|
|
193
|
-
onClose,
|
|
194
|
-
anchorEl,
|
|
195
|
-
api,
|
|
196
|
-
allowExternalLinks
|
|
197
|
-
}) => {
|
|
198
|
-
const classes = useStyles$2();
|
|
199
|
-
const alertApi = useApi(alertApiRef);
|
|
200
|
-
const open = Boolean(anchorEl);
|
|
201
|
-
const analytics = useAnalytics();
|
|
202
|
-
const handleSave = async ({ url, title }) => {
|
|
203
|
-
analytics.captureEvent("click", `Clicked 'Save' in Edit Shortcut`);
|
|
204
|
-
const newShortcut = {
|
|
205
|
-
...shortcut,
|
|
206
|
-
url,
|
|
207
|
-
title
|
|
208
|
-
};
|
|
209
|
-
try {
|
|
210
|
-
await api.update(newShortcut);
|
|
211
|
-
alertApi.post({
|
|
212
|
-
message: `Updated shortcut '${title}'`,
|
|
213
|
-
severity: "success",
|
|
214
|
-
display: "transient"
|
|
215
|
-
});
|
|
216
|
-
} catch (error) {
|
|
217
|
-
alertApi.post({
|
|
218
|
-
message: `Could not update shortcut: ${error.message}`,
|
|
219
|
-
severity: "error"
|
|
220
|
-
});
|
|
221
|
-
}
|
|
222
|
-
onClose();
|
|
223
|
-
};
|
|
224
|
-
const handleRemove = async () => {
|
|
225
|
-
try {
|
|
226
|
-
await api.remove(shortcut.id);
|
|
227
|
-
alertApi.post({
|
|
228
|
-
message: `Removed shortcut '${shortcut.title}' from your sidebar`,
|
|
229
|
-
severity: "success",
|
|
230
|
-
display: "transient"
|
|
231
|
-
});
|
|
232
|
-
} catch (error) {
|
|
233
|
-
alertApi.post({
|
|
234
|
-
message: `Could not delete shortcut: ${error.message}`,
|
|
235
|
-
severity: "error"
|
|
236
|
-
});
|
|
237
|
-
}
|
|
238
|
-
};
|
|
239
|
-
const handleClose = () => {
|
|
240
|
-
onClose();
|
|
241
|
-
};
|
|
242
|
-
return /* @__PURE__ */ React.createElement(
|
|
243
|
-
Popover,
|
|
244
|
-
{
|
|
245
|
-
open,
|
|
246
|
-
anchorEl,
|
|
247
|
-
onClose,
|
|
248
|
-
anchorOrigin: {
|
|
249
|
-
vertical: "top",
|
|
250
|
-
horizontal: "right"
|
|
251
|
-
}
|
|
252
|
-
},
|
|
253
|
-
/* @__PURE__ */ React.createElement(Card, { className: classes.card }, /* @__PURE__ */ React.createElement(
|
|
254
|
-
CardHeader,
|
|
255
|
-
{
|
|
256
|
-
className: classes.header,
|
|
257
|
-
title: "Edit Shortcut",
|
|
258
|
-
titleTypographyProps: { variant: "subtitle2" },
|
|
259
|
-
action: /* @__PURE__ */ React.createElement(
|
|
260
|
-
Button,
|
|
261
|
-
{
|
|
262
|
-
className: classes.button,
|
|
263
|
-
variant: "text",
|
|
264
|
-
size: "small",
|
|
265
|
-
color: "secondary",
|
|
266
|
-
startIcon: /* @__PURE__ */ React.createElement(DeleteIcon, null),
|
|
267
|
-
onClick: handleRemove
|
|
268
|
-
},
|
|
269
|
-
"Remove"
|
|
270
|
-
)
|
|
271
|
-
}
|
|
272
|
-
), /* @__PURE__ */ React.createElement(
|
|
273
|
-
ShortcutForm,
|
|
274
|
-
{
|
|
275
|
-
formValues: { url: shortcut.url, title: shortcut.title },
|
|
276
|
-
onClose: handleClose,
|
|
277
|
-
onSave: handleSave,
|
|
278
|
-
allowExternalLinks
|
|
279
|
-
}
|
|
280
|
-
))
|
|
281
|
-
);
|
|
282
|
-
};
|
|
283
|
-
|
|
284
|
-
const useStyles$1 = makeStyles((theme) => ({
|
|
285
|
-
root: {
|
|
286
|
-
"&:hover #edit": {
|
|
287
|
-
visibility: "visible"
|
|
288
|
-
}
|
|
289
|
-
},
|
|
290
|
-
button: {
|
|
291
|
-
visibility: "hidden"
|
|
292
|
-
},
|
|
293
|
-
icon: {
|
|
294
|
-
color: theme.palette.common.white,
|
|
295
|
-
fontSize: 16
|
|
296
|
-
}
|
|
297
|
-
}));
|
|
298
|
-
const getIconText = (title) => title.split(" ").length === 1 ? (
|
|
299
|
-
// If there's only one word, keep the first two characters
|
|
300
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
301
|
-
title[0].toUpperCase() + title[1].toLowerCase()
|
|
302
|
-
) : (
|
|
303
|
-
// If there's more than one word, take the first character of the first two words
|
|
304
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
305
|
-
title.replace(/\B\W/g, "").split(" ").map((s) => s[0]).join("").slice(0, 2).toUpperCase()
|
|
306
|
-
);
|
|
307
|
-
const ShortcutItem = ({ shortcut, api, allowExternalLinks }) => {
|
|
308
|
-
const classes = useStyles$1();
|
|
309
|
-
const [anchorEl, setAnchorEl] = React.useState();
|
|
310
|
-
const handleClick = (event) => {
|
|
311
|
-
event.preventDefault();
|
|
312
|
-
setAnchorEl(event.currentTarget);
|
|
313
|
-
};
|
|
314
|
-
const handleClose = () => {
|
|
315
|
-
setAnchorEl(void 0);
|
|
316
|
-
};
|
|
317
|
-
const text = getIconText(shortcut.title);
|
|
318
|
-
const color = api.getColor(shortcut.url);
|
|
319
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Tooltip, { title: shortcut.title, enterDelay: 500 }, /* @__PURE__ */ React.createElement(
|
|
320
|
-
SidebarItem,
|
|
321
|
-
{
|
|
322
|
-
className: classes.root,
|
|
323
|
-
to: shortcut.url,
|
|
324
|
-
text: shortcut.title,
|
|
325
|
-
icon: () => /* @__PURE__ */ React.createElement(ShortcutIcon, { text, color })
|
|
326
|
-
},
|
|
327
|
-
/* @__PURE__ */ React.createElement(
|
|
328
|
-
IconButton,
|
|
329
|
-
{
|
|
330
|
-
id: "edit",
|
|
331
|
-
"data-testid": "edit",
|
|
332
|
-
onClick: handleClick,
|
|
333
|
-
className: classes.button
|
|
334
|
-
},
|
|
335
|
-
/* @__PURE__ */ React.createElement(EditIcon, { className: classes.icon })
|
|
336
|
-
)
|
|
337
|
-
)), /* @__PURE__ */ React.createElement(
|
|
338
|
-
EditShortcut,
|
|
339
|
-
{
|
|
340
|
-
onClose: handleClose,
|
|
341
|
-
anchorEl,
|
|
342
|
-
api,
|
|
343
|
-
shortcut,
|
|
344
|
-
allowExternalLinks
|
|
345
|
-
}
|
|
346
|
-
));
|
|
347
|
-
};
|
|
348
|
-
|
|
349
|
-
const useStyles = makeStyles((theme) => ({
|
|
350
|
-
card: {
|
|
351
|
-
maxWidth: 400
|
|
352
|
-
},
|
|
353
|
-
header: {
|
|
354
|
-
marginBottom: theme.spacing(1)
|
|
355
|
-
},
|
|
356
|
-
button: {
|
|
357
|
-
marginTop: theme.spacing(1)
|
|
358
|
-
}
|
|
359
|
-
}));
|
|
360
|
-
const AddShortcut = ({
|
|
361
|
-
onClose,
|
|
362
|
-
anchorEl,
|
|
363
|
-
api,
|
|
364
|
-
allowExternalLinks
|
|
365
|
-
}) => {
|
|
366
|
-
const classes = useStyles();
|
|
367
|
-
const alertApi = useApi(alertApiRef);
|
|
368
|
-
const { pathname } = useLocation();
|
|
369
|
-
const [formValues, setFormValues] = useState();
|
|
370
|
-
const open = Boolean(anchorEl);
|
|
371
|
-
const analytics = useAnalytics();
|
|
372
|
-
const handleSave = async ({ url, title }) => {
|
|
373
|
-
analytics.captureEvent("click", `Clicked 'Save' in AddShortcut`);
|
|
374
|
-
const shortcut = { url, title };
|
|
375
|
-
try {
|
|
376
|
-
await api.add(shortcut);
|
|
377
|
-
alertApi.post({
|
|
378
|
-
message: `Added shortcut '${title}' to your sidebar`,
|
|
379
|
-
severity: "success",
|
|
380
|
-
display: "transient"
|
|
381
|
-
});
|
|
382
|
-
} catch (error) {
|
|
383
|
-
alertApi.post({
|
|
384
|
-
message: `Could not add shortcut: ${error.message}`,
|
|
385
|
-
severity: "error"
|
|
386
|
-
});
|
|
387
|
-
}
|
|
388
|
-
onClose();
|
|
389
|
-
};
|
|
390
|
-
const handlePaste = () => {
|
|
391
|
-
setFormValues({ url: pathname, title: document.title });
|
|
392
|
-
};
|
|
393
|
-
const handleClose = () => {
|
|
394
|
-
setFormValues(void 0);
|
|
395
|
-
onClose();
|
|
396
|
-
};
|
|
397
|
-
return /* @__PURE__ */ React.createElement(
|
|
398
|
-
Popover,
|
|
399
|
-
{
|
|
400
|
-
open,
|
|
401
|
-
anchorEl,
|
|
402
|
-
TransitionProps: { onExit: handleClose },
|
|
403
|
-
onClose,
|
|
404
|
-
anchorOrigin: {
|
|
405
|
-
vertical: "top",
|
|
406
|
-
horizontal: "right"
|
|
407
|
-
}
|
|
408
|
-
},
|
|
409
|
-
/* @__PURE__ */ React.createElement(Card, { className: classes.card }, /* @__PURE__ */ React.createElement(
|
|
410
|
-
CardHeader,
|
|
411
|
-
{
|
|
412
|
-
className: classes.header,
|
|
413
|
-
title: "Add Shortcut",
|
|
414
|
-
titleTypographyProps: { variant: "subtitle2" },
|
|
415
|
-
action: /* @__PURE__ */ React.createElement(
|
|
416
|
-
Button,
|
|
417
|
-
{
|
|
418
|
-
className: classes.button,
|
|
419
|
-
variant: "text",
|
|
420
|
-
size: "small",
|
|
421
|
-
color: "primary",
|
|
422
|
-
onClick: handlePaste
|
|
423
|
-
},
|
|
424
|
-
"Use current page"
|
|
425
|
-
)
|
|
426
|
-
}
|
|
427
|
-
), /* @__PURE__ */ React.createElement(
|
|
428
|
-
ShortcutForm,
|
|
429
|
-
{
|
|
430
|
-
onClose: handleClose,
|
|
431
|
-
onSave: handleSave,
|
|
432
|
-
formValues,
|
|
433
|
-
allowExternalLinks
|
|
434
|
-
}
|
|
435
|
-
))
|
|
436
|
-
);
|
|
437
|
-
};
|
|
438
|
-
|
|
439
|
-
const Shortcuts = (props) => {
|
|
440
|
-
var _a;
|
|
441
|
-
const shortcutApi = useApi(shortcutsApiRef);
|
|
442
|
-
const shortcuts = useObservable(shortcutApi.shortcut$(), shortcutApi.get());
|
|
443
|
-
const [anchorEl, setAnchorEl] = React.useState();
|
|
444
|
-
const loading = Boolean(!shortcuts);
|
|
445
|
-
const handleClick = (event) => {
|
|
446
|
-
setAnchorEl(event.currentTarget);
|
|
447
|
-
};
|
|
448
|
-
const handleClose = () => {
|
|
449
|
-
setAnchorEl(void 0);
|
|
450
|
-
};
|
|
451
|
-
return /* @__PURE__ */ React.createElement(SidebarScrollWrapper, null, /* @__PURE__ */ React.createElement(
|
|
452
|
-
SidebarItem,
|
|
453
|
-
{
|
|
454
|
-
icon: (_a = props.icon) != null ? _a : PlayListAddIcon,
|
|
455
|
-
text: "Add Shortcuts",
|
|
456
|
-
onClick: handleClick
|
|
457
|
-
}
|
|
458
|
-
), /* @__PURE__ */ React.createElement(
|
|
459
|
-
AddShortcut,
|
|
460
|
-
{
|
|
461
|
-
onClose: handleClose,
|
|
462
|
-
anchorEl,
|
|
463
|
-
api: shortcutApi,
|
|
464
|
-
allowExternalLinks: props.allowExternalLinks
|
|
465
|
-
}
|
|
466
|
-
), loading ? /* @__PURE__ */ React.createElement(Progress, null) : shortcuts == null ? void 0 : shortcuts.map((shortcut) => /* @__PURE__ */ React.createElement(
|
|
467
|
-
ShortcutItem,
|
|
468
|
-
{
|
|
469
|
-
key: shortcut.id,
|
|
470
|
-
shortcut,
|
|
471
|
-
api: shortcutApi,
|
|
472
|
-
allowExternalLinks: props.allowExternalLinks
|
|
473
|
-
}
|
|
474
|
-
)));
|
|
475
|
-
};
|
|
476
|
-
|
|
477
|
-
export { Shortcuts };
|
|
478
|
-
//# sourceMappingURL=Shortcuts-BtnNxS7L.esm.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Shortcuts-BtnNxS7L.esm.js","sources":["../../src/ShortcutIcon.tsx","../../src/ShortcutForm.tsx","../../src/EditShortcut.tsx","../../src/ShortcutItem.tsx","../../src/AddShortcut.tsx","../../src/Shortcuts.tsx"],"sourcesContent":["/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React from 'react';\nimport { makeStyles } from '@material-ui/core/styles';\nimport Avatar from '@material-ui/core/Avatar';\n\ntype Props = {\n text: string;\n color: string;\n};\n\nconst useStyles = makeStyles(theme => ({\n avatar: (props: Props) => ({\n color: theme.palette.getContrastText(props.color),\n backgroundColor: props.color,\n width: 28,\n height: 28,\n fontWeight: 'bold',\n fontSize: 13,\n filter: 'contrast(150%) brightness(1.4)',\n }),\n}));\n\nexport const ShortcutIcon = (props: Props) => {\n const classes = useStyles(props);\n\n return <Avatar className={classes.avatar}>{props.text}</Avatar>;\n};\n","/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { useEffect, useRef } from 'react';\nimport useObservable from 'react-use/esm/useObservable';\nimport { useForm, SubmitHandler, Controller } from 'react-hook-form';\nimport Button from '@material-ui/core/Button';\nimport CardActions from '@material-ui/core/CardActions';\nimport CardContent from '@material-ui/core/CardContent';\nimport TextField from '@material-ui/core/TextField';\nimport { makeStyles } from '@material-ui/core/styles';\nimport { FormValues } from './types';\nimport { shortcutsApiRef } from './api';\nimport { useApi } from '@backstage/core-plugin-api';\n\nconst useStyles = makeStyles(theme => ({\n field: {\n marginBottom: theme.spacing(2),\n },\n actionRoot: {\n paddingLeft: theme.spacing(2),\n paddingBottom: theme.spacing(3),\n justifyContent: 'flex-start',\n },\n}));\n\ntype Props = {\n formValues?: FormValues;\n onSave: SubmitHandler<FormValues>;\n onClose: () => void;\n allowExternalLinks?: boolean;\n};\n\nexport const ShortcutForm = ({\n formValues,\n onSave,\n onClose,\n allowExternalLinks,\n}: Props) => {\n const classes = useStyles();\n const shortcutApi = useApi(shortcutsApiRef);\n const shortcutData = useObservable(\n shortcutApi.shortcut$(),\n shortcutApi.get(),\n );\n const { current: originalValues } = useRef({\n url: formValues?.url ?? '',\n title: formValues?.title ?? '',\n });\n const {\n handleSubmit,\n reset,\n control,\n formState: { errors },\n } = useForm<FormValues>({\n mode: 'onChange',\n defaultValues: originalValues,\n });\n\n const titleIsUnique = (title: string) => {\n if (\n title !== originalValues.title &&\n shortcutData.some(shortcutTitle => shortcutTitle.title === title)\n )\n return 'A shortcut with this title already exists';\n return true;\n };\n\n const urlIsUnique = (url: string) => {\n if (\n url !== originalValues.url &&\n shortcutData.some(shortcutUrl => shortcutUrl.url === url)\n )\n return 'A shortcut with this url already exists';\n return true;\n };\n\n useEffect(() => {\n reset(formValues);\n }, [reset, formValues]);\n\n return (\n <>\n <CardContent>\n <Controller\n name=\"url\"\n control={control}\n rules={{\n required: true,\n validate: urlIsUnique,\n ...(allowExternalLinks\n ? {\n pattern: {\n value: /^(https?:\\/\\/)|\\//,\n message: 'Must start with http(s):// or /',\n },\n }\n : {\n pattern: {\n value: /^\\//,\n message: 'Must be a relative URL (starts with a /)',\n },\n }),\n }}\n render={({ field }) => (\n <TextField\n {...field}\n error={!!errors.url}\n helperText={errors.url?.message}\n type=\"text\"\n placeholder=\"Enter a URL\"\n InputLabelProps={{\n shrink: true,\n }}\n className={classes.field}\n fullWidth\n label=\"Shortcut URL\"\n variant=\"outlined\"\n autoComplete=\"off\"\n />\n )}\n />\n <Controller\n name=\"title\"\n control={control}\n rules={{\n required: true,\n validate: titleIsUnique,\n minLength: {\n value: 2,\n message: 'Must be at least 2 characters',\n },\n }}\n render={({ field }) => (\n <TextField\n {...field}\n error={!!errors.title}\n helperText={errors.title?.message}\n type=\"text\"\n placeholder=\"Enter a display name\"\n InputLabelProps={{\n shrink: true,\n }}\n className={classes.field}\n fullWidth\n label=\"Display Name\"\n variant=\"outlined\"\n autoComplete=\"off\"\n />\n )}\n />\n </CardContent>\n <CardActions classes={{ root: classes.actionRoot }}>\n <Button\n variant=\"contained\"\n color=\"primary\"\n size=\"large\"\n onClick={handleSubmit(onSave)}\n >\n Save\n </Button>\n <Button variant=\"outlined\" size=\"large\" onClick={onClose}>\n Cancel\n </Button>\n </CardActions>\n </>\n );\n};\n","/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React from 'react';\nimport { SubmitHandler } from 'react-hook-form';\nimport Button from '@material-ui/core/Button';\nimport Card from '@material-ui/core/Card';\nimport CardHeader from '@material-ui/core/CardHeader';\nimport Popover from '@material-ui/core/Popover';\nimport { makeStyles } from '@material-ui/core/styles';\nimport { ShortcutForm } from './ShortcutForm';\nimport { FormValues, Shortcut } from './types';\nimport DeleteIcon from '@material-ui/icons/Delete';\nimport { ShortcutApi } from './api';\nimport { alertApiRef, useApi, useAnalytics } from '@backstage/core-plugin-api';\n\nconst useStyles = makeStyles(theme => ({\n card: {\n width: 400,\n },\n header: {\n marginBottom: theme.spacing(1),\n },\n button: {\n marginTop: theme.spacing(1),\n },\n}));\n\ntype Props = {\n shortcut: Shortcut;\n onClose: () => void;\n anchorEl?: Element;\n api: ShortcutApi;\n allowExternalLinks?: boolean;\n};\n\nexport const EditShortcut = ({\n shortcut,\n onClose,\n anchorEl,\n api,\n allowExternalLinks,\n}: Props) => {\n const classes = useStyles();\n const alertApi = useApi(alertApiRef);\n const open = Boolean(anchorEl);\n const analytics = useAnalytics();\n\n const handleSave: SubmitHandler<FormValues> = async ({ url, title }) => {\n analytics.captureEvent('click', `Clicked 'Save' in Edit Shortcut`);\n const newShortcut: Shortcut = {\n ...shortcut,\n url,\n title,\n };\n\n try {\n await api.update(newShortcut);\n alertApi.post({\n message: `Updated shortcut '${title}'`,\n severity: 'success',\n display: 'transient',\n });\n } catch (error) {\n alertApi.post({\n message: `Could not update shortcut: ${error.message}`,\n severity: 'error',\n });\n }\n\n onClose();\n };\n\n const handleRemove = async () => {\n try {\n await api.remove(shortcut.id);\n alertApi.post({\n message: `Removed shortcut '${shortcut.title}' from your sidebar`,\n severity: 'success',\n display: 'transient',\n });\n } catch (error) {\n alertApi.post({\n message: `Could not delete shortcut: ${error.message}`,\n severity: 'error',\n });\n }\n };\n\n const handleClose = () => {\n onClose();\n };\n\n return (\n <Popover\n open={open}\n anchorEl={anchorEl}\n onClose={onClose}\n anchorOrigin={{\n vertical: 'top',\n horizontal: 'right',\n }}\n >\n <Card className={classes.card}>\n <CardHeader\n className={classes.header}\n title=\"Edit Shortcut\"\n titleTypographyProps={{ variant: 'subtitle2' }}\n action={\n <Button\n className={classes.button}\n variant=\"text\"\n size=\"small\"\n color=\"secondary\"\n startIcon={<DeleteIcon />}\n onClick={handleRemove}\n >\n Remove\n </Button>\n }\n />\n <ShortcutForm\n formValues={{ url: shortcut.url, title: shortcut.title }}\n onClose={handleClose}\n onSave={handleSave}\n allowExternalLinks={allowExternalLinks}\n />\n </Card>\n </Popover>\n );\n};\n","/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React from 'react';\nimport { makeStyles } from '@material-ui/core/styles';\nimport IconButton from '@material-ui/core/IconButton';\nimport Tooltip from '@material-ui/core/Tooltip';\nimport EditIcon from '@material-ui/icons/Edit';\nimport { ShortcutIcon } from './ShortcutIcon';\nimport { EditShortcut } from './EditShortcut';\nimport { ShortcutApi } from './api';\nimport { Shortcut } from './types';\nimport { SidebarItem } from '@backstage/core-components';\n\nconst useStyles = makeStyles(theme => ({\n root: {\n '&:hover #edit': {\n visibility: 'visible',\n },\n },\n button: {\n visibility: 'hidden',\n },\n icon: {\n color: theme.palette.common.white,\n fontSize: 16,\n },\n}));\n\nconst getIconText = (title: string) =>\n title.split(' ').length === 1\n ? // If there's only one word, keep the first two characters\n // eslint-disable-next-line no-restricted-syntax\n title[0].toUpperCase() + title[1].toLowerCase()\n : // If there's more than one word, take the first character of the first two words\n // eslint-disable-next-line no-restricted-syntax\n title\n .replace(/\\B\\W/g, '')\n .split(' ')\n .map(s => s[0])\n .join('')\n .slice(0, 2)\n .toUpperCase();\n\ntype Props = {\n shortcut: Shortcut;\n api: ShortcutApi;\n allowExternalLinks?: boolean;\n};\n\nexport const ShortcutItem = ({ shortcut, api, allowExternalLinks }: Props) => {\n const classes = useStyles();\n const [anchorEl, setAnchorEl] = React.useState<Element | undefined>();\n\n const handleClick = (event: React.MouseEvent<Element>) => {\n event.preventDefault();\n setAnchorEl(event.currentTarget);\n };\n\n const handleClose = () => {\n setAnchorEl(undefined);\n };\n\n const text = getIconText(shortcut.title);\n const color = api.getColor(shortcut.url);\n\n return (\n <>\n <Tooltip title={shortcut.title} enterDelay={500}>\n <SidebarItem\n className={classes.root}\n to={shortcut.url}\n text={shortcut.title}\n icon={() => <ShortcutIcon text={text} color={color} />}\n >\n <IconButton\n id=\"edit\"\n data-testid=\"edit\"\n onClick={handleClick}\n className={classes.button}\n >\n <EditIcon className={classes.icon} />\n </IconButton>\n </SidebarItem>\n </Tooltip>\n <EditShortcut\n onClose={handleClose}\n anchorEl={anchorEl}\n api={api}\n shortcut={shortcut}\n allowExternalLinks={allowExternalLinks}\n />\n </>\n );\n};\n","/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { useState } from 'react';\nimport { useLocation } from 'react-router-dom';\nimport { SubmitHandler } from 'react-hook-form';\nimport Button from '@material-ui/core/Button';\nimport Card from '@material-ui/core/Card';\nimport CardHeader from '@material-ui/core/CardHeader';\nimport Popover from '@material-ui/core/Popover';\nimport { makeStyles } from '@material-ui/core/styles';\nimport { ShortcutForm } from './ShortcutForm';\nimport { FormValues, Shortcut } from './types';\nimport { ShortcutApi } from './api';\nimport { alertApiRef, useApi, useAnalytics } from '@backstage/core-plugin-api';\n\nconst useStyles = makeStyles(theme => ({\n card: {\n maxWidth: 400,\n },\n header: {\n marginBottom: theme.spacing(1),\n },\n button: {\n marginTop: theme.spacing(1),\n },\n}));\n\ntype Props = {\n onClose: () => void;\n anchorEl?: Element;\n api: ShortcutApi;\n\n allowExternalLinks?: boolean;\n};\n\nexport const AddShortcut = ({\n onClose,\n anchorEl,\n api,\n allowExternalLinks,\n}: Props) => {\n const classes = useStyles();\n const alertApi = useApi(alertApiRef);\n const { pathname } = useLocation();\n const [formValues, setFormValues] = useState<FormValues>();\n const open = Boolean(anchorEl);\n const analytics = useAnalytics();\n\n const handleSave: SubmitHandler<FormValues> = async ({ url, title }) => {\n analytics.captureEvent('click', `Clicked 'Save' in AddShortcut`);\n const shortcut: Omit<Shortcut, 'id'> = { url, title };\n\n try {\n await api.add(shortcut);\n alertApi.post({\n message: `Added shortcut '${title}' to your sidebar`,\n severity: 'success',\n display: 'transient',\n });\n } catch (error) {\n alertApi.post({\n message: `Could not add shortcut: ${error.message}`,\n severity: 'error',\n });\n }\n\n onClose();\n };\n\n const handlePaste = () => {\n setFormValues({ url: pathname, title: document.title });\n };\n\n const handleClose = () => {\n setFormValues(undefined);\n onClose();\n };\n\n return (\n <Popover\n open={open}\n anchorEl={anchorEl}\n TransitionProps={{ onExit: handleClose }}\n onClose={onClose}\n anchorOrigin={{\n vertical: 'top',\n horizontal: 'right',\n }}\n >\n <Card className={classes.card}>\n <CardHeader\n className={classes.header}\n title=\"Add Shortcut\"\n titleTypographyProps={{ variant: 'subtitle2' }}\n action={\n <Button\n className={classes.button}\n variant=\"text\"\n size=\"small\"\n color=\"primary\"\n onClick={handlePaste}\n >\n Use current page\n </Button>\n }\n />\n <ShortcutForm\n onClose={handleClose}\n onSave={handleSave}\n formValues={formValues}\n allowExternalLinks={allowExternalLinks}\n />\n </Card>\n </Popover>\n );\n};\n","/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React from 'react';\nimport useObservable from 'react-use/esm/useObservable';\nimport PlayListAddIcon from '@material-ui/icons/PlaylistAdd';\nimport { ShortcutItem } from './ShortcutItem';\nimport { AddShortcut } from './AddShortcut';\nimport { shortcutsApiRef } from './api';\n\nimport {\n Progress,\n SidebarItem,\n SidebarScrollWrapper,\n} from '@backstage/core-components';\nimport { IconComponent, useApi } from '@backstage/core-plugin-api';\n\n/**\n * ShortcutsProps\n * Props for the {@link Shortcuts} component.\n * @public\n */\nexport interface ShortcutsProps {\n icon?: IconComponent;\n allowExternalLinks?: boolean;\n}\n\nexport const Shortcuts = (props: ShortcutsProps) => {\n const shortcutApi = useApi(shortcutsApiRef);\n const shortcuts = useObservable(shortcutApi.shortcut$(), shortcutApi.get());\n const [anchorEl, setAnchorEl] = React.useState<Element | undefined>();\n const loading = Boolean(!shortcuts);\n\n const handleClick = (event: React.MouseEvent<Element>) => {\n setAnchorEl(event.currentTarget);\n };\n\n const handleClose = () => {\n setAnchorEl(undefined);\n };\n\n return (\n <SidebarScrollWrapper>\n <SidebarItem\n icon={props.icon ?? PlayListAddIcon}\n text=\"Add Shortcuts\"\n onClick={handleClick}\n />\n <AddShortcut\n onClose={handleClose}\n anchorEl={anchorEl}\n api={shortcutApi}\n allowExternalLinks={props.allowExternalLinks}\n />\n {loading ? (\n <Progress />\n ) : (\n shortcuts?.map(shortcut => (\n <ShortcutItem\n key={shortcut.id}\n shortcut={shortcut}\n api={shortcutApi}\n allowExternalLinks={props.allowExternalLinks}\n />\n ))\n )}\n </SidebarScrollWrapper>\n );\n};\n"],"names":["useStyles","_a"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,MAAMA,WAAA,GAAY,WAAW,CAAU,KAAA,MAAA;AAAA,EACrC,MAAA,EAAQ,CAAC,KAAkB,MAAA;AAAA,IACzB,KAAO,EAAA,KAAA,CAAM,OAAQ,CAAA,eAAA,CAAgB,MAAM,KAAK,CAAA;AAAA,IAChD,iBAAiB,KAAM,CAAA,KAAA;AAAA,IACvB,KAAO,EAAA,EAAA;AAAA,IACP,MAAQ,EAAA,EAAA;AAAA,IACR,UAAY,EAAA,MAAA;AAAA,IACZ,QAAU,EAAA,EAAA;AAAA,IACV,MAAQ,EAAA,gCAAA;AAAA,GACV,CAAA;AACF,CAAE,CAAA,CAAA,CAAA;AAEW,MAAA,YAAA,GAAe,CAAC,KAAiB,KAAA;AAC5C,EAAM,MAAA,OAAA,GAAUA,YAAU,KAAK,CAAA,CAAA;AAE/B,EAAA,2CAAQ,MAAO,EAAA,EAAA,SAAA,EAAW,OAAQ,CAAA,MAAA,EAAA,EAAS,MAAM,IAAK,CAAA,CAAA;AACxD,CAAA;;ACbA,MAAMA,WAAA,GAAY,WAAW,CAAU,KAAA,MAAA;AAAA,EACrC,KAAO,EAAA;AAAA,IACL,YAAA,EAAc,KAAM,CAAA,OAAA,CAAQ,CAAC,CAAA;AAAA,GAC/B;AAAA,EACA,UAAY,EAAA;AAAA,IACV,WAAA,EAAa,KAAM,CAAA,OAAA,CAAQ,CAAC,CAAA;AAAA,IAC5B,aAAA,EAAe,KAAM,CAAA,OAAA,CAAQ,CAAC,CAAA;AAAA,IAC9B,cAAgB,EAAA,YAAA;AAAA,GAClB;AACF,CA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