@red-hat-developer-hub/backstage-plugin-dynamic-home-page 1.9.0 → 1.9.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,18 @@
1
1
  # @red-hat-developer-hub/backstage-plugin-dynamic-home-page
2
2
 
3
+ ## 1.9.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 52f82ec: update quickaccess card's icon rendering logic
8
+ - b8fb354: Updated dependency `@testing-library/jest-dom` to `6.9.1`.
9
+
10
+ ## 1.9.1
11
+
12
+ ### Patch Changes
13
+
14
+ - dd5350f: French translation updated
15
+
3
16
  ## 1.9.0
4
17
 
5
18
  ### Minor Changes
@@ -5,6 +5,7 @@ import CircularProgress from '@mui/material/CircularProgress';
5
5
  import { makeStyles } from 'tss-react/mui';
6
6
  import { useQuickAccessLinks } from '../hooks/useQuickAccessLinks.esm.js';
7
7
  import { useTranslation } from '../hooks/useTranslation.esm.js';
8
+ import { QuickAccessIcon } from './QuickAccessIcon.esm.js';
8
9
 
9
10
  const useStyles = makeStyles()({
10
11
  center: {
@@ -13,10 +14,6 @@ const useStyles = makeStyles()({
13
14
  alignItems: "center",
14
15
  justifyContent: "center"
15
16
  },
16
- img: {
17
- height: "40px",
18
- width: "auto"
19
- },
20
17
  title: {
21
18
  "& div > div > div > div > p": {
22
19
  textTransform: "uppercase"
@@ -45,14 +42,7 @@ const QuickAccessCard = (props) => {
45
42
  title: item.title,
46
43
  tools: item.links.map((link) => ({
47
44
  ...link,
48
- icon: /* @__PURE__ */ jsx(
49
- "img",
50
- {
51
- className: classes.img,
52
- src: link.iconUrl,
53
- alt: link.label
54
- }
55
- )
45
+ icon: /* @__PURE__ */ jsx(QuickAccessIcon, { icon: link.iconUrl, alt: link.label })
56
46
  })),
57
47
  Renderer: (renderProps) => /* @__PURE__ */ jsx(ComponentAccordion, { expanded: item.isExpanded, ...renderProps })
58
48
  },
@@ -1 +1 @@
1
- {"version":3,"file":"QuickAccessCard.esm.js","sources":["../../src/components/QuickAccessCard.tsx"],"sourcesContent":["/*\n * Copyright Red Hat, Inc.\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 type { ReactNode } from 'react';\n\nimport {\n CodeSnippet,\n InfoCard,\n WarningPanel,\n} from '@backstage/core-components';\nimport { ComponentAccordion, HomePageToolkit } from '@backstage/plugin-home';\n\nimport CircularProgress from '@mui/material/CircularProgress';\nimport { makeStyles } from 'tss-react/mui';\n\nimport { useQuickAccessLinks } from '../hooks/useQuickAccessLinks';\nimport { useTranslation } from '../hooks/useTranslation';\n\nconst useStyles = makeStyles()({\n center: {\n height: '100%',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n },\n img: {\n height: '40px',\n width: 'auto',\n },\n title: {\n '& div > div > div > div > p': {\n textTransform: 'uppercase',\n },\n },\n});\n\n/**\n * @public\n */\nexport interface QuickAccessCardProps {\n title?: string;\n path?: string;\n}\n\n/**\n * @public\n */\nexport const QuickAccessCard = (props: QuickAccessCardProps) => {\n const { classes } = useStyles();\n const { t } = useTranslation();\n const { data, error, isLoading } = useQuickAccessLinks(props.path);\n\n let content: ReactNode;\n\n if (isLoading) {\n content = (\n <div className={classes.center}>\n <CircularProgress />\n </div>\n );\n } else if (!data) {\n content = (\n <WarningPanel severity=\"error\" title={t('quickAccess.fetchError')}>\n <CodeSnippet\n language=\"text\"\n text={error?.toString() ?? t('quickAccess.error')}\n />\n </WarningPanel>\n );\n } else {\n content = (\n <>\n {data.map(item => (\n <HomePageToolkit\n key={item.title}\n title={item.title}\n tools={item.links.map(link => ({\n ...link,\n icon: (\n <img\n className={classes.img}\n src={link.iconUrl}\n alt={link.label}\n />\n ),\n }))}\n // Component creation is allowed inside component props only\n // if prop name starts with `render`.\n // We accept it here since the upstream package use `Renderer` instead.\n Renderer={(\n renderProps, // NOSONAR\n ) => (\n <ComponentAccordion expanded={item.isExpanded} {...renderProps} />\n )}\n />\n ))}\n </>\n );\n }\n\n return (\n <InfoCard\n title={props.title ?? t('quickAccess.title')}\n noPadding\n className={classes.title}\n >\n {content}\n </InfoCard>\n );\n};\n"],"names":[],"mappings":";;;;;;;;AA+BA,MAAM,SAAA,GAAY,YAAa,CAAA;AAAA,EAC7B,MAAQ,EAAA;AAAA,IACN,MAAQ,EAAA,MAAA;AAAA,IACR,OAAS,EAAA,MAAA;AAAA,IACT,UAAY,EAAA,QAAA;AAAA,IACZ,cAAgB,EAAA;AAAA,GAClB;AAAA,EACA,GAAK,EAAA;AAAA,IACH,MAAQ,EAAA,MAAA;AAAA,IACR,KAAO,EAAA;AAAA,GACT;AAAA,EACA,KAAO,EAAA;AAAA,IACL,6BAA+B,EAAA;AAAA,MAC7B,aAAe,EAAA;AAAA;AACjB;AAEJ,CAAC,CAAA;AAaY,MAAA,eAAA,GAAkB,CAAC,KAAgC,KAAA;AAC9D,EAAM,MAAA,EAAE,OAAQ,EAAA,GAAI,SAAU,EAAA;AAC9B,EAAM,MAAA,EAAE,CAAE,EAAA,GAAI,cAAe,EAAA;AAC7B,EAAA,MAAM,EAAE,IAAM,EAAA,KAAA,EAAO,WAAc,GAAA,mBAAA,CAAoB,MAAM,IAAI,CAAA;AAEjE,EAAI,IAAA,OAAA;AAEJ,EAAA,IAAI,SAAW,EAAA;AACb,IAAA,OAAA,uBACG,KAAI,EAAA,EAAA,SAAA,EAAW,QAAQ,MACtB,EAAA,QAAA,kBAAA,GAAA,CAAC,oBAAiB,CACpB,EAAA,CAAA;AAAA,GAEJ,MAAA,IAAW,CAAC,IAAM,EAAA;AAChB,IAAA,OAAA,uBACG,YAAa,EAAA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/QuickAccessCard.tsx"],"sourcesContent":["/*\n * Copyright Red Hat, Inc.\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 type { ReactNode } from 'react';\n\nimport {\n CodeSnippet,\n InfoCard,\n WarningPanel,\n} from '@backstage/core-components';\nimport { ComponentAccordion, HomePageToolkit } from '@backstage/plugin-home';\n\nimport CircularProgress from '@mui/material/CircularProgress';\nimport { makeStyles } from 'tss-react/mui';\n\nimport { useQuickAccessLinks } from '../hooks/useQuickAccessLinks';\nimport { useTranslation } from '../hooks/useTranslation';\nimport { QuickAccessIcon } from './QuickAccessIcon';\n\nconst useStyles = makeStyles()({\n center: {\n height: '100%',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n },\n title: {\n '& div > div > div > div > p': {\n textTransform: 'uppercase',\n },\n },\n});\n\n/**\n * @public\n */\nexport interface QuickAccessCardProps {\n title?: string;\n path?: string;\n}\n\n/**\n * @public\n */\nexport const QuickAccessCard = (props: QuickAccessCardProps) => {\n const { classes } = useStyles();\n const { t } = useTranslation();\n const { data, error, isLoading } = useQuickAccessLinks(props.path);\n\n let content: ReactNode;\n\n if (isLoading) {\n content = (\n <div className={classes.center}>\n <CircularProgress />\n </div>\n );\n } else if (!data) {\n content = (\n <WarningPanel severity=\"error\" title={t('quickAccess.fetchError')}>\n <CodeSnippet\n language=\"text\"\n text={error?.toString() ?? t('quickAccess.error')}\n />\n </WarningPanel>\n );\n } else {\n content = (\n <>\n {data.map(item => (\n <HomePageToolkit\n key={item.title}\n title={item.title}\n tools={item.links.map(link => ({\n ...link,\n icon: <QuickAccessIcon icon={link.iconUrl} alt={link.label} />,\n }))}\n // Component creation is allowed inside component props only\n // if prop name starts with `render`.\n // We accept it here since the upstream package use `Renderer` instead.\n Renderer={(\n renderProps, // NOSONAR\n ) => (\n <ComponentAccordion expanded={item.isExpanded} {...renderProps} />\n )}\n />\n ))}\n </>\n );\n }\n\n return (\n <InfoCard\n title={props.title ?? t('quickAccess.title')}\n noPadding\n className={classes.title}\n >\n {content}\n </InfoCard>\n );\n};\n"],"names":[],"mappings":";;;;;;;;;AAgCA,MAAM,SAAA,GAAY,YAAa,CAAA;AAAA,EAC7B,MAAQ,EAAA;AAAA,IACN,MAAQ,EAAA,MAAA;AAAA,IACR,OAAS,EAAA,MAAA;AAAA,IACT,UAAY,EAAA,QAAA;AAAA,IACZ,cAAgB,EAAA;AAAA,GAClB;AAAA,EACA,KAAO,EAAA;AAAA,IACL,6BAA+B,EAAA;AAAA,MAC7B,aAAe,EAAA;AAAA;AACjB;AAEJ,CAAC,CAAA;AAaY,MAAA,eAAA,GAAkB,CAAC,KAAgC,KAAA;AAC9D,EAAM,MAAA,EAAE,OAAQ,EAAA,GAAI,SAAU,EAAA;AAC9B,EAAM,MAAA,EAAE,CAAE,EAAA,GAAI,cAAe,EAAA;AAC7B,EAAA,MAAM,EAAE,IAAM,EAAA,KAAA,EAAO,WAAc,GAAA,mBAAA,CAAoB,MAAM,IAAI,CAAA;AAEjE,EAAI,IAAA,OAAA;AAEJ,EAAA,IAAI,SAAW,EAAA;AACb,IAAA,OAAA,uBACG,KAAI,EAAA,EAAA,SAAA,EAAW,QAAQ,MACtB,EAAA,QAAA,kBAAA,GAAA,CAAC,oBAAiB,CACpB,EAAA,CAAA;AAAA,GAEJ,MAAA,IAAW,CAAC,IAAM,EAAA;AAChB,IAAA,OAAA,uBACG,YAAa,EAAA,EAAA,QAAA,EAAS,SAAQ,KAAO,EAAA,CAAA,CAAE,wBAAwB,CAC9D,EAAA,QAAA,kBAAA,GAAA;AAAA,MAAC,WAAA;AAAA,MAAA;AAAA,QACC,QAAS,EAAA,MAAA;AAAA,QACT,IAAM,EAAA,KAAA,EAAO,QAAS,EAAA,IAAK,EAAE,mBAAmB;AAAA;AAAA,KAEpD,EAAA,CAAA;AAAA,GAEG,MAAA;AACL,IACE,OAAA,mBAAA,GAAA,CAAA,QAAA,EAAA,EACG,QAAK,EAAA,IAAA,CAAA,GAAA,CAAI,CACR,IAAA,qBAAA,GAAA;AAAA,MAAC,eAAA;AAAA,MAAA;AAAA,QAEC,OAAO,IAAK,CAAA,KAAA;AAAA,QACZ,KAAO,EAAA,IAAA,CAAK,KAAM,CAAA,GAAA,CAAI,CAAS,IAAA,MAAA;AAAA,UAC7B,GAAG,IAAA;AAAA,UACH,IAAA,sBAAO,eAAgB,EAAA,EAAA,IAAA,EAAM,KAAK,OAAS,EAAA,GAAA,EAAK,KAAK,KAAO,EAAA;AAAA,SAC5D,CAAA,CAAA;AAAA,QAIF,QAAA,EAAU,CACR,WAEA,qBAAA,GAAA,CAAC,sBAAmB,QAAU,EAAA,IAAA,CAAK,UAAa,EAAA,GAAG,WAAa,EAAA;AAAA,OAAA;AAAA,MAZ7D,IAAK,CAAA;AAAA,KAeb,CACH,EAAA,CAAA;AAAA;AAIJ,EACE,uBAAA,GAAA;AAAA,IAAC,QAAA;AAAA,IAAA;AAAA,MACC,KAAO,EAAA,KAAA,CAAM,KAAS,IAAA,CAAA,CAAE,mBAAmB,CAAA;AAAA,MAC3C,SAAS,EAAA,IAAA;AAAA,MACT,WAAW,OAAQ,CAAA,KAAA;AAAA,MAElB,QAAA,EAAA;AAAA;AAAA,GACH;AAEJ;;;;"}
@@ -0,0 +1,41 @@
1
+ import { jsx } from 'react/jsx-runtime';
2
+ import { makeStyles } from 'tss-react/mui';
3
+ import { isValidElement } from 'react';
4
+ import { useApp } from '@backstage/core-plugin-api';
5
+ import MuiIcon from '@mui/material/Icon';
6
+
7
+ const useStyles = makeStyles()({
8
+ img: {
9
+ height: "40px",
10
+ width: "auto"
11
+ }
12
+ });
13
+ const QuickAccessIcon = ({
14
+ icon,
15
+ alt
16
+ }) => {
17
+ const { classes } = useStyles();
18
+ const app = useApp();
19
+ if (!icon) {
20
+ return null;
21
+ }
22
+ if (isValidElement(icon)) {
23
+ return icon;
24
+ }
25
+ const strIcon = icon;
26
+ const SystemIcon = app.getSystemIcon(strIcon);
27
+ if (SystemIcon) {
28
+ return /* @__PURE__ */ jsx(SystemIcon, { fontSize: "large" });
29
+ }
30
+ if (strIcon.startsWith("<svg")) {
31
+ const svgDataUri = `data:image/svg+xml;base64,${btoa(strIcon)}`;
32
+ return /* @__PURE__ */ jsx("img", { src: svgDataUri, className: classes.img, alt });
33
+ }
34
+ if (strIcon.startsWith("https://") || strIcon.startsWith("http://") || strIcon.startsWith("/")) {
35
+ return /* @__PURE__ */ jsx("img", { src: strIcon, className: classes.img, alt });
36
+ }
37
+ return /* @__PURE__ */ jsx(MuiIcon, { baseClassName: "material-icons-outlined", children: strIcon });
38
+ };
39
+
40
+ export { QuickAccessIcon };
41
+ //# sourceMappingURL=QuickAccessIcon.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QuickAccessIcon.esm.js","sources":["../../src/components/QuickAccessIcon.tsx"],"sourcesContent":["/*\n * Copyright Red Hat, Inc.\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 type { ReactElement } from 'react';\nimport { makeStyles } from 'tss-react/mui';\n\nimport { isValidElement } from 'react';\nimport { useApp } from '@backstage/core-plugin-api';\n\nimport MuiIcon from '@mui/material/Icon';\n\nconst useStyles = makeStyles()({\n img: {\n height: '40px',\n width: 'auto',\n },\n});\n\nexport const QuickAccessIcon = ({\n icon,\n alt,\n}: {\n icon: string | ReactElement;\n alt: string;\n}) => {\n const { classes } = useStyles();\n const app = useApp();\n\n if (!icon) {\n return null;\n }\n\n if (isValidElement(icon)) {\n return icon;\n }\n\n const strIcon = icon as string;\n\n const SystemIcon = app.getSystemIcon(strIcon);\n\n if (SystemIcon) {\n return <SystemIcon fontSize=\"large\" />;\n }\n\n if (strIcon.startsWith('<svg')) {\n const svgDataUri = `data:image/svg+xml;base64,${btoa(strIcon)}`;\n return <img src={svgDataUri} className={classes.img} alt={alt} />;\n }\n\n if (\n strIcon.startsWith('https://') ||\n strIcon.startsWith('http://') ||\n strIcon.startsWith('/')\n ) {\n return <img src={strIcon} className={classes.img} alt={alt} />;\n }\n\n return <MuiIcon baseClassName=\"material-icons-outlined\">{strIcon}</MuiIcon>;\n};\n"],"names":[],"mappings":";;;;;;AAwBA,MAAM,SAAA,GAAY,YAAa,CAAA;AAAA,EAC7B,GAAK,EAAA;AAAA,IACH,MAAQ,EAAA,MAAA;AAAA,IACR,KAAO,EAAA;AAAA;AAEX,CAAC,CAAA;AAEM,MAAM,kBAAkB,CAAC;AAAA,EAC9B,IAAA;AAAA,EACA;AACF,CAGM,KAAA;AACJ,EAAM,MAAA,EAAE,OAAQ,EAAA,GAAI,SAAU,EAAA;AAC9B,EAAA,MAAM,MAAM,MAAO,EAAA;AAEnB,EAAA,IAAI,CAAC,IAAM,EAAA;AACT,IAAO,OAAA,IAAA;AAAA;AAGT,EAAI,IAAA,cAAA,CAAe,IAAI,CAAG,EAAA;AACxB,IAAO,OAAA,IAAA;AAAA;AAGT,EAAA,MAAM,OAAU,GAAA,IAAA;AAEhB,EAAM,MAAA,UAAA,GAAa,GAAI,CAAA,aAAA,CAAc,OAAO,CAAA;AAE5C,EAAA,IAAI,UAAY,EAAA;AACd,IAAO,uBAAA,GAAA,CAAC,UAAW,EAAA,EAAA,QAAA,EAAS,OAAQ,EAAA,CAAA;AAAA;AAGtC,EAAI,IAAA,OAAA,CAAQ,UAAW,CAAA,MAAM,CAAG,EAAA;AAC9B,IAAA,MAAM,UAAa,GAAA,CAAA,0BAAA,EAA6B,IAAK,CAAA,OAAO,CAAC,CAAA,CAAA;AAC7D,IAAA,2BAAQ,KAAI,EAAA,EAAA,GAAA,EAAK,YAAY,SAAW,EAAA,OAAA,CAAQ,KAAK,GAAU,EAAA,CAAA;AAAA;AAGjE,EACE,IAAA,OAAA,CAAQ,UAAW,CAAA,UAAU,CAC7B,IAAA,OAAA,CAAQ,UAAW,CAAA,SAAS,CAC5B,IAAA,OAAA,CAAQ,UAAW,CAAA,GAAG,CACtB,EAAA;AACA,IAAA,2BAAQ,KAAI,EAAA,EAAA,GAAA,EAAK,SAAS,SAAW,EAAA,OAAA,CAAQ,KAAK,GAAU,EAAA,CAAA;AAAA;AAG9D,EAAA,uBAAQ,GAAA,CAAA,OAAA,EAAA,EAAQ,aAAc,EAAA,yBAAA,EAA2B,QAAQ,EAAA,OAAA,EAAA,CAAA;AACnE;;;;"}
@@ -22,6 +22,14 @@ const defaultLayouts = {
22
22
  sm: { w: 12, h: 5 },
23
23
  xs: { w: 12, h: 7.5 },
24
24
  xxs: { w: 12, h: 13.5 }
25
+ },
26
+ quickAccessCard: {
27
+ xl: { w: 6, h: 8, x: 6 },
28
+ lg: { w: 6, h: 8, x: 6 },
29
+ md: { w: 6, h: 8, x: 6 },
30
+ sm: { w: 12, h: 8, x: 6 },
31
+ xs: { w: 12, h: 8, x: 6 },
32
+ xxs: { w: 12, h: 8, x: 6 }
25
33
  }
26
34
  };
27
35
 
@@ -1 +1 @@
1
- {"version":3,"file":"defaults.esm.js","sources":["../src/defaults.ts"],"sourcesContent":["/*\n * Copyright Red Hat, Inc.\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 type Breakpoints = 'xl' | 'lg' | 'md' | 'sm' | 'xs' | 'xxs';\n\n// prettier-ignore\nexport const commonWidths: Record<string, Record<Breakpoints, number>> = {\n small: { xl: 2, lg: 2, md: 2, sm: 3, xs: 4, xxs: 2 },\n half: { xl: 2, lg: 2, md: 2, sm: 3, xs: 4, xxs: 2 },\n '1/2': { xl: 2, lg: 2, md: 2, sm: 3, xs: 4, xxs: 2 },\n '1/3': { xl: 2, lg: 2, md: 2, sm: 3, xs: 4, xxs: 2 },\n '2/2': { xl: 2, lg: 2, md: 2, sm: 3, xs: 4, xxs: 2 },\n full: { xl: 2, lg: 2, md: 2, sm: 3, xs: 4, xxs: 2 },\n};\n\n// prettier-ignore\nexport const commonHeights: Record<string, Record<Breakpoints, number>> = {\n tiny: { xl: 1, lg: 1, md: 1, sm: 1, xs: 1, xxs: 1 },\n small: { xl: 2, lg: 2, md: 2, sm: 2, xs: 2, xxs: 2 },\n medium: { xl: 4, lg: 4, md: 4, sm: 4, xs: 4, xxs: 4 },\n large: { xl: 6, lg: 6, md: 6, sm: 6, xs: 6, xxs: 6 },\n xlarge: { xl: 10, lg: 6, md: 6, sm: 6, xs: 6, xxs: 6 },\n xxlarge: { xl: 14, lg: 6, md: 6, sm: 6, xs: 6, xxs: 6 },\n};\n\n/**\n * Default layout configurations for homepage cards\n * @public\n */\nexport const defaultLayouts = {\n onboarding: {\n xl: { w: 12, h: 6 },\n lg: { w: 12, h: 6 },\n md: { w: 12, h: 7 },\n sm: { w: 12, h: 8 },\n xs: { w: 12, h: 9 },\n xxs: { w: 12, h: 14 },\n },\n entity: {\n xl: { w: 12, h: 7 },\n lg: { w: 12, h: 7 },\n md: { w: 12, h: 8 },\n sm: { w: 12, h: 9 },\n xs: { w: 12, h: 11 },\n xxs: { w: 12, h: 15 },\n },\n template: {\n xl: { w: 12, h: 5 },\n lg: { w: 12, h: 5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AAAA,IAClB,EAAI,EAAA,EAAE,CAAG,EAAA,EAAA,EAAI,GAAG,CAAE,EAAA;AAAA,IAClB,EAAI,EAAA,EAAE,CAAG,EAAA,EAAA,EAAI,GAAG,CAAE,EAAA;AAAA,IAClB,EAAI,EAAA,EAAE,CAAG,EAAA,EAAA,EAAI,GAAG,GAAI,EAAA;AAAA,IACpB,GAAK,EAAA,EAAE,CAAG,EAAA,EAAA,EAAI,GAAG,IAAK;AAAA;AAE1B;;;;"}
1
+ {"version":3,"file":"defaults.esm.js","sources":["../src/defaults.ts"],"sourcesContent":["/*\n * Copyright Red Hat, Inc.\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 type Breakpoints = 'xl' | 'lg' | 'md' | 'sm' | 'xs' | 'xxs';\n\n// prettier-ignore\nexport const commonWidths: Record<string, Record<Breakpoints, number>> = {\n small: { xl: 2, lg: 2, md: 2, sm: 3, xs: 4, xxs: 2 },\n half: { xl: 2, lg: 2, md: 2, sm: 3, xs: 4, xxs: 2 },\n '1/2': { xl: 2, lg: 2, md: 2, sm: 3, xs: 4, xxs: 2 },\n '1/3': { xl: 2, lg: 2, md: 2, sm: 3, xs: 4, xxs: 2 },\n '2/2': { xl: 2, lg: 2, md: 2, sm: 3, xs: 4, xxs: 2 },\n full: { xl: 2, lg: 2, md: 2, sm: 3, xs: 4, xxs: 2 },\n};\n\n// prettier-ignore\nexport const commonHeights: Record<string, Record<Breakpoints, number>> = {\n tiny: { xl: 1, lg: 1, md: 1, sm: 1, xs: 1, xxs: 1 },\n small: { xl: 2, lg: 2, md: 2, sm: 2, xs: 2, xxs: 2 },\n medium: { xl: 4, lg: 4, md: 4, sm: 4, xs: 4, xxs: 4 },\n large: { xl: 6, lg: 6, md: 6, sm: 6, xs: 6, xxs: 6 },\n xlarge: { xl: 10, lg: 6, md: 6, sm: 6, xs: 6, xxs: 6 },\n xxlarge: { xl: 14, lg: 6, md: 6, sm: 6, xs: 6, xxs: 6 },\n};\n\n/**\n * Default layout configurations for homepage cards\n * @public\n */\nexport const defaultLayouts = {\n onboarding: {\n xl: { w: 12, h: 6 },\n lg: { w: 12, h: 6 },\n md: { w: 12, h: 7 },\n sm: { w: 12, h: 8 },\n xs: { w: 12, h: 9 },\n xxs: { w: 12, h: 14 },\n },\n entity: {\n xl: { w: 12, h: 7 },\n lg: { w: 12, h: 7 },\n md: { w: 12, h: 8 },\n sm: { w: 12, h: 9 },\n xs: { w: 12, h: 11 },\n xxs: { w: 12, h: 15 },\n },\n template: {\n xl: { w: 12, h: 5 },\n lg: { w: 12, h: 5 },\n md: { w: 12, h: 5 },\n sm: { w: 12, h: 5 },\n xs: { w: 12, h: 7.5 },\n xxs: { w: 12, h: 13.5 },\n },\n quickAccessCard: {\n xl: { w: 6, h: 8, x: 6 },\n lg: { w: 6, h: 8, x: 6 },\n md: { w: 6, h: 8, x: 6 },\n sm: { w: 12, h: 8, x: 6 },\n xs: { w: 12, h: 8, x: 6 },\n xxs: { w: 12, h: 8, x: 6 },\n },\n};\n"],"names":[],"mappings":"AA0CO,MAAM,cAAiB,GAAA;AAAA,EAC5B,UAAY,EAAA;AAAA,IACV,EAAI,EAAA,EAAE,CAAG,EAAA,EAAA,EAAI,GAAG,CAAE,EAAA;AAAA,IAClB,EAAI,EAAA,EAAE,CAAG,EAAA,EAAA,EAAI,GAAG,CAAE,EAAA;AAAA,IAClB,EAAI,EAAA,EAAE,CAAG,EAAA,EAAA,EAAI,GAAG,CAAE,EAAA;AAAA,IAClB,EAAI,EAAA,EAAE,CAAG,EAAA,EAAA,EAAI,GAAG,CAAE,EAAA;AAAA,IAClB,EAAI,EAAA,EAA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AAA;AAAA,IACvB,IAAI,EAAE,CAAA,EAAG,GAAG,CAAG,EAAA,CAAA,EAAG,GAAG,CAAE,EAAA;AAAA,IACvB,IAAI,EAAE,CAAA,EAAG,IAAI,CAAG,EAAA,CAAA,EAAG,GAAG,CAAE,EAAA;AAAA,IACxB,IAAI,EAAE,CAAA,EAAG,IAAI,CAAG,EAAA,CAAA,EAAG,GAAG,CAAE,EAAA;AAAA,IACxB,KAAK,EAAE,CAAA,EAAG,IAAI,CAAG,EAAA,CAAA,EAAG,GAAG,CAAE;AAAA;AAE7B;;;;"}
package/dist/index.d.ts CHANGED
@@ -358,6 +358,38 @@ declare const defaultLayouts: {
358
358
  h: number;
359
359
  };
360
360
  };
361
+ quickAccessCard: {
362
+ xl: {
363
+ w: number;
364
+ h: number;
365
+ x: number;
366
+ };
367
+ lg: {
368
+ w: number;
369
+ h: number;
370
+ x: number;
371
+ };
372
+ md: {
373
+ w: number;
374
+ h: number;
375
+ x: number;
376
+ };
377
+ sm: {
378
+ w: number;
379
+ h: number;
380
+ x: number;
381
+ };
382
+ xs: {
383
+ w: number;
384
+ h: number;
385
+ x: number;
386
+ };
387
+ xxs: {
388
+ w: number;
389
+ h: number;
390
+ x: number;
391
+ };
392
+ };
361
393
  };
362
394
 
363
395
  export { Breakpoint, CatalogStarredEntitiesCard, DynamicCustomizableHomePage, type DynamicCustomizableHomePageProps, DynamicHomePage, type DynamicHomePageProps, EntitySection, FeaturedDocsCard, Headline, type HeadlineProps, type HomePageCardMountPoint, type HomePageCardMountPointConfig, JokeCard, type Layout, type LocalClockProps, Markdown, MarkdownCard, type MarkdownCardProps, type MarkdownProps, OnboardingSection, Placeholder, type PlaceholderProps, QuickAccessCard, type QuickAccessCardProps, RecentlyVisitedCard, SearchBar, type SearchBarProps, TemplateSection, TopVisitedCard, VisitListener, WorldClock, type WorldClockProps, defaultLayouts, dynamicHomePagePlugin, homepageTranslationRef, homepageTranslations };
@@ -4,47 +4,47 @@ import { homepageTranslationRef } from './ref.esm.js';
4
4
  const homepageTranslationFr = createTranslationMessages({
5
5
  ref: homepageTranslationRef,
6
6
  messages: {
7
- "header.welcome": "Bon retour !",
8
- "header.welcomePersonalized": "Bon retour, {{name}} !",
9
- "header.local": "Local",
7
+ "entities.close": "fermer",
8
+ "entities.description": "Parcourez les syst\xE8mes, les composants, les ressources et les API disponibles dans votre organisation.",
9
+ "entities.empty": "Aucun catalogue de logiciels n'a encore \xE9t\xE9 ajout\xE9",
10
+ "entities.emptyDescription": "Une fois les catalogues de logiciels ajout\xE9s, cet espace pr\xE9sentera du contenu pertinent adapt\xE9 \xE0 votre exp\xE9rience.",
11
+ "entities.error": "Erreur inconnue",
12
+ "entities.fetchError": "Impossible de r\xE9cup\xE9rer les donn\xE9es.",
13
+ "entities.register": "Enregistrer un composant",
14
+ "entities.title": "Explorez votre catalogue de logiciels",
15
+ "entities.viewAll": "Afficher toutes les {{count}} entit\xE9s du catalogue",
16
+ "featuredDocs.learnMore": " En savoir plus",
17
+ "header.local": "Locale",
18
+ "header.welcome": "Content de vous revoir!",
19
+ "header.welcomePersonalized": "Bienvenue {{name}}\xA0!",
10
20
  "homePage.empty": "Aucune carte de page d'accueil (points de montage) configur\xE9e ou trouv\xE9e.",
11
- "search.placeholder": "Rechercher",
12
- "quickAccess.title": "Acc\xE8s rapide",
13
- "quickAccess.fetchError": "Impossible de r\xE9cup\xE9rer les donn\xE9es.",
21
+ "onboarding.explore.ariaLabel": "Acc\xE9der au catalogue",
22
+ "onboarding.explore.buttonText": "Acc\xE9der au catalogue",
23
+ "onboarding.explore.description": "Explorez les composants, les API et les mod\xE8les.",
24
+ "onboarding.explore.title": "Explorez",
25
+ "onboarding.getStarted.ariaLabel": "Lire la documentation (s'ouvre dans un nouvel onglet)",
26
+ "onboarding.getStarted.buttonText": "Lire la documentation",
27
+ "onboarding.getStarted.description": "En savoir plus sur Red Hat Developer Hub.",
28
+ "onboarding.getStarted.title": "Commencer",
29
+ "onboarding.greeting.goodAfternoon": "Bon apr\xE8s-midi",
30
+ "onboarding.greeting.goodEvening": "Bonne soir\xE9e",
31
+ "onboarding.greeting.goodMorning": "Bonjour",
32
+ "onboarding.guest": "Invit\xE9",
33
+ "onboarding.learn.ariaLabel": "Acc\xE9der aux parcours d'apprentissage",
34
+ "onboarding.learn.buttonText": "Acc\xE9der aux parcours d'apprentissage",
35
+ "onboarding.learn.description": "Explorer et d\xE9velopper de nouvelles comp\xE9tences.",
36
+ "onboarding.learn.title": "Apprendre",
14
37
  "quickAccess.error": "Erreur inconnue",
15
- "featuredDocs.learnMore": " En savoir plus",
16
- "templates.title": "Explorer les mod\xE8les",
17
- "templates.fetchError": "Impossible de r\xE9cup\xE9rer les donn\xE9es.",
18
- "templates.error": "Erreur inconnue",
38
+ "quickAccess.fetchError": "Impossible de r\xE9cup\xE9rer les donn\xE9es.",
39
+ "quickAccess.title": "Acc\xE8s rapide",
40
+ "search.placeholder": "Rechercher",
19
41
  "templates.empty": "Aucun mod\xE8le ajout\xE9 pour le moment",
20
42
  "templates.emptyDescription": "Une fois les mod\xE8les ajout\xE9s, cet espace pr\xE9sentera du contenu pertinent adapt\xE9 \xE0 votre exp\xE9rience.",
43
+ "templates.error": "Erreur inconnue",
44
+ "templates.fetchError": "Impossible de r\xE9cup\xE9rer les donn\xE9es.",
21
45
  "templates.register": "Enregistrer un mod\xE8le",
22
- "templates.viewAll": "Voir tous les {{count}} mod\xE8les",
23
- "onboarding.greeting.goodMorning": "Bonjour",
24
- "onboarding.greeting.goodAfternoon": "Bon apr\xE8s-midi",
25
- "onboarding.greeting.goodEvening": "Bonsoir",
26
- "onboarding.guest": "Invit\xE9",
27
- "onboarding.getStarted.title": "Commencer",
28
- "onboarding.getStarted.description": "D\xE9couvrez Red Hat Developer Hub.",
29
- "onboarding.getStarted.buttonText": "Lire la documentation",
30
- "onboarding.getStarted.ariaLabel": "Lire la documentation (ouvre dans un nouvel onglet)",
31
- "onboarding.explore.title": "Explorer",
32
- "onboarding.explore.description": "Explorez les composants, APIs et mod\xE8les.",
33
- "onboarding.explore.buttonText": "Aller au catalogue",
34
- "onboarding.explore.ariaLabel": "Aller au catalogue",
35
- "onboarding.learn.title": "Apprendre",
36
- "onboarding.learn.description": "Explorez et d\xE9veloppez de nouvelles comp\xE9tences.",
37
- "onboarding.learn.buttonText": "Aller aux parcours d'apprentissage",
38
- "onboarding.learn.ariaLabel": "Aller aux parcours d'apprentissage",
39
- "entities.title": "Explorez votre catalogue logiciel",
40
- "entities.fetchError": "Impossible de r\xE9cup\xE9rer les donn\xE9es.",
41
- "entities.error": "Erreur inconnue",
42
- "entities.description": "Parcourez les syst\xE8mes, composants, ressources et APIs disponibles dans votre organisation.",
43
- "entities.close": "fermer",
44
- "entities.empty": "Aucun catalogue logiciel ajout\xE9 pour le moment",
45
- "entities.emptyDescription": "Une fois les catalogues logiciels ajout\xE9s, cet espace pr\xE9sentera du contenu pertinent adapt\xE9 \xE0 votre exp\xE9rience.",
46
- "entities.register": "Enregistrer un composant",
47
- "entities.viewAll": "Voir toutes les {{count}} entit\xE9s du catalogue"
46
+ "templates.title": "Explorer les mod\xE8les",
47
+ "templates.viewAll": "Afficher tous les {{count}} mod\xE8les"
48
48
  }
49
49
  });
50
50
 
@@ -1 +1 @@
1
- {"version":3,"file":"fr.esm.js","sources":["../../src/translations/fr.ts"],"sourcesContent":["/*\n * Copyright Red Hat, Inc.\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 { createTranslationMessages } from '@backstage/core-plugin-api/alpha';\nimport { homepageTranslationRef } from './ref';\n\n/**\n * French translation for Homepage.\n * @public\n */\nconst homepageTranslationFr = createTranslationMessages({\n ref: homepageTranslationRef,\n messages: {\n 'header.welcome': 'Bon retour !',\n 'header.welcomePersonalized': 'Bon retour, {{name}} !',\n 'header.local': 'Local',\n 'homePage.empty':\n \"Aucune carte de page d'accueil (points de montage) configurée ou trouvée.\",\n 'search.placeholder': 'Rechercher',\n 'quickAccess.title': 'Accès rapide',\n 'quickAccess.fetchError': 'Impossible de récupérer les données.',\n 'quickAccess.error': 'Erreur inconnue',\n 'featuredDocs.learnMore': ' En savoir plus',\n 'templates.title': 'Explorer les modèles',\n 'templates.fetchError': 'Impossible de récupérer les données.',\n 'templates.error': 'Erreur inconnue',\n 'templates.empty': 'Aucun modèle ajouté pour le moment',\n 'templates.emptyDescription':\n 'Une fois les modèles ajoutés, cet espace présentera du contenu pertinent adapté à votre expérience.',\n 'templates.register': 'Enregistrer un modèle',\n 'templates.viewAll': 'Voir tous les {{count}} modèles',\n 'onboarding.greeting.goodMorning': 'Bonjour',\n 'onboarding.greeting.goodAfternoon': 'Bon après-midi',\n 'onboarding.greeting.goodEvening': 'Bonsoir',\n 'onboarding.guest': 'Invité',\n 'onboarding.getStarted.title': 'Commencer',\n 'onboarding.getStarted.description': 'Découvrez Red Hat Developer Hub.',\n 'onboarding.getStarted.buttonText': 'Lire la documentation',\n 'onboarding.getStarted.ariaLabel':\n 'Lire la documentation (ouvre dans un nouvel onglet)',\n 'onboarding.explore.title': 'Explorer',\n 'onboarding.explore.description':\n 'Explorez les composants, APIs et modèles.',\n 'onboarding.explore.buttonText': 'Aller au catalogue',\n 'onboarding.explore.ariaLabel': 'Aller au catalogue',\n 'onboarding.learn.title': 'Apprendre',\n 'onboarding.learn.description':\n 'Explorez et développez de nouvelles compétences.',\n 'onboarding.learn.buttonText': \"Aller aux parcours d'apprentissage\",\n 'onboarding.learn.ariaLabel': \"Aller aux parcours d'apprentissage\",\n 'entities.title': 'Explorez votre catalogue logiciel',\n 'entities.fetchError': 'Impossible de récupérer les données.',\n 'entities.error': 'Erreur inconnue',\n 'entities.description':\n 'Parcourez les systèmes, composants, ressources et APIs disponibles dans votre organisation.',\n 'entities.close': 'fermer',\n 'entities.empty': 'Aucun catalogue logiciel ajouté pour le moment',\n 'entities.emptyDescription':\n 'Une fois les catalogues logiciels ajoutés, cet espace présentera du contenu pertinent adapté à votre expérience.',\n 'entities.register': 'Enregistrer un composant',\n 'entities.viewAll': 'Voir toutes les {{count}} entités du catalogue',\n },\n});\n\nexport default homepageTranslationFr;\n"],"names":[],"mappings":";;;AAuBA,MAAM,wBAAwB,yBAA0B,CAAA;AAAA,EACtD,GAAK,EAAA,sBAAA;AAAA,EACL,QAAU,EAAA;AAAA,IACR,gBAAkB,EAAA,cAAA;AAAA,IAClB,4BAA8B,EAAA,wBAAA;AAAA,IAC9B,cAAgB,EAAA,OAAA;AAAA,IAChB,gBACE,EAAA,iFAAA;AAAA,IACF,oBAAsB,EAAA,YAAA;AAAA,IACtB,mBAAqB,EAAA,iBAAA;AAAA,IACrB,wBAA0B,EAAA,+CAAA;AAAA,IAC1B,mBAAqB,EAAA,iBAAA;AAAA,IACrB,wBAA0B,EAAA,iBAAA;AAAA,IAC1B,iBAAmB,EAAA,yBAAA;AAAA,IACnB,sBAAwB,EAAA,+CAAA;AAAA,IACxB,iBAAmB,EAAA,iBAAA;AAAA,IACnB,iBAAmB,EAAA,0CAAA;AAAA,IACnB,4BACE,EAAA,uHAAA;AAAA,IACF,oBAAsB,EAAA,0BAAA;AAAA,IACtB,mBAAqB,EAAA,oCAAA;AAAA,IACrB,iCAAmC,EAAA,SAAA;AAAA,IACnC,mCAAqC,EAAA,mBAAA;AAAA,IACrC,iCAAmC,EAAA,SAAA;AAAA,IACnC,kBAAoB,EAAA,WAAA;AAAA,IACpB,6BAA+B,EAAA,WAAA;AAAA,IAC/B,mCAAqC,EAAA,qCAAA;AAAA,IACrC,kCAAoC,EAAA,uBAAA;AAAA,IACpC,iCACE,EAAA,qDAAA;AAAA,IACF,0BAA4B,EAAA,UAAA;AAAA,IAC5B,gCACE,EAAA,8CAAA;AAAA,IACF,+BAAiC,EAAA,oBAAA;AAAA,IACjC,8BAAgC,EAAA,oBAAA;AAAA,IAChC,wBAA0B,EAAA,WAAA;AAAA,IAC1B,8BACE,EAAA,wDAAA;AAAA,IACF,6BAA+B,EAAA,oCAAA;AAAA,IAC/B,4BAA8B,EAAA,oCAAA;AAAA,IAC9B,gBAAkB,EAAA,mCAAA;AAAA,IAClB,qBAAuB,EAAA,+CAAA;AAAA,IACvB,gBAAkB,EAAA,iBAAA;AAAA,IAClB,sBACE,EAAA,gGAAA;AAAA,IACF,gBAAkB,EAAA,QAAA;AAAA,IAClB,gBAAkB,EAAA,mDAAA;AAAA,IAClB,2BACE,EAAA,iIAAA;AAAA,IACF,mBAAqB,EAAA,0BAAA;AAAA,IACrB,kBAAoB,EAAA;AAAA;AAExB,CAAC;;;;"}
1
+ {"version":3,"file":"fr.esm.js","sources":["../../src/translations/fr.ts"],"sourcesContent":["/*\n * Copyright Red Hat, Inc.\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 { createTranslationMessages } from '@backstage/core-plugin-api/alpha';\nimport { homepageTranslationRef } from './ref';\n\n/**\n * French translation for Homepage.\n * @public\n */\nconst homepageTranslationFr = createTranslationMessages({\n ref: homepageTranslationRef,\n messages: {\n 'entities.close': 'fermer',\n 'entities.description':\n 'Parcourez les systèmes, les composants, les ressources et les API disponibles dans votre organisation.',\n 'entities.empty': \"Aucun catalogue de logiciels n'a encore été ajouté\",\n 'entities.emptyDescription':\n 'Une fois les catalogues de logiciels ajoutés, cet espace présentera du contenu pertinent adapté à votre expérience.',\n 'entities.error': 'Erreur inconnue',\n 'entities.fetchError': 'Impossible de récupérer les données.',\n 'entities.register': 'Enregistrer un composant',\n 'entities.title': 'Explorez votre catalogue de logiciels',\n 'entities.viewAll': 'Afficher toutes les {{count}} entités du catalogue',\n 'featuredDocs.learnMore': ' En savoir plus',\n 'header.local': 'Locale',\n 'header.welcome': 'Content de vous revoir!',\n 'header.welcomePersonalized': 'Bienvenue {{name}} !',\n 'homePage.empty':\n \"Aucune carte de page d'accueil (points de montage) configurée ou trouvée.\",\n 'onboarding.explore.ariaLabel': 'Accéder au catalogue',\n 'onboarding.explore.buttonText': 'Accéder au catalogue',\n 'onboarding.explore.description':\n 'Explorez les composants, les API et les modèles.',\n 'onboarding.explore.title': 'Explorez',\n 'onboarding.getStarted.ariaLabel':\n \"Lire la documentation (s'ouvre dans un nouvel onglet)\",\n 'onboarding.getStarted.buttonText': 'Lire la documentation',\n 'onboarding.getStarted.description':\n 'En savoir plus sur Red Hat Developer Hub.',\n 'onboarding.getStarted.title': 'Commencer',\n 'onboarding.greeting.goodAfternoon': 'Bon après-midi',\n 'onboarding.greeting.goodEvening': 'Bonne soirée',\n 'onboarding.greeting.goodMorning': 'Bonjour',\n 'onboarding.guest': 'Invité',\n 'onboarding.learn.ariaLabel': \"Accéder aux parcours d'apprentissage\",\n 'onboarding.learn.buttonText': \"Accéder aux parcours d'apprentissage\",\n 'onboarding.learn.description':\n 'Explorer et développer de nouvelles compétences.',\n 'onboarding.learn.title': 'Apprendre',\n 'quickAccess.error': 'Erreur inconnue',\n 'quickAccess.fetchError': 'Impossible de récupérer les données.',\n 'quickAccess.title': 'Accès rapide',\n 'search.placeholder': 'Rechercher',\n 'templates.empty': 'Aucun modèle ajouté pour le moment',\n 'templates.emptyDescription':\n 'Une fois les modèles ajoutés, cet espace présentera du contenu pertinent adapté à votre expérience.',\n 'templates.error': 'Erreur inconnue',\n 'templates.fetchError': 'Impossible de récupérer les données.',\n 'templates.register': 'Enregistrer un modèle',\n 'templates.title': 'Explorer les modèles',\n 'templates.view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qB,EAAA,iBAAA;AAAA,IACrB,oBAAsB,EAAA,YAAA;AAAA,IACtB,iBAAmB,EAAA,0CAAA;AAAA,IACnB,4BACE,EAAA,uHAAA;AAAA,IACF,iBAAmB,EAAA,iBAAA;AAAA,IACnB,sBAAwB,EAAA,+CAAA;AAAA,IACxB,oBAAsB,EAAA,0BAAA;AAAA,IACtB,iBAAmB,EAAA,yBAAA;AAAA,IACnB,mBAAqB,EAAA;AAAA;AAEzB,CAAC;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@red-hat-developer-hub/backstage-plugin-dynamic-home-page",
3
- "version": "1.9.0",
3
+ "version": "1.9.2",
4
4
  "main": "dist/index.esm.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "license": "Apache-2.0",
@@ -62,7 +62,7 @@
62
62
  "@backstage/test-utils": "^1.7.11",
63
63
  "@openshift/dynamic-plugin-sdk": "5.0.1",
64
64
  "@red-hat-developer-hub/backstage-plugin-theme": "^0.10.0",
65
- "@testing-library/jest-dom": "6.8.0",
65
+ "@testing-library/jest-dom": "6.9.1",
66
66
  "@testing-library/react": "14.3.1",
67
67
  "@testing-library/user-event": "14.6.1",
68
68
  "@types/react-grid-layout": "1.3.5",