@backstage/plugin-home 0.6.0-next.1 → 0.6.0-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,26 @@
1
1
  # @backstage/plugin-home
2
2
 
3
+ ## 0.6.0-next.2
4
+
5
+ ### Patch Changes
6
+
7
+ - a1227cc: Wrap `/alpha` export extension elements in backwards compatibility wrapper.
8
+ - 8f5d6c1: Updates to the `/alpha` exports to match the extension input wrapping change.
9
+ - 36c94b8: Refactor of the alpha exports due to API change in how extension IDs are constructed.
10
+ - Updated dependencies
11
+ - @backstage/frontend-plugin-api@0.4.0-next.2
12
+ - @backstage/theme@0.5.0-next.1
13
+ - @backstage/core-compat-api@0.1.0-next.2
14
+ - @backstage/plugin-catalog-react@1.9.2-next.2
15
+ - @backstage/catalog-client@1.5.0-next.1
16
+ - @backstage/catalog-model@1.4.3
17
+ - @backstage/config@1.1.1
18
+ - @backstage/core-app-api@1.11.2-next.1
19
+ - @backstage/core-components@0.13.9-next.2
20
+ - @backstage/core-plugin-api@1.8.1-next.1
21
+ - @backstage/types@1.1.1
22
+ - @backstage/plugin-home-react@0.1.6-next.2
23
+
3
24
  ## 0.6.0-next.1
4
25
 
5
26
  ### Minor Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-home",
3
- "version": "0.6.0-next.1",
3
+ "version": "0.6.0-next.2",
4
4
  "main": "../dist/alpha.esm.js",
5
5
  "module": "../dist/alpha.esm.js",
6
6
  "types": "../dist/alpha.d.ts"
package/dist/alpha.esm.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
2
  import { createRouteRef, createExtensionDataRef, createPageExtension, createExtensionInput, coreExtensionData, createPlugin } from '@backstage/frontend-plugin-api';
3
+ import { compatWrapper } from '@backstage/core-compat-api';
3
4
 
4
5
  const rootRouteRef = createRouteRef();
5
6
  const titleExtensionDataRef = createExtensionDataRef("title");
6
7
  const HomepageCompositionRootExtension = createPageExtension({
7
- id: "home",
8
8
  defaultPath: "/home",
9
9
  routeRef: rootRouteRef,
10
10
  inputs: {
@@ -19,16 +19,20 @@ const HomepageCompositionRootExtension = createPageExtension({
19
19
  }
20
20
  )
21
21
  },
22
- loader: ({ inputs }) => import('./esm/index-20e7c88d.esm.js').then((m) => {
23
- var _a, _b;
24
- return /* @__PURE__ */ React.createElement(
25
- m.HomepageCompositionRoot,
26
- {
27
- children: (_a = inputs.props) == null ? void 0 : _a.children,
28
- title: (_b = inputs.props) == null ? void 0 : _b.title
29
- }
30
- );
31
- })
22
+ loader: ({ inputs }) => import('./esm/index-20e7c88d.esm.js').then(
23
+ (m) => {
24
+ var _a, _b;
25
+ return compatWrapper(
26
+ /* @__PURE__ */ React.createElement(
27
+ m.HomepageCompositionRoot,
28
+ {
29
+ children: (_a = inputs.props) == null ? void 0 : _a.output.children,
30
+ title: (_b = inputs.props) == null ? void 0 : _b.output.title
31
+ }
32
+ )
33
+ );
34
+ }
35
+ )
32
36
  });
