@backstage/plugin-catalog 1.21.0-next.2 → 1.21.0-next.3

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,5 +1,28 @@
1
1
  # @backstage/plugin-catalog
2
2
 
3
+ ## 1.21.0-next.3
4
+
5
+ ### Patch Changes
6
+
7
+ - d44a20a: Added additional plugin metadata to `package.json`.
8
+ - e04e57d: Fix bug with missing Actions column after adding "pagination" prop to catalog table
9
+ - Updated dependencies
10
+ - @backstage/core-components@0.14.8-next.2
11
+ - @backstage/plugin-scaffolder-common@1.5.3-next.1
12
+ - @backstage/plugin-permission-react@0.4.23-next.1
13
+ - @backstage/plugin-catalog-common@1.0.24-next.0
14
+ - @backstage/plugin-catalog-react@1.12.1-next.2
15
+ - @backstage/plugin-search-common@1.2.12-next.0
16
+ - @backstage/plugin-search-react@1.7.12-next.2
17
+ - @backstage/integration-react@1.1.28-next.1
18
+ - @backstage/frontend-plugin-api@0.6.6-next.2
19
+ - @backstage/core-compat-api@0.2.6-next.2
20
+ - @backstage/catalog-client@1.6.5
21
+ - @backstage/catalog-model@1.5.0
22
+ - @backstage/core-plugin-api@1.9.3-next.0
23
+ - @backstage/errors@1.2.4
24
+ - @backstage/types@1.1.1
25
+
3
26
  ## 1.21.0-next.2
4
27
 
5
28
  ### Minor Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-catalog",
3
- "version": "1.21.0-next.2",
3
+ "version": "1.21.0-next.3",
4
4
  "main": "../dist/alpha.esm.js",
5
5
  "module": "../dist/alpha.esm.js",
6
6
  "types": "../dist/alpha.d.ts"
@@ -3,7 +3,7 @@ import { Table } from '@backstage/core-components';
3
3
  import { CatalogTableToolbar } from './CatalogTableToolbar.esm.js';
4
4
 
5
5
  function PaginatedCatalogTable(props) {
6
- const { columns, data, next, prev, title, isLoading, options } = props;
6
+ const { columns, data, next, prev, title, isLoading, options, ...restProps } = props;
7
7
  return /* @__PURE__ */ React.createElement(
8
8
  Table,
9
9
  {
@@ -31,7 +31,8 @@ function PaginatedCatalogTable(props) {
31
31
  },
32
32
  page: prev ? 1 : 0,
33
33
  totalCount: next ? Number.MAX_VALUE : Number.MAX_SAFE_INTEGER,
34
- localization: { pagination: { labelDisplayedRows: "" } }
34
+ localization: { pagination: { labelDisplayedRows: "" } },
35
+ ...restProps
35
36
  }
36
37
  );
37
38
  }
