@backstage/plugin-home 0.8.10-next.0 → 0.8.10-next.2

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,34 @@
1
1
  # @backstage/plugin-home
2
2
 
3
+ ## 0.8.10-next.2
4
+
5
+ ### Patch Changes
6
+
7
+ - d52d67f: Added a New Frontend System App Root Element for the `<VisitListener />` component
8
+ - Updated dependencies
9
+ - @backstage/theme@0.6.7-next.1
10
+ - @backstage/core-app-api@1.18.0-next.1
11
+ - @backstage/core-components@0.17.4-next.2
12
+ - @backstage/core-compat-api@0.4.4-next.1
13
+ - @backstage/core-plugin-api@1.10.9-next.0
14
+ - @backstage/plugin-catalog-react@1.19.1-next.1
15
+
16
+ ## 0.8.10-next.1
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies
21
+ - @backstage/config@1.3.3-next.0
22
+ - @backstage/catalog-model@1.7.5-next.0
23
+ - @backstage/plugin-catalog-react@1.19.1-next.1
24
+ - @backstage/catalog-client@1.10.2-next.0
25
+ - @backstage/core-app-api@1.17.2-next.0
26
+ - @backstage/core-components@0.17.4-next.1
27
+ - @backstage/core-plugin-api@1.10.9-next.0
28
+ - @backstage/core-compat-api@0.4.4-next.1
29
+ - @backstage/frontend-plugin-api@0.10.4-next.1
30
+ - @backstage/plugin-home-react@0.1.28-next.1
31
+
3
32
  ## 0.8.10-next.0
4
33
 
5
34
  ### Patch Changes
package/dist/alpha.d.ts CHANGED
@@ -42,6 +42,17 @@ declare const titleExtensionDataRef: _backstage_frontend_plugin_api.Configurable
42
42
  declare const _default: _backstage_frontend_plugin_api.FrontendPlugin<{
43
43
  root: _backstage_frontend_plugin_api.RouteRef<undefined>;
44
44
  }, {}, {
45
+ "app-root-element:home/visit-listener": _backstage_frontend_plugin_api.ExtensionDefinition<{
46
+ kind: "app-root-element";
47
+ name: "visit-listener";
48
+ config: {};
49
+ configInput: {};
50
+ output: _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<react.JSX.Element, "core.reactElement", {}>;
51
+ inputs: {};
52
+ params: {
53
+ element: JSX.Element | (() => JSX.Element);
54
+ };
55
+ }>;
45
56
  "page:home": _backstage_frontend_plugin_api.ExtensionDefinition<{
46
57
  config: {
47
58
  path: string | undefined;
package/dist/alpha.esm.js CHANGED
@@ -1,6 +1,9 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
- import { createRouteRef, createExtensionDataRef, PageBlueprint, createExtensionInput, coreExtensionData, createFrontendPlugin } from '@backstage/frontend-plugin-api';
2
+ import { createRouteRef, createExtensionDataRef, PageBlueprint, createExtensionInput, coreExtensionData, AppRootElementBlueprint, createFrontendPlugin } from '@backstage/frontend-plugin-api';
3
3
  import { compatWrapper } from '@backstage/core-compat-api';
4
+ import 'react-router-dom';
5
+ import './components/CustomHomepage/CustomHomepageGrid.esm.js';
6
+ import { VisitListener } from './components/VisitListener.esm.js';
4
7
  export { homeTranslationRef } from './translation.esm.js';
5
8
 
6
9
  const rootRouteRef = createRouteRef();
@@ -38,10 +41,16 @@ const homePage = PageBlueprint.makeWithOverrides({
38
41
  });
39
42
  }
40
43
  });
