@backstage/plugin-catalog-import 0.10.1-next.2 → 0.10.2-next.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 +39 -0
- package/alpha/package.json +7 -0
- package/dist/alpha.d.ts +8 -0
- package/dist/alpha.esm.js +55 -0
- package/dist/alpha.esm.js.map +1 -0
- package/dist/esm/DefaultImportPage-b63e3978.esm.js +1077 -0
- package/dist/esm/DefaultImportPage-b63e3978.esm.js.map +1 -0
- package/dist/esm/{index-c813775b.esm.js → index-b503497e.esm.js} +5 -4
- package/dist/esm/{index-c813775b.esm.js.map → index-b503497e.esm.js.map} +1 -1
- package/dist/esm/plugin-76ffcc0d.esm.js +334 -0
- package/dist/esm/plugin-76ffcc0d.esm.js.map +1 -0
- package/dist/index.esm.js +24 -1401
- package/dist/index.esm.js.map +1 -1
- package/package.json +39 -27
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,44 @@
|
|
|
1
1
|
# @backstage/plugin-catalog-import
|
|
2
2
|
|
|
3
|
+
## 0.10.2-next.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 6db75b900a: Create an experimental plugin that is compatible with the declarative integration system, it is exported from the `/alpha` subpath.
|
|
8
|
+
- 6c2b872153: Add official support for React 18.
|
|
9
|
+
- 71c97e7d73: The `app.title` configuration is now properly required to be a string.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
- @backstage/core-components@0.13.7-next.0
|
|
12
|
+
- @backstage/frontend-plugin-api@0.3.0-next.0
|
|
13
|
+
- @backstage/plugin-catalog-react@1.9.0-next.0
|
|
14
|
+
- @backstage/integration-react@1.1.21-next.0
|
|
15
|
+
- @backstage/core-plugin-api@1.8.0-next.0
|
|
16
|
+
- @backstage/integration@1.7.1
|
|
17
|
+
- @backstage/catalog-client@1.4.5
|
|
18
|
+
- @backstage/catalog-model@1.4.3
|
|
19
|
+
- @backstage/config@1.1.1
|
|
20
|
+
- @backstage/errors@1.2.3
|
|
21
|
+
- @backstage/plugin-catalog-common@1.0.17
|
|
22
|
+
|
|
23
|
+
## 0.10.1
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- 9a1fce352e: Updated dependency `@testing-library/jest-dom` to `^6.0.0`.
|
|
28
|
+
- f95af4e540: Updated dependency `@testing-library/dom` to `^9.0.0`.
|
|
29
|
+
- 0296f272b4: The `app.title` configuration is now properly required to be a string.
|
|
30
|
+
- Updated dependencies
|
|
31
|
+
- @backstage/integration@1.7.1
|
|
32
|
+
- @backstage/plugin-catalog-react@1.8.5
|
|
33
|
+
- @backstage/core-plugin-api@1.7.0
|
|
34
|
+
- @backstage/core-components@0.13.6
|
|
35
|
+
- @backstage/integration-react@1.1.20
|
|
36
|
+
- @backstage/catalog-model@1.4.3
|
|
37
|
+
- @backstage/errors@1.2.3
|
|
38
|
+
- @backstage/catalog-client@1.4.5
|
|
39
|
+
- @backstage/config@1.1.1
|
|
40
|
+
- @backstage/plugin-catalog-common@1.0.17
|
|
41
|
+
|
|
3
42
|
## 0.10.1-next.2
|
|
4
43
|
|
|
5
44
|
### Patch Changes
|
package/dist/alpha.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as _backstage_frontend_plugin_api from '@backstage/frontend-plugin-api';
|
|
2
|
+
|
|
3
|
+
/** @alpha */
|
|
4
|
+
declare const _default: _backstage_frontend_plugin_api.BackstagePlugin<{
|
|
5
|
+
importPage: _backstage_frontend_plugin_api.RouteRef<undefined>;
|
|
6
|
+
}, {}>;
|
|
7
|
+
|
|
8
|
+
export { _default as default };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { createApiFactory, discoveryApiRef, identityApiRef, configApiRef } from '@backstage/core-plugin-api';
|
|
2
|
+
import { convertLegacyRouteRef } from '@backstage/core-plugin-api/alpha';
|
|
3
|
+
import { createPageExtension, createApiExtension, createPlugin } from '@backstage/frontend-plugin-api';
|
|
4
|
+
import { scmAuthApiRef, scmIntegrationsApiRef } from '@backstage/integration-react';
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import { r as rootRouteRef, a as catalogImportApiRef, b as CatalogImportClient } from './esm/plugin-76ffcc0d.esm.js';
|
|
7
|
+
import { catalogApiRef } from '@backstage/plugin-catalog-react';
|
|
8
|
+
import '@octokit/rest';
|
|
9
|
+
import 'js-base64';
|
|
10
|
+
import 'git-url-parse';
|
|
11
|
+
|
|
12
|
+
const CatalogImportPageExtension = createPageExtension({
|
|
13
|
+
id: "plugin.catalog-import.page",
|
|
14
|
+
defaultPath: "/catalog-import",
|
|
15
|
+
routeRef: convertLegacyRouteRef(rootRouteRef),
|
|
16
|
+
loader: () => import('./esm/index-b503497e.esm.js').then((m) => /* @__PURE__ */ React.createElement(m.ImportPage, null))
|
|
17
|
+
});
|
|
18
|
+
const CatalogImportService = createApiExtension({
|
|
19
|
+
factory: createApiFactory({
|
|
20
|
+
api: catalogImportApiRef,
|
|
21
|
+
deps: {
|
|
22
|
+
discoveryApi: discoveryApiRef,
|
|
23
|
+
scmAuthApi: scmAuthApiRef,
|
|
24
|
+
identityApi: identityApiRef,
|
|
25
|
+
scmIntegrationsApi: scmIntegrationsApiRef,
|
|
26
|
+
catalogApi: catalogApiRef,
|
|
27
|
+
configApi: configApiRef
|
|
28
|
+
},
|
|
29
|
+
factory: ({
|
|
30
|
+
discoveryApi,
|
|
31
|
+
scmAuthApi,
|
|
32
|
+
identityApi,
|
|
33
|
+
scmIntegrationsApi,
|
|
34
|
+
catalogApi,
|
|
35
|
+
configApi
|
|
36
|
+
}) => new CatalogImportClient({
|
|
37
|
+
discoveryApi,
|
|
38
|
+
scmAuthApi,
|
|
39
|
+
scmIntegrationsApi,
|
|
40
|
+
identityApi,
|
|
41
|
+
catalogApi,
|
|
42
|
+
configApi
|
|
43
|
+
})
|
|
44
|
+
})
|
|
45
|
+
});
|
|
46
|
+
var alpha = createPlugin({
|
|
47
|
+
id: "catalog-import",
|
|
48
|
+
extensions: [CatalogImportService, CatalogImportPageExtension],
|
|
49
|
+
routes: {
|
|
50
|
+
importPage: convertLegacyRouteRef(rootRouteRef)
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
export { alpha as default };
|
|
55
|
+
//# sourceMappingURL=alpha.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alpha.esm.js","sources":["../src/alpha.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 {\n configApiRef,\n createApiFactory,\n discoveryApiRef,\n identityApiRef,\n} from '@backstage/core-plugin-api';\nimport { convertLegacyRouteRef } from '@backstage/core-plugin-api/alpha';\nimport {\n createApiExtension,\n createPageExtension,\n createPlugin,\n} from '@backstage/frontend-plugin-api';\nimport {\n scmAuthApiRef,\n scmIntegrationsApiRef,\n} from '@backstage/integration-react';\nimport React from 'react';\nimport { CatalogImportClient, catalogImportApiRef } from './api';\nimport { rootRouteRef } from './plugin';\nimport { catalogApiRef } from '@backstage/plugin-catalog-react';\n\n// TODO: It's currently possible to override the import page with a custom one. We need to decide\n// whether this type of override is typically done with an input or by overriding the entire extension.\nconst CatalogImportPageExtension = createPageExtension({\n id: 'plugin.catalog-import.page',\n defaultPath: '/catalog-import',\n routeRef: convertLegacyRouteRef(rootRouteRef),\n loader: () => import('./components/ImportPage').then(m => <m.ImportPage />),\n});\n\nconst CatalogImportService = createApiExtension({\n factory: createApiFactory({\n api: catalogImportApiRef,\n deps: {\n discoveryApi: discoveryApiRef,\n scmAuthApi: scmAuthApiRef,\n identityApi: identityApiRef,\n scmIntegrationsApi: scmIntegrationsApiRef,\n catalogApi: catalogApiRef,\n configApi: configApiRef,\n },\n factory: ({\n discoveryApi,\n scmAuthApi,\n identityApi,\n scmIntegrationsApi,\n catalogApi,\n configApi,\n }) =>\n new CatalogImportClient({\n discoveryApi,\n scmAuthApi,\n scmIntegrationsApi,\n identityApi,\n catalogApi,\n configApi,\n }),\n }),\n});\n\n/** @alpha */\nexport default createPlugin({\n id: 'catalog-import',\n extensions: [CatalogImportService, CatalogImportPageExtension],\n routes: {\n importPage: convertLegacyRouteRef(rootRouteRef),\n },\n});\n"],"names":[],"mappings":";;;;;;;;;;;AAuCA,MAAM,6BAA6B,mBAAoB,CAAA;AAAA,EACrD,EAAI,EAAA,4BAAA;AAAA,EACJ,WAAa,EAAA,iBAAA;AAAA,EACb,QAAA,EAAU,sBAAsB,YAAY,CAAA;AAAA,EAC5C,MAAA,EAAQ,MAAM,OAAO,6BAAyB,CAAA,CAAE,IAAK,CAAA,CAAA,CAAA,qBAAM,KAAA,CAAA,aAAA,CAAA,CAAA,CAAE,UAAF,EAAA,IAAa,CAAE,CAAA;AAC5E,CAAC,CAAA,CAAA;AAED,MAAM,uBAAuB,kBAAmB,CAAA;AAAA,EAC9C,SAAS,gBAAiB,CAAA;AAAA,IACxB,GAAK,EAAA,mBAAA;AAAA,IACL,IAAM,EAAA;AAAA,MACJ,YAAc,EAAA,eAAA;AAAA,MACd,UAAY,EAAA,aAAA;AAAA,MACZ,WAAa,EAAA,cAAA;AAAA,MACb,kBAAoB,EAAA,qBAAA;AAAA,MACpB,UAAY,EAAA,aAAA;AAAA,MACZ,SAAW,EAAA,YAAA;AAAA,KACb;AAAA,IACA,SAAS,CAAC;AAAA,MACR,YAAA;AAAA,MACA,UAAA;AAAA,MACA,WAAA;AAAA,MACA,kBAAA;AAAA,MACA,UAAA;AAAA,MACA,SAAA;AAAA,KACF,KACE,IAAI,mBAAoB,CAAA;AAAA,MACtB,YAAA;AAAA,MACA,UAAA;AAAA,MACA,kBAAA;AAAA,MACA,WAAA;AAAA,MACA,UAAA;AAAA,MACA,SAAA;AAAA,KACD,CAAA;AAAA,GACJ,CAAA;AACH,CAAC,CAAA,CAAA;AAGD,YAAe,YAAa,CAAA;AAAA,EAC1B,EAAI,EAAA,gBAAA;AAAA,EACJ,UAAA,EAAY,CAAC,oBAAA,EAAsB,0BAA0B,CAAA;AAAA,EAC7D,MAAQ,EAAA;AAAA,IACN,UAAA,EAAY,sBAAsB,YAAY,CAAA;AAAA,GAChD;AACF,CAAC,CAAA;;;;"}
|