docusaurus-theme-openapi-docs 0.0.0-409 → 0.0.0-412

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = ApiLogo;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _themeCommon = require("@docusaurus/theme-common");
11
+
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
+
14
+ /* ============================================================================
15
+ * Copyright (c) Palo Alto Networks
16
+ *
17
+ * This source code is licensed under the MIT license found in the
18
+ * LICENSE file in the root directory of this source tree.
19
+ * ========================================================================== */
20
+ function ApiLogo(props) {
21
+ const {
22
+ colorMode
23
+ } = (0, _themeCommon.useColorMode)();
24
+ const {
25
+ logo,
26
+ darkLogo
27
+ } = props;
28
+ return logo ? <img alt={colorMode === "dark" && darkLogo ? darkLogo.altText : logo.altText} src={colorMode === "dark" && darkLogo ? darkLogo.url : logo.url} width="250px" /> : <div />;
29
+ }
@@ -0,0 +1,27 @@
1
+ /* ============================================================================
2
+ * Copyright (c) Palo Alto Networks
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ * ========================================================================== */
7
+
8
+ import React from "react";
9
+
10
+ import CodeBlock from "@theme/CodeBlock";
11
+
12
+ import styles from "./styles.module.css";
13
+
14
+ function ResponseSamples({ responseExample }) {
15
+ return (
16
+ <div className={styles.responseSamplesContainer}>
17
+ <CodeBlock
18
+ language="javascript"
19
+ className={styles.responseSamplesCodeBlock}
20
+ >
21
+ {responseExample}
22
+ </CodeBlock>
23
+ </div>
24
+ );
25
+ }
26
+
27
+ export default ResponseSamples;
@@ -0,0 +1,7 @@
1
+ .responseSamplesContainer {
2
+ margin-top: 2rem;
3
+ }
4
+
5
+ .responseSamplesTabItem {
6
+ width: 100%;
7
+ }
@@ -38,14 +38,6 @@
38
38
  display: none;
39
39
  }
40
40
 
41
- .schemaTabsContainer {
42
- display: flex;
43
- align-items: center;
44
- max-width: 390px;
45
- padding-left: 3px;
46
- overflow: hidden;
47
- }
48
-
49
41
  .schemaTabsListContainer {
50
42
  padding: 0 0.25rem;
51
43
  overflow-y: hidden;
@@ -0,0 +1,21 @@
1
+ /* ============================================================================
2
+ * Copyright (c) Palo Alto Networks
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ * ========================================================================== */
7
+ import React from "react";
8
+ import { useColorMode } from "@docusaurus/theme-common";
9
+ export default function ApiLogo(props) {
10
+ const { colorMode } = useColorMode();
11
+ const { logo, darkLogo } = props;
12
+ return logo ? (
13
+ <img
14
+ alt={colorMode === "dark" && darkLogo ? darkLogo.altText : logo.altText}
15
+ src={colorMode === "dark" && darkLogo ? darkLogo.url : logo.url}
16
+ width="250px"
17
+ />
18
+ ) : (
19
+ <div />
20
+ );
21
+ }
@@ -0,0 +1,27 @@
1
+ /* ============================================================================
2
+ * Copyright (c) Palo Alto Networks
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ * ========================================================================== */
7
+
8
+ import React from "react";
9
+
10
+ import CodeBlock from "@theme/CodeBlock";
11
+
12
+ import styles from "./styles.module.css";
13
+
14
+ function ResponseSamples({ responseExample }) {
15
+ return (
16
+ <div className={styles.responseSamplesContainer}>
17
+ <CodeBlock
18
+ language="javascript"
19
+ className={styles.responseSamplesCodeBlock}
20
+ >
21
+ {responseExample}
22
+ </CodeBlock>
23
+ </div>
24
+ );
25
+ }
26
+
27
+ export default ResponseSamples;
@@ -0,0 +1,7 @@
1
+ .responseSamplesContainer {
2
+ margin-top: 2rem;
3
+ }
4
+
5
+ .responseSamplesTabItem {
6
+ width: 100%;
7
+ }
@@ -38,14 +38,6 @@
38
38
  display: none;
39
39
  }