44
+ const visitListenerAppRootElement = AppRootElementBlueprint.make({
45
+ name: "visit-listener",
46
+ params: {
47
+ element: /* @__PURE__ */ jsx(VisitListener, {})
48
+ }
49
+ });
41
50
  var alpha = createFrontendPlugin({
42
51
  pluginId: "home",
43
52
  info: { packageJson: () => import('./package.json.esm.js') },
44
- extensions: [homePage],
53
+ extensions: [homePage, visitListenerAppRootElement],
45
54
  routes: {
46
55
  root: rootRouteRef
47
56
  }
@@ -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 {\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 pluginId: 'home',\n info: { packageJson: () => import('../package.json') },\n extensions: [homePage],\n routes: {\n root: rootRouteRef,\n },\n});\n\nexport { homeTranslationRef } from './translation';\n"],"names":[],"mappings":";;;;;AA0BA,MAAM,eAAe,cAAe,EAAA;AAKvB,MAAA,qBAAA,GAAwB,sBAA+B,EAAA,CAAE,IAAK,CAAA;AAAA,EACzE,EAAI,EAAA;AACN,CAAC;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;AAAA,OACjC;AAAA,MACA;AAAA,QACE,SAAW,EAAA,IAAA;AAAA,QACX,QAAU,EAAA;AAAA;AACZ;AACF,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,GAAA;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;AAAA;AAAA;AAChD;AACF;AACF,KACH,CAAA;AAAA;AAEL,CAAC,CAAA;AAKD,YAAe,oBAAqB,CAAA;AAAA,EAClC,QAAU,EAAA,MAAA;AAAA,EACV,MAAM,EAAE,WAAA,EAAa,MAAM,OAAO,uBAAiB,CAAE,EAAA;AAAA,EACrD,UAAA,EAAY,CAAC,QAAQ,CAAA;AAAA,EACrB,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA;AAAA;AAEV,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 {\n coreExtensionData,\n createExtensionDataRef,\n createExtensionInput,\n PageBlueprint,\n createFrontendPlugin,\n createRouteRef,\n AppRootElementBlueprint,\n} from '@backstage/frontend-plugin-api';\nimport { compatWrapper } from '@backstage/core-compat-api';\nimport { VisitListener } from './components/';\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\nconst visitListenerAppRootElement = AppRootElementBlueprint.make({\n name: 'visit-listener',\n params: {\n element: <VisitListener />,\n },\n});\n\n/**\n * @alpha\n */\nexport default createFrontendPlugin({\n pluginId: 'home',\n info: { packageJson: () => import('../package.json') },\n extensions: [homePage, visitListenerAppRootElement],\n routes: {\n root: rootRouteRef,\n },\n});\n\nexport { homeTranslationRef } from './translation';\n"],"names":[],"mappings":";;;;;;;;AA4BA,MAAM,eAAe,cAAe,EAAA;AAKvB,MAAA,qBAAA,GAAwB,sBAA+B,EAAA,CAAE,IAAK,CAAA;AAAA,EACzE,EAAI,EAAA;AACN,CAAC;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;AAAA,OACjC;AAAA,MACA;AAAA,QACE,SAAW,EAAA,IAAA;AAAA,QACX,QAAU,EAAA;AAAA;AACZ;AACF,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,GAAA;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;AAAA;AAAA;AAChD;AACF;AACF,KACH,CAAA;AAAA;AAEL,CAAC,CAAA;AAED,MAAM,2BAAA,GAA8B,wBAAwB,IAAK,CAAA;AAAA,EAC/D,IAAM,EAAA,gBAAA;AAAA,EACN,MAAQ,EAAA;AAAA,IACN,OAAA,sBAAU,aAAc,EAAA,EAAA;AAAA;AAE5B,CAAC,CAAA;AAKD,YAAe,oBAAqB,CAAA;AAAA,EAClC,QAAU,EAAA,MAAA;AAAA,EACV,MAAM,EAAE,WAAA,EAAa,MAAM,OAAO,uBAAiB,CAAE,EAAA;AAAA,EACrD,UAAA,EAAY,CAAC,QAAA,EAAU,2BAA2B,CAAA;AAAA,EAClD,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA;AAAA;AAEV,CAAC,CAAA;;;;"}
@@ -1,5 +1,5 @@
1
1
  var name = "@backstage/plugin-home";
2
- var version = "0.8.10-next.0";
2
+ var version = "0.8.10-next.2";
3
3
  var description = "A Backstage plugin that helps you build a home page";
4
4
  var backstage = {
5
5
  role: "frontend-plugin",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-home",
3
- "version": "0.8.10-next.0",
3
+ "version": "0.8.10-next.2",
4
4
  "description": "A Backstage plugin that helps you build a home page",
5
5
  "backstage": {
6
6
  "role": "frontend-plugin",
@@ -68,17 +68,17 @@
68
68
  "test": "backstage-cli package test"
69
69
  },
70
70
  "dependencies": {
71
- "@backstage/catalog-client": "1.10.1",
72
- "@backstage/catalog-model": "1.7.4",
73
- "@backstage/config": "1.3.2",
74
- "@backstage/core-app-api": "1.17.1",
75
- "@backstage/core-compat-api": "0.4.4-next.0",
76
- "@backstage/core-components": "0.17.4-next.0",
77
- "@backstage/core-plugin-api": "1.10.8",
78
- "@backstage/frontend-plugin-api": "0.10.4-next.0",
79
- "@backstage/plugin-catalog-react": "1.19.1-next.0",
80
- "@backstage/plugin-home-react": "0.1.28-next.0",
81
- "@backstage/theme": "0.6.7-next.0",
71
+ "@backstage/catalog-client": "1.10.2-next.0",
72
+ "@backstage/catalog-model": "1.7.5-next.0",
73
+ "@backstage/config": "1.3.3-next.0",
74
+ "@backstage/core-app-api": "1.18.0-next.1",
75
+ "@backstage/core-compat-api": "0.4.4-next.1",
76
+ "@backstage/core-components": "0.17.4-next.2",
77
+ "@backstage/core-plugin-api": "1.10.9-next.0",
78
+ "@backstage/frontend-plugin-api": "0.10.4-next.1",
79
+ "@backstage/plugin-catalog-react": "1.19.1-next.1",
80
+ "@backstage/plugin-home-react": "0.1.28-next.1",
81
+ "@backstage/theme": "0.6.7-next.1",
82
82
  "@material-ui/core": "^4.12.2",
83
83
  "@material-ui/icons": "^4.9.1",
84
84
  "@material-ui/lab": "4.0.0-alpha.61",
@@ -94,9 +94,9 @@
94
94
  "zod": "^3.22.4"
95
95
  },
96
96
  "devDependencies": {
97
- "@backstage/cli": "0.33.1-next.0",
98
- "@backstage/dev-utils": "1.1.12-next.0",
99
- "@backstage/test-utils": "1.7.10-next.0",
97
+ "@backstage/cli": "0.33.1-next.2",
98
+ "@backstage/dev-utils": "1.1.12-next.2",
99
+ "@backstage/test-utils": "1.7.10-next.2",
100
100
  "@testing-library/dom": "^10.0.0",
101
101
  "@testing-library/jest-dom": "^6.0.0",
102
102
  "@testing-library/react": "^16.0.0",