Skip to content

Commit

Permalink
chore(deps): update rhdh theme package (#1907)
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Jerolimov <jerolimov+git@redhat.com>
  • Loading branch information
christoph-jerolimov authored Aug 15, 2024
1 parent 231c102 commit 5972b28
Show file tree
Hide file tree
Showing 40 changed files with 118 additions and 121 deletions.
27 changes: 27 additions & 0 deletions packages/app/config.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,31 @@
export interface Config {
app: {
branding?: {
/**
* Base64 URI for the full logo
* @visibility frontend
*/
fullLogo?: string;
/**
* size Configuration for the full logo
* The following units are supported: <number>, px, em, rem, <percentage>
* @visibility frontend
*/
fullLogoWidth?: string | number;
/**
* Base64 URI for the icon logo
* @visibility frontend
*/
iconLogo?: string;
/**
* @deepVisibility frontend
*/
theme?: {
[key: string]: unknown;
};
};
};

/** @deepVisibility frontend */
dynamicPlugins: {
/** @deepVisibility frontend */
Expand Down
2 changes: 1 addition & 1 deletion packages/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"@mui/icons-material": "^5.15.16",
"@mui/material": "^5.15.16",
"@mui/styles": "^5.15.16",
"@redhat-developer/red-hat-developer-hub-theme": "0.1.10",
"@redhat-developer/red-hat-developer-hub-theme": "0.2.0",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"react-router": "^6.23.0",
Expand Down
4 changes: 2 additions & 2 deletions plugins/acr/dev/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { createDevApp } from '@backstage/dev-utils';
import { EntityProvider } from '@backstage/plugin-catalog-react';
import { TestApiProvider } from '@backstage/test-utils';

import { createDevAppThemes } from '@redhat-developer/red-hat-developer-hub-theme';
import { getAllThemes } from '@redhat-developer/red-hat-developer-hub-theme';

import { mockAcrTagsData } from '../src/__fixtures__/acrTagsObject';
import { mockEntity } from '../src/__fixtures__/mockEntity';
Expand All @@ -31,7 +31,7 @@ class MockAzureContainerRegistryApiClient

createDevApp()
.registerPlugin(acrPlugin)
.addThemes(createDevAppThemes())
.addThemes(getAllThemes())
.addPage({
element: (
<TestApiProvider
Expand Down
2 changes: 1 addition & 1 deletion plugins/acr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"@backstage/dev-utils": "1.0.36",
"@backstage/test-utils": "1.5.9",
"@janus-idp/cli": "1.13.0",
"@redhat-developer/red-hat-developer-hub-theme": "0.0.54",
"@redhat-developer/red-hat-developer-hub-theme": "0.2.0",
"@testing-library/jest-dom": "6.4.8",
"@testing-library/react": "14.3.1",
"@testing-library/react-hooks": "8.0.1",
Expand Down
4 changes: 2 additions & 2 deletions plugins/analytics-module-matomo/dev/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ import React from 'react';

import { createDevApp } from '@backstage/dev-utils';

import { createDevAppThemes } from '@redhat-developer/red-hat-developer-hub-theme';
import { getAllThemes } from '@redhat-developer/red-hat-developer-hub-theme';

import { analyticsModuleMatomoPlugin } from '../src';
import { Playground } from './Playground';

createDevApp()
.registerPlugin(analyticsModuleMatomoPlugin)
.addThemes(createDevAppThemes())
.addThemes(getAllThemes())
.addPage({
title: 'Matomo Analytics Playground',
path: '/analytics-module-matomo',
Expand Down
2 changes: 1 addition & 1 deletion plugins/analytics-module-matomo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"@backstage/dev-utils": "1.0.36",
"@backstage/test-utils": "1.5.9",
"@janus-idp/cli": "1.13.0",
"@redhat-developer/red-hat-developer-hub-theme": "0.0.54",
"@redhat-developer/red-hat-developer-hub-theme": "0.2.0",
"@testing-library/jest-dom": "6.4.8",
"@testing-library/react": "14.3.1",
"@testing-library/user-event": "14.5.2",
Expand Down
4 changes: 2 additions & 2 deletions plugins/analytics-provider-segment/dev/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ import React from 'react';

import { createDevApp } from '@backstage/dev-utils';

import { createDevAppThemes } from '@redhat-developer/red-hat-developer-hub-theme';
import { getAllThemes } from '@redhat-developer/red-hat-developer-hub-theme';

import { analyticsModuleSegment } from '../src';
import { Playground } from './Playground';

createDevApp()
.registerPlugin(analyticsModuleSegment)
.addThemes(createDevAppThemes())
.addThemes(getAllThemes())
.addPage({
path: '/segment',
title: 'Segment Playground',
Expand Down
2 changes: 1 addition & 1 deletion plugins/analytics-provider-segment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"@backstage/dev-utils": "1.0.36",
"@backstage/test-utils": "1.5.9",
"@janus-idp/cli": "1.13.0",
"@redhat-developer/red-hat-developer-hub-theme": "0.0.54",
"@redhat-developer/red-hat-developer-hub-theme": "0.2.0",
"@testing-library/dom": "9.3.4",
"@testing-library/jest-dom": "6.4.8",
"@testing-library/react": "14.3.1",
Expand Down
4 changes: 2 additions & 2 deletions plugins/argocd/dev/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { permissionApiRef } from '@backstage/plugin-permission-react';
import { MockPermissionApi, TestApiProvider } from '@backstage/test-utils';

import { Box } from '@material-ui/core';
import { createDevAppThemes } from '@redhat-developer/red-hat-developer-hub-theme';
import { getAllThemes } from '@redhat-developer/red-hat-developer-hub-theme';

import {
ArgoCDApi,
Expand Down Expand Up @@ -71,7 +71,7 @@ export class MockArgoCDApiClient implements ArgoCDApi {

createDevApp()
.registerPlugin(argocdPlugin)
.addThemes(createDevAppThemes())
.addThemes(getAllThemes())
.addPage({
element: (
<TestApiProvider
Expand Down
4 changes: 2 additions & 2 deletions plugins/argocd/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
"@backstage/core-plugin-api": "^1.9.3",
"@backstage/plugin-catalog-react": "^1.12.2",
"@backstage/plugin-permission-react": "^0.4.24",
"@janus-idp/backstage-plugin-argocd-common": "1.0.1",
"@backstage/theme": "^0.5.6",
"@janus-idp/backstage-plugin-argocd-common": "1.0.1",
"@kubernetes/client-node": "^0.20.0",
"@material-ui/core": "^4.9.13",
"@material-ui/icons": "^4.9.1",
Expand All @@ -65,7 +65,7 @@
"@backstage/test-utils": "1.5.9",
"@janus-idp/cli": "1.13.0",
"@playwright/test": "1.45.3",
"@redhat-developer/red-hat-developer-hub-theme": "0.0.54",
"@redhat-developer/red-hat-developer-hub-theme": "0.2.0",
"@testing-library/jest-dom": "6.4.8",
"@testing-library/react": "14.3.1",
"@testing-library/user-event": "14.5.2",
Expand Down
4 changes: 2 additions & 2 deletions plugins/bulk-import/dev/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { createDevApp } from '@backstage/dev-utils';
import { catalogApiRef } from '@backstage/plugin-catalog-react';
import { TestApiProvider } from '@backstage/test-utils';

import { createDevAppThemes } from '@redhat-developer/red-hat-developer-hub-theme';
import { getAllThemes } from '@redhat-developer/red-hat-developer-hub-theme';

import { icon } from '../src/components/BulkImportIcon';
import { mockEntities } from '../src/mocks/mockEntities';
Expand All @@ -16,7 +16,7 @@ const mockCatalogApi = {

createDevApp()
.registerPlugin(bulkImportPlugin)
.addThemes(createDevAppThemes())
.addThemes(getAllThemes())
.addPage({
element: (
<TestApiProvider apis={[[catalogApiRef, mockCatalogApi]]}>
Expand Down
12 changes: 6 additions & 6 deletions plugins/bulk-import/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,18 @@
"ui-test": "yarn playwright test"
},
"dependencies": {
"@backstage/catalog-model": "^1.5.0",
"@backstage/core-components": "^0.14.9",
"@backstage/core-plugin-api": "^1.9.3",
"@backstage/theme": "^0.5.6",
"@backstage/catalog-model": "^1.5.0",
"@backstage/plugin-catalog-react": "^1.12.2",
"@backstage/plugin-catalog-import": "^0.12.1",
"@backstage/plugin-catalog-react": "^1.12.2",
"@backstage/theme": "^0.5.6",
"@janus-idp/shared-react": "2.10.0",
"@material-ui/core": "^4.9.13",
"@material-ui/lab": "^4.0.0-alpha.61",
"@material-ui/icons": "^4.11.3",
"@material-ui/lab": "^4.0.0-alpha.61",
"@mui/icons-material": "5.16.4",
"@mui/material": "^5.12.2",
"@janus-idp/shared-react": "2.10.0",
"formik": "^2.4.5",
"lodash": "^4.17.21",
"react-use": "^17.2.4"
Expand All @@ -61,7 +61,7 @@
"@backstage/test-utils": "1.5.9",
"@janus-idp/cli": "1.13.0",
"@playwright/test": "1.45.3",
"@redhat-developer/red-hat-developer-hub-theme": "0.0.54",
"@redhat-developer/red-hat-developer-hub-theme": "0.2.0",
"@testing-library/jest-dom": "6.4.8",
"@testing-library/react": "14.3.1",
"@testing-library/user-event": "14.5.2",
Expand Down
4 changes: 2 additions & 2 deletions plugins/dynamic-plugins-info/dev/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Content, Header, HeaderTabs, Page } from '@backstage/core-components';
import { createDevApp } from '@backstage/dev-utils';
import { TestApiProvider } from '@backstage/test-utils';

import { createDevAppThemes } from '@redhat-developer/red-hat-developer-hub-theme';
import { getAllThemes } from '@redhat-developer/red-hat-developer-hub-theme';

import { listLoadedPluginsResult } from '../src/__fixtures__/listLoadedPluginsResult';
import { dynamicPluginsInfoApiRef } from '../src/api/types';
Expand All @@ -19,7 +19,7 @@ const mockedApi = {

createDevApp()
.registerPlugin(dynamicPluginsInfoPlugin)
.addThemes(createDevAppThemes())
.addThemes(getAllThemes())
.addPage({
element: (
<TestApiProvider apis={[[dynamicPluginsInfoApiRef, mockedApi]]}>
Expand Down
2 changes: 1 addition & 1 deletion plugins/dynamic-plugins-info/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"@backstage/core-app-api": "1.14.1",
"@backstage/dev-utils": "1.0.36",
"@backstage/test-utils": "1.5.9",
"@redhat-developer/red-hat-developer-hub-theme": "0.0.54",
"@redhat-developer/red-hat-developer-hub-theme": "0.2.0",
"@testing-library/jest-dom": "6.4.8",
"@testing-library/react": "14.3.1",
"@testing-library/user-event": "14.5.2",
Expand Down
4 changes: 2 additions & 2 deletions plugins/feedback/dev/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react';
import { createDevApp } from '@backstage/dev-utils';
import { EntityProvider } from '@backstage/plugin-catalog-react';

import { createDevAppThemes } from '@redhat-developer/red-hat-developer-hub-theme';
import { getAllThemes } from '@redhat-developer/red-hat-developer-hub-theme';

import { mockEntity } from '../src/mocks';
import {
Expand All @@ -15,7 +15,7 @@ import {

createDevApp()
.registerPlugin(feedbackPlugin)
.addThemes(createDevAppThemes())
.addThemes(getAllThemes())
.addPage({
element: (
<>
Expand Down
2 changes: 1 addition & 1 deletion plugins/feedback/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"@backstage/dev-utils": "1.0.36",
"@backstage/test-utils": "1.5.9",
"@janus-idp/cli": "1.13.0",
"@redhat-developer/red-hat-developer-hub-theme": "0.0.54",
"@redhat-developer/red-hat-developer-hub-theme": "0.2.0",
"@testing-library/jest-dom": "6.4.8",
"@testing-library/react": "14.3.1",
"@testing-library/user-event": "14.5.2",
Expand Down
4 changes: 2 additions & 2 deletions plugins/jfrog-artifactory/dev/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Entity } from '@backstage/catalog-model';
import { createDevApp } from '@backstage/dev-utils';
import { EntityProvider } from '@backstage/plugin-catalog-react';

import { createDevAppThemes } from '@redhat-developer/red-hat-developer-hub-theme';
import { getAllThemes } from '@redhat-developer/red-hat-developer-hub-theme';

import { JfrogArtifactoryPage, jfrogArtifactoryPlugin } from '../src/plugin';

Expand All @@ -27,7 +27,7 @@ const mockEntity: Entity = {

createDevApp()
.registerPlugin(jfrogArtifactoryPlugin)
.addThemes(createDevAppThemes())
.addThemes(getAllThemes())
.addPage({
element: (
<EntityProvider entity={mockEntity}>
Expand Down
2 changes: 1 addition & 1 deletion plugins/jfrog-artifactory/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"@backstage/dev-utils": "1.0.36",
"@backstage/test-utils": "1.5.9",
"@janus-idp/cli": "1.13.0",
"@redhat-developer/red-hat-developer-hub-theme": "0.0.54",
"@redhat-developer/red-hat-developer-hub-theme": "0.2.0",
"@testing-library/jest-dom": "6.4.8",
"@testing-library/react": "14.3.1",
"@testing-library/user-event": "14.5.2",
Expand Down
4 changes: 2 additions & 2 deletions plugins/kiali/dev/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { EntityProvider } from '@backstage/plugin-catalog-react';
import { TestApiProvider } from '@backstage/test-utils';

import { Grid } from '@material-ui/core';
import { createDevAppThemes } from '@redhat-developer/red-hat-developer-hub-theme';
import { getAllThemes } from '@redhat-developer/red-hat-developer-hub-theme';

import { EntityKialiResourcesCard, kialiPlugin } from '../src';
import { KialiHelper } from '../src/pages/Kiali/KialiHelper';
Expand Down Expand Up @@ -141,7 +141,7 @@ const MockKialiError = () => {

createDevApp()
.registerPlugin(kialiPlugin)
.addThemes(createDevAppThemes())
.addThemes(getAllThemes())
.addPage({
element: <KialiMock />,
title: 'KialiPage',
Expand Down
2 changes: 1 addition & 1 deletion plugins/kiali/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"@backstage/test-utils": "1.5.9",
"@janus-idp/cli": "1.13.0",
"@playwright/test": "1.45.3",
"@redhat-developer/red-hat-developer-hub-theme": "0.0.54",
"@redhat-developer/red-hat-developer-hub-theme": "0.2.0",
"@testing-library/jest-dom": "6.4.8",
"@testing-library/react": "14.3.1",
"@testing-library/user-event": "14.5.2",
Expand Down
4 changes: 2 additions & 2 deletions plugins/matomo/dev/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ import React from 'react';

import { createDevApp } from '@backstage/dev-utils';

import { createDevAppThemes } from '@redhat-developer/red-hat-developer-hub-theme';
import { getAllThemes } from '@redhat-developer/red-hat-developer-hub-theme';

import { MatomoPage, matomoPlugin } from '../src/plugin';

createDevApp()
.registerPlugin(matomoPlugin)
.addThemes(createDevAppThemes())
.addThemes(getAllThemes())
.addPage({
element: <MatomoPage />,
title: 'Root Page',
Expand Down
2 changes: 1 addition & 1 deletion plugins/matomo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"@backstage/dev-utils": "1.0.36",
"@backstage/test-utils": "1.5.9",
"@janus-idp/cli": "1.13.0",
"@redhat-developer/red-hat-developer-hub-theme": "0.0.54",
"@redhat-developer/red-hat-developer-hub-theme": "0.2.0",
"@testing-library/jest-dom": "6.4.8",
"@testing-library/react": "14.3.1",
"@testing-library/user-event": "14.5.2",
Expand Down
4 changes: 2 additions & 2 deletions plugins/nexus-repository-manager/dev/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { createDevApp } from '@backstage/dev-utils';
import { EntityProvider } from '@backstage/plugin-catalog-react';
import { TestApiProvider } from '@backstage/test-utils';

import { createDevAppThemes } from '@redhat-developer/red-hat-developer-hub-theme';
import { getAllThemes } from '@redhat-developer/red-hat-developer-hub-theme';

import {
entityMock,
Expand All @@ -18,7 +18,7 @@ import {

createDevApp()
.registerPlugin(nexusRepositoryManagerPlugin)
.addThemes(createDevAppThemes())
.addThemes(getAllThemes())
.addPage({
element: (
<TestApiProvider
Expand Down
2 changes: 1 addition & 1 deletion plugins/nexus-repository-manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"@backstage/test-utils": "1.5.9",
"@hey-api/openapi-ts": "0.34.5",
"@janus-idp/cli": "1.13.0",
"@redhat-developer/red-hat-developer-hub-theme": "0.0.54",
"@redhat-developer/red-hat-developer-hub-theme": "0.2.0",
"@testing-library/jest-dom": "6.4.8",
"@testing-library/react": "14.3.1",
"@testing-library/react-hooks": "8.0.1",
Expand Down
4 changes: 2 additions & 2 deletions plugins/ocm/dev/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
import { SearchApi, searchApiRef } from '@backstage/plugin-search-react';

import { Grid } from '@material-ui/core';
import { createDevAppThemes } from '@redhat-developer/red-hat-developer-hub-theme';
import { getAllThemes } from '@redhat-developer/red-hat-developer-hub-theme';

import {
ClusterAvailableResourceCard,
Expand Down Expand Up @@ -84,7 +84,7 @@ createDevApp()
}),
)
.registerPlugin(ocmPlugin)
.addThemes(createDevAppThemes())
.addThemes(getAllThemes())
.addPage({
element: <OcmPage />,
title: 'Root Page',
Expand Down
2 changes: 1 addition & 1 deletion plugins/ocm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"@backstage/plugin-catalog": "1.21.1",
"@backstage/test-utils": "1.5.9",
"@janus-idp/cli": "1.13.0",
"@redhat-developer/red-hat-developer-hub-theme": "0.0.54",
"@redhat-developer/red-hat-developer-hub-theme": "0.2.0",
"@testing-library/jest-dom": "6.4.8",
"@testing-library/react": "14.3.1",
"@testing-library/user-event": "14.5.2",
Expand Down
Loading

0 comments on commit 5972b28

Please sign in to comment.