docusaurus-theme-openapi-docs 0.0.0-beta.666 → 0.0.0-beta.668
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.
|
@@ -79,3 +79,41 @@
|
|
|
79
79
|
.openapi-response__status-headers {
|
|
80
80
|
margin-left: -1rem;
|
|
81
81
|
}
|
|
82
|
+
|
|
83
|
+
/* loading spinner */
|
|
84
|
+
.openapi-response__lds-ring {
|
|
85
|
+
display: inline-block;
|
|
86
|
+
position: relative;
|
|
87
|
+
width: 80px;
|
|
88
|
+
height: 80px;
|
|
89
|
+
}
|
|
90
|
+
.openapi-response__lds-ring div {
|
|
91
|
+
box-sizing: border-box;
|
|
92
|
+
display: block;
|
|
93
|
+
position: absolute;
|
|
94
|
+
width: 64px;
|
|
95
|
+
height: 64px;
|
|
96
|
+
margin: 8px;
|
|
97
|
+
border: 5px solid #dfc;
|
|
98
|
+
border-radius: 50%;
|
|
99
|
+
animation: openapi-response__lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1)
|
|
100
|
+
infinite;
|
|
101
|
+
border-color: var(--ifm-color-primary) transparent transparent transparent;
|
|
102
|
+
}
|
|
103
|
+
.openapi-response__lds-ring div:nth-child(1) {
|
|
104
|
+
animation-delay: -0.45s;
|
|
105
|
+
}
|
|
106
|
+
.openapi-response__lds-ring div:nth-child(2) {
|
|
107
|
+
animation-delay: -0.3s;
|
|
108
|
+
}
|
|
109
|
+
.openapi-response__lds-ring div:nth-child(3) {
|
|
110
|
+
animation-delay: -0.15s;
|
|
111
|
+
}
|
|
112
|
+
@keyframes openapi-response__lds-ring {
|
|
113
|
+
0% {
|
|
114
|
+
transform: rotate(0deg);
|
|
115
|
+
}
|
|
116
|
+
100% {
|
|
117
|
+
transform: rotate(360deg);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
@@ -14,7 +14,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
14
14
|
const react_1 = __importDefault(require("react"));
|
|
15
15
|
const theme_common_1 = require("@docusaurus/theme-common");
|
|
16
16
|
const internal_1 = require("@docusaurus/theme-common/internal");
|
|
17
|
-
const react_2 = require("@nextui-org/react");
|
|
18
17
|
const ApiCodeBlock_1 = __importDefault(
|
|
19
18
|
require("@theme/ApiExplorer/ApiCodeBlock")
|
|
20
19
|
);
|
|
@@ -169,7 +168,14 @@ function Response({ item }) {
|
|
|
169
168
|
? react_1.default.createElement(
|
|
170
169
|
"div",
|
|
171
170
|
{ className: "openapi-explorer__loading-container" },
|
|
172
|
-
react_1.default.createElement(
|
|
171
|
+
react_1.default.createElement(
|
|
172
|
+
"div",
|
|
173
|
+
{ className: "openapi-response__lds-ring" },
|
|
174
|
+
react_1.default.createElement("div", null),
|
|
175
|
+
react_1.default.createElement("div", null),
|
|
176
|
+
react_1.default.createElement("div", null),
|
|
177
|
+
react_1.default.createElement("div", null)
|
|
178
|
+
)
|
|
173
179
|
)
|
|
174
180
|
: react_1.default.createElement(
|
|
175
181
|
"p",
|
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.
|
|
4
|
+
"version": "0.0.0-beta.668",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"openapi",
|
|
@@ -37,14 +37,13 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@docusaurus/theme-common": ">=2.3.0 <2.5.0",
|
|
39
39
|
"@hookform/error-message": "^2.0.1",
|
|
40
|
-
"@nextui-org/react": "^1.0.0-beta.12",
|
|
41
40
|
"@paloaltonetworks/postman-code-generators": "1.1.15-patch.2",
|
|
42
41
|
"@paloaltonetworks/postman-collection": "^4.1.0",
|
|
43
42
|
"@reduxjs/toolkit": "^1.7.1",
|
|
44
43
|
"clsx": "^1.1.1",
|
|
45
44
|
"copy-text-to-clipboard": "^3.1.0",
|
|
46
45
|
"crypto-js": "^4.1.1",
|
|
47
|
-
"docusaurus-plugin-openapi-docs": "0.0.0-beta.
|
|
46
|
+
"docusaurus-plugin-openapi-docs": "0.0.0-beta.668",
|
|
48
47
|
"docusaurus-plugin-sass": "^0.2.3",
|
|
49
48
|
"file-saver": "^2.0.5",
|
|
50
49
|
"lodash": "^4.17.20",
|
|
@@ -68,5 +67,5 @@
|
|
|
68
67
|
"engines": {
|
|
69
68
|
"node": ">=14"
|
|
70
69
|
},
|
|
71
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "6cc9b3278fa74422cdec235464488059b8458806"
|
|
72
71
|
}
|
|
@@ -79,3 +79,41 @@
|
|
|
79
79
|
.openapi-response__status-headers {
|
|
80
80
|
margin-left: -1rem;
|
|
81
81
|
}
|
|
82
|
+
|
|
83
|
+
/* loading spinner */
|
|
84
|
+
.openapi-response__lds-ring {
|
|
85
|
+
display: inline-block;
|
|
86
|
+
position: relative;
|
|
87
|
+
width: 80px;
|
|
88
|
+
height: 80px;
|
|
89
|
+
}
|
|
90
|
+
.openapi-response__lds-ring div {
|
|
91
|
+
box-sizing: border-box;
|
|
92
|
+
display: block;
|
|
93
|
+
position: absolute;
|
|
94
|
+
width: 64px;
|
|
95
|
+
height: 64px;
|
|
96
|
+
margin: 8px;
|
|
97
|
+
border: 5px solid #dfc;
|
|
98
|
+
border-radius: 50%;
|
|
99
|
+
animation: openapi-response__lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1)
|
|
100
|
+
infinite;
|
|
101
|
+
border-color: var(--ifm-color-primary) transparent transparent transparent;
|
|
102
|
+
}
|
|
103
|
+
.openapi-response__lds-ring div:nth-child(1) {
|
|
104
|
+
animation-delay: -0.45s;
|
|
105
|
+
}
|
|
106
|
+
.openapi-response__lds-ring div:nth-child(2) {
|
|
107
|
+
animation-delay: -0.3s;
|
|
108
|
+
}
|
|
109
|
+
.openapi-response__lds-ring div:nth-child(3) {
|
|
110
|
+
animation-delay: -0.15s;
|
|
111
|
+
}
|
|
112
|
+
@keyframes openapi-response__lds-ring {
|
|
113
|
+
0% {
|
|
114
|
+
transform: rotate(0deg);
|
|
115
|
+
}
|
|
116
|
+
100% {
|
|
117
|
+
transform: rotate(360deg);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
@@ -9,7 +9,6 @@ import React from "react";
|
|
|
9
9
|
|
|
10
10
|
import { usePrismTheme } from "@docusaurus/theme-common";
|
|
11
11
|
import { useDoc } from "@docusaurus/theme-common/internal";
|
|
12
|
-
import { Loading } from "@nextui-org/react";
|
|
13
12
|
import ApiCodeBlock from "@theme/ApiExplorer/ApiCodeBlock";
|
|
14
13
|
import { useTypedDispatch, useTypedSelector } from "@theme/ApiItem/hooks";
|
|
15
14
|
import SchemaTabs from "@theme/SchemaTabs";
|
|
@@ -134,7 +133,12 @@ function Response({ item }: { item: NonNullable<ApiItem> }) {
|
|
|
134
133
|
</SchemaTabs>
|
|
135
134
|
) : prettyResponse === "Fetching..." ? (
|
|
136
135
|
<div className="openapi-explorer__loading-container">
|
|
137
|
-
<
|
|
136
|
+
<div className="openapi-response__lds-ring">
|
|
137
|
+
<div></div>
|
|
138
|
+
<div></div>
|
|
139
|
+
<div></div>
|
|
140
|
+
<div></div>
|
|
141
|
+
</div>
|
|
138
142
|
</div>
|
|
139
143
|
) : (
|
|
140
144
|
<p className="openapi-explorer__response-placeholder-message">
|