@backstage/plugin-catalog-unprocessed-entities 0.2.29-next.0 → 0.2.29-next.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 CHANGED
@@ -1,5 +1,30 @@
1
1
  # @backstage/plugin-catalog-unprocessed-entities
2
2
 
3
+ ## 0.2.29-next.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 482ceed: Migrated from `assertError` to `toError` for error handling.
8
+ - Updated dependencies
9
+ - @backstage/ui@0.14.0-next.2
10
+ - @backstage/errors@1.3.0-next.0
11
+ - @backstage/core-components@0.18.9-next.1
12
+ - @backstage/core-compat-api@0.5.10-next.2
13
+ - @backstage/core-plugin-api@1.12.5-next.2
14
+ - @backstage/frontend-plugin-api@0.16.0-next.2
15
+ - @backstage/plugin-catalog-unprocessed-entities-common@0.0.14-next.0
16
+
17
+ ## 0.2.29-next.1
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies
22
+ - @backstage/ui@0.14.0-next.1
23
+ - @backstage/frontend-plugin-api@0.16.0-next.1
24
+ - @backstage/core-compat-api@0.5.10-next.1
25
+ - @backstage/core-components@0.18.9-next.0
26
+ - @backstage/core-plugin-api@1.12.5-next.1
27
+
3
28
  ## 0.2.29-next.0
4
29
 
5
30
  ### Patch Changes
@@ -4,7 +4,6 @@ import Dialog from '@material-ui/core/Dialog';
4
4
  import DialogActions from '@material-ui/core/DialogActions';
5
5
  import DialogTitle from '@material-ui/core/DialogTitle';
6
6
  import { useState } from 'react';
7
- import { assertError } from '@backstage/errors';
8
7
 