40
40
 
41
- .schemaTabsContainer {
42
- display: flex;
43
- align-items: center;
44
- max-width: 390px;
45
- padding-left: 3px;
46
- overflow: hidden;
47
- }
48
-
49
41
  .schemaTabsListContainer {
50
42
  padding: 0 0.25rem;
51
43
  overflow-y: hidden;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "docusaurus-theme-openapi-docs",
3
3
  "description": "OpenAPI theme for Docusaurus.",
4
- "version": "0.0.0-409",
4
+ "version": "0.0.0-412",
5
5
  "license": "MIT",
6
6
  "keywords": [
7
7
  "openapi",
@@ -50,7 +50,7 @@
50
50
  "buffer": "^6.0.3",
51
51
  "clsx": "^1.1.1",
52
52
  "crypto-js": "^4.1.1",
53
- "docusaurus-plugin-openapi-docs": "0.0.0-409",
53
+ "docusaurus-plugin-openapi-docs": "0.0.0-412",
54
54
  "immer": "^9.0.7",
55
55
  "lodash": "^4.17.20",
56
56
  "process": "^0.11.10",
@@ -68,5 +68,5 @@
68
68
  "engines": {
69
69
  "node": ">=14"
70
70
  },
71
- "gitHead": "6cfbade709c0e80f79e91b3e4fa11dbf416490b5"
71
+ "gitHead": "6e093b9e84f83993a01f0922aaddb27d367d7485"
72
72
  }
@@ -0,0 +1,25 @@
1
+ /* ============================================================================
2
+ * Copyright (c) Palo Alto Networks
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ * ========================================================================== */
7
+
8
+ import React from "react";
9
+
10
+ import { useColorMode } from "@docusaurus/theme-common";
11
+
12
+ export default function ApiLogo(props: any): JSX.Element {
13
+ const { colorMode } = useColorMode();
14
+ const { logo, darkLogo } = props;
15
+
16
+ return logo ? (
17
+ <img
18
+ alt={colorMode === "dark" && darkLogo ? darkLogo.altText : logo.altText}
19
+ src={colorMode === "dark" && darkLogo ? darkLogo.url : logo.url}
20
+ width="250px"
21
+ />
22
+ ) : (
23
+ <div />
24
+ );
25
+ }
@@ -0,0 +1,27 @@
1
+ /* ============================================================================
2
+ * Copyright (c) Palo Alto Networks
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ * ========================================================================== */
7
+
8
+ import React from "react";
9
+
10
+ import CodeBlock from "@theme/CodeBlock";
11
+
12
+ import styles from "./styles.module.css";
13
+
14
+ function ResponseSamples({ responseExample }) {
15
+ return (
16
+ <div className={styles.responseSamplesContainer}>
17
+ <CodeBlock
18
+ language="javascript"
19
+ className={styles.responseSamplesCodeBlock}
20
+ >
21
+ {responseExample}
22
+ </CodeBlock>
23
+ </div>
24
+ );
25
+ }
26
+
27
+ export default ResponseSamples;
@@ -0,0 +1,7 @@
1
+ .responseSamplesContainer {
2
+ margin-top: 2rem;
3
+ }
4
+
5
+ .responseSamplesTabItem {
6
+ width: 100%;
7
+ }
@@ -38,14 +38,6 @@
38
38
  display: none;
39
39
  }
40
40
 
41
- .schemaTabsContainer {
42
- display: flex;
43
- align-items: center;
44
- max-width: 390px;
45
- padding-left: 3px;
46
- overflow: hidden;
47
- }
48
-
49
41
  .schemaTabsListContainer {
50
42
  padding: 0 0.25rem;
51
43
  overflow-y: hidden;