@backstage/plugin-home 0.7.9-next.3 → 0.7.10-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,5 +1,43 @@
1
1
  # @backstage/plugin-home
2
2
 
3
+ ## 0.7.10-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - fec8b57: Updated exports to use the new type parameters for extensions and extension blueprints.
8
+ - Updated dependencies
9
+ - @backstage/frontend-plugin-api@0.8.0-next.0
10
+ - @backstage/core-compat-api@0.2.9-next.0
11
+ - @backstage/plugin-catalog-react@1.12.4-next.0
12
+ - @backstage/catalog-client@1.6.6
13
+ - @backstage/catalog-model@1.6.0
14
+ - @backstage/config@1.2.0
15
+ - @backstage/core-app-api@1.14.2
16
+ - @backstage/core-components@0.14.10
17
+ - @backstage/core-plugin-api@1.9.3
18
+ - @backstage/theme@0.5.6
19
+ - @backstage/plugin-home-react@0.1.16
20
+
21
+ ## 0.7.9
22
+
23
+ ### Patch Changes
24
+
25
+ - 31bfc44: Updated alpha definitions of extension data references.
26
+ - fe1fbb2: Migrating usages of the deprecated `createExtension` `v1` format to the newer `v2` format, and old `create*Extension` extension creators to blueprints.
27
+ - fdcc059: Fixed a bug on the WelcomeTitle component where the welcome message wasn't correct when the language was set to Spanish
28
+ - Updated dependencies
29
+ - @backstage/frontend-plugin-api@0.7.0
30
+ - @backstage/plugin-catalog-react@1.12.3
31
+ - @backstage/core-components@0.14.10
32
+ - @backstage/core-compat-api@0.2.8
33
+ - @backstage/core-app-api@1.14.2
34
+ - @backstage/catalog-model@1.6.0
35
+ - @backstage/catalog-client@1.6.6
36
+ - @backstage/config@1.2.0
37
+ - @backstage/core-plugin-api@1.9.3
38
+ - @backstage/theme@0.5.6
39
+ - @backstage/plugin-home-react@0.1.16
40
+
3
41
  ## 0.7.9-next.3
4
42
 
5
43
  ### Patch Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-home__alpha",
3
- "version": "0.7.9-next.3",
3
+ "version": "0.7.10-next.0",
4
4
  "main": "../dist/alpha.esm.js",
5
5
  "module": "../dist/alpha.esm.js",
6
6
  "types": "../dist/alpha.d.ts"
package/dist/alpha.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import * as _backstage_frontend_plugin_api from '@backstage/frontend-plugin-api';
2
+ import React__default from 'react';
2
3
 
3
4
  /**
4
5
  * @alpha
@@ -7,6 +8,31 @@ declare const titleExtensionDataRef: _backstage_frontend_plugin_api.Configurable
7
8
  /**
8
9
  * @alpha
9
10
  */
10
- declare const _default: _backstage_frontend_plugin_api.BackstagePlugin<{}, {}, {}>;
11
+ declare const _default: _backstage_frontend_plugin_api.BackstagePlugin<{}, {}, {
12
+ "page:home": _backstage_frontend_plugin_api.ExtensionDefinition<{
13
+ config: {
14
+ path: string | undefined;
15
+ };
16
+ configInput: {
17
+ path?: string | undefined;
18
+ };
19
+ output: _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<React__default.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "core.routing.path", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<_backstage_frontend_plugin_api.RouteRef<_backstage_frontend_plugin_api.AnyRouteRefParams>, "core.routing.ref", {
20
+ optional: true;
21
+ }>;
22
+ inputs: {
23
+ props: _backstage_frontend_plugin_api.ExtensionInput<_backstage_frontend_plugin_api.ConfigurableExtensionDataRef<React__default.JSX.Element, "core.reactElement", {
24
+ optional: true;
25
+ }> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "title", {
26
+ optional: true;
27
+ }>, {
28
+ singleton: true;
29
+ optional: true;
30
+ }>;
31
+ };
32
+ kind: "page";
33
+ namespace: undefined;
34
+ name: undefined;
35
+ }>;
36
+ }>;
11
37
 
12
38
  export { _default as default, titleExtensionDataRef };
