docusaurus-theme-openapi-docs 1.7.0 → 1.7.2

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.
@@ -40,14 +40,16 @@ function MethodEndpoint({
40
40
  method,
41
41
  path
42
42
  }) {
43
- return <pre style={{
43
+ return <pre className="openapi-method-endpoint" style={{
44
44
  background: "var(--openapi-card-background-color)",
45
45
  borderRadius: "var(--openapi-card-border-radius)"
46
46
  }}>
47
47
  <span style={methodStyle} className={"badge badge--" + colorForMethod(method)}>
48
48
  {method.toUpperCase()}
49
49
  </span>{" "}
50
- <span>{path.replace(/{([a-z0-9-_]+)}/gi, ":$1")}</span>
50
+ <span className="openapi-method-endpoint__path">
51
+ {path.replace(/{([a-z0-9-_]+)}/gi, ":$1")}
52
+ </span>
51
53
  </pre>;
52
54
  }
53
55
  var _default = MethodEndpoint;
@@ -32,6 +32,7 @@ function colorForMethod(method) {
32
32
  function MethodEndpoint({ method, path }) {
33
33
  return (
34
34
  <pre
35
+ className="openapi-method-endpoint"
35
36
  style={{
36
37
  background: "var(--openapi-card-background-color)",
37
38
  borderRadius: "var(--openapi-card-border-radius)",
@@ -43,7 +44,9 @@ function MethodEndpoint({ method, path }) {
43
44
  >
44
45
  {method.toUpperCase()}
45
46
  </span>{" "}
46
- <span>{path.replace(/{([a-z0-9-_]+)}/gi, ":$1")}</span>
47
+ <span className="openapi-method-endpoint__path">
48
+ {path.replace(/{([a-z0-9-_]+)}/gi, ":$1")}
49
+ </span>
47
50
  </pre>
48
51
  );
49
52
  }
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": "1.7.0",
4
+ "version": "1.7.2",
5
5
  "license": "MIT",
6
6
  "keywords": [
7
7
  "openapi",
@@ -51,7 +51,7 @@
51
51
  "buffer": "^6.0.3",
52
52
  "clsx": "^1.1.1",
53
53
  "crypto-js": "^4.1.1",
54
- "docusaurus-plugin-openapi-docs": "^1.7.0",
54
+ "docusaurus-plugin-openapi-docs": "^1.7.2",
55
55
  "file-saver": "^2.0.5",
56
56
  "immer": "^9.0.7",
57
57
  "lodash": "^4.17.20",
@@ -74,5 +74,5 @@
74
74
  "engines": {
75
75
  "node": ">=14"
76
76
  },
77
- "gitHead": "4b9ac927c85b56054c8d93336b1b5e282ab309e7"
77
+ "gitHead": "d6450052aff8a6fc691aef3d38bf835f4c70b1ef"
78
78
  }
@@ -40,6 +40,7 @@ export interface Props {
40
40
  function MethodEndpoint({ method, path }: Props) {
41
41
  return (
42
42
  <pre
43
+ className="openapi-method-endpoint"
43
44
  style={{
44
45
  background: "var(--openapi-card-background-color)",
45
46
  borderRadius: "var(--openapi-card-border-radius)",
@@ -51,7 +52,9 @@ function MethodEndpoint({ method, path }: Props) {
51
52
  >
52
53
  {method.toUpperCase()}
53
54
  </span>{" "}
54
- <span>{path.replace(/{([a-z0-9-_]+)}/gi, ":$1")}</span>
55
+ <span className="openapi-method-endpoint__path">
56
+ {path.replace(/{([a-z0-9-_]+)}/gi, ":$1")}
57
+ </span>
55
58
  </pre>
56
59
  );
57
60
  }