docusaurus-theme-openapi-docs 0.0.0-beta.641 → 0.0.0-beta.643

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.
@@ -1,8 +1,8 @@
1
1
  :root {
2
2
  --bash-background-color: transparent;
3
3
  --bash-border-radius: none;
4
- --code-tab-logo-width: 26px;
5
- --code-tab-logo-height: 26px;
4
+ --code-tab-logo-width: 24px;
5
+ --code-tab-logo-height: 24px;
6
6
  }
7
7
 
8
8
  [data-theme="dark"] {
@@ -11,7 +11,13 @@
11
11
  }
12
12
 
13
13
  .openapi-tabs__code-list-container {
14
- display: table-row-group;
14
+ display: flex;
15
+ justify-content: flex-start;
16
+ padding-bottom: 0.6rem;
17
+ }
18
+
19
+ .openapi-tabs__code-content {
20
+ margin-top: unset !important;
15
21
  }
16
22
 
17
23
  .openapi-demo__code-block code {
@@ -122,7 +122,7 @@ function TabContent({ lazy, children, selectedValue }) {
122
122
  return cloneElement(selectedTabItem, { className: "margin-top--md" });
123
123
  }
124
124
  return (
125
- <div className="margin-top--md">
125
+ <div className="margin-top--md openapi-tabs__code-content">
126
126
  {children.map((tabItem, i) =>
127
127
  cloneElement(tabItem, {
128
128
  key: i,
@@ -21,14 +21,14 @@ const Response_1 = __importDefault(require("@theme/ApiDemoPanel/Response"));
21
21
  function ApiDemoPanel({ item, infoPath }) {
22
22
  const postman = new postman_collection_1.default.Request(item.postman);
23
23
  return react_1.default.createElement(
24
- "div",
24
+ react_1.default.Fragment,
25
25
  null,
26
- react_1.default.createElement(Request_1.default, { item: item }),
27
- react_1.default.createElement(Response_1.default, null),
28
26
  react_1.default.createElement(Curl_1.default, {
29
27
  postman: postman,
30
28
  codeSamples: item["x-code-samples"] ?? [],
31
- })
29
+ }),
30
+ react_1.default.createElement(Request_1.default, { item: item }),
31
+ react_1.default.createElement(Response_1.default, null)
32
32
  );
33
33
  }
34
34
  exports.default = ApiDemoPanel;
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-beta.641",
4
+ "version": "0.0.0-beta.643",
5
5
  "license": "MIT",
6
6
  "keywords": [
7
7
  "openapi",
@@ -48,7 +48,7 @@
48
48
  "buffer": "^6.0.3",
49
49
  "clsx": "^1.1.1",
50
50
  "crypto-js": "^4.1.1",
51
- "docusaurus-plugin-openapi-docs": "0.0.0-beta.641",
51
+ "docusaurus-plugin-openapi-docs": "0.0.0-beta.643",
52
52
  "docusaurus-plugin-sass": "^0.2.3",
53
53
  "file-saver": "^2.0.5",
54
54
  "immer": "^9.0.7",
@@ -73,5 +73,5 @@
73
73
  "engines": {
74
74
  "node": ">=14"
75
75
  },
76
- "gitHead": "6fffbfb92ce612b52339a7b3b4dbbfcc4c628f61"
76
+ "gitHead": "a39283387e2ef0c1af3a76f4f69aed4ceb0cf33e"
77
77
  }
@@ -1,8 +1,8 @@
1
1
  :root {
2
2
  --bash-background-color: transparent;
3
3
  --bash-border-radius: none;
4
- --code-tab-logo-width: 26px;
5
- --code-tab-logo-height: 26px;
4
+ --code-tab-logo-width: 24px;
5
+ --code-tab-logo-height: 24px;
6
6
  }
7
7
 
8
8
  [data-theme="dark"] {
@@ -11,7 +11,13 @@
11
11
  }
12
12
 
13
13
  .openapi-tabs__code-list-container {
14
- display: table-row-group;
14
+ display: flex;
15
+ justify-content: flex-start;
16
+ padding-bottom: 0.6rem;
17
+ }
18
+
19
+ .openapi-tabs__code-content {
20
+ margin-top: unset !important;
15
21
  }
16
22
 
17
23
  .openapi-demo__code-block code {
@@ -122,7 +122,7 @@ function TabContent({ lazy, children, selectedValue }) {
122
122
  return cloneElement(selectedTabItem, { className: "margin-top--md" });
123
123
  }
124
124
  return (
125
- <div className="margin-top--md">
125
+ <div className="margin-top--md openapi-tabs__code-content">
126
126
  {children.map((tabItem, i) =>
127
127
  cloneElement(tabItem, {
128
128
  key: i,
@@ -23,14 +23,14 @@ function ApiDemoPanel({
23
23
  const postman = new sdk.Request(item.postman);
24
24
 
25
25
  return (
26
- <div>
27
- <Request item={item} />
28
- <Response />
26
+ <>
29
27
  <Curl
30
28
  postman={postman}
31
29
  codeSamples={(item as any)["x-code-samples"] ?? []}
32
30
  />
33
- </div>
31
+ <Request item={item} />
32
+ <Response />
33
+ </>
34
34
  );
35
35
  }
36
36