diff --git a/heureka/ui/jest.config.js b/heureka/ui/jest.config.js index e34b029b..55d2ac40 100644 --- a/heureka/ui/jest.config.js +++ b/heureka/ui/jest.config.js @@ -8,7 +8,7 @@ module.exports = { testEnvironment: "jsdom", setupFilesAfterEnv: ["/setupTests.js"], transformIgnorePatterns: [ - "node_modules/(?!(juno-ui-components|url-state-router|communicator|oauth|messages-provider)/)", + "node_modules/(?!(@cloudoperators/juno-ui-components|@cloudoperators/juno-url-state-router|@cloudoperators/juno-url-state-provider-v1|@cloudoperators/juno-communicator|@cloudoperators/juno-messages-provider)/)", ], moduleNameMapper: { // Jest currently doesn't support resources with query parameters. diff --git a/heureka/ui/package-lock.json b/heureka/ui/package-lock.json index 16aa0792..33064b91 100644 --- a/heureka/ui/package-lock.json +++ b/heureka/ui/package-lock.json @@ -1,13 +1,20 @@ { "name": "heureka", - "version": "2.2.1", + "version": "2.2.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "heureka", - "version": "2.2.1", + "version": "2.2.2", "license": "Apache-2.0", + "dependencies": { + "@cloudoperators/juno-communicator": "^2.2.11", + "@cloudoperators/juno-messages-provider": "^0.1.17", + "@cloudoperators/juno-ui-components": "^2.15.4", + "@cloudoperators/juno-url-state-provider-v1": "^1.3.2", + "@cloudoperators/juno-utils": "^1.1.12" + }, "devDependencies": { "@babel/core": "^7.20.2", "@babel/preset-env": "^7.20.2", @@ -23,16 +30,13 @@ "autoprefixer": "^10.4.2", "babel-jest": "^29.3.1", "babel-plugin-transform-import-meta": "^2.2.0", - "communicator": "https://assets.juno.global.cloud.sap/libs/communicator@2.2.6/package.tgz", "esbuild": "^0.19.4", "graphql": "^16.8.2", "graphql-request": "^7.0.1", "immer": "^10.0.0", "jest": "^29.3.1", "jest-environment-jsdom": "^29.3.1", - "juno-ui-components": "https://assets.juno.global.cloud.sap/libs/juno-ui-components@2.13.8/package.tgz", "luxon": "^3.0.0", - "messages-provider": "https://assets.juno.global.cloud.sap/libs/messages-provider@0.1.12/package.tgz", "postcss": "^8.4.21", "postcss-url": "^10.1.3", "prop-types": "^15.8.1", @@ -43,17 +47,12 @@ "sass": "^1.77.5", "shadow-dom-testing-library": "^1.7.1", "tailwindcss": "^3.3.1", - "url-state-provider": "https://assets.juno.global.cloud.sap/libs/url-state-provider@1.3.2/package.tgz", - "util": "^0.12.4", "zustand": "4.5.2" }, "peerDependencies": { - "juno-ui-components": "https://assets.juno.global.cloud.sap/libs/juno-ui-components@2.13.8/package.tgz", - "messages-provider": "https://assets.juno.global.cloud.sap/libs/messages-provider@0.1.12/package.tgz", "prop-types": "^15.8.1", "react": "18.2.0", "react-dom": "18.2.0", - "url-state-provider": "https://assets.juno.global.cloud.sap/libs/url-state-provider@1.3.2/package.tgz", "zustand": "4.5.2" } }, @@ -1900,6 +1899,66 @@ "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", "dev": true }, + "node_modules/@cloudoperators/juno-communicator": { + "version": "2.2.11", + "resolved": "https://registry.npmjs.org/@cloudoperators/juno-communicator/-/juno-communicator-2.2.11.tgz", + "integrity": "sha512-dDoqKw3nZuuNMkdmwYDG/l7Uw7a4rDF3RtteuEW9yUhMypocsGmbcgRhaZjUWpL21OPbFDVNi58r3+KO7IN2Ug==", + "engines": { + "node": ">=20.0.0 <21.0.0", + "npm": ">=10.0.0 <11.0.0" + } + }, + "node_modules/@cloudoperators/juno-messages-provider": { + "version": "0.1.17", + "resolved": "https://registry.npmjs.org/@cloudoperators/juno-messages-provider/-/juno-messages-provider-0.1.17.tgz", + "integrity": "sha512-ZECrpMVr3jx25YdcyayFUSXMHDRp9hjDLLbUSvQqcJLxtscpE14WEqGffelAMfr0Q6AqOi0DlEoSMVFlh7fYZw==", + "dependencies": { + "@cloudoperators/juno-ui-components": "*" + }, + "engines": { + "node": ">=20.0.0 <21.0.0", + "npm": ">=10.0.0 <11.0.0" + }, + "peerDependencies": { + "react": "^18.2.0", + "react-dom": "^18.2.0", + "zustand": "^4.5.2" + } + }, + "node_modules/@cloudoperators/juno-ui-components": { + "version": "2.15.4", + "resolved": "https://registry.npmjs.org/@cloudoperators/juno-ui-components/-/juno-ui-components-2.15.4.tgz", + "integrity": "sha512-lyziFGjtasxqiiZ86Yfn9EtJFtZ/72So1GmCsMdZCOt3WQnv/TcvQMnXCHe5Zg1fXZ/qNQWIac5rH6YbVS75yg==", + "engines": { + "node": ">=20.0.0 <21.0.0", + "npm": ">=10.0.0 <11.0.0" + }, + "peerDependencies": { + "prop-types": "15.8.1", + "react": "^18.2.0", + "react-dom": "^18.2.0" + } + }, + "node_modules/@cloudoperators/juno-url-state-provider-v1": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@cloudoperators/juno-url-state-provider-v1/-/juno-url-state-provider-v1-1.3.2.tgz", + "integrity": "sha512-DVFzP/5actNs6fkfA93U7jUm9rY0/kPzFWrfGof6SGvhNx+WffQ9BBGQA/p9S7M3brgwxtxgHBnRvTDyA7fMDA==", + "dependencies": { + "juri": "^1.0.3" + } + }, + "node_modules/@cloudoperators/juno-utils": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/@cloudoperators/juno-utils/-/juno-utils-1.1.12.tgz", + "integrity": "sha512-thUgU/Kg7gmjhIZ6yALZSLCTKycBZ5y/LwwgSpinAVNbVebK8AassEcqloTgayTn6J3rAryDdSptfqnrzbuFLA==", + "engines": { + "node": ">=20.0.0 <21.0.0", + "npm": ">=10.0.0 <11.0.0" + }, + "peerDependencies": { + "react": "^18.2.0" + } + }, "node_modules/@esbuild/aix-ppc64": { "version": "0.19.12", "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.19.12.tgz", @@ -3858,13 +3917,13 @@ "version": "15.7.12", "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.12.tgz", "integrity": "sha512-5zvhXYtRNRluoE/jAp4GVsSduVUzNWKkOZrCDBWYtE7biZywwdC2AcEzg+cSMLFRfVgeAFqpfNabiPjxFddV1Q==", - "dev": true + "devOptional": true }, "node_modules/@types/react": { "version": "18.3.3", "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.3.tgz", "integrity": "sha512-hti/R0pS0q1/xx+TsI73XIqk26eBsISZ2R0wUijXIngRK9R/e7Xw/cXVxQK7R5JjW+SV4zGcn5hXjudkN/pLIw==", - "dev": true, + "devOptional": true, "dependencies": { "@types/prop-types": "*", "csstype": "^3.0.2" @@ -4648,13 +4707,6 @@ "node": ">= 6" } }, - "node_modules/communicator": { - "version": "2.2.6", - "resolved": "https://assets.juno.global.cloud.sap/libs/communicator@2.2.6/package.tgz", - "integrity": "sha512-DGjFFgbAr8gXGJlnfvxEYegqtY+ZflKj+4i3uLqDv6J58gIAavOQenfps+Db1m3vM570+h9ZG8do/SNMPIbnWQ==", - "dev": true, - "license": "Apache-2.0" - }, "node_modules/concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", @@ -4875,7 +4927,7 @@ "version": "3.1.3", "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz", "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==", - "dev": true + "devOptional": true }, "node_modules/cuint": { "version": "0.2.2", @@ -5740,7 +5792,7 @@ "version": "10.1.1", "resolved": "https://registry.npmjs.org/immer/-/immer-10.1.1.tgz", "integrity": "sha512-s2MPrmjovJcoMaHtx6K11Ra7oD05NT97w1IC5zpMkT6Atjr7H8LjaDd81iIxUYpMKSRRNMJE703M1Fhr/TctHw==", - "dev": true, + "devOptional": true, "funding": { "type": "opencollective", "url": "https://opencollective.com/immer" @@ -8011,8 +8063,7 @@ "node_modules/js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" }, "node_modules/js-yaml": { "version": "3.14.1", @@ -8102,23 +8153,10 @@ "node": ">=6" } }, - "node_modules/juno-ui-components": { - "version": "2.13.8", - "resolved": "https://assets.juno.global.cloud.sap/libs/juno-ui-components@2.13.8/package.tgz", - "integrity": "sha512-ygnXfEt77rshIkpbgvZORO2TCA2ZY//xmkY9NQtA0iazr6M0RbRnKpXycn1RQ6YVjXFfH0xhRcOImKeomrfIjw==", - "dev": true, - "license": "Apache-2.0", - "peerDependencies": { - "prop-types": "15.8.1", - "react": "18.2.0", - "react-dom": "18.2.0" - } - }, "node_modules/juri": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/juri/-/juri-1.0.3.tgz", - "integrity": "sha512-ARxzFFY6FnmMtTejPKLfcHSVV+AN11xquK4aNaWBA/5adTAiSKxs5lIYhft2vxHH6M1HGXTY17PA462sX0zN7g==", - "dev": true + "integrity": "sha512-ARxzFFY6FnmMtTejPKLfcHSVV+AN11xquK4aNaWBA/5adTAiSKxs5lIYhft2vxHH6M1HGXTY17PA462sX0zN7g==" }, "node_modules/kleur": { "version": "3.0.3", @@ -8199,7 +8237,6 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", - "dev": true, "dependencies": { "js-tokens": "^3.0.0 || ^4.0.0" }, @@ -8294,18 +8331,6 @@ "node": ">= 8" } }, - "node_modules/messages-provider": { - "version": "0.1.12", - "resolved": "https://assets.juno.global.cloud.sap/libs/messages-provider@0.1.12/package.tgz", - "integrity": "sha512-8XVowXV8wxBJ10FBEAO2AGMpdaf6C6UKQCAjJELJnJHYwPDBYOnMa4nOwHCwzurH6rh0QTmbAeFz4HpD8Yglrw==", - "dev": true, - "license": "Apache-2.0", - "peerDependencies": { - "juno-ui-components": "*", - "react": "18.2.0", - "zustand": "4.5.2" - } - }, "node_modules/micromatch": { "version": "4.0.7", "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.7.tgz", @@ -8494,7 +8519,6 @@ "version": "4.1.1", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", - "dev": true, "engines": { "node": ">=0.10.0" } @@ -9035,7 +9059,6 @@ "version": "15.8.1", "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==", - "dev": true, "dependencies": { "loose-envify": "^1.4.0", "object-assign": "^4.1.1", @@ -9045,8 +9068,7 @@ "node_modules/prop-types/node_modules/react-is": { "version": "16.13.1", "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", - "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", - "dev": true + "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==" }, "node_modules/psl": { "version": "1.9.0", @@ -9109,7 +9131,6 @@ "version": "18.2.0", "resolved": "https://registry.npmjs.org/react/-/react-18.2.0.tgz", "integrity": "sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==", - "dev": true, "dependencies": { "loose-envify": "^1.1.0" }, @@ -9121,7 +9142,6 @@ "version": "18.2.0", "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.2.0.tgz", "integrity": "sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==", - "dev": true, "dependencies": { "loose-envify": "^1.1.0", "scheduler": "^0.23.0" @@ -9435,7 +9455,6 @@ "version": "0.23.2", "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz", "integrity": "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==", - "dev": true, "dependencies": { "loose-envify": "^1.1.0" } @@ -10113,21 +10132,10 @@ "requires-port": "^1.0.0" } }, - "node_modules/url-state-provider": { - "version": "1.3.2", - "resolved": "https://assets.juno.global.cloud.sap/libs/url-state-provider@1.3.2/package.tgz", - "integrity": "sha512-+6ID9hl4YIFiRd4EWy7oZlvFmevBNsIXa8KTZ0+HCj/f48s4NNZKXWooSakXeCmeFCzkcnP/Wv4jYD3RyWFAjg==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "juri": "^1.0.3" - } - }, "node_modules/use-sync-external-store": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.2.0.tgz", "integrity": "sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA==", - "dev": true, "peerDependencies": { "react": "^16.8.0 || ^17.0.0 || ^18.0.0" } @@ -10531,7 +10539,6 @@ "version": "4.5.2", "resolved": "https://registry.npmjs.org/zustand/-/zustand-4.5.2.tgz", "integrity": "sha512-2cN1tPkDVkwCy5ickKrI7vijSjPksFRfqS6237NzT0vqSsztTNnQdHw9mmN7uBdk3gceVXU0a+21jFzFzAc9+g==", - "dev": true, "dependencies": { "use-sync-external-store": "1.2.0" }, diff --git a/heureka/ui/package.json b/heureka/ui/package.json index 30eb89a4..12959d98 100644 --- a/heureka/ui/package.json +++ b/heureka/ui/package.json @@ -1,6 +1,6 @@ { "name": "heureka", - "version": "2.2.1", + "version": "2.2.2", "author": "UI-Team", "contributors": [ "Hoda Noori, Arturo Reuschenbach Pucernau" @@ -25,16 +25,13 @@ "autoprefixer": "^10.4.2", "babel-jest": "^29.3.1", "babel-plugin-transform-import-meta": "^2.2.0", - "communicator": "https://assets.juno.global.cloud.sap/libs/communicator@2.2.6/package.tgz", "esbuild": "^0.19.4", "graphql": "^16.8.2", "graphql-request": "^7.0.1", "immer": "^10.0.0", "jest": "^29.3.1", "jest-environment-jsdom": "^29.3.1", - "juno-ui-components": "https://assets.juno.global.cloud.sap/libs/juno-ui-components@2.13.8/package.tgz", "luxon": "^3.0.0", - "messages-provider": "https://assets.juno.global.cloud.sap/libs/messages-provider@0.1.12/package.tgz", "postcss": "^8.4.21", "postcss-url": "^10.1.3", "prop-types": "^15.8.1", @@ -45,8 +42,6 @@ "sass": "^1.77.5", "shadow-dom-testing-library": "^1.7.1", "tailwindcss": "^3.3.1", - "url-state-provider": "https://assets.juno.global.cloud.sap/libs/url-state-provider@1.3.2/package.tgz", - "util": "^0.12.4", "zustand": "4.5.2" }, "scripts": { @@ -55,12 +50,9 @@ "build": "NODE_ENV=production node esbuild.config.js" }, "peerDependencies": { - "juno-ui-components": "https://assets.juno.global.cloud.sap/libs/juno-ui-components@2.13.8/package.tgz", - "messages-provider": "https://assets.juno.global.cloud.sap/libs/messages-provider@0.1.12/package.tgz", "prop-types": "^15.8.1", "react": "18.2.0", "react-dom": "18.2.0", - "url-state-provider": "https://assets.juno.global.cloud.sap/libs/url-state-provider@1.3.2/package.tgz", "zustand": "4.5.2" }, "importmapExtras": { @@ -83,5 +75,11 @@ "description": "Set to true if app is to be embedded in another existing app or page. If set to true the app won't render a page header/footer and instead render only the content. The default value is false." } }, - "appPreview": true + "appPreview": true, + "dependencies": { + "@cloudoperators/juno-communicator": "^2.2.11", + "@cloudoperators/juno-messages-provider": "^0.1.17", + "@cloudoperators/juno-ui-components": "^2.15.4", + "@cloudoperators/juno-url-state-provider-v1": "^1.3.2" + } } diff --git a/heureka/ui/src/App.js b/heureka/ui/src/App.js index 3fed757b..d1966418 100644 --- a/heureka/ui/src/App.js +++ b/heureka/ui/src/App.js @@ -5,9 +5,13 @@ import React, { useEffect } from "react" import styles from "./styles.scss" -import { AppShell, AppShellProvider, CodeBlock } from "juno-ui-components" +import { + AppShell, + AppShellProvider, + CodeBlock, +} from "@cloudoperators/juno-ui-components" import { QueryClient, QueryClientProvider } from "@tanstack/react-query" -import { MessagesProvider } from "messages-provider" +import { MessagesProvider } from "@cloudoperators/juno-messages-provider" import AsyncWorker from "./components/AsyncWorker" import StoreProvider, { useActions } from "./components/StoreProvider" import TabContext from "./components/tabs/TabContext" diff --git a/heureka/ui/src/App.test.js b/heureka/ui/src/App.test.js index 8e39ce0c..282f2757 100644 --- a/heureka/ui/src/App.test.js +++ b/heureka/ui/src/App.test.js @@ -11,7 +11,7 @@ import { render, act } from "@testing-library/react" import { screen } from "shadow-dom-testing-library" import App from "./App" -jest.mock("communicator") +jest.mock("@cloudoperators/juno-communicator") describe("logged in", () => { test("renders app", async () => { diff --git a/heureka/ui/src/components/filters/FilterPills.jsx b/heureka/ui/src/components/filters/FilterPills.jsx index e1a5e4bd..8c0db7ce 100644 --- a/heureka/ui/src/components/filters/FilterPills.jsx +++ b/heureka/ui/src/components/filters/FilterPills.jsx @@ -5,7 +5,7 @@ import React from "react" -import { Pill, Stack } from "juno-ui-components" +import { Pill, Stack } from "@cloudoperators/juno-ui-components" // import { useActiveFilters, useFilterActions } from "../../hooks/useAppStore" const FilterPills = () => { diff --git a/heureka/ui/src/components/filters/FilterSelect.jsx b/heureka/ui/src/components/filters/FilterSelect.jsx index a99091d2..d2a4a8d5 100644 --- a/heureka/ui/src/components/filters/FilterSelect.jsx +++ b/heureka/ui/src/components/filters/FilterSelect.jsx @@ -12,7 +12,7 @@ import { Select, Stack, SearchInput, -} from "juno-ui-components" +} from "@cloudoperators/juno-ui-components" // import { humanizeString } from "../../lib/utils" const FilterSelect = ({ filters }) => { diff --git a/heureka/ui/src/components/filters/Filters.jsx b/heureka/ui/src/components/filters/Filters.jsx index a24b1fb9..913b3490 100644 --- a/heureka/ui/src/components/filters/Filters.jsx +++ b/heureka/ui/src/components/filters/Filters.jsx @@ -5,7 +5,7 @@ import React, { useMemo } from "react" import { useQuery } from "@tanstack/react-query" -import { Stack } from "juno-ui-components" +import { Stack } from "@cloudoperators/juno-ui-components" import { useQueryClientFnReady } from "../StoreProvider" import FilterSelect from "./FilterSelect" diff --git a/heureka/ui/src/components/issues/IssuesList.jsx b/heureka/ui/src/components/issues/IssuesList.jsx index 5a7d62a4..ddd65387 100644 --- a/heureka/ui/src/components/issues/IssuesList.jsx +++ b/heureka/ui/src/components/issues/IssuesList.jsx @@ -9,7 +9,7 @@ import { DataGridRow, DataGridHeadCell, DataGridCell, -} from "juno-ui-components" +} from "@cloudoperators/juno-ui-components" import HintNotFound from "../shared/HintNotFound" import HintLoading from "../shared/HintLoading" import IssuesListItem from "./IssuesListItem" diff --git a/heureka/ui/src/components/issues/IssuesListController.jsx b/heureka/ui/src/components/issues/IssuesListController.jsx index ada0c09f..47a59f76 100644 --- a/heureka/ui/src/components/issues/IssuesListController.jsx +++ b/heureka/ui/src/components/issues/IssuesListController.jsx @@ -11,7 +11,7 @@ import { useActions, } from "../StoreProvider" import IssuesList from "./IssuesList" -import { Pagination } from "juno-ui-components" +import { Pagination } from "@cloudoperators/juno-ui-components" const IssuesListController = () => { const queryClientFnReady = useQueryClientFnReady() diff --git a/heureka/ui/src/components/issues/IssuesListItem.jsx b/heureka/ui/src/components/issues/IssuesListItem.jsx index 66ac22b4..eeae4a9c 100644 --- a/heureka/ui/src/components/issues/IssuesListItem.jsx +++ b/heureka/ui/src/components/issues/IssuesListItem.jsx @@ -4,7 +4,7 @@ */ import React from "react" -import { DataGridRow, DataGridCell } from "juno-ui-components" +import { DataGridRow, DataGridCell } from "@cloudoperators/juno-ui-components" import { listOfCommaSeparatedObjs } from "../shared/Helper" const IssuesListItem = ({ item }) => { diff --git a/heureka/ui/src/components/services/ServicesList.jsx b/heureka/ui/src/components/services/ServicesList.jsx index 48f98d20..69eaef76 100644 --- a/heureka/ui/src/components/services/ServicesList.jsx +++ b/heureka/ui/src/components/services/ServicesList.jsx @@ -10,7 +10,7 @@ import { DataGridRow, DataGridHeadCell, DataGridCell, -} from "juno-ui-components" +} from "@cloudoperators/juno-ui-components" import HintNotFound from "../shared/HintNotFound" import ServicesListItem from "./ServicesListItem" import HintLoading from "../shared/HintLoading" diff --git a/heureka/ui/src/components/services/ServicesListController.jsx b/heureka/ui/src/components/services/ServicesListController.jsx index c129b7ba..7eae7098 100644 --- a/heureka/ui/src/components/services/ServicesListController.jsx +++ b/heureka/ui/src/components/services/ServicesListController.jsx @@ -10,9 +10,12 @@ import { useQueryOptions, useActions, } from "../StoreProvider" -import { Pagination } from "juno-ui-components" +import { Pagination } from "@cloudoperators/juno-ui-components" import ServicesList from "./ServicesList" -import { Messages, useActions as messageActions } from "messages-provider" +import { + Messages, + useActions as messageActions, +} from "@cloudoperators/juno-messages-provider" const ServicesListController = () => { const { addMessage, resetMessages } = messageActions() diff --git a/heureka/ui/src/components/services/ServicesListItem.jsx b/heureka/ui/src/components/services/ServicesListItem.jsx index 6bce4649..177650c4 100644 --- a/heureka/ui/src/components/services/ServicesListItem.jsx +++ b/heureka/ui/src/components/services/ServicesListItem.jsx @@ -4,7 +4,7 @@ */ import React, { useMemo } from "react" -import { DataGridRow, DataGridCell } from "juno-ui-components" +import { DataGridRow, DataGridCell } from "@cloudoperators/juno-ui-components" import { listOfCommaSeparatedObjs } from "../shared/Helper" const countIssueMatches = (service) => { diff --git a/heureka/ui/src/components/shared/HintLoading.jsx b/heureka/ui/src/components/shared/HintLoading.jsx index 1112ddfd..27ff9bc3 100644 --- a/heureka/ui/src/components/shared/HintLoading.jsx +++ b/heureka/ui/src/components/shared/HintLoading.jsx @@ -4,7 +4,7 @@ */ import React from "react" -import { Stack, Spinner } from "juno-ui-components" +import { Stack, Spinner } from "@cloudoperators/juno-ui-components" const HintLoading = ({ text, ...props }) => { return ( diff --git a/heureka/ui/src/components/shared/HintNotFound.jsx b/heureka/ui/src/components/shared/HintNotFound.jsx index 8776339a..d069fb91 100644 --- a/heureka/ui/src/components/shared/HintNotFound.jsx +++ b/heureka/ui/src/components/shared/HintNotFound.jsx @@ -4,7 +4,7 @@ */ import React from "react" -import { Stack } from "juno-ui-components" +import { Stack } from "@cloudoperators/juno-ui-components" const HintNotFound = ({ text }) => { return ( diff --git a/heureka/ui/src/components/tabs/TabContext.jsx b/heureka/ui/src/components/tabs/TabContext.jsx index b50c95d4..8f577e5d 100644 --- a/heureka/ui/src/components/tabs/TabContext.jsx +++ b/heureka/ui/src/components/tabs/TabContext.jsx @@ -4,7 +4,11 @@ */ import React, { useMemo } from "react" -import { Container, TabNavigation, TabNavigationItem } from "juno-ui-components" +import { + Container, + TabNavigation, + TabNavigationItem, +} from "@cloudoperators/juno-ui-components" import TabPanel from "./TabPanel" import { useActions, useActiveTab } from "../StoreProvider" diff --git a/heureka/ui/src/hooks/useCommunication.js b/heureka/ui/src/hooks/useCommunication.js index 7189c412..bf8c0247 100644 --- a/heureka/ui/src/hooks/useCommunication.js +++ b/heureka/ui/src/hooks/useCommunication.js @@ -4,7 +4,7 @@ */ import React, { useReducer, useEffect, useCallback } from "react" -import { broadcast, get, watch } from "communicator" +import { broadcast, get, watch } from "@cloudoperators/juno-communicator" import useStore from "./useStore" const useCommunication = () => { diff --git a/heureka/ui/src/hooks/useUrlState.js b/heureka/ui/src/hooks/useUrlState.js index 160dec5a..aaf6aa4a 100644 --- a/heureka/ui/src/hooks/useUrlState.js +++ b/heureka/ui/src/hooks/useUrlState.js @@ -4,7 +4,7 @@ */ import { useState, useEffect } from "react" -import { registerConsumer } from "url-state-provider" +import { registerConsumer } from "@cloudoperators/juno-url-state-provider-v1" import { useActions, useActiveTab } from "../components/StoreProvider" const DEFAULT_KEY = "heureka" diff --git a/heureka/ui/tailwind.config.js b/heureka/ui/tailwind.config.js index 4e3eb777..cc5f78ba 100644 --- a/heureka/ui/tailwind.config.js +++ b/heureka/ui/tailwind.config.js @@ -17,7 +17,9 @@ function withOpacity(variableName) { } module.exports = { - presets: [require("juno-ui-components/build/lib/tailwind.config")], + presets: [ + require("@cloudoperators/juno-ui-components/build/lib/tailwind.config"), + ], prefix: "", // important, do not change content: ["./src/**/*.{js,jsx,ts,tsx}", "./public/index.html"], corePlugins: {