package/dist/alpha.esm.js CHANGED
@@ -1,39 +1,43 @@
1
1
  import React from 'react';
2
- import { createRouteRef, createExtensionDataRef, createPageExtension, createExtensionInput, coreExtensionData, createPlugin } from '@backstage/frontend-plugin-api';
2
+ import { createRouteRef, createExtensionDataRef, PageBlueprint, createExtensionInput, coreExtensionData, createFrontendPlugin } from '@backstage/frontend-plugin-api';
3
3
  import { compatWrapper } from '@backstage/core-compat-api';
4
4
 
5
5
  const rootRouteRef = createRouteRef();
6
6
  const titleExtensionDataRef = createExtensionDataRef().with({
7
7
  id: "title"
8
8
  });
9
- const homePage = createPageExtension({
10
- defaultPath: "/home",
11
- routeRef: rootRouteRef,
9
+ const homePage = PageBlueprint.makeWithOverrides({
12
10
  inputs: {
13
11
  props: createExtensionInput(
14
- {
15
- children: coreExtensionData.reactElement.optional(),
16
- title: titleExtensionDataRef.optional()
17
- },
12
+ [
13
+ coreExtensionData.reactElement.optional(),
14
+ titleExtensionDataRef.optional()
15
+ ],
18
16
  {
19
17
  singleton: true,
20
18
  optional: true
21
19
  }
22
20
  )
23
21
  },
24
- loader: ({ inputs }) => import('./components/index.esm.js').then(
25
- (m) => compatWrapper(
26
- /* @__PURE__ */ React.createElement(
27
- m.HomepageCompositionRoot,
28
- {
29
- children: inputs.props?.output.children,
30
- title: inputs.props?.output.title
31
- }
22
+ factory: (originalFactory, { inputs }) => {
23
+ return originalFactory({
24
+ defaultPath: "/home",
25
+ routeRef: rootRouteRef,
26
+ loader: () => import('./components/index.esm.js').then(
27
+ (m) => compatWrapper(
28
+ /* @__PURE__ */ React.createElement(
29
+ m.HomepageCompositionRoot,
30
+ {
31
+ children: inputs.props?.get(coreExtensionData.reactElement),
32
+ title: inputs.props?.get(titleExtensionDataRef)
33
+ }
34
+ )
35
+ )
32
36
  )
33
- )
34
- )
37
+ });
38
+ }
35
39
  });
36
- var alpha = createPlugin({
40
+ var alpha = createFrontendPlugin({
37
41
  id: "home",
38
42
  extensions: [homePage]
39
43
  });
@@ -1 +1 @@
1
- {"version":3,"file":"alpha.esm.js","sources":["../src/alpha.tsx"],"sourcesContent":["/*\n * Copyright 2023 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 React from 'react';\n\nimport {\n coreExtensionData,\n createExtensionDataRef,\n createExtensionInput,\n createPageExtension,\n createPlugin,\n createRouteRef,\n} from '@backstage/frontend-plugin-api';\nimport { compatWrapper } from '@backstage/core-compat-api';\n\nconst rootRouteRef = createRouteRef();\n\n/**\n * @alpha\n */\nexport const titleExtensionDataRef = createExtensionDataRef<string>().with({\n id: 'title',\n});\n\nconst homePage = createPageExtension({\n defaultPath: '/home',\n routeRef: rootRouteRef,\n inputs: {\n props: createExtensionInput(\n {\n children: coreExtensionData.reactElement.optional(),\n title: titleExtensionDataRef.optional(),\n },\n\n {\n singleton: true,\n optional: true,\n },\n ),\n },\n loader: ({ inputs }) =>\n import('./components/').then(m =>\n compatWrapper(\n <m.HomepageCompositionRoot\n children={inputs.props?.output.children}\n title={inputs.props?.output.title}\n />,\n ),\n ),\n});\n\n/**\n * @alpha\n */\nexport default createPlugin({\n id: 'home',\n extensions: [homePage],\n});\n"],"names":[],"mappings":";;;;AA4BA,MAAM,eAAe,cAAe,EAAA,CAAA;AAKvB,MAAA,qBAAA,GAAwB,sBAA+B,EAAA,CAAE,IAAK,CAAA;AAAA,EACzE,EAAI,EAAA,OAAA;AACN,CAAC,EAAA;AAED,MAAM,WAAW,mBAAoB,CAAA;AAAA,EACnC,WAAa,EAAA,OAAA;AAAA,EACb,QAAU,EAAA,YAAA;AAAA,EACV,MAAQ,EAAA;AAAA,IACN,KAAO,EAAA,oBAAA;AAAA,MACL;AAAA,QACE,QAAA,EAAU,iBAAkB,CAAA,YAAA,CAAa,QAAS,EAAA;AAAA,QAClD,KAAA,EAAO,sBAAsB,QAAS,EAAA;AAAA,OACxC;AAAA,MAEA;AAAA,QACE,SAAW,EAAA,IAAA;AAAA,QACX,QAAU,EAAA,IAAA;AAAA,OACZ;AAAA,KACF;AAAA,GACF;AAAA,EACA,QAAQ,CAAC,EAAE,QACT,KAAA,OAAO,2BAAe,CAAE,CAAA,IAAA;AAAA,IAAK,CAC3B,CAAA,KAAA,aAAA;AAAA,sBACE,KAAA,CAAA,aAAA;AAAA,QAAC,CAAE,CAAA,uBAAA;AAAA,QAAF;AAAA,UACC,QAAA,EAAU,MAAO,CAAA,KAAA,EAAO,MAAO,CAAA,QAAA;AAAA,UAC/B,KAAA,EAAO,MAAO,CAAA,KAAA,EAAO,MAAO,CAAA,KAAA;AAAA,SAAA;AAAA,OAC9B;AAAA,KACF;AAAA,GACF;AACJ,CAAC,CAAA,CAAA;AAKD,YAAe,YAAa,CAAA;AAAA,EAC1B,EAAI,EAAA,MAAA;AAAA,EACJ,UAAA,EAAY,CAAC,QAAQ,CAAA;AACvB,CAAC,CAAA;;;;"}
1
+ {"version":3,"file":"alpha.esm.js","sources":["../src/alpha.tsx"],"sourcesContent":["/*\n * Copyright 2023 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 React from 'react';\n\nimport {\n coreExtensionData,\n createExtensionDataRef,\n createExtensionInput,\n PageBlueprint,\n createFrontendPlugin,\n createRouteRef,\n} from '@backstage/frontend-plugin-api';\nimport { compatWrapper } from '@backstage/core-compat-api';\n\nconst rootRouteRef = createRouteRef();\n\n/**\n * @alpha\n */\nexport const titleExtensionDataRef = createExtensionDataRef<string>().with({\n id: 'title',\n});\n\nconst homePage = PageBlueprint.makeWithOverrides({\n inputs: {\n props: createExtensionInput(\n [\n coreExtensionData.reactElement.optional(),\n titleExtensionDataRef.optional(),\n ],\n {\n singleton: true,\n optional: true,\n },\n ),\n },\n factory: (originalFactory, { inputs }) => {\n return originalFactory({\n defaultPath: '/home',\n routeRef: rootRouteRef,\n loader: () =>\n import('./components/').then(m =>\n compatWrapper(\n <m.HomepageCompositionRoot\n children={inputs.props?.get(coreExtensionData.reactElement)}\n title={inputs.props?.get(titleExtensionDataRef)}\n />,\n ),\n ),\n });\n },\n});\n\n/**\n * @alpha\n */\nexport default createFrontendPlugin({\n id: 'home',\n extensions: [homePage],\n});\n"],"names":[],"mappings":";;;;AA4BA,MAAM,eAAe,cAAe,EAAA,CAAA;AAKvB,MAAA,qBAAA,GAAwB,sBAA+B,EAAA,CAAE,IAAK,CAAA;AAAA,EACzE,EAAI,EAAA,OAAA;AACN,CAAC,EAAA;AAED,MAAM,QAAA,GAAW,cAAc,iBAAkB,CAAA;AAAA,EAC/C,MAAQ,EAAA;AAAA,IACN,KAAO,EAAA,oBAAA;AAAA,MACL;AAAA,QACE,iBAAA,CAAkB,aAAa,QAAS,EAAA;AAAA,QACxC,sBAAsB,QAAS,EAAA;AAAA,OACjC;AAAA,MACA;AAAA,QACE,SAAW,EAAA,IAAA;AAAA,QACX,QAAU,EAAA,IAAA;AAAA,OACZ;AAAA,KACF;AAAA,GACF;AAAA,EACA,OAAS,EAAA,CAAC,eAAiB,EAAA,EAAE,QAAa,KAAA;AACxC,IAAA,OAAO,eAAgB,CAAA;AAAA,MACrB,WAAa,EAAA,OAAA;AAAA,MACb,QAAU,EAAA,YAAA;AAAA,MACV,MAAQ,EAAA,MACN,OAAO,2BAAe,CAAE,CAAA,IAAA;AAAA,QAAK,CAC3B,CAAA,KAAA,aAAA;AAAA,0BACE,KAAA,CAAA,aAAA;AAAA,YAAC,CAAE,CAAA,uBAAA;AAAA,YAAF;AAAA,cACC,QAAU,EAAA,MAAA,CAAO,KAAO,EAAA,GAAA,CAAI,kBAAkB,YAAY,CAAA;AAAA,cAC1D,KAAO,EAAA,MAAA,CAAO,KAAO,EAAA,GAAA,CAAI,qBAAqB,CAAA;AAAA,aAAA;AAAA,WAChD;AAAA,SACF;AAAA,OACF;AAAA,KACH,CAAA,CAAA;AAAA,GACH;AACF,CAAC,CAAA,CAAA;AAKD,YAAe,oBAAqB,CAAA;AAAA,EAClC,EAAI,EAAA,MAAA;AAAA,EACJ,UAAA,EAAY,CAAC,QAAQ,CAAA;AACvB,CAAC,CAAA;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-home",
3
- "version": "0.7.9-next.3",
3
+ "version": "0.7.10-next.0",
4
4
  "description": "A Backstage plugin that helps you build a home page",
5
5
  "backstage": {
6
6
  "role": "frontend-plugin",
@@ -55,16 +55,16 @@
55
55
  "test": "backstage-cli package test"
56
56
  },
57
57
  "dependencies": {
58
- "@backstage/catalog-client": "^1.6.6-next.0",
59
- "@backstage/catalog-model": "^1.6.0-next.0",
58
+ "@backstage/catalog-client": "^1.6.6",
59
+ "@backstage/catalog-model": "^1.6.0",
60
60
  "@backstage/config": "^1.2.0",
61
- "@backstage/core-app-api": "^1.14.2-next.0",
62
- "@backstage/core-compat-api": "^0.2.8-next.3",
63
- "@backstage/core-components": "^0.14.10-next.0",
61
+ "@backstage/core-app-api": "^1.14.2",
62
+ "@backstage/core-compat-api": "^0.2.9-next.0",
63
+ "@backstage/core-components": "^0.14.10",
64
64
  "@backstage/core-plugin-api": "^1.9.3",
65
- "@backstage/frontend-plugin-api": "^0.7.0-next.3",
66
- "@backstage/plugin-catalog-react": "^1.12.3-next.3",
67
- "@backstage/plugin-home-react": "^0.1.16-next.0",
65
+ "@backstage/frontend-plugin-api": "^0.8.0-next.0",
66
+ "@backstage/plugin-catalog-react": "^1.12.4-next.0",
67
+ "@backstage/plugin-home-react": "^0.1.16",
68
68
  "@backstage/theme": "^0.5.6",
69
69
  "@material-ui/core": "^4.12.2",
70
70
  "@material-ui/icons": "^4.9.1",
@@ -82,9 +82,9 @@
82
82
  "zod": "^3.22.4"
83
83
  },
84
84
  "devDependencies": {
85
- "@backstage/cli": "^0.27.0-next.4",
86
- "@backstage/dev-utils": "^1.0.37-next.3",
87
- "@backstage/test-utils": "^1.5.10-next.2",
85
+ "@backstage/cli": "^0.27.1-next.0",
86
+ "@backstage/dev-utils": "^1.0.38-next.0",
87
+ "@backstage/test-utils": "^1.6.0-next.0",
88
88
  "@testing-library/dom": "^10.0.0",
89
89
  "@testing-library/jest-dom": "^6.0.0",
90
90
  "@testing-library/react": "^15.0.0",