@backstage/frontend-plugin-api 0.15.1 → 0.15.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
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
# @backstage/frontend-plugin-api
|
|
2
2
|
|
|
3
|
-
## 0.15.
|
|
3
|
+
## 0.15.2-next.0
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
7
|
+
- d66a3ec: Added `titleLink` prop to `PageLayoutProps` so the plugin header title can link back to the plugin root.
|
|
8
|
+
- e220589: Removed the unnecessary need to use `defineParams` callback from `PluginHeaderActionBlueprint`. It still works, but is no longer required.
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
- @backstage/errors@1.2.7
|
|
11
|
+
- @backstage/filter-predicates@0.1.1
|
|
12
|
+
- @backstage/types@1.2.2
|
|
13
|
+
- @backstage/version-bridge@1.0.12
|
|
8
14
|
|
|
9
15
|
## 0.15.0
|
|
10
16
|
|
|
@@ -31,15 +31,12 @@ import '../components/PageLayout.esm.js';
|
|
|
31
31
|
import { coreExtensionData } from '../wiring/coreExtensionData.esm.js';
|
|
32
32
|
import 'zod/v3';
|
|
33
33
|
import 'zod-to-json-schema';
|
|
34
|
-
import { createExtensionBlueprint
|
|
34
|
+
import { createExtensionBlueprint } from '../wiring/createExtensionBlueprint.esm.js';
|
|
35
35
|
|
|
36
36
|
const PluginHeaderActionBlueprint = createExtensionBlueprint({
|
|
37
37
|
kind: "plugin-header-action",
|
|
38
38
|
attachTo: { id: "api:app/plugin-header-actions", input: "actions" },
|
|
39
39
|
output: [coreExtensionData.reactElement],
|
|
40
|
-
defineParams(params) {
|
|
41
|
-
return createExtensionBlueprintParams(params);
|
|
42
|
-
},
|
|
43
40
|
*factory(params, { node }) {
|
|
44
41
|
const LazyAction = lazy(
|
|
45
42
|
() => params.loader().then((element) => ({ default: () => element }))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluginHeaderActionBlueprint.esm.js","sources":["../../src/blueprints/PluginHeaderActionBlueprint.tsx"],"sourcesContent":["/*\n * Copyright 2025 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 { lazy as reactLazy } from 'react';\nimport { ExtensionBoundary } from '../components';\nimport {
|
|
1
|
+
{"version":3,"file":"PluginHeaderActionBlueprint.esm.js","sources":["../../src/blueprints/PluginHeaderActionBlueprint.tsx"],"sourcesContent":["/*\n * Copyright 2025 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 { lazy as reactLazy } from 'react';\nimport { ExtensionBoundary } from '../components';\nimport { coreExtensionData, createExtensionBlueprint } from '../wiring';\n\n/**\n * Creates extensions that provide plugin-scoped header actions.\n *\n * @remarks\n *\n * These actions are automatically scoped to the plugin that provides them\n * and will appear in the header of all pages belonging to that plugin.\n *\n * @public\n */\nexport const PluginHeaderActionBlueprint = createExtensionBlueprint({\n kind: 'plugin-header-action',\n attachTo: { id: 'api:app/plugin-header-actions', input: 'actions' },\n output: [coreExtensionData.reactElement],\n *factory(params: { loader: () => Promise<JSX.Element> }, { node }) {\n const LazyAction = reactLazy(() =>\n params.loader().then(element => ({ default: () => element })),\n );\n yield coreExtensionData.reactElement(\n <ExtensionBoundary node={node} errorPresentation=\"error-api\">\n <LazyAction />\n </ExtensionBoundary>,\n );\n },\n});\n"],"names":["reactLazy"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BO,MAAM,8BAA8B,wBAAA,CAAyB;AAAA,EAClE,IAAA,EAAM,sBAAA;AAAA,EACN,QAAA,EAAU,EAAE,EAAA,EAAI,+BAAA,EAAiC,OAAO,SAAA,EAAU;AAAA,EAClE,MAAA,EAAQ,CAAC,iBAAA,CAAkB,YAAY,CAAA;AAAA,EACvC,CAAC,OAAA,CAAQ,MAAA,EAAgD,EAAE,MAAK,EAAG;AACjE,IAAA,MAAM,UAAA,GAAaA,IAAA;AAAA,MAAU,MAC3B,MAAA,CAAO,MAAA,EAAO,CAAE,IAAA,CAAK,cAAY,EAAE,OAAA,EAAS,MAAM,OAAA,EAAQ,CAAE;AAAA,KAC9D;AACA,IAAA,MAAM,iBAAA,CAAkB,YAAA;AAAA,0BACrB,iBAAA,EAAA,EAAkB,IAAA,EAAY,mBAAkB,WAAA,EAC/C,QAAA,kBAAA,GAAA,CAAC,cAAW,CAAA,EACd;AAAA,KACF;AAAA,EACF;AACF,CAAC;;;;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -2423,11 +2423,9 @@ declare const SubPageBlueprint: _backstage_frontend_plugin_api.ExtensionBlueprin
|
|
|
2423
2423
|
*/
|
|
2424
2424
|
declare const PluginHeaderActionBlueprint: _backstage_frontend_plugin_api.ExtensionBlueprint<{
|
|
2425
2425
|
kind: "plugin-header-action";
|
|
2426
|
-
params:
|
|
2427
|
-
loader: () => Promise<JSX.Element>;
|
|
2428
|
-
}) => _backstage_frontend_plugin_api.ExtensionBlueprintParams<{
|
|
2426
|
+
params: {
|
|
2429
2427
|
loader: () => Promise<JSX.Element>;
|
|
2430
|
-
}
|
|
2428
|
+
};
|
|
2431
2429
|
output: _backstage_frontend_plugin_api.ExtensionDataRef<react.JSX.Element, "core.reactElement", {}>;
|
|
2432
2430
|
inputs: {};
|
|
2433
2431
|
config: {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/frontend-plugin-api",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.2-next.0",
|
|
4
4
|
"backstage": {
|
|
5
5
|
"role": "web-library"
|
|
6
6
|
},
|
|
@@ -52,19 +52,19 @@
|
|
|
52
52
|
"test": "backstage-cli package test"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@backstage/errors": "
|
|
56
|
-
"@backstage/filter-predicates": "
|
|
57
|
-
"@backstage/types": "
|
|
58
|
-
"@backstage/version-bridge": "
|
|
55
|
+
"@backstage/errors": "1.2.7",
|
|
56
|
+
"@backstage/filter-predicates": "0.1.1",
|
|
57
|
+
"@backstage/types": "1.2.2",
|
|
58
|
+
"@backstage/version-bridge": "1.0.12",
|
|
59
59
|
"zod": "^3.25.76 || ^4.0.0",
|
|
60
60
|
"zod-to-json-schema": "^3.25.1"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@backstage/cli": "
|
|
64
|
-
"@backstage/config": "
|
|
65
|
-
"@backstage/frontend-app-api": "
|
|
66
|
-
"@backstage/frontend-test-utils": "
|
|
67
|
-
"@backstage/test-utils": "
|
|
63
|
+
"@backstage/cli": "0.36.1-next.0",
|
|
64
|
+
"@backstage/config": "1.3.6",
|
|
65
|
+
"@backstage/frontend-app-api": "0.16.2-next.0",
|
|
66
|
+
"@backstage/frontend-test-utils": "0.5.2-next.0",
|
|
67
|
+
"@backstage/test-utils": "1.7.17-next.0",
|
|
68
68
|
"@testing-library/jest-dom": "^6.0.0",
|
|
69
69
|
"@testing-library/react": "^16.0.0",
|
|
70
70
|
"@types/react": "^18.0.0",
|