@backstage-community/plugin-bazaar 0.5.0 → 0.5.2
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 +13 -0
- package/dist/components/UserSelector/UserSelector.esm.js +22 -18
- package/dist/components/UserSelector/UserSelector.esm.js.map +1 -1
- package/dist/components/VirtualizedListbox/VirtualizedListbox.esm.js +38 -0
- package/dist/components/VirtualizedListbox/VirtualizedListbox.esm.js.map +1 -0
- package/package.json +11 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @backstage-community/plugin-bazaar
|
|
2
2
|
|
|
3
|
+
## 0.5.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- c3bdb20: feat(bazaar): improve `yarn dev` setup for running both frontend and backend together, and enable Bazaar API for project interactions.
|
|
8
|
+
- 8964f7d: Add virtualization to UserSelector dropdown
|
|
9
|
+
|
|
10
|
+
## 0.5.1
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- 56ae2fe: Backstage version bump to v1.32.2
|
|
15
|
+
|
|
3
16
|
## 0.5.0
|
|
4
17
|
|
|
5
18
|
### Minor Changes
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { useCallback } from 'react';
|
|
2
2
|
import { stringifyEntityRef } from '@backstage/catalog-model';
|
|
3
3
|
import Autocomplete, { createFilterOptions } from '@material-ui/lab/Autocomplete';
|
|
4
4
|
import TextField from '@material-ui/core/TextField';
|
|
5
5
|
import { makeStyles } from '@material-ui/core/styles';
|
|
6
6
|
import { Controller } from 'react-hook-form';
|
|
7
7
|
import { useApi } from '@backstage/core-plugin-api';
|
|
8
|
+
import useAsync from 'react-use/esm/useAsync';
|
|
8
9
|
import { entityPresentationApiRef, EntityDisplayName } from '@backstage/plugin-catalog-react';
|
|
10
|
+
import { VirtualizedListbox } from '../VirtualizedListbox/VirtualizedListbox.esm.js';
|
|
9
11
|
|
|
10
12
|
const useStyles = makeStyles({
|
|
11
13
|
container: { width: "100%", minWidth: "22rem" },
|
|
@@ -22,30 +24,30 @@ const UserSelector = ({
|
|
|
22
24
|
}) => {
|
|
23
25
|
const classes = useStyles();
|
|
24
26
|
const entityPresentationApi = useApi(entityPresentationApiRef);
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
const fetchPresentations = async () => {
|
|
28
|
-
const presentations = /* @__PURE__ */ new Map();
|
|
27
|
+
const { value: entityData, loading } = useAsync(async () => {
|
|
28
|
+
const entityRefToPresentation = new Map(
|
|
29
29
|
await Promise.all(
|
|
30
30
|
users.map(async (user) => {
|
|
31
31
|
const presentation = await entityPresentationApi.forEntity(user).promise;
|
|
32
|
-
|
|
32
|
+
return [stringifyEntityRef(user), presentation];
|
|
33
33
|
})
|
|
34
|
-
)
|
|
35
|
-
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
34
|
+
)
|
|
35
|
+
);
|
|
36
|
+
return { users, entityRefToPresentation };
|
|
37
|
+
}, [users]);
|
|
38
|
+
const getOptionLabel = useCallback(
|
|
39
|
+
(option) => {
|
|
40
|
+
if (typeof option === "string") return option;
|
|
41
|
+
const entityRef = stringifyEntityRef(option);
|
|
42
|
+
return entityData?.entityRefToPresentation.get(entityRef)?.primaryTitle ?? option.metadata.name;
|
|
43
|
+
},
|
|
44
|
+
[entityData]
|
|
45
|
+
);
|
|
44
46
|
const filterOptions = createFilterOptions({
|
|
45
47
|
stringify: (option) => {
|
|
46
48
|
if (typeof option === "string") return option;
|
|
47
49
|
const entityRef = stringifyEntityRef(option);
|
|
48
|
-
return
|
|
50
|
+
return entityData?.entityRefToPresentation.get(entityRef)?.primaryTitle ?? option.metadata.name;
|
|
49
51
|
}
|
|
50
52
|
});
|
|
51
53
|
return /* @__PURE__ */ React.createElement("div", { className: classes.container }, /* @__PURE__ */ React.createElement(
|
|
@@ -59,6 +61,7 @@ const UserSelector = ({
|
|
|
59
61
|
Autocomplete,
|
|
60
62
|
{
|
|
61
63
|
className: classes.autocomplete,
|
|
64
|
+
loading,
|
|
62
65
|
fullWidth: true,
|
|
63
66
|
freeSolo: true,
|
|
64
67
|
disableClearable,
|
|
@@ -93,7 +96,8 @@ const UserSelector = ({
|
|
|
93
96
|
filtered.push(params.inputValue);
|
|
94
97
|
}
|
|
95
98
|
return filtered;
|
|
96
|
-
}
|
|
99
|
+
},
|
|
100
|
+
ListboxComponent: VirtualizedListbox
|
|
97
101
|
}
|
|
98
102
|
)
|
|
99
103
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserSelector.esm.js","sources":["../../../src/components/UserSelector/UserSelector.tsx"],"sourcesContent":["/*\n * Copyright 2024 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 */\nimport React, {
|
|
1
|
+
{"version":3,"file":"UserSelector.esm.js","sources":["../../../src/components/UserSelector/UserSelector.tsx"],"sourcesContent":["/*\n * Copyright 2024 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 */\nimport React, { useCallback } from 'react';\nimport { Entity, stringifyEntityRef } from '@backstage/catalog-model';\nimport Autocomplete, {\n createFilterOptions,\n} from '@material-ui/lab/Autocomplete';\nimport TextField from '@material-ui/core/TextField';\nimport { makeStyles } from '@material-ui/core/styles';\nimport { Controller, Control } from 'react-hook-form';\nimport { FormValues } from '../../types';\nimport { useApi } from '@backstage/core-plugin-api';\nimport useAsync from 'react-use/esm/useAsync';\nimport {\n entityPresentationApiRef,\n EntityDisplayName,\n} from '@backstage/plugin-catalog-react';\nimport { VirtualizedListbox } from '../VirtualizedListbox';\n\ntype Props = {\n users: Entity[];\n disableClearable: boolean;\n defaultValue: string | null;\n label: string;\n name: 'responsible';\n control: Control<FormValues, object>;\n rules?: Record<string, any>;\n};\n\nconst useStyles = makeStyles({\n container: { width: '100%', minWidth: '22rem' },\n autocomplete: { overflow: 'hidden' },\n});\n\nexport const UserSelector = ({\n users,\n disableClearable,\n defaultValue,\n label,\n name,\n control,\n rules,\n}: Props) => {\n const classes = useStyles();\n const entityPresentationApi = useApi(entityPresentationApiRef);\n\n const { value: entityData, loading } = useAsync(async () => {\n const entityRefToPresentation = new Map(\n await Promise.all(\n users.map(async user => {\n const presentation = await entityPresentationApi.forEntity(user)\n .promise;\n return [stringifyEntityRef(user), presentation] as const;\n }),\n ),\n );\n\n return { users, entityRefToPresentation };\n }, [users]);\n\n const getOptionLabel = useCallback(\n (option: Entity | string) => {\n // option can be a string due to freeSolo.\n if (typeof option === 'string') return option;\n const entityRef = stringifyEntityRef(option);\n return (\n entityData?.entityRefToPresentation.get(entityRef)?.primaryTitle ??\n option.metadata.name\n );\n },\n [entityData],\n );\n\n const filterOptions = createFilterOptions<Entity | string>({\n stringify: option => {\n if (typeof option === 'string') return option;\n const entityRef = stringifyEntityRef(option);\n return (\n entityData?.entityRefToPresentation.get(entityRef)?.primaryTitle ??\n option.metadata.name\n );\n },\n });\n\n return (\n <div className={classes.container}>\n <Controller\n name={name}\n control={control}\n rules={rules}\n defaultValue={defaultValue ?? ''}\n render={({ field: { onChange, value }, fieldState: { error } }) => (\n <Autocomplete\n className={classes.autocomplete}\n loading={loading}\n fullWidth\n freeSolo\n disableClearable={disableClearable}\n value={value}\n options={users}\n getOptionLabel={getOptionLabel}\n renderOption={option =>\n typeof option === 'string' ? (\n option\n ) : (\n <EntityDisplayName entityRef={option} />\n )\n }\n renderInput={params => (\n <TextField\n {...params}\n label={label}\n required={!!rules?.required}\n error={!!error}\n helperText={error?.message}\n />\n )}\n onChange={(_, data) => {\n if (typeof data === 'string') {\n onChange(data);\n } else if (data) {\n onChange(stringifyEntityRef(data));\n } else {\n onChange('');\n }\n }}\n filterOptions={(options, params) => {\n const filtered = filterOptions(options, params);\n if (\n params.inputValue !== '' &&\n !options.some(\n option => getOptionLabel(option) === params.inputValue,\n )\n ) {\n filtered.push(params.inputValue);\n }\n return filtered;\n }}\n ListboxComponent={VirtualizedListbox}\n />\n )}\n />\n </div>\n );\n};\n"],"names":[],"mappings":";;;;;;;;;;;AA0CA,MAAM,YAAY,UAAW,CAAA;AAAA,EAC3B,SAAW,EAAA,EAAE,KAAO,EAAA,MAAA,EAAQ,UAAU,OAAQ,EAAA;AAAA,EAC9C,YAAA,EAAc,EAAE,QAAA,EAAU,QAAS,EAAA;AACrC,CAAC,CAAA,CAAA;AAEM,MAAM,eAAe,CAAC;AAAA,EAC3B,KAAA;AAAA,EACA,gBAAA;AAAA,EACA,YAAA;AAAA,EACA,KAAA;AAAA,EACA,IAAA;AAAA,EACA,OAAA;AAAA,EACA,KAAA;AACF,CAAa,KAAA;AACX,EAAA,MAAM,UAAU,SAAU,EAAA,CAAA;AAC1B,EAAM,MAAA,qBAAA,GAAwB,OAAO,wBAAwB,CAAA,CAAA;AAE7D,EAAA,MAAM,EAAE,KAAO,EAAA,UAAA,EAAY,OAAQ,EAAA,GAAI,SAAS,YAAY;AAC1D,IAAA,MAAM,0BAA0B,IAAI,GAAA;AAAA,MAClC,MAAM,OAAQ,CAAA,GAAA;AAAA,QACZ,KAAA,CAAM,GAAI,CAAA,OAAM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AAc,CAAA,OAAA,EAAS,MAAM,CAAA,CAAA;AAC9C,YAAA,IACE,MAAO,CAAA,UAAA,KAAe,EACtB,IAAA,CAAC,OAAQ,CAAA,IAAA;AAAA,cACP,CAAU,MAAA,KAAA,cAAA,CAAe,MAAM,CAAA,KAAM,MAAO,CAAA,UAAA;AAAA,aAE9C,EAAA;AACA,cAAS,QAAA,CAAA,IAAA,CAAK,OAAO,UAAU,CAAA,CAAA;AAAA,aACjC;AACA,YAAO,OAAA,QAAA,CAAA;AAAA,WACT;AAAA,UACA,gBAAkB,EAAA,kBAAA;AAAA,SAAA;AAAA,OACpB;AAAA,KAAA;AAAA,GAGN,CAAA,CAAA;AAEJ;;;;"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FixedSizeList } from 'react-window';
|
|
3
|
+
|
|
4
|
+
const renderRow = (props) => {
|
|
5
|
+
const { data, index, style } = props;
|
|
6
|
+
return React.cloneElement(data[index], { style });
|
|
7
|
+
};
|
|
8
|
+
const OuterElementContext = React.createContext({});
|
|
9
|
+
const OuterElementType = React.forwardRef(
|
|
10
|
+
(props, ref) => {
|
|
11
|
+
const outerProps = React.useContext(OuterElementContext);
|
|
12
|
+
return /* @__PURE__ */ React.createElement("div", { ref, ...props, ...outerProps });
|
|
13
|
+
}
|
|
14
|
+
);
|
|
15
|
+
OuterElementType.displayName = "OuterElementType";
|
|
16
|
+
const VirtualizedListbox = React.forwardRef((props, ref) => {
|
|
17
|
+
const { children, ...other } = props;
|
|
18
|
+
const itemData = React.Children.toArray(children);
|
|
19
|
+
const itemCount = itemData.length;
|
|
20
|
+
const itemSize = 36;
|
|
21
|
+
const itemsToShow = Math.min(10, itemCount) + 0.5;
|
|
22
|
+
const height = itemsToShow * itemSize;
|
|
23
|
+
return /* @__PURE__ */ React.createElement("div", { ref }, /* @__PURE__ */ React.createElement(OuterElementContext.Provider, { value: other }, /* @__PURE__ */ React.createElement(
|
|
24
|
+
FixedSizeList,
|
|
25
|
+
{
|
|
26
|
+
height,
|
|
27
|
+
width: "100%",
|
|
28
|
+
itemCount,
|
|
29
|
+
itemSize,
|
|
30
|
+
itemData,
|
|
31
|
+
outerElementType: OuterElementType
|
|
32
|
+
},
|
|
33
|
+
renderRow
|
|
34
|
+
)));
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
export { VirtualizedListbox };
|
|
38
|
+
//# sourceMappingURL=VirtualizedListbox.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VirtualizedListbox.esm.js","sources":["../../../src/components/VirtualizedListbox/VirtualizedListbox.tsx"],"sourcesContent":["/*\n * Copyright 2024 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 */\nimport React from 'react';\nimport { FixedSizeList, ListChildComponentProps } from 'react-window';\n\ntype HTMLDivProps = React.HTMLAttributes<HTMLDivElement>;\n\nconst renderRow = (props: ListChildComponentProps) => {\n const { data, index, style } = props;\n return React.cloneElement(data[index], { style });\n};\n\n// Context needed to keep Autocomplete working correctly : https://v4.mui.com/components/autocomplete/#Virtualize.tsx\nconst OuterElementContext = React.createContext<HTMLDivProps>({});\n\nconst OuterElementType = React.forwardRef<HTMLDivElement, HTMLDivProps>(\n (props, ref) => {\n const outerProps = React.useContext(OuterElementContext);\n return <div ref={ref} {...props} {...outerProps} />;\n },\n);\n\nOuterElementType.displayName = 'OuterElementType';\n\nexport const VirtualizedListbox = React.forwardRef<\n HTMLDivElement,\n HTMLDivProps\n>((props, ref) => {\n const { children, ...other } = props;\n const itemData = React.Children.toArray(children);\n const itemCount = itemData.length;\n\n const itemSize = 36;\n const itemsToShow = Math.min(10, itemCount) + 0.5;\n const height = itemsToShow * itemSize;\n\n return (\n <div ref={ref}>\n <OuterElementContext.Provider value={other}>\n <FixedSizeList\n height={height}\n width=\"100%\"\n itemCount={itemCount}\n itemSize={itemSize}\n itemData={itemData}\n outerElementType={OuterElementType}\n >\n {renderRow}\n </FixedSizeList>\n </OuterElementContext.Provider>\n </div>\n );\n});\n"],"names":[],"mappings":";;;AAoBA,MAAM,SAAA,GAAY,CAAC,KAAmC,KAAA;AACpD,EAAA,MAAM,EAAE,IAAA,EAAM,KAAO,EAAA,KAAA,EAAU,GAAA,KAAA,CAAA;AAC/B,EAAA,OAAO,MAAM,YAAa,CAAA,IAAA,CAAK,KAAK,CAAG,EAAA,EAAE,OAAO,CAAA,CAAA;AAClD,CAAA,CAAA;AAGA,MAAM,mBAAsB,GAAA,KAAA,CAAM,aAA4B,CAAA,EAAE,CAAA,CAAA;AAEhE,MAAM,mBAAmB,KAAM,CAAA,UAAA;AAAA,EAC7B,CAAC,OAAO,GAAQ,KAAA;AACd,IAAM,MAAA,UAAA,GAAa,KAAM,CAAA,UAAA,CAAW,mBAAmB,CAAA,CAAA;AACvD,IAAA,2CAAQ,KAAI,EAAA,EAAA,GAAA,EAAW,GAAG,KAAA,EAAQ,GAAG,UAAY,EAAA,CAAA,CAAA;AAAA,GACnD;AACF,CAAA,CAAA;AAEA,gBAAA,CAAiB,WAAc,GAAA,kBAAA,CAAA;AAExB,MAAM,kBAAqB,GAAA,KAAA,CAAM,UAGtC,CAAA,CAAC,OAAO,GAAQ,KAAA;AAChB,EAAA,MAAM,EAAE,QAAA,EAAU,GAAG,KAAA,EAAU,GAAA,KAAA,CAAA;AAC/B,EAAA,MAAM,QAAW,GAAA,KAAA,CAAM,QAAS,CAAA,OAAA,CAAQ,QAAQ,CAAA,CAAA;AAChD,EAAA,MAAM,YAAY,QAAS,CAAA,MAAA,CAAA;AAE3B,EAAA,MAAM,QAAW,GAAA,EAAA,CAAA;AACjB,EAAA,MAAM,WAAc,GAAA,IAAA,CAAK,GAAI,CAAA,EAAA,EAAI,SAAS,CAAI,GAAA,GAAA,CAAA;AAC9C,EAAA,MAAM,SAAS,WAAc,GAAA,QAAA,CAAA;AAE7B,EACE,uBAAA,KAAA,CAAA,aAAA,CAAC,SAAI,GACH,EAAA,kBAAA,KAAA,CAAA,aAAA,CAAC,oBAAoB,QAApB,EAAA,EAA6B,OAAO,KACnC,EAAA,kBAAA,KAAA,CAAA,aAAA;AAAA,IAAC,aAAA;AAAA,IAAA;AAAA,MACC,MAAA;AAAA,MACA,KAAM,EAAA,MAAA;AAAA,MACN,SAAA;AAAA,MACA,QAAA;AAAA,MACA,QAAA;AAAA,MACA,gBAAkB,EAAA,gBAAA;AAAA,KAAA;AAAA,IAEjB,SAAA;AAAA,GAEL,CACF,CAAA,CAAA;AAEJ,CAAC;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage-community/plugin-bazaar",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"backstage": {
|
|
5
5
|
"role": "frontend-plugin",
|
|
6
6
|
"pluginId": "bazaar",
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
"test": "backstage-cli package test"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@backstage/catalog-client": "^1.7.
|
|
40
|
+
"@backstage/catalog-client": "^1.7.1",
|
|
41
41
|
"@backstage/catalog-model": "^1.7.0",
|
|
42
|
-
"@backstage/core-components": "^0.15.
|
|
43
|
-
"@backstage/core-plugin-api": "^1.
|
|
42
|
+
"@backstage/core-components": "^0.15.1",
|
|
43
|
+
"@backstage/core-plugin-api": "^1.10.0",
|
|
44
44
|
"@backstage/errors": "^1.2.4",
|
|
45
|
-
"@backstage/plugin-catalog-react": "^1.
|
|
45
|
+
"@backstage/plugin-catalog-react": "^1.14.0",
|
|
46
46
|
"@date-io/luxon": "1.x",
|
|
47
47
|
"@material-ui/core": "^4.12.2",
|
|
48
48
|
"@material-ui/icons": "^4.9.1",
|
|
@@ -53,15 +53,18 @@
|
|
|
53
53
|
"luxon": "^3.0.0",
|
|
54
54
|
"material-ui-search-bar": "^1.0.0",
|
|
55
55
|
"react-hook-form": "^7.13.0",
|
|
56
|
-
"react-use": "^17.2.4"
|
|
56
|
+
"react-use": "^17.2.4",
|
|
57
|
+
"react-window": "^1.8.10"
|
|
57
58
|
},
|
|
58
59
|
"devDependencies": {
|
|
59
|
-
"@backstage/cli": "^0.
|
|
60
|
-
"@backstage/dev-utils": "^1.1.
|
|
60
|
+
"@backstage/cli": "^0.28.0",
|
|
61
|
+
"@backstage/dev-utils": "^1.1.2",
|
|
62
|
+
"@backstage/plugin-catalog": "^1.23.1",
|
|
61
63
|
"@testing-library/dom": "^10.0.0",
|
|
62
64
|
"@testing-library/jest-dom": "^6.0.0",
|
|
63
65
|
"@testing-library/react": "^15.0.0",
|
|
64
66
|
"@types/react-dom": "^18.2.19",
|
|
67
|
+
"@types/react-window": "^1.8.8",
|
|
65
68
|
"canvas": "^2.11.2",
|
|
66
69
|
"react": "^16.13.1 || ^17.0.0 || ^18.0.0",
|
|
67
70
|
"react-dom": "^16.13.1 || ^17.0.0 || ^18.0.0",
|