@backstage/plugin-home 0.8.14 → 0.8.15-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.
- package/CHANGELOG.md +37 -0
- package/dist/alpha.esm.js +7 -12
- package/dist/alpha.esm.js.map +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/package.json.esm.js +8 -9
- package/dist/package.json.esm.js.map +1 -1
- package/package.json +18 -19
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,42 @@
|
|
|
1
1
|
# @backstage/plugin-home
|
|
2
2
|
|
|
3
|
+
## 0.8.15-next.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- be21c5c: Updated dependency `@rjsf/utils` to `5.24.13`.
|
|
8
|
+
Updated dependency `@rjsf/core` to `5.24.13`.
|
|
9
|
+
Updated dependency `@rjsf/material-ui` to `5.24.13`.
|
|
10
|
+
Updated dependency `@rjsf/validator-ajv8` to `5.24.13`.
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
- @backstage/core-app-api@1.19.3-next.1
|
|
13
|
+
- @backstage/frontend-plugin-api@0.13.2-next.1
|
|
14
|
+
- @backstage/plugin-catalog-react@1.21.4-next.2
|
|
15
|
+
- @backstage/core-components@0.18.4-next.2
|
|
16
|
+
- @backstage/plugin-home-react@0.1.33-next.1
|
|
17
|
+
- @backstage/catalog-client@1.12.1
|
|
18
|
+
- @backstage/catalog-model@1.7.6
|
|
19
|
+
- @backstage/config@1.3.6
|
|
20
|
+
- @backstage/core-plugin-api@1.12.1-next.0
|
|
21
|
+
- @backstage/theme@0.7.1-next.0
|
|
22
|
+
|
|
23
|
+
## 0.8.15-next.0
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- d02db50: Remove unnecessary use of `compatWrapper` and `convertLegacyRouteRef`(s) for the new frontend system.
|
|
28
|
+
- Updated dependencies
|
|
29
|
+
- @backstage/frontend-plugin-api@0.13.2-next.0
|
|
30
|
+
- @backstage/core-app-api@1.19.3-next.0
|
|
31
|
+
- @backstage/core-plugin-api@1.12.1-next.0
|
|
32
|
+
- @backstage/plugin-catalog-react@1.21.4-next.0
|
|
33
|
+
- @backstage/theme@0.7.1-next.0
|
|
34
|
+
- @backstage/plugin-home-react@0.1.33-next.0
|
|
35
|
+
- @backstage/core-components@0.18.4-next.0
|
|
36
|
+
- @backstage/config@1.3.6
|
|
37
|
+
- @backstage/catalog-client@1.12.1
|
|
38
|
+
- @backstage/catalog-model@1.7.6
|
|
39
|
+
|
|
3
40
|
## 0.8.14
|
|
4
41
|
|
|
5
42
|
### Patch Changes
|
package/dist/alpha.esm.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { createRouteRef, createExtensionDataRef, PageBlueprint, createExtensionInput, coreExtensionData, AppRootElementBlueprint, ApiBlueprint, identityApiRef, storageApiRef, createFrontendPlugin } from '@backstage/frontend-plugin-api';
|
|
3
|
-
import { compatWrapper } from '@backstage/core-compat-api';
|
|
4
3
|
import 'react-router-dom';
|
|
5
4
|
import './components/CustomHomepage/CustomHomepageGrid.esm.js';
|
|
6
5
|
import { VisitListener } from './components/VisitListener.esm.js';
|
|
@@ -31,17 +30,13 @@ const homePage = PageBlueprint.makeWithOverrides({
|
|
|
31
30
|
return originalFactory({
|
|
32
31
|
path: "/home",
|
|
33
32
|
routeRef: rootRouteRef,
|
|
34
|
-
loader: () => import('./components/index.esm.js').then(
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
42
|
-
)
|
|
43
|
-
)
|
|
44
|
-
)
|
|
33
|
+
loader: () => import('./components/index.esm.js').then((m) => /* @__PURE__ */ jsx(
|
|
34
|
+
m.HomepageCompositionRoot,
|
|
35
|
+
{
|
|
36
|
+
children: inputs.props?.get(coreExtensionData.reactElement),
|
|
37
|
+
title: inputs.props?.get(titleExtensionDataRef)
|
|
38
|
+
}
|
|
39
|
+
))
|
|
45
40
|
});
|
|
46
41
|
}
|
|
47
42
|
});
|
package/dist/alpha.esm.js.map
CHANGED
|
@@ -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 AppRootElementBlueprint,\n identityApiRef,\n storageApiRef,\n ApiBlueprint,\n} from '@backstage/frontend-plugin-api';\nimport {
|
|
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 identityApiRef,\n storageApiRef,\n ApiBlueprint,\n} from '@backstage/frontend-plugin-api';\nimport { VisitListener } from './components/';\nimport { visitsApiRef, VisitsStorageApi } from './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 path: '/home',\n routeRef: rootRouteRef,\n loader: () =>\n import('./components/').then(m => (\n <m.HomepageCompositionRoot\n children={inputs.props?.get(coreExtensionData.reactElement)}\n title={inputs.props?.get(titleExtensionDataRef)}\n />\n )),\n });\n },\n});\n\nconst visitListenerAppRootElement = AppRootElementBlueprint.make({\n name: 'visit-listener',\n params: {\n element: <VisitListener />,\n },\n});\n\nconst visitsApi = ApiBlueprint.make({\n name: 'visits',\n params: defineParams =>\n defineParams({\n api: visitsApiRef,\n deps: {\n storageApi: storageApiRef,\n identityApi: identityApiRef,\n },\n factory: ({ storageApi, identityApi }) =>\n VisitsStorageApi.create({ storageApi, identityApi }),\n }),\n});\n\n/**\n * @alpha\n */\nexport default createFrontendPlugin({\n pluginId: 'home',\n info: { packageJson: () => import('../package.json') },\n extensions: [homePage, visitsApi, visitListenerAppRootElement],\n routes: {\n root: rootRouteRef,\n },\n});\n\nexport { homeTranslationRef } from './translation';\n"],"names":[],"mappings":";;;;;;;;;;;AA+BA,MAAM,eAAe,cAAA,EAAe;AAK7B,MAAM,qBAAA,GAAwB,sBAAA,EAA+B,CAAE,IAAA,CAAK;AAAA,EACzE,EAAA,EAAI;AACN,CAAC;AAED,MAAM,QAAA,GAAW,cAAc,iBAAA,CAAkB;AAAA,EAC/C,MAAA,EAAQ;AAAA,IACN,KAAA,EAAO,oBAAA;AAAA,MACL;AAAA,QACE,iBAAA,CAAkB,aAAa,QAAA,EAAS;AAAA,QACxC,sBAAsB,QAAA;AAAS,OACjC;AAAA,MACA;AAAA,QACE,SAAA,EAAW,I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AY,CAAC,QAAA,EAAU,SAAA,EAAW,2BAA2B,CAAA;AAAA,EAC7D,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM;AAAA;AAEV,CAAC,CAAA;;;;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import * as react from 'react';
|
|
|
4
4
|
import { ReactNode, JSX as JSX$1, ReactElement, CSSProperties } from 'react';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
6
|
import { Variant } from '@material-ui/core/styles/createTypography';
|
|
7
|
+
import * as _backstage_frontend_plugin_api from '@backstage/frontend-plugin-api';
|
|
7
8
|
import * as _backstage_core_plugin_api from '@backstage/core-plugin-api';
|
|
8
9
|
import { StorageApi, IdentityApi, ErrorApi } from '@backstage/core-plugin-api';
|
|
9
10
|
import { EntityFilterQuery } from '@backstage/catalog-client';
|
|
@@ -156,7 +157,7 @@ interface VisitsApi {
|
|
|
156
157
|
enrichVisit?(visit: VisitInput): Promise<Record<string, any>> | Record<string, any>;
|
|
157
158
|
}
|
|
158
159
|
/** @public */
|
|
159
|
-
declare const visitsApiRef:
|
|
160
|
+
declare const visitsApiRef: _backstage_frontend_plugin_api.ApiRef<VisitsApi>;
|
|
160
161
|
|
|
161
162
|
/**
|
|
162
163
|
* @public
|
|
@@ -612,4 +613,5 @@ declare const SettingsModal: (props: {
|
|
|
612
613
|
children: JSX.Element;
|
|
613
614
|
}) => react_jsx_runtime.JSX.Element;
|
|
614
615
|
|
|
615
|
-
export {
|
|
616
|
+
export { ComponentAccordion, ComponentTab, ComponentTabs, CustomHomepageGrid, FeaturedDocsCard, HeaderWorldClock, HomePageCompanyLogo, HomePageRandomJoke, HomePageRecentlyVisited, HomePageStarredEntities, HomePageToolkit, HomePageTopVisited, HomepageCompositionRoot, QuickStartCard, SettingsModal, TemplateBackstageLogo, TemplateBackstageLogoIcon, VisitDisplayProvider, VisitListener, VisitsStorageApi, VisitsWebStorageApi, WelcomeTitle, createCardExtension, homePlugin, isOperator, useVisitDisplay, visitsApiRef };
|
|
617
|
+
export type { Breakpoint, CardConfig, CardExtensionProps, CardLayout, CardSettings, ClockConfig, ComponentParts, ComponentRenderer, CustomHomepageGridProps, FeaturedDocsCardProps, GetChipColorFunction, GetLabelFunction, LayoutConfiguration, Operators, QuickStartCardProps, RendererProps, StarredEntitiesProps, Tool, ToolkitContentProps, Visit, VisitDisplayContextValue, VisitDisplayProviderProps, VisitInput, VisitedByTypeKind, VisitedByTypeProps, VisitsApi, VisitsApiQueryParams, VisitsApiSaveParams, VisitsStorageApiOptions, VisitsWebStorageApiOptions, WelcomeTitleLanguageProps };
|
package/dist/package.json.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var name = "@backstage/plugin-home";
|
|
2
|
-
var version = "0.8.
|
|
2
|
+
var version = "0.8.15-next.1";
|
|
3
3
|
var description = "A Backstage plugin that helps you build a home page";
|
|
4
4
|
var backstage = {
|
|
5
5
|
role: "frontend-plugin",
|
|
@@ -24,7 +24,7 @@ var repository = {
|
|
|
24
24
|
};
|
|
25
25
|
var license = "Apache-2.0";
|
|
26
26
|
var sideEffects = false;
|
|
27
|
-
var exports = {
|
|
27
|
+
var exports$1 = {
|
|
28
28
|
".": "./src/index.ts",
|
|
29
29
|
"./alpha": "./src/alpha.tsx",
|
|
30
30
|
"./package.json": "./package.json"
|
|
@@ -59,7 +59,6 @@ var dependencies = {
|
|
|
59
59
|
"@backstage/catalog-model": "workspace:^",
|
|
60
60
|
"@backstage/config": "workspace:^",
|
|
61
61
|
"@backstage/core-app-api": "workspace:^",
|
|
62
|
-
"@backstage/core-compat-api": "workspace:^",
|
|
63
62
|
"@backstage/core-components": "workspace:^",
|
|
64
63
|
"@backstage/core-plugin-api": "workspace:^",
|
|
65
64
|
"@backstage/frontend-plugin-api": "workspace:^",
|
|
@@ -69,10 +68,10 @@ var dependencies = {
|
|
|
69
68
|
"@material-ui/core": "^4.12.2",
|
|
70
69
|
"@material-ui/icons": "^4.9.1",
|
|
71
70
|
"@material-ui/lab": "4.0.0-alpha.61",
|
|
72
|
-
"@rjsf/core": "5.
|
|
73
|
-
"@rjsf/material-ui": "5.
|
|
74
|
-
"@rjsf/utils": "5.
|
|
75
|
-
"@rjsf/validator-ajv8": "5.
|
|
71
|
+
"@rjsf/core": "5.24.13",
|
|
72
|
+
"@rjsf/material-ui": "5.24.13",
|
|
73
|
+
"@rjsf/utils": "5.24.13",
|
|
74
|
+
"@rjsf/validator-ajv8": "5.24.13",
|
|
76
75
|
lodash: "^4.17.21",
|
|
77
76
|
luxon: "^3.4.3",
|
|
78
77
|
"react-grid-layout": "1.3.4",
|
|
@@ -117,7 +116,7 @@ var _package = {
|
|
|
117
116
|
repository: repository,
|
|
118
117
|
license: license,
|
|
119
118
|
sideEffects: sideEffects,
|
|
120
|
-
exports: exports,
|
|
119
|
+
exports: exports$1,
|
|
121
120
|
main: main,
|
|
122
121
|
types: types,
|
|
123
122
|
typesVersions: typesVersions,
|
|
@@ -130,5 +129,5 @@ var _package = {
|
|
|
130
129
|
configSchema: configSchema
|
|
131
130
|
};
|
|
132
131
|
|
|
133
|
-
export { backstage, configSchema, _package as default, dependencies, description, devDependencies, exports, files, homepage, keywords, license, main, name, peerDependencies, peerDependenciesMeta, publishConfig, repository, scripts, sideEffects, types, typesVersions, version };
|
|
132
|
+
export { backstage, configSchema, _package as default, dependencies, description, devDependencies, exports$1 as exports, files, homepage, keywords, license, main, name, peerDependencies, peerDependenciesMeta, publishConfig, repository, scripts, sideEffects, types, typesVersions, version };
|
|
134
133
|
//# sourceMappingURL=package.json.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"package.json.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"package.json.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-home",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.15-next.1",
|
|
4
4
|
"description": "A Backstage plugin that helps you build a home page",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "frontend-plugin",
|
|
@@ -68,24 +68,23 @@
|
|
|
68
68
|
"test": "backstage-cli package test"
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"@backstage/catalog-client": "
|
|
72
|
-
"@backstage/catalog-model": "
|
|
73
|
-
"@backstage/config": "
|
|
74
|
-
"@backstage/core-app-api": "
|
|
75
|
-
"@backstage/core-
|
|
76
|
-
"@backstage/core-
|
|
77
|
-
"@backstage/
|
|
78
|
-
"@backstage/
|
|
79
|
-
"@backstage/plugin-
|
|
80
|
-
"@backstage/
|
|
81
|
-
"@backstage/theme": "^0.7.0",
|
|
71
|
+
"@backstage/catalog-client": "1.12.1",
|
|
72
|
+
"@backstage/catalog-model": "1.7.6",
|
|
73
|
+
"@backstage/config": "1.3.6",
|
|
74
|
+
"@backstage/core-app-api": "1.19.3-next.1",
|
|
75
|
+
"@backstage/core-components": "0.18.4-next.2",
|
|
76
|
+
"@backstage/core-plugin-api": "1.12.1-next.0",
|
|
77
|
+
"@backstage/frontend-plugin-api": "0.13.2-next.1",
|
|
78
|
+
"@backstage/plugin-catalog-react": "1.21.4-next.2",
|
|
79
|
+
"@backstage/plugin-home-react": "0.1.33-next.1",
|
|
80
|
+
"@backstage/theme": "0.7.1-next.0",
|
|
82
81
|
"@material-ui/core": "^4.12.2",
|
|
83
82
|
"@material-ui/icons": "^4.9.1",
|
|
84
83
|
"@material-ui/lab": "4.0.0-alpha.61",
|
|
85
|
-
"@rjsf/core": "5.
|
|
86
|
-
"@rjsf/material-ui": "5.
|
|
87
|
-
"@rjsf/utils": "5.
|
|
88
|
-
"@rjsf/validator-ajv8": "5.
|
|
84
|
+
"@rjsf/core": "5.24.13",
|
|
85
|
+
"@rjsf/material-ui": "5.24.13",
|
|
86
|
+
"@rjsf/utils": "5.24.13",
|
|
87
|
+
"@rjsf/validator-ajv8": "5.24.13",
|
|
89
88
|
"lodash": "^4.17.21",
|
|
90
89
|
"luxon": "^3.4.3",
|
|
91
90
|
"react-grid-layout": "1.3.4",
|
|
@@ -94,9 +93,9 @@
|
|
|
94
93
|
"zod": "^3.22.4"
|
|
95
94
|
},
|
|
96
95
|
"devDependencies": {
|
|
97
|
-
"@backstage/cli": "
|
|
98
|
-
"@backstage/dev-utils": "
|
|
99
|
-
"@backstage/test-utils": "
|
|
96
|
+
"@backstage/cli": "0.35.0-next.2",
|
|
97
|
+
"@backstage/dev-utils": "1.1.18-next.1",
|
|
98
|
+
"@backstage/test-utils": "1.7.14-next.0",
|
|
100
99
|
"@testing-library/dom": "^10.0.0",
|
|
101
100
|
"@testing-library/jest-dom": "^6.0.0",
|
|
102
101
|
"@testing-library/react": "^16.0.0",
|