frontend-defaults: move createPublicSignInApp to alpha

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2025-07-31 13:02:32 +02:00
parent ac161ec61c
commit 22de964c62
9 changed files with 57 additions and 12 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/frontend-defaults': minor
---
**BREAKING**: Moved `createPublicSignInApp` to the `/alpha` sub-path export.
@@ -15,7 +15,7 @@
*/
import ReactDOM from 'react-dom/client';
import { createPublicSignInApp } from '@backstage/frontend-defaults';
import { createPublicSignInApp } from '@backstage/frontend-defaults/alpha';
import '@backstage/ui/css/styles.css';
const app = createPublicSignInApp();
+16 -3
View File
@@ -5,9 +5,7 @@
"role": "web-library"
},
"publishConfig": {
"access": "public",
"main": "dist/index.esm.js",
"types": "dist/index.d.ts"
"access": "public"
},
"repository": {
"type": "git",
@@ -16,8 +14,23 @@
},
"license": "Apache-2.0",
"sideEffects": false,
"exports": {
".": "./src/index.ts",
"./alpha": "./src/alpha/index.ts",
"./package.json": "./package.json"
},
"main": "src/index.ts",
"types": "src/index.ts",
"typesVersions": {
"*": {
"alpha": [
"src/alpha/index.ts"
],
"package.json": [
"package.json"
]
}
},
"files": [
"dist"
],
@@ -0,0 +1,15 @@
## API Report File for "@backstage/frontend-defaults"
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
```ts
import { CreateAppOptions } from '@backstage/frontend-defaults';
import { JSX as JSX_2 } from 'react';
// @alpha
export function createPublicSignInApp(options?: CreateAppOptions): {
createRoot(): JSX_2.Element;
};
// (No @packageDocumentation comment for this package)
```
-5
View File
@@ -41,11 +41,6 @@ export interface CreateAppOptions {
pluginInfoResolver?: FrontendPluginInfoResolver;
}
// @public
export function createPublicSignInApp(options?: CreateAppOptions): {
createRoot(): JSX_2;
};
// @public (undocumented)
export function discoverAvailableFeatures(config: Config): {
features: (FrontendFeature | FrontendFeatureLoader)[];
@@ -21,7 +21,8 @@ import {
useApi,
} from '@backstage/frontend-plugin-api';
import { useAsync, useMountEffect } from '@react-hookz/web';
import { CreateAppOptions, createApp } from './createApp';
import { createApp } from '../createApp';
import { CreateAppOptions } from '@backstage/frontend-defaults';
import appPlugin from '@backstage/plugin-app';
// This is a copy of the CookieAuthRedirect component from the auth-react
@@ -84,7 +85,7 @@ export function InternalCookieAuthRedirect() {
* });
* ```
*
* @public
* @alpha
*/
export function createPublicSignInApp(options?: CreateAppOptions) {
return createApp({
@@ -0,0 +1,17 @@
/*
* Copyright 2025 The Backstage Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export { createPublicSignInApp } from './createPublicSignInApp';
-1
View File
@@ -21,6 +21,5 @@
*/
export { createApp, type CreateAppOptions } from './createApp';
export { createPublicSignInApp } from './createPublicSignInApp';
export { discoverAvailableFeatures } from './discovery';
export { resolveAsyncFeatures } from './resolution';