Skip to content

Commit

Permalink
Merge branch 'master' into add-developer-note-to-changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
Henning3110 authored Oct 8, 2024
2 parents 1c27a40 + a024778 commit 4b90518
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 28 deletions.
32 changes: 17 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"@docusaurus/preset-classic": "^3.5.2",
"@docusaurus/theme-mermaid": "^3.4.0",
"@mdx-js/react": "^3.0.0",
"@mittwald/flow-react-components": "^0.1.0-alpha.271",
"@mittwald/flow-react-components": "^0.1.0-alpha.274",
"clsx": "^2.1.1",
"openapi-types": "^12.1.3",
"prism-react-renderer": "^2.4.0",
Expand Down
6 changes: 3 additions & 3 deletions src/components/OperationHint/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react";
import Translate from "@docusaurus/Translate";
import OperationDocCardById from "@site/src/components/openapi/OperationDocCardById";
import InlineAlert from "@mittwald/flow-react-components/InlineAlert";
import Alert from "@mittwald/flow-react-components/Alert";
import Content from "@mittwald/flow-react-components/Content";
import Heading from "@mittwald/flow-react-components/Heading";
import styles from "./styles.module.css";
Expand All @@ -26,7 +26,7 @@ export default function OperationHint({
);

return (
<InlineAlert status="info">
<Alert status="info">
<Heading>{heading}:</Heading>
<Content>
<div className={styles.operations}>
Expand All @@ -40,6 +40,6 @@ export default function OperationHint({
))}
</div>
</Content>
</InlineAlert>
</Alert>
);
}
4 changes: 2 additions & 2 deletions src/components/openapi/OperationDocCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import styles from "./OperationDocCard.module.css";
import clsx from "clsx";
import OperationPath from "@site/src/components/openapi/OperationPath";
import Markdown from "react-markdown";
import StatusBadge from "@mittwald/flow-react-components/StatusBadge";
import AlertBadge from "@mittwald/flow-react-components/AlertBadge";
import { APIVersion, OperationWithMeta } from "@site/src/openapi/specs";
import isDeprecated from "@site/src/openapi/isDeprecated";
import buildDocumentId from "@site/src/openapi/buildDocumentId";
Expand Down Expand Up @@ -47,7 +47,7 @@ export default function OperationDocCard(p: Props) {
</div>
</div>
{deprecated ? (
<StatusBadge status="warning">deprecated!</StatusBadge>
<AlertBadge status="warning">deprecated!</AlertBadge>
) : null}
</div>
</Link>
Expand Down
1 change: 0 additions & 1 deletion src/components/openapi/OperationMetadata.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import {
import { Heading } from "@mittwald/flow-react-components/Heading";
import { Text } from "@mittwald/flow-react-components/Text";
import { Button } from "@mittwald/flow-react-components/Button";
import InlineAlert from "@mittwald/flow-react-components/InlineAlert";
import styles from "./OperationMetadata.module.css";
import Translate from "@docusaurus/Translate";
import Admonition from "@theme/Admonition";
Expand Down
6 changes: 3 additions & 3 deletions src/components/openapi/RequiredOptional.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import StatusBadge from "@mittwald/flow-react-components/StatusBadge";
import AlertBadge from "@mittwald/flow-react-components/AlertBadge";

export function Required() {
return <StatusBadge status="warning">required</StatusBadge>;
return <AlertBadge status="warning">required</AlertBadge>;
}

export function Optional() {
return <StatusBadge status="info">optional</StatusBadge>;
return <AlertBadge status="info">optional</AlertBadge>;
}
6 changes: 3 additions & 3 deletions src/theme/Admonition/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react";
import type AdmonitionType from "@theme/Admonition";
import type { WrapperProps } from "@docusaurus/types";
import InlineAlert from "@mittwald/flow-react-components/InlineAlert";
import Alert from "@mittwald/flow-react-components/Alert";
import Heading from "@mittwald/flow-react-components/Heading";
import Content from "@mittwald/flow-react-components/Content";
import { translate } from "@docusaurus/Translate";
Expand All @@ -16,7 +16,7 @@ export default function AdmonitionWrapper(props: Props): JSX.Element {
};

return (
<InlineAlert status={status[props.type]}>
<Alert status={status[props.type]}>
<Heading>
{props.title ??
translate({
Expand All @@ -25,7 +25,7 @@ export default function AdmonitionWrapper(props: Props): JSX.Element {
})}
</Heading>
<Content>{props.children}</Content>
</InlineAlert>
</Alert>
);

// return (
Expand Down

0 comments on commit 4b90518

Please sign in to comment.