@backstage/frontend-plugin-api 0.13.4 → 0.14.0-next.1

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.
Files changed (34) hide show
  1. package/CHANGELOG.md +35 -2
  2. package/dist/blueprints/AnalyticsImplementationBlueprint.esm.js +1 -1
  3. package/dist/blueprints/AnalyticsImplementationBlueprint.esm.js.map +1 -1
  4. package/dist/components/ExtensionBoundary.esm.js +1 -1
  5. package/dist/components/ExtensionBoundary.esm.js.map +1 -1
  6. package/dist/index.d.ts +68 -265
  7. package/dist/index.esm.js +0 -8
  8. package/dist/index.esm.js.map +1 -1
  9. package/dist/wiring/constants.esm.js +4 -0
  10. package/dist/wiring/constants.esm.js.map +1 -0
  11. package/dist/wiring/createExtension.esm.js.map +1 -1
  12. package/dist/wiring/createExtensionInput.esm.js +2 -1
  13. package/dist/wiring/createExtensionInput.esm.js.map +1 -1
  14. package/dist/wiring/createFrontendPlugin.esm.js +7 -0
  15. package/dist/wiring/createFrontendPlugin.esm.js.map +1 -1
  16. package/dist/wiring/resolveExtensionDefinition.esm.js.map +1 -1
  17. package/dist/wiring/resolveInputOverrides.esm.js.map +1 -1
  18. package/package.json +9 -9
  19. package/dist/blueprints/AppRootWrapperBlueprint.esm.js +0 -21
  20. package/dist/blueprints/AppRootWrapperBlueprint.esm.js.map +0 -1
  21. package/dist/blueprints/IconBundleBlueprint.esm.js +0 -21
  22. package/dist/blueprints/IconBundleBlueprint.esm.js.map +0 -1
  23. package/dist/blueprints/NavContentBlueprint.esm.js +0 -23
  24. package/dist/blueprints/NavContentBlueprint.esm.js.map +0 -1
  25. package/dist/blueprints/RouterBlueprint.esm.js +0 -21
  26. package/dist/blueprints/RouterBlueprint.esm.js.map +0 -1
  27. package/dist/blueprints/SignInPageBlueprint.esm.js +0 -52
  28. package/dist/blueprints/SignInPageBlueprint.esm.js.map +0 -1
  29. package/dist/blueprints/SwappableComponentBlueprint.esm.js +0 -27
  30. package/dist/blueprints/SwappableComponentBlueprint.esm.js.map +0 -1
  31. package/dist/blueprints/ThemeBlueprint.esm.js +0 -21
  32. package/dist/blueprints/ThemeBlueprint.esm.js.map +0 -1
  33. package/dist/blueprints/TranslationBlueprint.esm.js +0 -21
  34. package/dist/blueprints/TranslationBlueprint.esm.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"SwappableComponentBlueprint.esm.js","sources":["../../src/blueprints/SwappableComponentBlueprint.ts"],"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 */\nimport { SwappableComponentRef } from '../components';\nimport {\n createExtensionBlueprint,\n createExtensionBlueprintParams,\n createExtensionDataRef,\n} from '../wiring';\n\nexport const componentDataRef = createExtensionDataRef<{\n ref: SwappableComponentRef;\n loader:\n | (() => (props: {}) => JSX.Element | null)\n | (() => Promise<(props: {}) => JSX.Element | null>);\n}>().with({ id: 'core.swappableComponent' });\n\n/**\n * Blueprint for creating swappable components from a SwappableComponentRef and a loader\n *\n * @public\n * @deprecated Use {@link @backstage/plugin-app-react#SwappableComponentBlueprint} instead.\n */\nexport const SwappableComponentBlueprint = createExtensionBlueprint({\n kind: 'component',\n attachTo: { id: 'api:app/swappable-components', input: 'components' },\n output: [componentDataRef],\n dataRefs: {\n component: componentDataRef,\n },\n defineParams<Ref extends SwappableComponentRef<any>>(params: {\n component: Ref extends SwappableComponentRef<\n any,\n infer IExternalComponentProps\n >\n ? { ref: Ref } & ((props: IExternalComponentProps) => JSX.Element | null)\n : never;\n loader: Ref extends SwappableComponentRef<infer IInnerComponentProps, any>\n ?\n | (() => (props: IInnerComponentProps) => JSX.Element | null)\n | (() => Promise<(props: IInnerComponentProps) => JSX.Element | null>)\n : never;\n }) {\n return createExtensionBlueprintParams(params);\n },\n factory: params => [\n componentDataRef({\n ref: params.component.ref,\n loader: params.loader,\n }),\n ],\n});\n"],"names":[],"mappings":";;;;;;AAsBO,MAAM,mBAAmB,sBAAA,EAK7B,CAAE,KAAK,EAAE,EAAA,EAAI,2BAA2B;AAQpC,MAAM,8BAA8B,wBAAA,CAAyB;AAAA,EAClE,IAAA,EAAM,WAAA;AAAA,EACN,QAAA,EAAU,EAAE,EAAA,EAAI,8BAAA,EAAgC,OAAO,YAAA,EAAa;AAAA,EACpE,MAAA,EAAQ,CAAC,gBAAgB,CAAA;AAAA,EACzB,QAAA,EAAU;AAAA,IACR,SAAA,EAAW;AAAA,GACb;AAAA,EACA,aAAqD,MAAA,EAYlD;AACD,IAAA,OAAO,+BAA+B,MAAM,CAAA;AAAA,EAC9C,CAAA;AAAA,EACA,SAAS,CAAA,MAAA,KAAU;AAAA,IACjB,gBAAA,CAAiB;AAAA,MACf,GAAA,EAAK,OAAO,SAAA,CAAU,GAAA;AAAA,MACtB,QAAQ,MAAA,CAAO;AAAA,KAChB;AAAA;AAEL,CAAC;;;;"}
