@backstage/plugin-app-react 0.0.0-nightly-20260119025541 → 0.1.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 +3 -3
- package/dist/blueprints/index.esm.js +3 -2
- package/dist/blueprints/index.esm.js.map +1 -1
- package/dist/index.d.ts +38 -4
- package/dist/index.esm.js +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @backstage/plugin-app-react
|
|
2
2
|
|
|
3
|
-
## 0.
|
|
3
|
+
## 0.1.0
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
- 9ccf84e: Moved the following blueprints from `@backstage/frontend-plugin-api`:
|
|
12
12
|
|
|
13
|
+
- `AppRootWrapperBlueprint`
|
|
13
14
|
- `IconBundleBlueprint`
|
|
14
15
|
- `NavContentBlueprint`
|
|
15
16
|
- `RouterBlueprint`
|
|
@@ -19,5 +20,4 @@
|
|
|
19
20
|
- `TranslationBlueprint`
|
|
20
21
|
|
|
21
22
|
- Updated dependencies
|
|
22
|
-
- @backstage/frontend-plugin-api@0.
|
|
23
|
-
- @backstage/core-plugin-api@0.0.0-nightly-20260119025541
|
|
23
|
+
- @backstage/frontend-plugin-api@0.13.3
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { ThemeBlueprint as ThemeBlueprint$1, SwappableComponentBlueprint as SwappableComponentBlueprint$1, SignInPageBlueprint as SignInPageBlueprint$1, RouterBlueprint as RouterBlueprint$1, NavContentBlueprint as NavContentBlueprint$1, IconBundleBlueprint as IconBundleBlueprint$1, TranslationBlueprint as TranslationBlueprint$1 } from '@backstage/frontend-plugin-api';
|
|
1
|
+
import { AppRootWrapperBlueprint as AppRootWrapperBlueprint$1, ThemeBlueprint as ThemeBlueprint$1, SwappableComponentBlueprint as SwappableComponentBlueprint$1, SignInPageBlueprint as SignInPageBlueprint$1, RouterBlueprint as RouterBlueprint$1, NavContentBlueprint as NavContentBlueprint$1, IconBundleBlueprint as IconBundleBlueprint$1, TranslationBlueprint as TranslationBlueprint$1 } from '@backstage/frontend-plugin-api';
|
|
2
2
|
|
|
3
|
+
const AppRootWrapperBlueprint = AppRootWrapperBlueprint$1;
|
|
3
4
|
const ThemeBlueprint = ThemeBlueprint$1;
|
|
4
5
|
const SwappableComponentBlueprint = SwappableComponentBlueprint$1;
|
|
5
6
|
const SignInPageBlueprint = SignInPageBlueprint$1;
|
|
@@ -8,5 +9,5 @@ const NavContentBlueprint = NavContentBlueprint$1;
|
|
|
8
9
|
const IconBundleBlueprint = IconBundleBlueprint$1;
|
|
9
10
|
const TranslationBlueprint = TranslationBlueprint$1;
|
|
10
11
|
|
|
11
|
-
export { IconBundleBlueprint, NavContentBlueprint, RouterBlueprint, SignInPageBlueprint, SwappableComponentBlueprint, ThemeBlueprint, TranslationBlueprint };
|
|
12
|
+
export { AppRootWrapperBlueprint, IconBundleBlueprint, NavContentBlueprint, RouterBlueprint, SignInPageBlueprint, SwappableComponentBlueprint, ThemeBlueprint, TranslationBlueprint };
|
|
12
13
|
//# sourceMappingURL=index.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":["../../src/blueprints/index.ts"],"sourcesContent":["/*\n * Copyright 2026 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 IconBundleBlueprint as _IconBundleBlueprint,\n NavContentBlueprint as _NavContentBlueprint,\n type NavContentComponent,\n type NavContentComponentProps,\n RouterBlueprint as _RouterBlueprint,\n SignInPageBlueprint as _SignInPageBlueprint,\n type SignInPageProps,\n SwappableComponentBlueprint as _SwappableComponentBlueprint,\n ThemeBlueprint as _ThemeBlueprint,\n TranslationBlueprint as _TranslationBlueprint,\n} from '@backstage/frontend-plugin-api';\n\n/**\n * Creates an extension that adds/replaces an app theme. This blueprint is limited to use by the app plugin.\n *\n * @public\n */\nexport const ThemeBlueprint = _ThemeBlueprint;\n\n/**\n * Blueprint for creating swappable components from a SwappableComponentRef and a loader. This blueprint is limited to use by the app plugin.\n *\n * @public\n */\nexport const SwappableComponentBlueprint = _SwappableComponentBlueprint;\n\n/**\n * Creates an extension that replaces the sign in page. This blueprint is limited to use by the app plugin.\n *\n * @public\n */\nexport const SignInPageBlueprint = _SignInPageBlueprint;\n\n/**\n * Creates an extension that replaces the router component. This blueprint is limited to use by the app plugin.\n *\n * @public\n */\nexport const RouterBlueprint = _RouterBlueprint;\n\n/**\n * Creates an extension that replaces the entire nav bar with your own component. This blueprint is limited to use by the app plugin.\n *\n * @public\n */\nexport const NavContentBlueprint = _NavContentBlueprint;\n\n/**\n * Creates an extension that adds icon bundles to your app. This blueprint is limited to use by the app plugin.\n *\n * @public\n */\nexport const IconBundleBlueprint = _IconBundleBlueprint;\n\n/**\n * Props for the `SignInPage` component.\n *\n * @public\n */\nexport type { SignInPageProps };\n\n/**\n * The props for the {@link NavContentComponent}.\n *\n * @public\n */\nexport type { NavContentComponentProps };\n\n/**\n * A component that renders the nav bar content, to be passed to the {@link NavContentBlueprint}.\n *\n * @public\n */\nexport type { NavContentComponent };\n\n/**\n * Creates an extension that adds translations to your app. This blueprint is limited to use by the app plugin.\n *\n * @public\n */\nexport const TranslationBlueprint = _TranslationBlueprint;\n"],"names":["_ThemeBlueprint","_SwappableComponentBlueprint","_SignInPageBlueprint","_RouterBlueprint","_NavContentBlueprint","_IconBundleBlueprint","_TranslationBlueprint"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../../src/blueprints/index.ts"],"sourcesContent":["/*\n * Copyright 2026 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 AppRootWrapperBlueprint as _AppRootWrapperBlueprint,\n IconBundleBlueprint as _IconBundleBlueprint,\n NavContentBlueprint as _NavContentBlueprint,\n type NavContentComponent,\n type NavContentComponentProps,\n RouterBlueprint as _RouterBlueprint,\n SignInPageBlueprint as _SignInPageBlueprint,\n type SignInPageProps,\n SwappableComponentBlueprint as _SwappableComponentBlueprint,\n ThemeBlueprint as _ThemeBlueprint,\n TranslationBlueprint as _TranslationBlueprint,\n} from '@backstage/frontend-plugin-api';\n\n/**\n * Creates an extension that renders a React wrapper at the app root, enclosing\n * the app layout. This blueprint is limited to use by the app plugin.\n *\n * @public\n */\nexport const AppRootWrapperBlueprint = _AppRootWrapperBlueprint;\n\n/**\n * Creates an extension that adds/replaces an app theme. This blueprint is limited to use by the app plugin.\n *\n * @public\n */\nexport const ThemeBlueprint = _ThemeBlueprint;\n\n/**\n * Blueprint for creating swappable components from a SwappableComponentRef and a loader. This blueprint is limited to use by the app plugin.\n *\n * @public\n */\nexport const SwappableComponentBlueprint = _SwappableComponentBlueprint;\n\n/**\n * Creates an extension that replaces the sign in page. This blueprint is limited to use by the app plugin.\n *\n * @public\n */\nexport const SignInPageBlueprint = _SignInPageBlueprint;\n\n/**\n * Creates an extension that replaces the router component. This blueprint is limited to use by the app plugin.\n *\n * @public\n */\nexport const RouterBlueprint = _RouterBlueprint;\n\n/**\n * Creates an extension that replaces the entire nav bar with your own component. This blueprint is limited to use by the app plugin.\n *\n * @public\n */\nexport const NavContentBlueprint = _NavContentBlueprint;\n\n/**\n * Creates an extension that adds icon bundles to your app. This blueprint is limited to use by the app plugin.\n *\n * @public\n */\nexport const IconBundleBlueprint = _IconBundleBlueprint;\n\n/**\n * Props for the `SignInPage` component.\n *\n * @public\n */\nexport type { SignInPageProps };\n\n/**\n * The props for the {@link NavContentComponent}.\n *\n * @public\n */\nexport type { NavContentComponentProps };\n\n/**\n * A component that renders the nav bar content, to be passed to the {@link NavContentBlueprint}.\n *\n * @public\n */\nexport type { NavContentComponent };\n\n/**\n * Creates an extension that adds translations to your app. This blueprint is limited to use by the app plugin.\n *\n * @public\n */\nexport const TranslationBlueprint = _TranslationBlueprint;\n"],"names":["_AppRootWrapperBlueprint","_ThemeBlueprint","_SwappableComponentBlueprint","_SignInPageBlueprint","_RouterBlueprint","_NavContentBlueprint","_IconBundleBlueprint","_TranslationBlueprint"],"mappings":";;AAoCO,MAAM,uBAAA,GAA0BA;AAOhC,MAAM,cAAA,GAAiBC;AAOvB,MAAM,2BAAA,GAA8BC;AAOpC,MAAM,mBAAA,GAAsBC;AAO5B,MAAM,eAAA,GAAkBC;AAOxB,MAAM,mBAAA,GAAsBC;AAO5B,MAAM,mBAAA,GAAsBC;AA4B5B,MAAM,oBAAA,GAAuBC;;;;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,34 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
1
|
import * as _backstage_frontend_plugin_api from '@backstage/frontend-plugin-api';
|
|
3
2
|
import { SignInPageProps, NavContentComponent } from '@backstage/frontend-plugin-api';
|
|
4
3
|
export { NavContentComponent, NavContentComponentProps, SignInPageProps } from '@backstage/frontend-plugin-api';
|
|
4
|
+
import * as react from 'react';
|
|
5
5
|
|
|
6
|
+
/**
|
|
7
|
+
* Creates an extension that renders a React wrapper at the app root, enclosing
|
|
8
|
+
* the app layout. This blueprint is limited to use by the app plugin.
|
|
9
|
+
*
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
declare const AppRootWrapperBlueprint: _backstage_frontend_plugin_api.ExtensionBlueprint<{
|
|
13
|
+
kind: "app-root-wrapper";
|
|
14
|
+
params: {
|
|
15
|
+
Component?: [error: "Use the `component` parameter instead"];
|
|
16
|
+
component: (props: {
|
|
17
|
+
children: react.ReactNode;
|
|
18
|
+
}) => JSX.Element | null;
|
|
19
|
+
};
|
|
20
|
+
output: _backstage_frontend_plugin_api.ExtensionDataRef<(props: {
|
|
21
|
+
children: react.ReactNode;
|
|
22
|
+
}) => JSX.Element | null, "app.root.wrapper", {}>;
|
|
23
|
+
inputs: {};
|
|
24
|
+
config: {};
|
|
25
|
+
configInput: {};
|
|
26
|
+
dataRefs: {
|
|
27
|
+
component: _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<(props: {
|
|
28
|
+
children: react.ReactNode;
|
|
29
|
+
}) => JSX.Element | null, "app.root.wrapper", {}>;
|
|
30
|
+
};
|
|
31
|
+
}>;
|
|
6
32
|
/**
|
|
7
33
|
* Creates an extension that adds/replaces an app theme. This blueprint is limited to use by the app plugin.
|
|
8
34
|
*
|
|
@@ -32,12 +58,20 @@ declare const SwappableComponentBlueprint: _backstage_frontend_plugin_api.Extens
|
|
|
32
58
|
component: Ref extends _backstage_frontend_plugin_api.SwappableComponentRef<any, infer IExternalComponentProps> ? {
|
|
33
59
|
ref: Ref;
|
|
34
60
|
} & ((props: IExternalComponentProps) => JSX.Element | null) : never;
|
|
35
|
-
loader: Ref extends _backstage_frontend_plugin_api.SwappableComponentRef<infer IInnerComponentProps, any> ? (() => (props: IInnerComponentProps) => JSX.Element | null) | (() => Promise<(props: IInnerComponentProps) => JSX.Element
|
|
61
|
+
loader: Ref extends _backstage_frontend_plugin_api.SwappableComponentRef<infer IInnerComponentProps, any> ? (() => (props: IInnerComponentProps) => JSX.Element | null) | (() => Promise<(props: IInnerComponentProps) => JSX.Element /**
|
|
62
|
+
* Creates an extension that replaces the router component. This blueprint is limited to use by the app plugin.
|
|
63
|
+
*
|
|
64
|
+
* @public
|
|
65
|
+
*/ | null>) : never;
|
|
36
66
|
}) => _backstage_frontend_plugin_api.ExtensionBlueprintParams<{
|
|
37
67
|
component: Ref extends _backstage_frontend_plugin_api.SwappableComponentRef<any, infer IExternalComponentProps> ? {
|
|
38
68
|
ref: Ref;
|
|
39
69
|
} & ((props: IExternalComponentProps) => JSX.Element | null) : never;
|
|
40
|
-
loader: Ref extends _backstage_frontend_plugin_api.SwappableComponentRef<infer IInnerComponentProps, any> ? (() => (props: IInnerComponentProps) => JSX.Element | null) | (() => Promise<(props: IInnerComponentProps) => JSX.Element
|
|
70
|
+
loader: Ref extends _backstage_frontend_plugin_api.SwappableComponentRef<infer IInnerComponentProps, any> ? (() => (props: IInnerComponentProps) => JSX.Element | null) | (() => Promise<(props: IInnerComponentProps) => JSX.Element /**
|
|
71
|
+
* Creates an extension that replaces the router component. This blueprint is limited to use by the app plugin.
|
|
72
|
+
*
|
|
73
|
+
* @public
|
|
74
|
+
*/ | null>) : never;
|
|
41
75
|
}>;
|
|
42
76
|
output: _backstage_frontend_plugin_api.ExtensionDataRef<{
|
|
43
77
|
ref: _backstage_frontend_plugin_api.SwappableComponentRef;
|
|
@@ -160,4 +194,4 @@ declare const TranslationBlueprint: _backstage_frontend_plugin_api.ExtensionBlue
|
|
|
160
194
|
};
|
|
161
195
|
}>;
|
|
162
196
|
|
|
163
|
-
export { IconBundleBlueprint, NavContentBlueprint, RouterBlueprint, SignInPageBlueprint, SwappableComponentBlueprint, ThemeBlueprint, TranslationBlueprint };
|
|
197
|
+
export { AppRootWrapperBlueprint, IconBundleBlueprint, NavContentBlueprint, RouterBlueprint, SignInPageBlueprint, SwappableComponentBlueprint, ThemeBlueprint, TranslationBlueprint };
|
package/dist/index.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { IconBundleBlueprint, NavContentBlueprint, RouterBlueprint, SignInPageBlueprint, SwappableComponentBlueprint, ThemeBlueprint, TranslationBlueprint } from './blueprints/index.esm.js';
|
|
1
|
+
export { AppRootWrapperBlueprint, IconBundleBlueprint, NavContentBlueprint, RouterBlueprint, SignInPageBlueprint, SwappableComponentBlueprint, ThemeBlueprint, TranslationBlueprint } from './blueprints/index.esm.js';
|
|
2
2
|
//# sourceMappingURL=index.esm.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-app-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "Web library for the app plugin",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "web-library",
|
|
@@ -39,14 +39,14 @@
|
|
|
39
39
|
"test": "backstage-cli package test"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@backstage/core-plugin-api": "
|
|
43
|
-
"@backstage/frontend-plugin-api": "0.
|
|
42
|
+
"@backstage/core-plugin-api": "^1.12.1",
|
|
43
|
+
"@backstage/frontend-plugin-api": "^0.13.3",
|
|
44
44
|
"@material-ui/core": "^4.9.13"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@backstage/cli": "0.
|
|
48
|
-
"@backstage/frontend-test-utils": "0.
|
|
49
|
-
"@backstage/test-utils": "
|
|
47
|
+
"@backstage/cli": "^0.35.2",
|
|
48
|
+
"@backstage/frontend-test-utils": "^0.4.3",
|
|
49
|
+
"@backstage/test-utils": "^1.7.14",
|
|
50
50
|
"@testing-library/jest-dom": "^6.0.0",
|
|
51
51
|
"@testing-library/react": "^16.0.0",
|
|
52
52
|
"@types/react": "^18.0.0",
|