33
37
  var alpha = createPlugin({
34
38
  id: "home",
@@ -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';\n\nconst rootRouteRef = createRouteRef();\n\n/**\n * @alpha\n */\nexport const titleExtensionDataRef = createExtensionDataRef<string>('title');\n\nconst HomepageCompositionRootExtension = createPageExtension({\n id: 'home',\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 <m.HomepageCompositionRoot\n children={inputs.props?.children}\n title={inputs.props?.title}\n />\n )),\n});\n\n/**\n * @alpha\n */\nexport default createPlugin({\n id: 'home',\n extensions: [HomepageCompositionRootExtension],\n});\n"],"names":[],"mappings":";;;AA2BA,MAAM,eAAe,cAAe,EAAA,CAAA;AAKvB,MAAA,qBAAA,GAAwB,uBAA+B,OAAO,EAAA;AAE3E,MAAM,mCAAmC,mBAAoB,CAAA;AAAA,EAC3D,EAAI,EAAA,MAAA;AAAA,EACJ,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,MAAA,EAAQ,CAAC,EAAE,MAAA,OACT,OAAO,6BAAe,CAAE,CAAA,IAAA,CAAK,CAAE,CAAA,KAAA;AApDnC,IAAA,IAAA,EAAA,EAAA,EAAA,CAAA;AAqDM,IAAA,uBAAA,KAAA,CAAA,aAAA;AAAA,MAAC,CAAE,CAAA,uBAAA;AAAA,MAAF;AAAA,QACC,QAAA,EAAA,CAAU,EAAO,GAAA,MAAA,CAAA,KAAA,KAAP,IAAc,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,QAAA;AAAA,QACxB,KAAA,EAAA,CAAO,EAAO,GAAA,MAAA,CAAA,KAAA,KAAP,IAAc,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,KAAA;AAAA,OAAA;AAAA,KACvB,CAAA;AAAA,GACD,CAAA;AACL,CAAC,CAAA,CAAA;AAKD,YAAe,YAAa,CAAA;AAAA,EAC1B,EAAI,EAAA,MAAA;AAAA,EACJ,UAAA,EAAY,CAAC,gCAAgC,CAAA;AAC/C,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 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>('title');\n\nconst HomepageCompositionRootExtension = 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: [HomepageCompositionRootExt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1,7 @@
1
1
  {
2
2
  "name": "@backstage/plugin-home",
3
3
  "description": "A Backstage plugin that helps you build a home page",
4
- "version": "0.6.0-next.1",
4
+ "version": "0.6.0-next.2",
5
5
  "main": "./dist/index.esm.js",
6
6
  "types": "./dist/index.d.ts",
7
7
  "license": "Apache-2.0",
@@ -45,16 +45,17 @@
45
45
  "clean": "backstage-cli package clean"
46
46
  },
47
47
  "dependencies": {
48
- "@backstage/catalog-client": "^1.5.0-next.0",
48
+ "@backstage/catalog-client": "^1.5.0-next.1",
49
49
  "@backstage/catalog-model": "^1.4.3",
50
50
  "@backstage/config": "^1.1.1",
51
51
  "@backstage/core-app-api": "^1.11.2-next.1",
52
- "@backstage/core-components": "^0.13.9-next.1",
52
+ "@backstage/core-compat-api": "^0.1.0-next.2",
53
+ "@backstage/core-components": "^0.13.9-next.2",
53
54
  "@backstage/core-plugin-api": "^1.8.1-next.1",
54
- "@backstage/frontend-plugin-api": "^0.4.0-next.1",
55
- "@backstage/plugin-catalog-react": "^1.9.2-next.1",
56
- "@backstage/plugin-home-react": "^0.1.6-next.1",
57
- "@backstage/theme": "^0.5.0-next.0",
55
+ "@backstage/frontend-plugin-api": "^0.4.0-next.2",
56
+ "@backstage/plugin-catalog-react": "^1.9.2-next.2",
57
+ "@backstage/plugin-home-react": "^0.1.6-next.2",
58
+ "@backstage/theme": "^0.5.0-next.1",
58
59
  "@backstage/types": "^1.1.1",
59
60
  "@material-ui/core": "^4.12.2",
60
61
  "@material-ui/icons": "^4.9.1",
@@ -77,9 +78,9 @@
77
78
  "react-router-dom": "6.0.0-beta.0 || ^6.3.0"
78
79
  },
79
80
  "devDependencies": {
80
- "@backstage/cli": "^0.25.0-next.1",
81
- "@backstage/dev-utils": "^1.0.25-next.1",
82
- "@backstage/test-utils": "^1.4.6-next.1",
81
+ "@backstage/cli": "^0.25.0-next.2",
82
+ "@backstage/dev-utils": "^1.0.25-next.2",
83
+ "@backstage/test-utils": "^1.4.6-next.2",
83
84
  "@testing-library/dom": "^9.0.0",
84
85
  "@testing-library/jest-dom": "^6.0.0",
85
86
  "@testing-library/react": "^14.0.0",