@backstage/plugin-home 0.8.7-next.1 → 0.8.7
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 +42 -0
- package/README.md +0 -4
- package/dist/alpha.d.ts +3 -3
- package/dist/alpha.esm.js +2 -2
- package/dist/alpha.esm.js.map +1 -1
- package/dist/assets/TemplateBackstageLogo.esm.js +11 -11
- package/dist/assets/TemplateBackstageLogo.esm.js.map +1 -1
- package/dist/assets/TemplateBackstageLogoIcon.esm.js +11 -11
- package/dist/assets/TemplateBackstageLogoIcon.esm.js.map +1 -1
- package/dist/componentRenderers/ComponentAccordion.esm.js +39 -27
- package/dist/componentRenderers/ComponentAccordion.esm.js.map +1 -1
- package/dist/componentRenderers/ComponentTabs/ComponentTab.esm.js +2 -2
- package/dist/componentRenderers/ComponentTabs/ComponentTab.esm.js.map +1 -1
- package/dist/componentRenderers/ComponentTabs/ComponentTabs.esm.js +14 -10
- package/dist/componentRenderers/ComponentTabs/ComponentTabs.esm.js.map +1 -1
- package/dist/components/CustomHomepage/AddWidgetDialog.esm.js +31 -26
- package/dist/components/CustomHomepage/AddWidgetDialog.esm.js.map +1 -1
- package/dist/components/CustomHomepage/CustomHomepageButtons.esm.js +53 -48
- package/dist/components/CustomHomepage/CustomHomepageButtons.esm.js.map +1 -1
- package/dist/components/CustomHomepage/CustomHomepageGrid.esm.js +78 -70
- package/dist/components/CustomHomepage/CustomHomepageGrid.esm.js.map +1 -1
- package/dist/components/CustomHomepage/WidgetSettingsOverlay.esm.js +55 -46
- package/dist/components/CustomHomepage/WidgetSettingsOverlay.esm.js.map +1 -1
- package/dist/components/CustomHomepage/types.esm.js.map +1 -1
- package/dist/components/HomepageCompositionRoot.esm.js +2 -2
- package/dist/components/HomepageCompositionRoot.esm.js.map +1 -1
- package/dist/components/StarredEntityListItem/StarredEntityListItem.esm.js +30 -28
- package/dist/components/StarredEntityListItem/StarredEntityListItem.esm.js.map +1 -1
- package/dist/components/VisitList/ItemCategory.esm.js +2 -2
- package/dist/components/VisitList/ItemCategory.esm.js.map +1 -1
- package/dist/components/VisitList/ItemDetail.esm.js +11 -7
- package/dist/components/VisitList/ItemDetail.esm.js.map +1 -1
- package/dist/components/VisitList/ItemName.esm.js +5 -5
- package/dist/components/VisitList/ItemName.esm.js.map +1 -1
- package/dist/components/VisitList/VisitList.esm.js +23 -14
- package/dist/components/VisitList/VisitList.esm.js.map +1 -1
- package/dist/components/VisitList/VisitListEmpty.esm.js +5 -2
- package/dist/components/VisitList/VisitListEmpty.esm.js.map +1 -1
- package/dist/components/VisitList/VisitListFew.esm.js +2 -2
- package/dist/components/VisitList/VisitListFew.esm.js.map +1 -1
- package/dist/components/VisitList/VisitListItem.esm.js +12 -9
- package/dist/components/VisitList/VisitListItem.esm.js.map +1 -1
- package/dist/components/VisitList/VisitListSkeleton.esm.js +23 -17
- package/dist/components/VisitList/VisitListSkeleton.esm.js.map +1 -1
- package/dist/components/VisitListener.esm.js +3 -2
- package/dist/components/VisitListener.esm.js.map +1 -1
- package/dist/homePageComponents/CompanyLogo/CompanyLogo.esm.js +2 -2
- package/dist/homePageComponents/CompanyLogo/CompanyLogo.esm.js.map +1 -1
- package/dist/homePageComponents/FeaturedDocsCard/Content.esm.js +32 -30
- package/dist/homePageComponents/FeaturedDocsCard/Content.esm.js.map +1 -1
- package/dist/homePageComponents/HeaderWorldClock/HeaderWorldClock.esm.js +9 -8
- package/dist/homePageComponents/HeaderWorldClock/HeaderWorldClock.esm.js.map +1 -1
- package/dist/homePageComponents/QuickStart/Content.esm.js +34 -26
- package/dist/homePageComponents/QuickStart/Content.esm.js.map +1 -1
- package/dist/homePageComponents/QuickStart/ContentModal.esm.js +25 -21
- package/dist/homePageComponents/QuickStart/ContentModal.esm.js.map +1 -1
- package/dist/homePageComponents/RandomJoke/Actions.esm.js +2 -2
- package/dist/homePageComponents/RandomJoke/Actions.esm.js.map +1 -1
- package/dist/homePageComponents/RandomJoke/Content.esm.js +6 -3
- package/dist/homePageComponents/RandomJoke/Content.esm.js.map +1 -1
- package/dist/homePageComponents/RandomJoke/Context.esm.js +10 -9
- package/dist/homePageComponents/RandomJoke/Context.esm.js.map +1 -1
- package/dist/homePageComponents/RandomJoke/Settings.esm.js +19 -16
- package/dist/homePageComponents/RandomJoke/Settings.esm.js.map +1 -1
- package/dist/homePageComponents/StarredEntities/Content.esm.js +45 -40
- package/dist/homePageComponents/StarredEntities/Content.esm.js.map +1 -1
- package/dist/homePageComponents/Toolkit/Content.esm.js +11 -8
- package/dist/homePageComponents/Toolkit/Content.esm.js.map +1 -1
- package/dist/homePageComponents/Toolkit/Context.esm.js +5 -4
- package/dist/homePageComponents/Toolkit/Context.esm.js.map +1 -1
- package/dist/homePageComponents/VisitedByType/Actions.esm.js +4 -3
- package/dist/homePageComponents/VisitedByType/Actions.esm.js.map +1 -1
- package/dist/homePageComponents/VisitedByType/Content.esm.js +3 -2
- package/dist/homePageComponents/VisitedByType/Content.esm.js.map +1 -1
- package/dist/homePageComponents/VisitedByType/Context.esm.js +5 -4
- package/dist/homePageComponents/VisitedByType/Context.esm.js.map +1 -1
- package/dist/homePageComponents/VisitedByType/RecentlyVisited.esm.js +2 -2
- package/dist/homePageComponents/VisitedByType/RecentlyVisited.esm.js.map +1 -1
- package/dist/homePageComponents/VisitedByType/TopVisited.esm.js +2 -2
- package/dist/homePageComponents/VisitedByType/TopVisited.esm.js.map +1 -1
- package/dist/homePageComponents/VisitedByType/VisitedByType.esm.js +2 -2
- package/dist/homePageComponents/VisitedByType/VisitedByType.esm.js.map +1 -1
- package/dist/homePageComponents/WelcomeTitle/WelcomeTitle.esm.js +3 -2
- package/dist/homePageComponents/WelcomeTitle/WelcomeTitle.esm.js.map +1 -1
- package/dist/index.d.ts +33 -34
- package/dist/index.esm.js +1 -1
- package/package.json +18 -18
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RecentlyVisited.esm.js","sources":["../../../src/homePageComponents/VisitedByType/RecentlyVisited.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\nexport { Actions } from './Actions';\nexport { ContextProvider } from './Context';\nexport type { VisitedByTypeProps, VisitedByTypeKind } from './Content';\nimport
|
|
1
|
+
{"version":3,"file":"RecentlyVisited.esm.js","sources":["../../../src/homePageComponents/VisitedByType/RecentlyVisited.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\nexport { Actions } from './Actions';\nexport { ContextProvider } from './Context';\nexport type { VisitedByTypeProps, VisitedByTypeKind } from './Content';\nimport { Content, VisitedByTypeProps } from './Content';\n\nconst RecentlyVisitedContent = (props: Partial<VisitedByTypeProps>) => (\n <Content {...props} kind=\"recent\" />\n);\n\nexport { RecentlyVisitedContent as Content };\n"],"names":[],"mappings":";;;;;AAqBM,MAAA,sBAAA,GAAyB,CAAC,KAC9B,qBAAA,GAAA,CAAC,WAAS,GAAG,KAAA,EAAO,MAAK,QAAS,EAAA;;;;"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
1
2
|
export { Actions } from './Actions.esm.js';
|
|
2
3
|
export { ContextProvider } from './Context.esm.js';
|
|
3
|
-
import React from 'react';
|
|
4
4
|
import { Content } from './Content.esm.js';
|
|
5
5
|
|
|
6
|
-
const TopVisitedContent = (props) => /* @__PURE__ */
|
|
6
|
+
const TopVisitedContent = (props) => /* @__PURE__ */ jsx(Content, { ...props, kind: "top" });
|
|
7
7
|
|
|
8
8
|
export { TopVisitedContent as Content };
|
|
9
9
|
//# sourceMappingURL=TopVisited.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TopVisited.esm.js","sources":["../../../src/homePageComponents/VisitedByType/TopVisited.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\nexport { Actions } from './Actions';\nexport { ContextProvider } from './Context';\nexport type { VisitedByTypeProps, VisitedByTypeKind } from './Content';\nimport
|
|
1
|
+
{"version":3,"file":"TopVisited.esm.js","sources":["../../../src/homePageComponents/VisitedByType/TopVisited.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\nexport { Actions } from './Actions';\nexport { ContextProvider } from './Context';\nexport type { VisitedByTypeProps, VisitedByTypeKind } from './Content';\nimport { Content, VisitedByTypeProps } from './Content';\n\nconst TopVisitedContent = (props: Partial<VisitedByTypeProps>) => (\n <Content {...props} kind=\"top\" />\n);\n\nexport { TopVisitedContent as Content };\n"],"names":[],"mappings":";;;;;AAqBM,MAAA,iBAAA,GAAoB,CAAC,KACzB,qBAAA,GAAA,CAAC,WAAS,GAAG,KAAA,EAAO,MAAK,KAAM,EAAA;;;;"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { VisitList } from '../../components/VisitList/VisitList.esm.js';
|
|
3
3
|
import { useContext } from './Context.esm.js';
|
|
4
4
|
|
|
5
5
|
const VisitedByType = () => {
|
|
6
6
|
const { collapsed, numVisitsOpen, numVisitsTotal, visits, loading, kind } = useContext();
|
|
7
|
-
return /* @__PURE__ */
|
|
7
|
+
return /* @__PURE__ */ jsx(
|
|
8
8
|
VisitList,
|
|
9
9
|
{
|
|
10
10
|
visits,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VisitedByType.esm.js","sources":["../../../src/homePageComponents/VisitedByType/VisitedByType.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
|
|
1
|
+
{"version":3,"file":"VisitedByType.esm.js","sources":["../../../src/homePageComponents/VisitedByType/VisitedByType.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 { VisitList } from '../../components/VisitList';\nimport { useContext } from './Context';\n\nexport const VisitedByType = () => {\n const { collapsed, numVisitsOpen, numVisitsTotal, visits, loading, kind } =\n useContext();\n\n return (\n <VisitList\n visits={visits}\n detailType={kind === 'top' ? 'hits' : 'time-ago'}\n collapsed={collapsed}\n numVisitsOpen={numVisitsOpen}\n numVisitsTotal={numVisitsTotal}\n loading={loading}\n />\n );\n};\n"],"names":[],"mappings":";;;;AAmBO,MAAM,gBAAgB,MAAM;AACjC,EAAM,MAAA,EAAE,WAAW,aAAe,EAAA,cAAA,EAAgB,QAAQ,OAAS,EAAA,IAAA,KACjE,UAAW,EAAA;AAEb,EACE,uBAAA,GAAA;AAAA,IAAC,SAAA;AAAA,IAAA;AAAA,MACC,MAAA;AAAA,MACA,UAAA,EAAY,IAAS,KAAA,KAAA,GAAQ,MAAS,GAAA,UAAA;AAAA,MACtC,SAAA;AAAA,MACA,aAAA;AAAA,MACA,cAAA;AAAA,MACA;AAAA;AAAA,GACF;AAEJ;;;;"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
1
2
|
import { useApi, identityApiRef, alertApiRef } from '@backstage/core-plugin-api';
|
|
2
3
|
import Tooltip from '@material-ui/core/Tooltip';
|
|
3
4
|
import Typography from '@material-ui/core/Typography';
|
|
4
|
-
import
|
|
5
|
+
import { useMemo, useEffect } from 'react';
|
|
5
6
|
import useAsync from 'react-use/esm/useAsync';
|
|
6
7
|
import { getTimeBasedGreeting } from './timeUtil.esm.js';
|
|
7
8
|
|
|
@@ -20,7 +21,7 @@ const WelcomeTitle = ({ language }) => {
|
|
|
20
21
|
});
|
|
21
22
|
}
|
|
22
23
|
}, [error, alertApi]);
|
|
23
|
-
return /* @__PURE__ */
|
|
24
|
+
return /* @__PURE__ */ jsx(Tooltip, { title: greeting.language, children: /* @__PURE__ */ jsx(Typography, { component: "span", variant: "inherit", children: `${greeting.greeting}${profile?.displayName ? `, ${profile?.displayName}` : ""}!` }) });
|
|
24
25
|
};
|
|
25
26
|
|
|
26
27
|
export { WelcomeTitle };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WelcomeTitle.esm.js","sources":["../../../src/homePageComponents/WelcomeTitle/WelcomeTitle.tsx"],"sourcesContent":["/*\n * Copyright 2021 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 {\n alertApiRef,\n identityApiRef,\n useApi,\n} from '@backstage/core-plugin-api';\nimport Tooltip from '@material-ui/core/Tooltip';\nimport Typography from '@material-ui/core/Typography';\nimport
|
|
1
|
+
{"version":3,"file":"WelcomeTitle.esm.js","sources":["../../../src/homePageComponents/WelcomeTitle/WelcomeTitle.tsx"],"sourcesContent":["/*\n * Copyright 2021 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 {\n alertApiRef,\n identityApiRef,\n useApi,\n} from '@backstage/core-plugin-api';\nimport Tooltip from '@material-ui/core/Tooltip';\nimport Typography from '@material-ui/core/Typography';\nimport { useEffect, useMemo } from 'react';\nimport useAsync from 'react-use/esm/useAsync';\nimport { getTimeBasedGreeting } from './timeUtil';\n\n/** @public */\nexport type WelcomeTitleLanguageProps = {\n language?: string[];\n};\n\nexport const WelcomeTitle = ({ language }: WelcomeTitleLanguageProps) => {\n const identityApi = useApi(identityApiRef);\n const alertApi = useApi(alertApiRef);\n const greeting = useMemo(() => getTimeBasedGreeting(language), [language]);\n\n const { value: profile, error } = useAsync(() =>\n identityApi.getProfileInfo(),\n );\n\n useEffect(() => {\n if (error) {\n alertApi.post({\n message: `Failed to load user identity: ${error}`,\n severity: 'error',\n });\n }\n }, [error, alertApi]);\n\n return (\n <Tooltip title={greeting.language}>\n <Typography component=\"span\" variant=\"inherit\">{`${greeting.greeting}${\n profile?.displayName ? `, ${profile?.displayName}` : ''\n }!`}</Typography>\n </Tooltip>\n );\n};\n"],"names":[],"mappings":";;;;;;;;AA+BO,MAAM,YAAe,GAAA,CAAC,EAAE,QAAA,EAA0C,KAAA;AACvE,EAAM,MAAA,WAAA,GAAc,OAAO,cAAc,CAAA;AACzC,EAAM,MAAA,QAAA,GAAW,OAAO,WAAW,CAAA;AACnC,EAAM,MAAA,QAAA,GAAW,QAAQ,MAAM,oBAAA,CAAqB,QAAQ,CAAG,EAAA,CAAC,QAAQ,CAAC,CAAA;AAEzE,EAAA,MAAM,EAAE,KAAA,EAAO,OAAS,EAAA,KAAA,EAAU,GAAA,QAAA;AAAA,IAAS,MACzC,YAAY,cAAe;AAAA,GAC7B;AAEA,EAAA,SAAA,CAAU,MAAM;AACd,IAAA,IAAI,KAAO,EAAA;AACT,MAAA,QAAA,CAAS,IAAK,CAAA;AAAA,QACZ,OAAA,EAAS,iCAAiC,KAAK,CAAA,CAAA;AAAA,QAC/C,QAAU,EAAA;AAAA,OACX,CAAA;AAAA;AACH,GACC,EAAA,CAAC,KAAO,EAAA,QAAQ,CAAC,CAAA;AAEpB,EACE,uBAAA,GAAA,CAAC,WAAQ,KAAO,EAAA,QAAA,CAAS,UACvB,QAAC,kBAAA,GAAA,CAAA,UAAA,EAAA,EAAW,SAAU,EAAA,MAAA,EAAO,OAAQ,EAAA,SAAA,EAAW,aAAG,QAAS,CAAA,QAAQ,CAClE,EAAA,OAAA,EAAS,WAAc,GAAA,CAAA,EAAA,EAAK,SAAS,WAAW,CAAA,CAAA,GAAK,EACvD,CAAA,CAAA,CAAA,EAAI,CACN,EAAA,CAAA;AAEJ;;;;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as _backstage_plugin_home_react from '@backstage/plugin-home-react';
|
|
2
2
|
import { createCardExtension as createCardExtension$1, CardExtensionProps as CardExtensionProps$1, CardLayout as CardLayout$1, CardSettings as CardSettings$1, CardConfig as CardConfig$1, ComponentParts as ComponentParts$1, ComponentRenderer as ComponentRenderer$1, RendererProps as RendererProps$1 } from '@backstage/plugin-home-react';
|
|
3
|
-
import * as
|
|
4
|
-
import
|
|
3
|
+
import * as react from 'react';
|
|
4
|
+
import { ReactNode, JSX as JSX$1, CSSProperties, ReactElement } from 'react';
|
|
5
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
6
|
import * as _backstage_core_plugin_api from '@backstage/core-plugin-api';
|
|
6
7
|
import { StorageApi, IdentityApi, ErrorApi } from '@backstage/core-plugin-api';
|
|
7
8
|
import { EntityFilterQuery } from '@backstage/catalog-client';
|
|
@@ -10,7 +11,7 @@ import { EntityFilterQuery } from '@backstage/catalog-client';
|
|
|
10
11
|
type Tool = {
|
|
11
12
|
label: string;
|
|
12
13
|
url: string;
|
|
13
|
-
icon:
|
|
14
|
+
icon: ReactNode;
|
|
14
15
|
};
|
|
15
16
|
|
|
16
17
|
/**
|
|
@@ -207,7 +208,7 @@ type FeaturedDocsCardProps = {
|
|
|
207
208
|
/** The entity filter used to display only the intended item/s */
|
|
208
209
|
filter: EntityFilterQuery;
|
|
209
210
|
/** An optional ReactNode for empty states */
|
|
210
|
-
emptyState?:
|
|
211
|
+
emptyState?: JSX$1.Element;
|
|
211
212
|
/** An optional linkDestination to set for the Featured Doc */
|
|
212
213
|
linkDestination?: string;
|
|
213
214
|
/** An optional limit to set for link destination */
|
|
@@ -222,7 +223,7 @@ type FeaturedDocsCardProps = {
|
|
|
222
223
|
* @public
|
|
223
224
|
*/
|
|
224
225
|
type StarredEntitiesProps = {
|
|
225
|
-
noStarredEntitiesMessage?:
|
|
226
|
+
noStarredEntitiesMessage?: ReactNode | undefined;
|
|
226
227
|
groupByKind?: boolean;
|
|
227
228
|
};
|
|
228
229
|
|
|
@@ -233,19 +234,19 @@ type StarredEntitiesProps = {
|
|
|
233
234
|
*/
|
|
234
235
|
type QuickStartCardProps = {
|
|
235
236
|
/** The modal link title */
|
|
236
|
-
modalTitle?: string |
|
|
237
|
+
modalTitle?: string | JSX$1.Element;
|
|
237
238
|
/** The link to docs title */
|
|
238
239
|
docsLinkTitle?: string;
|
|
239
240
|
/** The link to docs */
|
|
240
241
|
docsLink?: string;
|
|
241
242
|
/** The video to play on the card */
|
|
242
|
-
video?:
|
|
243
|
+
video?: JSX$1.Element;
|
|
243
244
|
/** A quickstart image to display on the card */
|
|
244
|
-
image:
|
|
245
|
+
image: JSX$1.Element;
|
|
245
246
|
/** The card description*/
|
|
246
247
|
cardDescription?: string;
|
|
247
248
|
/** A component used to download a quickStart image*/
|
|
248
|
-
downloadImage?:
|
|
249
|
+
downloadImage?: JSX$1.Element;
|
|
249
250
|
};
|
|
250
251
|
|
|
251
252
|
/** @public */
|
|
@@ -255,19 +256,17 @@ declare const homePlugin: _backstage_core_plugin_api.BackstagePlugin<{
|
|
|
255
256
|
/** @public */
|
|
256
257
|
declare const HomepageCompositionRoot: (props: {
|
|
257
258
|
title?: string;
|
|
258
|
-
children?:
|
|
259
|
-
}) =>
|
|
259
|
+
children?: react.ReactNode;
|
|
260
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
260
261
|
/** @public */
|
|
261
262
|
declare const ComponentAccordion: (props: {
|
|
262
263
|
title?: string;
|
|
263
264
|
expanded?: boolean;
|
|
264
265
|
Content: () => JSX.Element;
|
|
265
266
|
Actions?: () => JSX.Element;
|
|
266
|
-
Settings?: () => JSX.
|
|
267
|
-
/** @public */
|
|
268
|
-
Element;
|
|
267
|
+
Settings?: () => JSX.Element;
|
|
269
268
|
ContextProvider?: (props: any) => JSX.Element;
|
|
270
|
-
}) =>
|
|
269
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
271
270
|
/** @public */
|
|
272
271
|
declare const ComponentTabs: (props: {
|
|
273
272
|
title: string;
|
|
@@ -275,44 +274,44 @@ declare const ComponentTabs: (props: {
|
|
|
275
274
|
label: string;
|
|
276
275
|
Component: () => JSX.Element;
|
|
277
276
|
}[];
|
|
278
|
-
}) =>
|
|
277
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
279
278
|
/** @public */
|
|
280
279
|
declare const ComponentTab: (props: {
|
|
281
280
|
title: string;
|
|
282
281
|
Content: () => JSX.Element;
|
|
283
282
|
ContextProvider?: (props: any) => JSX.Element;
|
|
284
|
-
}) =>
|
|
283
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
285
284
|
/**
|
|
286
285
|
* A component to display a playful greeting for the user.
|
|
287
286
|
*
|
|
288
287
|
* @public
|
|
289
288
|
*/
|
|
290
|
-
declare const WelcomeTitle: ({ language }: WelcomeTitleLanguageProps) =>
|
|
289
|
+
declare const WelcomeTitle: ({ language }: WelcomeTitleLanguageProps) => react_jsx_runtime.JSX.Element;
|
|
291
290
|
/**
|
|
292
291
|
* A component to display a company logo for the user.
|
|
293
292
|
*
|
|
294
293
|
* @public
|
|
295
294
|
*/
|
|
296
295
|
declare const HomePageCompanyLogo: (props: {
|
|
297
|
-
logo?:
|
|
296
|
+
logo?: react.ReactNode;
|
|
298
297
|
className?: string;
|
|
299
|
-
}) =>
|
|
298
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
300
299
|
/** @public */
|
|
301
300
|
declare const HomePageRandomJoke: (props: _backstage_plugin_home_react.CardExtensionProps<{
|
|
302
301
|
defaultCategory?: "any" | "programming";
|
|
303
|
-
}>) =>
|
|
302
|
+
}>) => react_jsx_runtime.JSX.Element;
|
|
304
303
|
/**
|
|
305
304
|
* A component to display a list of tools for the user.
|
|
306
305
|
*
|
|
307
306
|
* @public
|
|
308
307
|
*/
|
|
309
|
-
declare const HomePageToolkit: (props: _backstage_plugin_home_react.CardExtensionProps<ToolkitContentProps>) =>
|
|
308
|
+
declare const HomePageToolkit: (props: _backstage_plugin_home_react.CardExtensionProps<ToolkitContentProps>) => react_jsx_runtime.JSX.Element;
|
|
310
309
|
/**
|
|
311
310
|
* A component to display a list of starred entities for the user.
|
|
312
311
|
*
|
|
313
312
|
* @public
|
|
314
313
|
*/
|
|
315
|
-
declare const HomePageStarredEntities: (props: _backstage_plugin_home_react.CardExtensionProps<Partial<StarredEntitiesProps>>) =>
|
|
314
|
+
declare const HomePageStarredEntities: (props: _backstage_plugin_home_react.CardExtensionProps<Partial<StarredEntitiesProps>>) => react_jsx_runtime.JSX.Element;
|
|
316
315
|
/**
|
|
317
316
|
* A component to display a configurable list of clocks for various time zones.
|
|
318
317
|
*
|
|
@@ -321,29 +320,29 @@ declare const HomePageStarredEntities: (props: _backstage_plugin_home_react.Card
|
|
|
321
320
|
declare const HeaderWorldClock: (props: {
|
|
322
321
|
clockConfigs: ClockConfig[];
|
|
323
322
|
customTimeFormat?: Intl.DateTimeFormatOptions;
|
|
324
|
-
}) =>
|
|
323
|
+
}) => react_jsx_runtime.JSX.Element | null;
|
|
325
324
|
/**
|
|
326
325
|
* Display top visited pages for the homepage
|
|
327
326
|
* @public
|
|
328
327
|
*/
|
|
329
|
-
declare const HomePageTopVisited: (props: _backstage_plugin_home_react.CardExtensionProps<Partial<VisitedByTypeProps>>) =>
|
|
328
|
+
declare const HomePageTopVisited: (props: _backstage_plugin_home_react.CardExtensionProps<Partial<VisitedByTypeProps>>) => react_jsx_runtime.JSX.Element;
|
|
330
329
|
/**
|
|
331
330
|
* Display recently visited pages for the homepage
|
|
332
331
|
* @public
|
|
333
332
|
*/
|
|
334
|
-
declare const HomePageRecentlyVisited: (props: _backstage_plugin_home_react.CardExtensionProps<Partial<VisitedByTypeProps>>) =>
|
|
333
|
+
declare const HomePageRecentlyVisited: (props: _backstage_plugin_home_react.CardExtensionProps<Partial<VisitedByTypeProps>>) => react_jsx_runtime.JSX.Element;
|
|
335
334
|
/**
|
|
336
335
|
* A component to display specific Featured Docs.
|
|
337
336
|
*
|
|
338
337
|
* @public
|
|
339
338
|
*/
|
|
340
|
-
declare const FeaturedDocsCard: (props: _backstage_plugin_home_react.CardExtensionProps<FeaturedDocsCardProps>) =>
|
|
339
|
+
declare const FeaturedDocsCard: (props: _backstage_plugin_home_react.CardExtensionProps<FeaturedDocsCardProps>) => react_jsx_runtime.JSX.Element;
|
|
341
340
|
/**
|
|
342
341
|
* A component to display Quick Start information.
|
|
343
342
|
*
|
|
344
343
|
* @public
|
|
345
344
|
*/
|
|
346
|
-
declare const QuickStartCard: (props: _backstage_plugin_home_react.CardExtensionProps<QuickStartCardProps>) =>
|
|
345
|
+
declare const QuickStartCard: (props: _backstage_plugin_home_react.CardExtensionProps<QuickStartCardProps>) => react_jsx_runtime.JSX.Element;
|
|
347
346
|
|
|
348
347
|
/**
|
|
349
348
|
* Breakpoint options for <CustomHomepageGridProps/>
|
|
@@ -402,7 +401,7 @@ type CustomHomepageGridProps = {
|
|
|
402
401
|
/**
|
|
403
402
|
* Custom style for grid.
|
|
404
403
|
*/
|
|
405
|
-
style?:
|
|
404
|
+
style?: CSSProperties;
|
|
406
405
|
/**
|
|
407
406
|
* Compaction type of widgets in the grid. This controls where widgets are moved in case
|
|
408
407
|
* they are overlapping in the grid.
|
|
@@ -440,7 +439,7 @@ type LayoutConfiguration = {
|
|
|
440
439
|
*
|
|
441
440
|
* @public
|
|
442
441
|
*/
|
|
443
|
-
declare const CustomHomepageGrid: (props: CustomHomepageGridProps) =>
|
|
442
|
+
declare const CustomHomepageGrid: (props: CustomHomepageGridProps) => react_jsx_runtime.JSX.Element;
|
|
444
443
|
|
|
445
444
|
/**
|
|
446
445
|
* @public
|
|
@@ -448,7 +447,7 @@ declare const CustomHomepageGrid: (props: CustomHomepageGridProps) => React__def
|
|
|
448
447
|
* the visitsApi to save visits.
|
|
449
448
|
*/
|
|
450
449
|
declare const VisitListener: ({ children, toEntityRef, visitName, }: {
|
|
451
|
-
children?:
|
|
450
|
+
children?: ReactNode;
|
|
452
451
|
toEntityRef?: ({ pathname }: {
|
|
453
452
|
pathname: string;
|
|
454
453
|
}) => string | undefined;
|
|
@@ -463,10 +462,10 @@ declare const TemplateBackstageLogo: (props: {
|
|
|
463
462
|
svg: string;
|
|
464
463
|
path: string;
|
|
465
464
|
};
|
|
466
|
-
}) =>
|
|
465
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
467
466
|
|
|
468
467
|
/** @public */
|
|
469
|
-
declare const TemplateBackstageLogoIcon: () =>
|
|
468
|
+
declare const TemplateBackstageLogoIcon: () => react_jsx_runtime.JSX.Element;
|
|
470
469
|
|
|
471
470
|
/**
|
|
472
471
|
* @public
|
|
@@ -517,6 +516,6 @@ declare const SettingsModal: (props: {
|
|
|
517
516
|
close: Function;
|
|
518
517
|
componentName?: string;
|
|
519
518
|
children: JSX.Element;
|
|
520
|
-
}) =>
|
|
519
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
521
520
|
|
|
522
521
|
export { type Breakpoint, type CardConfig, type CardExtensionProps, type CardLayout, type CardSettings, type ClockConfig, ComponentAccordion, type ComponentParts, type ComponentRenderer, ComponentTab, ComponentTabs, CustomHomepageGrid, type CustomHomepageGridProps, FeaturedDocsCard, type FeaturedDocsCardProps, HeaderWorldClock, HomePageCompanyLogo, HomePageRandomJoke, HomePageRecentlyVisited, HomePageStarredEntities, HomePageToolkit, HomePageTopVisited, HomepageCompositionRoot, type LayoutConfiguration, type Operators, QuickStartCard, type QuickStartCardProps, type RendererProps, SettingsModal, type StarredEntitiesProps, TemplateBackstageLogo, TemplateBackstageLogoIcon, type Tool, type ToolkitContentProps, type Visit, VisitListener, type VisitedByTypeKind, type VisitedByTypeProps, type VisitsApi, type VisitsApiQueryParams, type VisitsApiSaveParams, VisitsStorageApi, type VisitsStorageApiOptions, VisitsWebStorageApi, type VisitsWebStorageApiOptions, WelcomeTitle, type WelcomeTitleLanguageProps, createCardExtension, homePlugin, isOperator, visitsApiRef };
|
package/dist/index.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { ComponentAccordion, ComponentTab, ComponentTabs, FeaturedDocsCard, HeaderWorldClock, HomePageCompanyLogo, HomePageRandomJoke, HomePageRecentlyVisited, HomePageStarredEntities, HomePageToolkit, HomePageTopVisited, HomepageCompositionRoot, QuickStartCard, WelcomeTitle, homePlugin } from './plugin.esm.js';
|
|
2
|
-
import 'react';
|
|
2
|
+
import 'react/jsx-runtime';
|
|
3
3
|
import 'react-router-dom';
|
|
4
4
|
export { CustomHomepageGrid } from './components/CustomHomepage/CustomHomepageGrid.esm.js';
|
|
5
5
|
export { VisitListener } from './components/VisitListener.esm.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-home",
|
|
3
|
-
"version": "0.8.7
|
|
3
|
+
"version": "0.8.7",
|
|
4
4
|
"description": "A Backstage plugin that helps you build a home page",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "frontend-plugin",
|
|
@@ -46,11 +46,11 @@
|
|
|
46
46
|
"types": "./dist/index.d.ts",
|
|
47
47
|
"typesVersions": {
|
|
48
48
|
"*": {
|
|
49
|
-
"*": [
|
|
50
|
-
"dist/index.d.ts"
|
|
51
|
-
],
|
|
52
49
|
"alpha": [
|
|
53
50
|
"dist/alpha.d.ts"
|
|
51
|
+
],
|
|
52
|
+
"package.json": [
|
|
53
|
+
"package.json"
|
|
54
54
|
]
|
|
55
55
|
}
|
|
56
56
|
},
|
|
@@ -68,17 +68,17 @@
|
|
|
68
68
|
"test": "backstage-cli package test"
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"@backstage/catalog-client": "1.9.1",
|
|
72
|
-
"@backstage/catalog-model": "1.7.3",
|
|
73
|
-
"@backstage/config": "1.3.2",
|
|
74
|
-
"@backstage/core-app-api": "1.16.
|
|
75
|
-
"@backstage/core-compat-api": "0.4.1
|
|
76
|
-
"@backstage/core-components": "0.17.1
|
|
77
|
-
"@backstage/core-plugin-api": "1.10.
|
|
78
|
-
"@backstage/frontend-plugin-api": "0.10.1
|
|
79
|
-
"@backstage/plugin-catalog-react": "1.
|
|
80
|
-
"@backstage/plugin-home-react": "0.1.25
|
|
81
|
-
"@backstage/theme": "0.6.
|
|
71
|
+
"@backstage/catalog-client": "^1.9.1",
|
|
72
|
+
"@backstage/catalog-model": "^1.7.3",
|
|
73
|
+
"@backstage/config": "^1.3.2",
|
|
74
|
+
"@backstage/core-app-api": "^1.16.1",
|
|
75
|
+
"@backstage/core-compat-api": "^0.4.1",
|
|
76
|
+
"@backstage/core-components": "^0.17.1",
|
|
77
|
+
"@backstage/core-plugin-api": "^1.10.6",
|
|
78
|
+
"@backstage/frontend-plugin-api": "^0.10.1",
|
|
79
|
+
"@backstage/plugin-catalog-react": "^1.17.0",
|
|
80
|
+
"@backstage/plugin-home-react": "^0.1.25",
|
|
81
|
+
"@backstage/theme": "^0.6.5",
|
|
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.32.0
|
|
98
|
-
"@backstage/dev-utils": "1.1.9
|
|
99
|
-
"@backstage/test-utils": "1.7.
|
|
97
|
+
"@backstage/cli": "^0.32.0",
|
|
98
|
+
"@backstage/dev-utils": "^1.1.9",
|
|
99
|
+
"@backstage/test-utils": "^1.7.7",
|
|
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",
|