diff --git a/scm-ui/ui-components/package.json b/scm-ui/ui-components/package.json index cc0773fff1..c4c8eb61fe 100644 --- a/scm-ui/ui-components/package.json +++ b/scm-ui/ui-components/package.json @@ -23,6 +23,7 @@ "@storybook/addon-storyshots": "^5.2.3", "@storybook/react": "^5.2.3", "@types/classnames": "^2.2.9", + "@types/css": "^0.0.31", "@types/enzyme": "^3.10.3", "@types/fetch-mock": "^7.3.1", "@types/jest": "^24.0.19", @@ -36,6 +37,8 @@ "@types/refractor": "^2.8.0", "@types/storybook__addon-storyshots": "^5.1.1", "@types/styled-components": "^5.1.0", + "@types/to-camel-case": "^1.0.0", + "css": "^3.0.0", "enzyme-context": "^1.1.2", "enzyme-context-react-router-4": "^2.0.0", "fetch-mock": "^7.5.1", @@ -43,6 +46,7 @@ "raf": "^3.4.0", "react-test-renderer": "^16.10.2", "storybook-addon-i18next": "^1.2.1", + "to-camel-case": "^1.0.0", "typescript": "^3.7.2", "worker-plugin": "^3.2.0" }, diff --git a/scm-ui/ui-styles/scripts/build-syntax-highlighting-javascript.js b/scm-ui/ui-components/scripts/build-syntax-highlighting-javascript.js similarity index 100% rename from scm-ui/ui-styles/scripts/build-syntax-highlighting-javascript.js rename to scm-ui/ui-components/scripts/build-syntax-highlighting-javascript.js diff --git a/scm-ui/ui-components/src/SyntaxHighlighter.tsx b/scm-ui/ui-components/src/SyntaxHighlighter.tsx index dd87020403..852335e161 100644 --- a/scm-ui/ui-components/src/SyntaxHighlighter.tsx +++ b/scm-ui/ui-components/src/SyntaxHighlighter.tsx @@ -25,7 +25,7 @@ import React from "react"; import { PrismAsyncLight as ReactSyntaxHighlighter } from "react-syntax-highlighter"; // eslint-disable-next-line no-restricted-imports -import highlightingTheme from "@scm-manager/ui-styles/src/syntax-highlighting"; +import highlightingTheme from "./syntax-highlighting"; type Props = { language?: string; diff --git a/scm-ui/ui-components/src/__snapshots__/storyshots.test.ts.snap b/scm-ui/ui-components/src/__snapshots__/storyshots.test.ts.snap index 2129da9f5e..c2b467e9b6 100644 --- a/scm-ui/ui-components/src/__snapshots__/storyshots.test.ts.snap +++ b/scm-ui/ui-components/src/__snapshots__/storyshots.test.ts.snap @@ -4391,7 +4391,7 @@ exports[`Storyshots Diff Binaries 1`] = ` - add + modify