From d6f9b37863fd41f5c3c56869bfa3aad6f65a89f2 Mon Sep 17 00:00:00 2001 From: mathis <37186532+maaaathis@users.noreply.github.com> Date: Tue, 8 Oct 2024 08:48:52 +0000 Subject: [PATCH 1/2] chore: bump @mittwald/flow-react-components --- package-lock.json | 32 +++++++++++++++++--------------- package.json | 2 +- 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/package-lock.json b/package-lock.json index f50b5b53..ddf26413 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,7 +14,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", @@ -3629,14 +3629,14 @@ } }, "node_modules/@mittwald/flow-react-components": { - "version": "0.1.0-alpha.271", - "resolved": "https://registry.npmjs.org/@mittwald/flow-react-components/-/flow-react-components-0.1.0-alpha.271.tgz", - "integrity": "sha512-d5x1KVMQB+7Cb7aOppStr+pl4wc4i/fJFZlqq6euvb0OKfCS+kUup8lvB2rRAaIH8491xjlvi+8KelGb7rgqTw==", + "version": "0.1.0-alpha.274", + "resolved": "https://registry.npmjs.org/@mittwald/flow-react-components/-/flow-react-components-0.1.0-alpha.274.tgz", + "integrity": "sha512-Alkynec9LokJIPnSBFpZ7hmgljDmNqXu+xE9r6ylIiakZTEI+/VRH+VFsE7zmLbVAi//BSq43DF0L58HK6NE7w==", "dependencies": { "@chakra-ui/live-region": "^2.1.0", "@internationalized/date": "^3.5.5", "@internationalized/string-compiler": "^3.2.4", - "@mittwald/react-tunnel": "^0.1.0-alpha.271", + "@mittwald/react-tunnel": "^0.1.0-alpha.274", "@mittwald/react-use-promise": "^2.5.0", "@react-aria/utils": "^3.25.2", "@react-types/shared": "^3.24.1", @@ -3709,9 +3709,9 @@ } }, "node_modules/@mittwald/react-tunnel": { - "version": "0.1.0-alpha.271", - "resolved": "https://registry.npmjs.org/@mittwald/react-tunnel/-/react-tunnel-0.1.0-alpha.271.tgz", - "integrity": "sha512-s026BRw/PjOZv2iE1tXFtBDg14fFzgbisVmuzJivkaP2vKdZoMtxn+gXJtpkg692u17/dni2J/ign1S1XswKbw==", + "version": "0.1.0-alpha.274", + "resolved": "https://registry.npmjs.org/@mittwald/react-tunnel/-/react-tunnel-0.1.0-alpha.274.tgz", + "integrity": "sha512-kg45nZcntSV1+H6lpXAF6SF30VS7e61expFLx0AnaQe+Zf7lzetQdRk2sQDQCuDd275DXD7PAp1D3m57nOyHSw==", "dependencies": { "mobx": "^6.13.2", "mobx-react-lite": "^4.0.7" @@ -14303,6 +14303,7 @@ "version": "6.13.3", "resolved": "https://registry.npmjs.org/mobx/-/mobx-6.13.3.tgz", "integrity": "sha512-YtAS+ZMbdpbHYUU4ESht3na8KiX11KuMT1yOiKtbKlQ0GZkHDYPKyEw/Tdp7h7aHyLrTWj2TBaSNJ6bCr638iQ==", + "license": "MIT", "funding": { "type": "opencollective", "url": "https://opencollective.com/mobx" @@ -14312,6 +14313,7 @@ "version": "4.0.7", "resolved": "https://registry.npmjs.org/mobx-react-lite/-/mobx-react-lite-4.0.7.tgz", "integrity": "sha512-RjwdseshK9Mg8On5tyJZHtGD+J78ZnCnRaxeQDSiciKVQDUbfZcXhmld0VMxAwvcTnPEHZySGGewm467Fcpreg==", + "license": "MIT", "dependencies": { "use-sync-external-store": "^1.2.0" }, @@ -21495,14 +21497,14 @@ } }, "@mittwald/flow-react-components": { - "version": "0.1.0-alpha.271", - "resolved": "https://registry.npmjs.org/@mittwald/flow-react-components/-/flow-react-components-0.1.0-alpha.271.tgz", - "integrity": "sha512-d5x1KVMQB+7Cb7aOppStr+pl4wc4i/fJFZlqq6euvb0OKfCS+kUup8lvB2rRAaIH8491xjlvi+8KelGb7rgqTw==", + "version": "0.1.0-alpha.274", + "resolved": "https://registry.npmjs.org/@mittwald/flow-react-components/-/flow-react-components-0.1.0-alpha.274.tgz", + "integrity": "sha512-Alkynec9LokJIPnSBFpZ7hmgljDmNqXu+xE9r6ylIiakZTEI+/VRH+VFsE7zmLbVAi//BSq43DF0L58HK6NE7w==", "requires": { "@chakra-ui/live-region": "^2.1.0", "@internationalized/date": "^3.5.5", "@internationalized/string-compiler": "^3.2.4", - "@mittwald/react-tunnel": "^0.1.0-alpha.271", + "@mittwald/react-tunnel": "^0.1.0-alpha.274", "@mittwald/react-use-promise": "^2.5.0", "@react-aria/utils": "^3.25.2", "@react-types/shared": "^3.24.1", @@ -21544,9 +21546,9 @@ } }, "@mittwald/react-tunnel": { - "version": "0.1.0-alpha.271", - "resolved": "https://registry.npmjs.org/@mittwald/react-tunnel/-/react-tunnel-0.1.0-alpha.271.tgz", - "integrity": "sha512-s026BRw/PjOZv2iE1tXFtBDg14fFzgbisVmuzJivkaP2vKdZoMtxn+gXJtpkg692u17/dni2J/ign1S1XswKbw==", + "version": "0.1.0-alpha.274", + "resolved": "https://registry.npmjs.org/@mittwald/react-tunnel/-/react-tunnel-0.1.0-alpha.274.tgz", + "integrity": "sha512-kg45nZcntSV1+H6lpXAF6SF30VS7e61expFLx0AnaQe+Zf7lzetQdRk2sQDQCuDd275DXD7PAp1D3m57nOyHSw==", "requires": { "mobx": "^6.13.2", "mobx-react-lite": "^4.0.7" diff --git a/package.json b/package.json index c681b34f..3ab1eeb9 100644 --- a/package.json +++ b/package.json @@ -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", From a02477847c65d7feb149d2e254f2d5de98eb39f2 Mon Sep 17 00:00:00 2001 From: mathis <37186532+maaaathis@users.noreply.github.com> Date: Tue, 8 Oct 2024 11:28:17 +0200 Subject: [PATCH 2/2] fix: InlineAlert & StatusBadge renamed (#258) --- src/components/OperationHint/index.tsx | 6 +++--- src/components/openapi/OperationDocCard.tsx | 4 ++-- src/components/openapi/OperationMetadata.tsx | 1 - src/components/openapi/RequiredOptional.tsx | 6 +++--- src/theme/Admonition/index.tsx | 6 +++--- 5 files changed, 11 insertions(+), 12 deletions(-) diff --git a/src/components/OperationHint/index.tsx b/src/components/OperationHint/index.tsx index c42a80a7..5ec18be8 100644 --- a/src/components/OperationHint/index.tsx +++ b/src/components/OperationHint/index.tsx @@ -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"; @@ -26,7 +26,7 @@ export default function OperationHint({ ); return ( - + {heading}: @@ -40,6 +40,6 @@ export default function OperationHint({ ))} - + ); } diff --git a/src/components/openapi/OperationDocCard.tsx b/src/components/openapi/OperationDocCard.tsx index 2c10b768..98bec8ec 100644 --- a/src/components/openapi/OperationDocCard.tsx +++ b/src/components/openapi/OperationDocCard.tsx @@ -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"; @@ -47,7 +47,7 @@ export default function OperationDocCard(p: Props) { {deprecated ? ( - deprecated! + deprecated! ) : null} diff --git a/src/components/openapi/OperationMetadata.tsx b/src/components/openapi/OperationMetadata.tsx index 58899a1e..ff533151 100644 --- a/src/components/openapi/OperationMetadata.tsx +++ b/src/components/openapi/OperationMetadata.tsx @@ -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"; diff --git a/src/components/openapi/RequiredOptional.tsx b/src/components/openapi/RequiredOptional.tsx index 52d37a7c..effafcb3 100644 --- a/src/components/openapi/RequiredOptional.tsx +++ b/src/components/openapi/RequiredOptional.tsx @@ -1,9 +1,9 @@ -import StatusBadge from "@mittwald/flow-react-components/StatusBadge"; +import AlertBadge from "@mittwald/flow-react-components/AlertBadge"; export function Required() { - return required; + return required; } export function Optional() { - return optional; + return optional; } diff --git a/src/theme/Admonition/index.tsx b/src/theme/Admonition/index.tsx index 724ff0ce..7529dbd5 100644 --- a/src/theme/Admonition/index.tsx +++ b/src/theme/Admonition/index.tsx @@ -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"; @@ -16,7 +16,7 @@ export default function AdmonitionWrapper(props: Props): JSX.Element { }; return ( - + {props.title ?? translate({ @@ -25,7 +25,7 @@ export default function AdmonitionWrapper(props: Props): JSX.Element { })} {props.children} - + ); // return (