@@ -1,21 +0,0 @@
1
- import '../wiring/coreExtensionData.esm.js';
2
- import 'zod';
3
- import 'zod-to-json-schema';
4
- import { createExtensionDataRef } from '../wiring/createExtensionDataRef.esm.js';
5
- import { createExtensionBlueprint } from '../wiring/createExtensionBlueprint.esm.js';
6
-
7
- const themeDataRef = createExtensionDataRef().with({
8
- id: "core.theme.theme"
9
- });
10
- const ThemeBlueprint = createExtensionBlueprint({
11
- kind: "theme",
12
- attachTo: { id: "api:app/app-theme", input: "themes" },
13
- output: [themeDataRef],
14
- dataRefs: {
15
- theme: themeDataRef
16
- },
17
- factory: ({ theme }) => [themeDataRef(theme)]
18
- });
19
-
20
- export { ThemeBlueprint };
21
- //# sourceMappingURL=ThemeBlueprint.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ThemeBlueprint.esm.js","sources":["../../src/blueprints/ThemeBlueprint.ts"],"sourcesContent":["/*\n * Copyright 2024 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 { AppTheme } from '../apis/definitions/AppThemeApi';\nimport { createExtensionBlueprint, createExtensionDataRef } from '../wiring';\n\nconst themeDataRef = createExtensionDataRef<AppTheme>().with({\n id: 'core.theme.theme',\n});\n\n/**\n * Creates an extension that adds/replaces an app theme.\n *\n * @public\n * @deprecated Use {@link @backstage/plugin-app-react#ThemeBlueprint} instead.\n */\nexport const ThemeBlueprint = createExtensionBlueprint({\n kind: 'theme',\n attachTo: { id: 'api:app/app-theme', input: 'themes' },\n output: [themeDataRef],\n dataRefs: {\n theme: themeDataRef,\n },\n factory: ({ theme }: { theme: AppTheme }) => [themeDataRef(theme)],\n});\n"],"names":[],"mappings":";;;;;;AAmBA,MAAM,YAAA,GAAe,sBAAA,EAAiC,CAAE,IAAA,CAAK;AAAA,EAC3D,EAAA,EAAI;AACN,CAAC,CAAA;AAQM,MAAM,iBAAiB,wBAAA,CAAyB;AAAA,EACrD,IAAA,EAAM,OAAA;AAAA,EACN,QAAA,EAAU,EAAE,EAAA,EAAI,mBAAA,EAAqB,OAAO,QAAA,EAAS;AAAA,EACrD,MAAA,EAAQ,CAAC,YAAY,CAAA;AAAA,EACrB,QAAA,EAAU;AAAA,IACR,KAAA,EAAO;AAAA,GACT;AAAA,EACA,OAAA,EAAS,CAAC,EAAE,KAAA,OAAiC,CAAC,YAAA,CAAa,KAAK,CAAC;AACnE,CAAC;;;;"}
@@ -1,21 +0,0 @@
1
- import '../wiring/coreExtensionData.esm.js';
2
- import 'zod';
3
- import 'zod-to-json-schema';
4
- import { createExtensionDataRef } from '../wiring/createExtensionDataRef.esm.js';
5
- import { createExtensionBlueprint } from '../wiring/createExtensionBlueprint.esm.js';
6
-
7
- const translationDataRef = createExtensionDataRef().with({ id: "core.translation.translation" });
8
- const TranslationBlueprint = createExtensionBlueprint({
9
- kind: "translation",
10
- attachTo: { id: "api:app/translations", input: "translations" },
11
- output: [translationDataRef],
12
- dataRefs: {
13
- translation: translationDataRef
14
- },
15
- factory: ({
16
- resource
17
- }) => [translationDataRef(resource)]
18
- });
19
-
20
- export { TranslationBlueprint };
21
- //# sourceMappingURL=TranslationBlueprint.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TranslationBlueprint.esm.js","sources":["../../src/blueprints/TranslationBlueprint.ts"],"sourcesContent":["/*\n * Copyright 2024 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 { createExtensionBlueprint, createExtensionDataRef } from '../wiring';\nimport { TranslationMessages, TranslationResource } from '../translation';\n\nconst translationDataRef = createExtensionDataRef<\n TranslationResource | TranslationMessages\n>().with({ id: 'core.translation.translation' });\n\n/**\n * Creates an extension that adds translations to your app.\n *\n * @public\n * @deprecated Use {@link @backstage/plugin-app-react#TranslationBlueprint} instead.\n */\nexport const TranslationBlueprint = createExtensionBlueprint({\n kind: 'translation',\n attachTo: { id: 'api:app/translations', input: 'translations' },\n output: [translationDataRef],\n dataRefs: {\n translation: translationDataRef,\n },\n factory: ({\n resource,\n }: {\n resource: TranslationResource | TranslationMessages;\n }) => [translationDataRef(resource)],\n});\n"],"names":[],"mappings":";;;;;;AAmBA,MAAM,qBAAqB,sBAAA,EAEzB,CAAE,KAAK,EAAE,EAAA,EAAI,gCAAgC,CAAA;AAQxC,MAAM,uBAAuB,wBAAA,CAAyB;AAAA,EAC3D,IAAA,EAAM,aAAA;AAAA,EACN,QAAA,EAAU,EAAE,EAAA,EAAI,sBAAA,EAAwB,OAAO,cAAA,EAAe;AAAA,EAC9D,MAAA,EAAQ,CAAC,kBAAkB,CAAA;AAAA,EAC3B,QAAA,EAAU;AAAA,IACR,WAAA,EAAa;AAAA,GACf;AAAA,EACA,SAAS,CAAC;AAAA,IACR;AAAA,GACF,KAEM,CAAC,kBAAA,CAAmB,QAAQ,CAAC;AACrC,CAAC;;;;"}