@@ -1 +1 @@
1
- {"version":3,"file":"PaginatedCatalogTable.esm.js","sources":["../../../src/components/CatalogTable/PaginatedCatalogTable.tsx"],"sourcesContent":["/*\n * Copyright 2023 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';\n\nimport { Table, TableProps } from '@backstage/core-components';\nimport { CatalogTableRow } from './types';\nimport { CatalogTableToolbar } from './CatalogTableToolbar';\n\ntype PaginatedCatalogTableProps = {\n prev?(): void;\n next?(): void;\n} & TableProps<CatalogTableRow>;\n\n/**\n * @internal\n */\nexport function PaginatedCatalogTable(props: PaginatedCatalogTableProps) {\n const { columns, data, next, prev, title, isLoading, options } = props;\n\n return (\n <Table\n title={isLoading ? '' : title}\n columns={columns}\n data={data}\n options={{\n ...options,\n // These settings are configured to force server side pagination\n paginationPosition: 'both',\n pageSizeOptions: [],\n showFirstLastPageButtons: false,\n pageSize: Number.MAX_SAFE_INTEGER,\n emptyRowsWhenPaging: false,\n }}\n onPageChange={page => {\n if (page > 0) {\n next?.();\n } else {\n prev?.();\n }\n }}\n components={{\n Toolbar: CatalogTableToolbar,\n }}\n /* this will enable the prev button accordingly */\n page={prev ? 1 : 0}\n /* this will enable the next button accordingly */\n totalCount={next ? Number.MAX_VALUE : Number.MAX_SAFE_INTEGER}\n localization={{ pagination: { labelDisplayedRows: '' } }}\n />\n );\n}\n"],"names":[],"mappings":";;;;AA8BO,SAAS,sBAAsB,KAAmC,EAAA;AACvE,EAAM,MAAA,EAAE,SAAS,IAAM,EAAA,IAAA,EAAM,MAAM,KAAO,EAAA,SAAA,EAAW,SAAY,GAAA,KAAA,CAAA;AAEjE,EACE,uBAAA,KAAA,CAAA,aAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACC,KAAA,EAAO,YAAY,EAAK,GAAA,KAAA;AAAA,MACxB,OAAA;AAAA,MACA,IAAA;AAAA,MACA,OAAS,EAAA;AAAA,QACP,GAAG,OAAA;AAAA;AAAA,QAEH,kBAAoB,EAAA,MAAA;AAAA,QACpB,iBAAiB,EAAC;AAAA,QAClB,wBAA0B,EAAA,KAAA;AAAA,QAC1B,UAAU,MAAO,CAAA,gBAAA;AAAA,QACjB,mBAAqB,EAAA,KAAA;AAAA,OACvB;AAAA,MACA,cAAc,CAAQ,IAAA,KAAA;AACpB,QAAA,IAAI,OAAO,CAAG,EAAA;AACZ,UAAO,IAAA,IAAA,CAAA;AAAA,SACF,MAAA;AACL,UAAO,IAAA,IAAA,CAAA;AAAA,SACT;AAAA,OACF;AAAA,MACA,UAAY,EAAA;AAAA,QACV,OAAS,EAAA,mBAAA;AAAA,OACX;AAAA,MAEA,IAAA,EAAM,OAAO,CAAI,GAAA,CAAA;AAAA,MAEjB,UAAY,EAAA,IAAA,GAAO,MAAO,CAAA,SAAA,GAAY,MAAO,CAAA,gBAAA;AAAA,MAC7C,cAAc,EAAE,UAAA,EAAY,EAAE,kBAAA,EAAoB,IAAK,EAAA;AAAA,KAAA;AAAA,GACzD,CAAA;AAEJ;;;;"}
1
+ {"version":3,"file":"PaginatedCatalogTable.esm.js","sources":["../../../src/components/CatalogTable/PaginatedCatalogTable.tsx"],"sourcesContent":["/*\n * Copyright 2023 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';\n\nimport { Table, TableProps } from '@backstage/core-components';\nimport { CatalogTableRow } from './types';\nimport { CatalogTableToolbar } from './CatalogTableToolbar';\n\ntype PaginatedCatalogTableProps = {\n prev?(): void;\n next?(): void;\n} & TableProps<CatalogTableRow>;\n\n/**\n * @internal\n */\nexport function PaginatedCatalogTable(props: PaginatedCatalogTableProps) {\n const { columns, data, next, prev, title, isLoading, options, ...restProps } =\n props;\n\n return (\n <Table\n title={isLoading ? '' : title}\n columns={columns}\n data={data}\n options={{\n ...options,\n // These settings are configured to force server side pagination\n paginationPosition: 'both',\n pageSizeOptions: [],\n showFirstLastPageButtons: false,\n pageSize: Number.MAX_SAFE_INTEGER,\n emptyRowsWhenPaging: false,\n }}\n onPageChange={page => {\n if (page > 0) {\n next?.();\n } else {\n prev?.();\n }\n }}\n components={{\n Toolbar: CatalogTableToolbar,\n }}\n /* this will enable the prev button accordingly */\n page={prev ? 1 : 0}\n /* this will enable the next button accordingly */\n totalCount={next ? Number.MAX_VALUE : Number.MAX_SAFE_INTEGER}\n localization={{ pagination: { labelDisplayedRows: '' } }}\n {...restProps}\n />\n );\n}\n"],"names":[],"mappings":";;;;AA8BO,SAAS,sBAAsB,KAAmC,EAAA;AACvE,EAAM,MAAA,EAAE,OAAS,EAAA,IAAA,EAAM,IAAM,EAAA,IAAA,EAAM,OAAO,SAAW,EAAA,OAAA,EAAS,GAAG,SAAA,EAC/D,GAAA,KAAA,CAAA;AAEF,EACE,uBAAA,KAAA,CAAA,aAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACC,KAAA,EAAO,YAAY,EAAK,GAAA,KAAA;AAAA,MACxB,OAAA;AAAA,MACA,IAAA;AAAA,MACA,OAAS,EAAA;AAAA,QACP,GAAG,OAAA;AAAA;AAAA,QAEH,kBAAoB,EAAA,MAAA;AAAA,QACpB,iBAAiB,EAAC;AAAA,QAClB,wBAA0B,EAAA,KAAA;AAAA,QAC1B,UAAU,MAAO,CAAA,gBAAA;AAAA,QACjB,mBAAqB,EAAA,KAAA;AAAA,OACvB;AAAA,MACA,cAAc,CAAQ,IAAA,KAAA;AACpB,QAAA,IAAI,OAAO,CAAG,EAAA;AACZ,UAAO,IAAA,IAAA,CAAA;AAAA,SACF,MAAA;AACL,UAAO,IAAA,IAAA,CAAA;AAAA,SACT;AAAA,OACF;AAAA,MACA,UAAY,EAAA;AAAA,QACV,OAAS,EAAA,mBAAA;AAAA,OACX;AAAA,MAEA,IAAA,EAAM,OAAO,CAAI,GAAA,CAAA;AAAA,MAEjB,UAAY,EAAA,IAAA,GAAO,MAAO,CAAA,SAAA,GAAY,MAAO,CAAA,gBAAA;AAAA,MAC7C,cAAc,EAAE,UAAA,EAAY,EAAE,kBAAA,EAAoB,IAAK,EAAA;AAAA,MACtD,GAAG,SAAA;AAAA,KAAA;AAAA,GACN,CAAA;AAEJ;;;;"}
package/package.json CHANGED
@@ -1,9 +1,17 @@
1
1
  {
2
2
  "name": "@backstage/plugin-catalog",
3
- "version": "1.21.0-next.2",
3
+ "version": "1.21.0-next.3",
4
4
  "description": "The Backstage plugin for browsing the Backstage catalog",
5
5
  "backstage": {
6
- "role": "frontend-plugin"
6
+ "role": "frontend-plugin",
7
+ "pluginId": "catalog",
8
+ "pluginPackages": [
9
+ "@backstage/plugin-catalog",
10
+ "@backstage/plugin-catalog-backend",
11
+ "@backstage/plugin-catalog-common",
12
+ "@backstage/plugin-catalog-node",
13
+ "@backstage/plugin-catalog-react"
14
+ ]
7
15
  },
8
16
  "publishConfig": {
9
17
  "access": "public"
@@ -51,18 +59,18 @@
51
59
  "dependencies": {
52
60
  "@backstage/catalog-client": "^1.6.5",
53
61
  "@backstage/catalog-model": "^1.5.0",
54
- "@backstage/core-compat-api": "^0.2.6-next.1",
55
- "@backstage/core-components": "^0.14.8-next.1",
62
+ "@backstage/core-compat-api": "^0.2.6-next.2",
63
+ "@backstage/core-components": "^0.14.8-next.2",
56
64
  "@backstage/core-plugin-api": "^1.9.3-next.0",
57
65
  "@backstage/errors": "^1.2.4",
58
- "@backstage/frontend-plugin-api": "^0.6.6-next.1",
59
- "@backstage/integration-react": "^1.1.28-next.0",
60
- "@backstage/plugin-catalog-common": "^1.0.23",
61
- "@backstage/plugin-catalog-react": "^1.12.1-next.1",
62
- "@backstage/plugin-permission-react": "^0.4.23-next.0",
63
- "@backstage/plugin-scaffolder-common": "^1.5.3-next.0",
64
- "@backstage/plugin-search-common": "^1.2.11",
65
- "@backstage/plugin-search-react": "^1.7.12-next.1",
66
+ "@backstage/frontend-plugin-api": "^0.6.6-next.2",
67
+ "@backstage/integration-react": "^1.1.28-next.1",
68
+ "@backstage/plugin-catalog-common": "^1.0.24-next.0",
69
+ "@backstage/plugin-catalog-react": "^1.12.1-next.2",
70
+ "@backstage/plugin-permission-react": "^0.4.23-next.1",
71
+ "@backstage/plugin-scaffolder-common": "^1.5.3-next.1",
72
+ "@backstage/plugin-search-common": "^1.2.12-next.0",
73
+ "@backstage/plugin-search-react": "^1.7.12-next.2",
66
74
  "@backstage/types": "^1.1.1",
67
75
  "@material-ui/core": "^4.12.2",
68
76
  "@material-ui/icons": "^4.9.1",
@@ -78,11 +86,11 @@
78
86
  "zen-observable": "^0.10.0"
79
87
  },
80
88
  "devDependencies": {
81
- "@backstage/cli": "^0.26.7-next.2",
89
+ "@backstage/cli": "^0.26.7-next.3",
82
90
  "@backstage/core-app-api": "^1.12.6-next.0",
83
- "@backstage/dev-utils": "^1.0.33-next.1",
84
- "@backstage/plugin-permission-common": "^0.7.13",
85
- "@backstage/test-utils": "^1.5.6-next.1",
91
+ "@backstage/dev-utils": "^1.0.33-next.2",
92
+ "@backstage/plugin-permission-common": "^0.7.14-next.0",
93
+ "@backstage/test-utils": "^1.5.6-next.2",
86
94
  "@testing-library/dom": "^10.0.0",
87
95
  "@testing-library/jest-dom": "^6.0.0",
88
96
  "@testing-library/react": "^15.0.0",