@backstage/core-components 0.14.10-next.0 → 0.14.10
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,18 @@
|
|
|
1
1
|
# @backstage/core-components
|
|
2
2
|
|
|
3
|
+
## 0.14.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 678971a: Move the `Link` component to the `RoutedTabs` instead of the `HeaderTabs` component
|
|
8
|
+
- 13a9c63: Corrected the documentation for the GCP IAP auth module and updated the configuration to follow proxy configuration conventions by ignoring authEnv
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
- @backstage/config@1.2.0
|
|
11
|
+
- @backstage/core-plugin-api@1.9.3
|
|
12
|
+
- @backstage/errors@1.2.4
|
|
13
|
+
- @backstage/theme@0.5.6
|
|
14
|
+
- @backstage/version-bridge@1.0.8
|
|
15
|
+
|
|
3
16
|
## 0.14.10-next.0
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/alpha/package.json
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1549,7 +1549,7 @@ declare function PageWithHeader(props: PropsWithChildren<PageWithHeaderProps>):
|
|
|
1549
1549
|
*/
|
|
1550
1550
|
type ProxiedSignInPageProps = SignInPageProps & {
|
|
1551
1551
|
/**
|
|
1552
|
-
* The provider to use, e.g. "
|
|
1552
|
+
* The provider to use, e.g. "gcpIap" or "awsalb". This must correspond to
|
|
1553
1553
|
* a properly configured auth provider ID in the auth backend.
|
|
1554
1554
|
*/
|
|
1555
1555
|
provider: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProxiedSignInPage.esm.js","sources":["../../../src/layout/ProxiedSignInPage/ProxiedSignInPage.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 {\n discoveryApiRef,\n SignInPageProps,\n useApi,\n} from '@backstage/core-plugin-api';\nimport React from 'react';\nimport { useAsync, useMountEffect } from '@react-hookz/web';\nimport { ErrorPanel } from '../../components/ErrorPanel';\nimport { Progress } from '../../components/Progress';\nimport { ProxiedSignInIdentity } from './ProxiedSignInIdentity';\nimport { coreComponentsTranslationRef } from '../../translation';\nimport { useTranslationRef } from '@backstage/core-plugin-api/alpha';\n\n/**\n * Props for {@link ProxiedSignInPage}.\n *\n * @public\n */\nexport type ProxiedSignInPageProps = SignInPageProps & {\n /**\n * The provider to use, e.g. \"
|
|
1
|
+
{"version":3,"file":"ProxiedSignInPage.esm.js","sources":["../../../src/layout/ProxiedSignInPage/ProxiedSignInPage.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 {\n discoveryApiRef,\n SignInPageProps,\n useApi,\n} from '@backstage/core-plugin-api';\nimport React from 'react';\nimport { useAsync, useMountEffect } from '@react-hookz/web';\nimport { ErrorPanel } from '../../components/ErrorPanel';\nimport { Progress } from '../../components/Progress';\nimport { ProxiedSignInIdentity } from './ProxiedSignInIdentity';\nimport { coreComponentsTranslationRef } from '../../translation';\nimport { useTranslationRef } from '@backstage/core-plugin-api/alpha';\n\n/**\n * Props for {@link ProxiedSignInPage}.\n *\n * @public\n */\nexport type ProxiedSignInPageProps = SignInPageProps & {\n /**\n * The provider to use, e.g. \"gcpIap\" or \"awsalb\". This must correspond to\n * a properly configured auth provider ID in the auth backend.\n */\n provider: string;\n\n /**\n * Optional headers which are passed along with the request to the\n * underlying provider\n */\n headers?: HeadersInit | (() => HeadersInit) | (() => Promise<HeadersInit>);\n};\n\n/**\n * A sign-in page that has no user interface of its own. Instead, it relies on\n * sign-in being performed by a reverse authenticating proxy that Backstage is\n * deployed behind, and leverages its session handling.\n *\n * @remarks\n *\n * This sign-in page is useful when you are using products such as Google\n * Identity-Aware Proxy or AWS Application Load Balancer or similar, to front\n * your Backstage installation. This sign-in page implementation will silently\n * and regularly punch through the proxy to the auth backend to refresh your\n * frontend session information, without requiring user interaction.\n *\n * @public\n */\nexport const ProxiedSignInPage = (props: ProxiedSignInPageProps) => {\n const discoveryApi = useApi(discoveryApiRef);\n const { t } = useTranslationRef(coreComponentsTranslationRef);\n\n const [{ status, error }, { execute }] = useAsync(async () => {\n const identity = new ProxiedSignInIdentity({\n provider: props.provider,\n discoveryApi,\n headers: props.headers,\n });\n\n await identity.start();\n\n props.onSignInSuccess(identity);\n });\n\n useMountEffect(execute);\n\n if (status === 'loading') {\n return <Progress />;\n } else if (error) {\n return <ErrorPanel title={t('proxiedSignInPage.title')} error={error} />;\n }\n\n return null;\n};\n"],"names":[],"mappings":";;;;;;;;;AA+Da,MAAA,iBAAA,GAAoB,CAAC,KAAkC,KAAA;AAClE,EAAM,MAAA,YAAA,GAAe,OAAO,eAAe,CAAA,CAAA;AAC3C,EAAA,MAAM,EAAE,CAAA,EAAM,GAAA,iBAAA,CAAkB,4BAA4B,CAAA,CAAA;AAE5D,EAAM,MAAA,CAAC,EAAE,MAAA,EAAQ,KAAM,EAAA,EAAG,EAAE,OAAQ,EAAC,CAAI,GAAA,QAAA,CAAS,YAAY;AAC5D,IAAM,MAAA,QAAA,GAAW,IAAI,qBAAsB,CAAA;AAAA,MACzC,UAAU,KAAM,CAAA,QAAA;AAAA,MAChB,YAAA;AAAA,MACA,SAAS,KAAM,CAAA,OAAA;AAAA,KAChB,CAAA,CAAA;AAED,IAAA,MAAM,SAAS,KAAM,EAAA,CAAA;AAErB,IAAA,KAAA,CAAM,gBAAgB,QAAQ,CAAA,CAAA;AAAA,GAC/B,CAAA,CAAA;AAED,EAAA,cAAA,CAAe,OAAO,CAAA,CAAA;AAEtB,EAAA,IAAI,WAAW,SAAW,EAAA;AACxB,IAAA,oDAAQ,QAAS,EAAA,IAAA,CAAA,CAAA;AAAA,aACR,KAAO,EAAA;AAChB,IAAA,oDAAQ,UAAW,EAAA,EAAA,KAAA,EAAO,CAAE,CAAA,yBAAyB,GAAG,KAAc,EAAA,CAAA,CAAA;AAAA,GACxE;AAEA,EAAO,OAAA,IAAA,CAAA;AACT;;;;"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/core-components",
|
|
3
3
|
"description": "Core components used by Backstage plugins and apps",
|
|
4
|
-
"version": "0.14.10
|
|
4
|
+
"version": "0.14.10",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -94,10 +94,10 @@
|
|
|
94
94
|
"zod": "^3.22.4"
|
|
95
95
|
},
|
|
96
96
|
"devDependencies": {
|
|
97
|
-
"@backstage/app-defaults": "^1.5.
|
|
98
|
-
"@backstage/cli": "^0.27.0
|
|
99
|
-
"@backstage/core-app-api": "^1.14.
|
|
100
|
-
"@backstage/test-utils": "^1.5.
|
|
97
|
+
"@backstage/app-defaults": "^1.5.10",
|
|
98
|
+
"@backstage/cli": "^0.27.0",
|
|
99
|
+
"@backstage/core-app-api": "^1.14.2",
|
|
100
|
+
"@backstage/test-utils": "^1.5.10",
|
|
101
101
|
"@testing-library/dom": "^10.0.0",
|
|
102
102
|
"@testing-library/jest-dom": "^6.0.0",
|
|
103
103
|
"@testing-library/react": "^15.0.0",
|