9
8
  function DeleteEntityConfirmationDialog(props) {
10
9
  const { open, onClose, onConfirm } = props;
@@ -13,8 +12,7 @@ function DeleteEntityConfirmationDialog(props) {
13
12
  setBusy(true);
14
13
  try {
15
14
  onConfirm();
16
- } catch (err) {
17
- assertError(err);
15
+ } catch {
18
16
  } finally {
19
17
  setBusy(false);
20
18
  }
@@ -1 +1 @@
1
- {"version":3,"file":"DeleteEntityConfirmationDialog.esm.js","sources":["../../src/components/DeleteEntityConfirmationDialog.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 Button from '@material-ui/core/Button';\nimport Dialog from '@material-ui/core/Dialog';\nimport DialogActions from '@material-ui/core/DialogActions';\nimport DialogTitle from '@material-ui/core/DialogTitle';\nimport { useState } from 'react';\nimport { assertError } from '@backstage/errors';\n\ninterface DeleteEntityConfirmationProps {\n open: boolean;\n onClose: () => any;\n onConfirm: () => any;\n}\n\nexport function DeleteEntityConfirmationDialog(\n props: DeleteEntityConfirmationProps,\n) {\n const { open, onClose, onConfirm } = props;\n const [busy, setBusy] = useState(false);\n const onDelete = async () => {\n setBusy(true);\n try {\n onConfirm();\n } catch (err) {\n assertError(err);\n } finally {\n setBusy(false);\n }\n };\n\n return (\n <Dialog open={open} onClose={onClose}>\n <DialogTitle id=\"responsive-dialog-title\">\n Are you sure you want to delete this entity?\n </DialogTitle>\n <DialogActions>\n <Button\n variant=\"contained\"\n color=\"secondary\"\n disabled={busy}\n onClick={onDelete}\n >\n Delete\n </Button>\n <Button onClick={onClose} color=\"primary\">\n Cancel\n </Button>\n </DialogActions>\n </Dialog>\n );\n}\n"],"names":[],"mappings":";;;;;;;;AA6BO,SAAS,+BACd,KAAA,EACA;AACA,EAAA,MAAM,EAAE,IAAA,EAAM,OAAA,EAAS,SAAA,EAAU,GAAI,KAAA;AACrC,EAAA,MAAM,CAAC,IAAA,EAAM,OAAO,CAAA,GAAI,SAAS,KAAK,CAAA;AACtC,EAAA,MAAM,WAAW,YAAY;AAC3B,IAAA,OAAA,CAAQ,IAAI,CAAA;AACZ,IAAA,IAAI;AACF,MAAA,SAAA,EAAU;AAAA,IACZ,SAAS,GAAA,EAAK;AACZ,MAAA,WAAA,CAAY,GAAG,CAAA;AAAA,IACjB,CAAA,SAAE;AACA,MAAA,OAAA,CAAQ,KAAK,CAAA;AAAA,IACf;AAAA,EACF,CAAA;AAEA,EAAA,uBACE,IAAA,CAAC,MAAA,EAAA,EAAO,IAAA,EAAY,OAAA,EAClB,QAAA,EAAA;AAAA,oBAAA,GAAA,CAAC,WAAA,EAAA,EAAY,EAAA,EAAG,yBAAA,EAA0B,QAAA,EAAA,8CAAA,EAE1C,CAAA;AAAA,yBACC,aAAA,EAAA,EACC,QAAA,EAAA;AAAA,sBAAA,GAAA;AAAA,QAAC,MAAA;AAAA,QAAA;AAAA,UACC,OAAA,EAAQ,WAAA;AAAA,UACR,KAAA,EAAM,WAAA;AAAA,UACN,QAAA,EAAU,IAAA;AAAA,UACV,OAAA,EAAS,QAAA;AAAA,UACV,QAAA,EAAA;AAAA;AAAA,OAED;AAAA,0BACC,MAAA,EAAA,EAAO,OAAA,EAAS,OAAA,EAAS,KAAA,EAAM,WAAU,QAAA,EAAA,QAAA,EAE1C;AAAA,KAAA,EACF;AAAA,GAAA,EACF,CAAA;AAEJ;;;;"}
1
+ {"version":3,"file":"DeleteEntityConfirmationDialog.esm.js","sources":["../../src/components/DeleteEntityConfirmationDialog.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 Button from '@material-ui/core/Button';\nimport Dialog from '@material-ui/core/Dialog';\nimport DialogActions from '@material-ui/core/DialogActions';\nimport DialogTitle from '@material-ui/core/DialogTitle';\nimport { useState } from 'react';\n\ninterface DeleteEntityConfirmationProps {\n open: boolean;\n onClose: () => any;\n onConfirm: () => any;\n}\n\nexport function DeleteEntityConfirmationDialog(\n props: DeleteEntityConfirmationProps,\n) {\n const { open, onClose, onConfirm } = props;\n const [busy, setBusy] = useState(false);\n const onDelete = async () => {\n setBusy(true);\n try {\n onConfirm();\n } catch {\n // ignored\n } finally {\n setBusy(false);\n }\n };\n\n return (\n <Dialog open={open} onClose={onClose}>\n <DialogTitle id=\"responsive-dialog-title\">\n Are you sure you want to delete this entity?\n </DialogTitle>\n <DialogActions>\n <Button\n variant=\"contained\"\n color=\"secondary\"\n disabled={busy}\n onClick={onDelete}\n >\n Delete\n </Button>\n <Button onClick={onClose} color=\"primary\">\n Cancel\n </Button>\n </DialogActions>\n </Dialog>\n );\n}\n"],"names":[],"mappings":";;;;;;;AA4BO,SAAS,+BACd,KAAA,EACA;AACA,EAAA,MAAM,EAAE,IAAA,EAAM,OAAA,EAAS,SAAA,EAAU,GAAI,KAAA;AACrC,EAAA,MAAM,CAAC,IAAA,EAAM,OAAO,CAAA,GAAI,SAAS,KAAK,CAAA;AACtC,EAAA,MAAM,WAAW,YAAY;AAC3B,IAAA,OAAA,CAAQ,IAAI,CAAA;AACZ,IAAA,IAAI;AACF,MAAA,SAAA,EAAU;AAAA,IACZ,CAAA,CAAA,MAAQ;AAAA,IAER,CAAA,SAAE;AACA,MAAA,OAAA,CAAQ,KAAK,CAAA;AAAA,IACf;AAAA,EACF,CAAA;AAEA,EAAA,uBACE,IAAA,CAAC,MAAA,EAAA,EAAO,IAAA,EAAY,OAAA,EAClB,QAAA,EAAA;AAAA,oBAAA,GAAA,CAAC,WAAA,EAAA,EAAY,EAAA,EAAG,yBAAA,EAA0B,QAAA,EAAA,8CAAA,EAE1C,CAAA;AAAA,yBACC,aAAA,EAAA,EACC,QAAA,EAAA;AAAA,sBAAA,GAAA;AAAA,QAAC,MAAA;AAAA,QAAA;AAAA,UACC,OAAA,EAAQ,WAAA;AAAA,UACR,KAAA,EAAM,WAAA;AAAA,UACN,QAAA,EAAU,IAAA;AAAA,UACV,OAAA,EAAS,QAAA;AAAA,UACV,QAAA,EAAA;AAAA;AAAA,OAED;AAAA,0BACC,MAAA,EAAA,EAAO,OAAA,EAAS,OAAA,EAAS,KAAA,EAAM,WAAU,QAAA,EAAA,QAAA,EAE1C;AAAA,KAAA,EACF;AAAA,GAAA,EACF,CAAA;AAEJ;;;;"}
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as _backstage_core_plugin_api from '@backstage/core-plugin-api';
3
3
  import * as _backstage_frontend_plugin_api from '@backstage/frontend-plugin-api';
4
- import { CatalogUnprocessedEntitiesApiResponse as CatalogUnprocessedEntitiesApiResponse$1, CatalogUnprocessedEntitiesApi as CatalogUnprocessedEntitiesApi$1, UnprocessedEntity as UnprocessedEntity$1, UnprocessedEntityCache as UnprocessedEntityCache$1, UnprocessedEntityError as UnprocessedEntityError$1 } from '@backstage/plugin-catalog-unprocessed-entities-common';
4
+ import { CatalogUnprocessedEntitiesApi as CatalogUnprocessedEntitiesApi$1, CatalogUnprocessedEntitiesApiResponse as CatalogUnprocessedEntitiesApiResponse$1, UnprocessedEntity as UnprocessedEntity$1, UnprocessedEntityCache as UnprocessedEntityCache$1, UnprocessedEntityError as UnprocessedEntityError$1 } from '@backstage/plugin-catalog-unprocessed-entities-common';
5
5
 
6
6
  /**
7
7
  * Plugin entry point
@@ -1,5 +1,5 @@
1
1
  var name = "@backstage/plugin-catalog-unprocessed-entities";
2
- var version = "0.2.29-next.0";
2
+ var version = "0.2.29-next.2";
3
3
  var backstage = {
4
4
  role: "frontend-plugin",
5
5
  pluginId: "catalog-unprocessed-entities",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-catalog-unprocessed-entities",
3
- "version": "0.2.29-next.0",
3
+ "version": "0.2.29-next.2",
4
4
  "backstage": {
5
5
  "role": "frontend-plugin",
6
6
  "pluginId": "catalog-unprocessed-entities",
@@ -62,13 +62,13 @@
62
62
  "test": "backstage-cli package test"
63
63
  },
64
64
  "dependencies": {
65
- "@backstage/core-compat-api": "0.5.10-next.0",
66
- "@backstage/core-components": "0.18.9-next.0",
67
- "@backstage/core-plugin-api": "1.12.5-next.0",
68
- "@backstage/errors": "1.2.7",
69
- "@backstage/frontend-plugin-api": "0.15.2-next.0",
70
- "@backstage/plugin-catalog-unprocessed-entities-common": "0.0.13",
71
- "@backstage/ui": "0.14.0-next.0",
65
+ "@backstage/core-compat-api": "0.5.10-next.2",
66
+ "@backstage/core-components": "0.18.9-next.1",
67
+ "@backstage/core-plugin-api": "1.12.5-next.2",
68
+ "@backstage/errors": "1.3.0-next.0",
69
+ "@backstage/frontend-plugin-api": "0.16.0-next.2",
70
+ "@backstage/plugin-catalog-unprocessed-entities-common": "0.0.14-next.0",
71
+ "@backstage/ui": "0.14.0-next.2",
72
72
  "@material-ui/core": "^4.9.13",
73
73
  "@material-ui/icons": "^4.9.1",
74
74
  "@material-ui/lab": "^4.0.0-alpha.60",
@@ -76,8 +76,8 @@
76
76
  "react-use": "^17.2.4"
77
77
  },
78
78
  "devDependencies": {
79
- "@backstage/cli": "0.36.1-next.0",
80
- "@backstage/dev-utils": "1.1.22-next.0",
79
+ "@backstage/cli": "0.36.1-next.2",
80
+ "@backstage/dev-utils": "1.1.22-next.2",
81
81
  "@testing-library/jest-dom": "^6.0.0",
82
82
  "@testing-library/react": "^16.0.0",
83
83
  "@types/react": "^18.0.0",