docusaurus-theme-openapi-docs 4.3.1 → 4.3.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.
- package/lib/index.js +1 -1
- package/lib/markdown/createDescription.js +1 -2
- package/lib/markdown/schema.js +2 -3
- package/lib/markdown/utils.d.ts +2 -2
- package/lib/markdown/utils.js +4 -5
- package/lib/theme/ApiExplorer/Accept/slice.d.ts +1 -1
- package/lib/theme/ApiExplorer/ApiCodeBlock/Container/index.js +1 -1
- package/lib/theme/ApiExplorer/ApiCodeBlock/Content/Element.d.ts +0 -1
- package/lib/theme/ApiExplorer/ApiCodeBlock/Content/Element.js +1 -1
- package/lib/theme/ApiExplorer/ApiCodeBlock/Content/String.d.ts +0 -1
- package/lib/theme/ApiExplorer/ApiCodeBlock/Content/String.js +1 -1
- package/lib/theme/ApiExplorer/ApiCodeBlock/CopyButton/index.js +23 -11
- package/lib/theme/ApiExplorer/ApiCodeBlock/ExitButton/index.js +1 -1
- package/lib/theme/ApiExplorer/ApiCodeBlock/ExpandButton/index.js +23 -11
- package/lib/theme/ApiExplorer/ApiCodeBlock/Line/index.js +1 -1
- package/lib/theme/ApiExplorer/ApiCodeBlock/WordWrapButton/index.js +1 -1
- package/lib/theme/ApiExplorer/ApiCodeBlock/index.js +23 -11
- package/lib/theme/ApiExplorer/Authorization/auth-types.js +1 -2
- package/lib/theme/ApiExplorer/Authorization/slice.d.ts +3 -3
- package/lib/theme/ApiExplorer/Authorization/slice.js +2 -6
- package/lib/theme/ApiExplorer/Body/slice.d.ts +1 -1
- package/lib/theme/ApiExplorer/CodeSnippets/index.d.ts +2 -2
- package/lib/theme/ApiExplorer/CodeSnippets/index.js +23 -11
- package/lib/theme/ApiExplorer/CodeSnippets/languages.js +4 -8
- package/lib/theme/ApiExplorer/CodeTabs/index.js +29 -13
- package/lib/theme/ApiExplorer/ContentType/slice.d.ts +1 -1
- package/lib/theme/ApiExplorer/FormFileUpload/index.js +22 -10
- package/lib/theme/ApiExplorer/LiveEditor/index.d.ts +1 -1
- package/lib/theme/ApiExplorer/LiveEditor/index.js +27 -13
- package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamArrayFormItem.js +23 -11
- package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamBooleanFormItem.js +1 -1
- package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamMultiSelectFormItem.js +1 -1
- package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamSelectFormItem.js +1 -1
- package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamTextFormItem.js +1 -1
- package/lib/theme/ApiExplorer/ParamOptions/index.js +22 -10
- package/lib/theme/ApiExplorer/ParamOptions/slice.d.ts +1 -1
- package/lib/theme/ApiExplorer/Request/index.js +22 -10
- package/lib/theme/ApiExplorer/Response/slice.d.ts +1 -1
- package/lib/theme/ApiExplorer/Server/index.js +22 -10
- package/lib/theme/ApiExplorer/Server/slice.d.ts +1 -1
- package/lib/theme/ApiExplorer/persistanceMiddleware.js +1 -2
- package/lib/theme/ApiExplorer/storage-utils.js +2 -3
- package/lib/theme/ApiItem/Layout/index.d.ts +1 -1
- package/lib/theme/ApiItem/Layout/index.js +1 -1
- package/lib/theme/ApiItem/hooks.d.ts +1 -1
- package/lib/theme/ApiItem/index.d.ts +0 -2
- package/lib/theme/ApiItem/index.js +1 -1
- package/lib/theme/ApiItem/store.d.ts +5 -5
- package/lib/theme/ApiLogo/index.js +1 -1
- package/lib/theme/ApiTabs/index.js +26 -12
- package/lib/theme/DiscriminatorTabs/index.js +26 -12
- package/lib/theme/MimeTabs/index.js +26 -12
- package/lib/theme/OperationTabs/index.js +26 -12
- package/lib/theme/ParamsDetails/index.js +4 -53
- package/lib/theme/RequestSchema/index.js +4 -53
- package/lib/theme/ResponseExamples/index.js +1 -2
- package/lib/theme/ResponseSchema/index.js +4 -53
- package/lib/theme/SchemaItem/index.js +4 -2
- package/lib/theme/SchemaTabs/index.js +26 -12
- package/package.json +5 -5
- package/src/theme/ApiExplorer/CodeSnippets/index.tsx +1 -1
- package/src/theme/ApiExplorer/CodeTabs/index.tsx +6 -2
- package/src/theme/ApiExplorer/LiveEditor/index.tsx +6 -4
- package/src/theme/ApiItem/Layout/index.tsx +1 -1
- package/src/theme/ApiItem/index.tsx +1 -1
- package/src/theme/ApiTabs/index.tsx +3 -1
- package/src/theme/DiscriminatorTabs/index.tsx +3 -1
- package/src/theme/MimeTabs/index.tsx +3 -1
- package/src/theme/OperationTabs/index.tsx +3 -1
- package/src/theme/ParamsDetails/index.tsx +2 -9
- package/src/theme/RequestSchema/index.tsx +2 -9
- package/src/theme/ResponseSchema/index.tsx +2 -9
- package/src/theme/SchemaItem/index.tsx +3 -1
- package/src/theme/SchemaTabs/index.tsx +3 -1
- package/tsconfig.tsbuildinfo +1 -0
package/lib/index.js
CHANGED
|
@@ -9,6 +9,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
9
9
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.default = docusaurusThemeOpenAPI;
|
|
12
13
|
const path_1 = __importDefault(require("path"));
|
|
13
14
|
const NodePolyfillPlugin = require("node-polyfill-webpack-plugin");
|
|
14
15
|
function docusaurusThemeOpenAPI() {
|
|
@@ -59,4 +60,3 @@ function docusaurusThemeOpenAPI() {
|
|
|
59
60
|
},
|
|
60
61
|
};
|
|
61
62
|
}
|
|
62
|
-
exports.default = docusaurusThemeOpenAPI;
|
|
@@ -6,11 +6,10 @@
|
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
* ========================================================================== */
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.createDescription =
|
|
9
|
+
exports.createDescription = createDescription;
|
|
10
10
|
function createDescription(description) {
|
|
11
11
|
if (!description) {
|
|
12
12
|
return "";
|
|
13
13
|
}
|
|
14
14
|
return `\n\n${description}\n\n`;
|
|
15
15
|
}
|
|
16
|
-
exports.createDescription = createDescription;
|
package/lib/markdown/schema.js
CHANGED
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
* ========================================================================== */
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.
|
|
9
|
+
exports.getSchemaName = getSchemaName;
|
|
10
|
+
exports.getQualifierMessage = getQualifierMessage;
|
|
10
11
|
function prettyName(schema, circular) {
|
|
11
12
|
if (schema.format) {
|
|
12
13
|
return schema.format;
|
|
@@ -42,7 +43,6 @@ function getSchemaName(schema, circular) {
|
|
|
42
43
|
}
|
|
43
44
|
return prettyName(schema, circular) ?? "";
|
|
44
45
|
}
|
|
45
|
-
exports.getSchemaName = getSchemaName;
|
|
46
46
|
function getQualifierMessage(schema) {
|
|
47
47
|
// TODO:
|
|
48
48
|
// - uniqueItems
|
|
@@ -147,4 +147,3 @@ function getQualifierMessage(schema) {
|
|
|
147
147
|
}
|
|
148
148
|
return message + qualifierGroups.join(", ");
|
|
149
149
|
}
|
|
150
|
-
exports.getQualifierMessage = getQualifierMessage;
|
package/lib/markdown/utils.d.ts
CHANGED
|
@@ -5,6 +5,6 @@ export type Props = Record<string, any> & {
|
|
|
5
5
|
children?: ReactNode;
|
|
6
6
|
};
|
|
7
7
|
export declare function create(tag: string, props: Props): string;
|
|
8
|
-
export declare function guard<T>(value: T | undefined | string, cb: (value: T) => ReactNode): string | number | boolean | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode>;
|
|
9
|
-
export declare function render(children: ReactNode): string | number | boolean | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode>;
|
|
8
|
+
export declare function guard<T>(value: T | undefined | string, cb: (value: T) => ReactNode): string | number | bigint | boolean | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined>;
|
|
9
|
+
export declare function render(children: ReactNode): string | number | bigint | boolean | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined>;
|
|
10
10
|
export declare function toString(value: any): string | undefined;
|
package/lib/markdown/utils.js
CHANGED
|
@@ -6,7 +6,10 @@
|
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
* ========================================================================== */
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.
|
|
9
|
+
exports.create = create;
|
|
10
|
+
exports.guard = guard;
|
|
11
|
+
exports.render = render;
|
|
12
|
+
exports.toString = toString;
|
|
10
13
|
function create(tag, props) {
|
|
11
14
|
const { children, ...rest } = props;
|
|
12
15
|
let propString = "";
|
|
@@ -15,7 +18,6 @@ function create(tag, props) {
|
|
|
15
18
|
}
|
|
16
19
|
return `<${tag}${propString}>${render(children)}</${tag}>`;
|
|
17
20
|
}
|
|
18
|
-
exports.create = create;
|
|
19
21
|
function guard(value, cb) {
|
|
20
22
|
if (!!value || value === 0) {
|
|
21
23
|
const children = cb(value);
|
|
@@ -23,14 +25,12 @@ function guard(value, cb) {
|
|
|
23
25
|
}
|
|
24
26
|
return "";
|
|
25
27
|
}
|
|
26
|
-
exports.guard = guard;
|
|
27
28
|
function render(children) {
|
|
28
29
|
if (Array.isArray(children)) {
|
|
29
30
|
return children.filter((c) => c !== undefined).join("");
|
|
30
31
|
}
|
|
31
32
|
return children ?? "";
|
|
32
33
|
}
|
|
33
|
-
exports.render = render;
|
|
34
34
|
function toString(value) {
|
|
35
35
|
// Return as-is if already string
|
|
36
36
|
if (typeof value === "string") {
|
|
@@ -47,4 +47,3 @@ function toString(value) {
|
|
|
47
47
|
// Coerce to string in all other cases,
|
|
48
48
|
return value + "";
|
|
49
49
|
}
|
|
50
|
-
exports.toString = toString;
|
|
@@ -7,5 +7,5 @@ export declare const slice: import("@reduxjs/toolkit").Slice<State, {
|
|
|
7
7
|
setAccept: (state: import("immer/dist/internal").WritableDraft<State>, action: PayloadAction<string>) => void;
|
|
8
8
|
}, "accept">;
|
|
9
9
|
export declare const setAccept: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "accept/setAccept">;
|
|
10
|
-
declare const _default: import("redux").Reducer<State
|
|
10
|
+
declare const _default: import("redux").Reducer<State>;
|
|
11
11
|
export default _default;
|
|
@@ -11,6 +11,7 @@ var __importDefault =
|
|
|
11
11
|
return mod && mod.__esModule ? mod : { default: mod };
|
|
12
12
|
};
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.default = CodeBlockContainer;
|
|
14
15
|
const react_1 = __importDefault(require("react"));
|
|
15
16
|
const theme_common_1 = require("@docusaurus/theme-common");
|
|
16
17
|
const internal_1 = require("@docusaurus/theme-common/internal");
|
|
@@ -32,4 +33,3 @@ function CodeBlockContainer({ as: As, ...props }) {
|
|
|
32
33
|
}
|
|
33
34
|
);
|
|
34
35
|
}
|
|
35
|
-
exports.default = CodeBlockContainer;
|
|
@@ -11,6 +11,7 @@ var __importDefault =
|
|
|
11
11
|
return mod && mod.__esModule ? mod : { default: mod };
|
|
12
12
|
};
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.default = CodeBlockJSX;
|
|
14
15
|
const react_1 = __importDefault(require("react"));
|
|
15
16
|
const Container_1 = __importDefault(
|
|
16
17
|
require("@theme/ApiExplorer/ApiCodeBlock/Container")
|
|
@@ -38,4 +39,3 @@ function CodeBlockJSX({ children, className }) {
|
|
|
38
39
|
)
|
|
39
40
|
);
|
|
40
41
|
}
|
|
41
|
-
exports.default = CodeBlockJSX;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="@docusaurus/theme-classic" />
|
|
2
1
|
import React from "react";
|
|
3
2
|
import type { Props } from "@theme/CodeBlock/Content/String";
|
|
4
3
|
export default function CodeBlockString({ children, className: blockClassName, metastring, title: titleProp, showLineNumbers: showLineNumbersProp, language: languageProp, }: Props): React.JSX.Element;
|
|
@@ -11,6 +11,7 @@ var __importDefault =
|
|
|
11
11
|
return mod && mod.__esModule ? mod : { default: mod };
|
|
12
12
|
};
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.default = CodeBlockString;
|
|
14
15
|
const react_1 = __importDefault(require("react"));
|
|
15
16
|
const theme_common_1 = require("@docusaurus/theme-common");
|
|
16
17
|
const internal_1 = require("@docusaurus/theme-common/internal");
|
|
@@ -150,4 +151,3 @@ function CodeBlockString({
|
|
|
150
151
|
)
|
|
151
152
|
);
|
|
152
153
|
}
|
|
153
|
-
exports.default = CodeBlockString;
|
|
@@ -39,22 +39,35 @@ var __setModuleDefault =
|
|
|
39
39
|
});
|
|
40
40
|
var __importStar =
|
|
41
41
|
(this && this.__importStar) ||
|
|
42
|
-
function (
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
42
|
+
(function () {
|
|
43
|
+
var ownKeys = function (o) {
|
|
44
|
+
ownKeys =
|
|
45
|
+
Object.getOwnPropertyNames ||
|
|
46
|
+
function (o) {
|
|
47
|
+
var ar = [];
|
|
48
|
+
for (var k in o)
|
|
49
|
+
if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
50
|
+
return ar;
|
|
51
|
+
};
|
|
52
|
+
return ownKeys(o);
|
|
53
|
+
};
|
|
54
|
+
return function (mod) {
|
|
55
|
+
if (mod && mod.__esModule) return mod;
|
|
56
|
+
var result = {};
|
|
57
|
+
if (mod != null)
|
|
58
|
+
for (var k = ownKeys(mod), i = 0; i < k.length; i++)
|
|
59
|
+
if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
60
|
+
__setModuleDefault(result, mod);
|
|
61
|
+
return result;
|
|
62
|
+
};
|
|
63
|
+
})();
|
|
52
64
|
var __importDefault =
|
|
53
65
|
(this && this.__importDefault) ||
|
|
54
66
|
function (mod) {
|
|
55
67
|
return mod && mod.__esModule ? mod : { default: mod };
|
|
56
68
|
};
|
|
57
69
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
70
|
+
exports.default = CopyButton;
|
|
58
71
|
const react_1 = __importStar(require("react"));
|
|
59
72
|
const Translate_1 = require("@docusaurus/Translate");
|
|
60
73
|
const clsx_1 = __importDefault(require("clsx"));
|
|
@@ -132,4 +145,3 @@ function CopyButton({ code, className }) {
|
|
|
132
145
|
)
|
|
133
146
|
);
|
|
134
147
|
}
|
|
135
|
-
exports.default = CopyButton;
|
|
@@ -11,6 +11,7 @@ var __importDefault =
|
|
|
11
11
|
return mod && mod.__esModule ? mod : { default: mod };
|
|
12
12
|
};
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.default = ExitButton;
|
|
14
15
|
const react_1 = __importDefault(require("react"));
|
|
15
16
|
const Translate_1 = require("@docusaurus/Translate");
|
|
16
17
|
const clsx_1 = __importDefault(require("clsx"));
|
|
@@ -55,4 +56,3 @@ function ExitButton({ className, handler }) {
|
|
|
55
56
|
)
|
|
56
57
|
);
|
|
57
58
|
}
|
|
58
|
-
exports.default = ExitButton;
|
|
@@ -39,22 +39,35 @@ var __setModuleDefault =
|
|
|
39
39
|
});
|
|
40
40
|
var __importStar =
|
|
41
41
|
(this && this.__importStar) ||
|
|
42
|
-
function (
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
42
|
+
(function () {
|
|
43
|
+
var ownKeys = function (o) {
|
|
44
|
+
ownKeys =
|
|
45
|
+
Object.getOwnPropertyNames ||
|
|
46
|
+
function (o) {
|
|
47
|
+
var ar = [];
|
|
48
|
+
for (var k in o)
|
|
49
|
+
if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
50
|
+
return ar;
|
|
51
|
+
};
|
|
52
|
+
return ownKeys(o);
|
|
53
|
+
};
|
|
54
|
+
return function (mod) {
|
|
55
|
+
if (mod && mod.__esModule) return mod;
|
|
56
|
+
var result = {};
|
|
57
|
+
if (mod != null)
|
|
58
|
+
for (var k = ownKeys(mod), i = 0; i < k.length; i++)
|
|
59
|
+
if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
60
|
+
__setModuleDefault(result, mod);
|
|
61
|
+
return result;
|
|
62
|
+
};
|
|
63
|
+
})();
|
|
52
64
|
var __importDefault =
|
|
53
65
|
(this && this.__importDefault) ||
|
|
54
66
|
function (mod) {
|
|
55
67
|
return mod && mod.__esModule ? mod : { default: mod };
|
|
56
68
|
};
|
|
57
69
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
70
|
+
exports.default = ExpandButton;
|
|
58
71
|
const react_1 = __importStar(require("react"));
|
|
59
72
|
const theme_common_1 = require("@docusaurus/theme-common");
|
|
60
73
|
const Translate_1 = require("@docusaurus/Translate");
|
|
@@ -233,4 +246,3 @@ function ExpandButton({
|
|
|
233
246
|
)
|
|
234
247
|
);
|
|
235
248
|
}
|
|
236
|
-
exports.default = ExpandButton;
|
|
@@ -11,6 +11,7 @@ var __importDefault =
|
|
|
11
11
|
return mod && mod.__esModule ? mod : { default: mod };
|
|
12
12
|
};
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.default = CodeBlockLine;
|
|
14
15
|
const react_1 = __importDefault(require("react"));
|
|
15
16
|
const clsx_1 = __importDefault(require("clsx"));
|
|
16
17
|
function CodeBlockLine({
|
|
@@ -56,4 +57,3 @@ function CodeBlockLine({
|
|
|
56
57
|
react_1.default.createElement("br", null)
|
|
57
58
|
);
|
|
58
59
|
}
|
|
59
|
-
exports.default = CodeBlockLine;
|
|
@@ -11,6 +11,7 @@ var __importDefault =
|
|
|
11
11
|
return mod && mod.__esModule ? mod : { default: mod };
|
|
12
12
|
};
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.default = WordWrapButton;
|
|
14
15
|
const react_1 = __importDefault(require("react"));
|
|
15
16
|
const Translate_1 = require("@docusaurus/Translate");
|
|
16
17
|
const clsx_1 = __importDefault(require("clsx"));
|
|
@@ -48,4 +49,3 @@ function WordWrapButton({ className, onClick, isEnabled }) {
|
|
|
48
49
|
)
|
|
49
50
|
);
|
|
50
51
|
}
|
|
51
|
-
exports.default = WordWrapButton;
|
|
@@ -39,22 +39,35 @@ var __setModuleDefault =
|
|
|
39
39
|
});
|
|
40
40
|
var __importStar =
|
|
41
41
|
(this && this.__importStar) ||
|
|
42
|
-
function (
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
42
|
+
(function () {
|
|
43
|
+
var ownKeys = function (o) {
|
|
44
|
+
ownKeys =
|
|
45
|
+
Object.getOwnPropertyNames ||
|
|
46
|
+
function (o) {
|
|
47
|
+
var ar = [];
|
|
48
|
+
for (var k in o)
|
|
49
|
+
if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
50
|
+
return ar;
|
|
51
|
+
};
|
|
52
|
+
return ownKeys(o);
|
|
53
|
+
};
|
|
54
|
+
return function (mod) {
|
|
55
|
+
if (mod && mod.__esModule) return mod;
|
|
56
|
+
var result = {};
|
|
57
|
+
if (mod != null)
|
|
58
|
+
for (var k = ownKeys(mod), i = 0; i < k.length; i++)
|
|
59
|
+
if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
60
|
+
__setModuleDefault(result, mod);
|
|
61
|
+
return result;
|
|
62
|
+
};
|
|
63
|
+
})();
|
|
52
64
|
var __importDefault =
|
|
53
65
|
(this && this.__importDefault) ||
|
|
54
66
|
function (mod) {
|
|
55
67
|
return mod && mod.__esModule ? mod : { default: mod };
|
|
56
68
|
};
|
|
57
69
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
70
|
+
exports.default = ApiCodeBlock;
|
|
58
71
|
const react_1 = __importStar(require("react"));
|
|
59
72
|
const useIsBrowser_1 = __importDefault(require("@docusaurus/useIsBrowser"));
|
|
60
73
|
const Element_1 = __importDefault(
|
|
@@ -95,4 +108,3 @@ function ApiCodeBlock({ children: rawChildren, ...props }) {
|
|
|
95
108
|
children
|
|
96
109
|
);
|
|
97
110
|
}
|
|
98
|
-
exports.default = ApiCodeBlock;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
* ========================================================================== */
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.getAuthDataKeys =
|
|
9
|
+
exports.getAuthDataKeys = getAuthDataKeys;
|
|
10
10
|
function getAuthDataKeys(security) {
|
|
11
11
|
// Bearer Auth
|
|
12
12
|
if (security.type === "http" && security.scheme === "bearer") {
|
|
@@ -26,4 +26,3 @@ function getAuthDataKeys(security) {
|
|
|
26
26
|
// none
|
|
27
27
|
return [];
|
|
28
28
|
}
|
|
29
|
-
exports.getAuthDataKeys = getAuthDataKeys;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PayloadAction } from "@reduxjs/toolkit";
|
|
2
2
|
import { SecurityRequirementObject, SecuritySchemeObject } from "docusaurus-plugin-openapi-docs/src/openapi/types";
|
|
3
3
|
import { ThemeConfig } from "docusaurus-theme-openapi-docs/src/types";
|
|
4
|
-
export declare function createAuth({ security, securitySchemes, options, }: {
|
|
4
|
+
export declare function createAuth({ security, securitySchemes, options: opts, }: {
|
|
5
5
|
security?: SecurityRequirementObject[];
|
|
6
6
|
securitySchemes?: {
|
|
7
7
|
[key: string]: SecuritySchemeObject;
|
|
@@ -34,7 +34,7 @@ export declare const slice: import("@reduxjs/toolkit").Slice<AuthState, {
|
|
|
34
34
|
export declare const setAuthData: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
35
35
|
scheme: string;
|
|
36
36
|
key: string;
|
|
37
|
-
value?: string
|
|
37
|
+
value?: string;
|
|
38
38
|
}, "auth/setAuthData">, setSelectedAuth: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "auth/setSelectedAuth">;
|
|
39
|
-
declare const _default: import("redux").Reducer<AuthState
|
|
39
|
+
declare const _default: import("redux").Reducer<AuthState>;
|
|
40
40
|
export default _default;
|
|
@@ -7,11 +7,8 @@
|
|
|
7
7
|
* ========================================================================== */
|
|
8
8
|
var _a;
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.setSelectedAuth =
|
|
11
|
-
|
|
12
|
-
exports.slice =
|
|
13
|
-
exports.createAuth =
|
|
14
|
-
void 0;
|
|
10
|
+
exports.setSelectedAuth = exports.setAuthData = exports.slice = void 0;
|
|
11
|
+
exports.createAuth = createAuth;
|
|
15
12
|
const toolkit_1 = require("@reduxjs/toolkit");
|
|
16
13
|
const storage_utils_1 = require("@theme/ApiExplorer/storage-utils");
|
|
17
14
|
const auth_types_1 = require("./auth-types");
|
|
@@ -85,7 +82,6 @@ function createAuth({ security, securitySchemes, options: opts }) {
|
|
|
85
82
|
selected: persisted ?? Object.keys(options)[0],
|
|
86
83
|
};
|
|
87
84
|
}
|
|
88
|
-
exports.createAuth = createAuth;
|
|
89
85
|
const initialState = {};
|
|
90
86
|
exports.slice = (0, toolkit_1.createSlice)({
|
|
91
87
|
name: "auth",
|
|
@@ -78,5 +78,5 @@ export declare const clearRawBody: import("@reduxjs/toolkit").ActionCreatorWitho
|
|
|
78
78
|
key: string;
|
|
79
79
|
value: FileContent["value"];
|
|
80
80
|
}, "body/setFileFormBody">;
|
|
81
|
-
declare const _default: import("redux").Reducer<FormBody | RawBody | EmptyBody
|
|
81
|
+
declare const _default: import("redux").Reducer<FormBody | RawBody | EmptyBody>;
|
|
82
82
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { type JSX } from "react";
|
|
2
2
|
import sdk from "postman-collection";
|
|
3
3
|
import { CodeSample, Language } from "./code-snippets-types";
|
|
4
4
|
export declare const languageSet: Language[];
|
|
@@ -6,5 +6,5 @@ export interface Props {
|
|
|
6
6
|
postman: sdk.Request;
|
|
7
7
|
codeSamples: CodeSample[];
|
|
8
8
|
}
|
|
9
|
-
declare function CodeSnippets({ postman, codeSamples }: Props):
|
|
9
|
+
declare function CodeSnippets({ postman, codeSamples }: Props): JSX.Element | null;
|
|
10
10
|
export default CodeSnippets;
|
|
@@ -39,16 +39,28 @@ var __setModuleDefault =
|
|
|
39
39
|
});
|
|
40
40
|
var __importStar =
|
|
41
41
|
(this && this.__importStar) ||
|
|
42
|
-
function (
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
42
|
+
(function () {
|
|
43
|
+
var ownKeys = function (o) {
|
|
44
|
+
ownKeys =
|
|
45
|
+
Object.getOwnPropertyNames ||
|
|
46
|
+
function (o) {
|
|
47
|
+
var ar = [];
|
|
48
|
+
for (var k in o)
|
|
49
|
+
if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
50
|
+
return ar;
|
|
51
|
+
};
|
|
52
|
+
return ownKeys(o);
|
|
53
|
+
};
|
|
54
|
+
return function (mod) {
|
|
55
|
+
if (mod && mod.__esModule) return mod;
|
|
56
|
+
var result = {};
|
|
57
|
+
if (mod != null)
|
|
58
|
+
for (var k = ownKeys(mod), i = 0; i < k.length; i++)
|
|
59
|
+
if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
60
|
+
__setModuleDefault(result, mod);
|
|
61
|
+
return result;
|
|
62
|
+
};
|
|
63
|
+
})();
|
|
52
64
|
var __importDefault =
|
|
53
65
|
(this && this.__importDefault) ||
|
|
54
66
|
function (mod) {
|
|
@@ -77,7 +89,7 @@ exports.languageSet = (0, languages_1.generateLanguageSet)();
|
|
|
77
89
|
function CodeTab({ children, hidden, className }) {
|
|
78
90
|
return react_1.default.createElement(
|
|
79
91
|
"div",
|
|
80
|
-
{ role: "tabpanel", className: className,
|
|
92
|
+
{ role: "tabpanel", className: className, hidden },
|
|
81
93
|
children
|
|
82
94
|
);
|
|
83
95
|
}
|
|
@@ -11,11 +11,10 @@ var __importDefault =
|
|
|
11
11
|
return mod && mod.__esModule ? mod : { default: mod };
|
|
12
12
|
};
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
void 0;
|
|
14
|
+
exports.mergeArraysbyLanguage = void 0;
|
|
15
|
+
exports.mergeCodeSampleLanguage = mergeCodeSampleLanguage;
|
|
16
|
+
exports.getCodeSampleSourceFromLanguage = getCodeSampleSourceFromLanguage;
|
|
17
|
+
exports.generateLanguageSet = generateLanguageSet;
|
|
19
18
|
const find_1 = __importDefault(require("lodash/find"));
|
|
20
19
|
const mergeWith_1 = __importDefault(require("lodash/mergeWith"));
|
|
21
20
|
const unionBy_1 = __importDefault(require("lodash/unionBy"));
|
|
@@ -44,7 +43,6 @@ function mergeCodeSampleLanguage(languages, codeSamples) {
|
|
|
44
43
|
return language;
|
|
45
44
|
});
|
|
46
45
|
}
|
|
47
|
-
exports.mergeCodeSampleLanguage = mergeCodeSampleLanguage;
|
|
48
46
|
const mergeArraysbyLanguage = (arr1, arr2) => {
|
|
49
47
|
const mergedArray = (0, unionBy_1.default)(arr1, arr2, "language");
|
|
50
48
|
return mergedArray.map((item) => {
|
|
@@ -72,7 +70,6 @@ function getCodeSampleSourceFromLanguage(language) {
|
|
|
72
70
|
}
|
|
73
71
|
return "";
|
|
74
72
|
}
|
|
75
|
-
exports.getCodeSampleSourceFromLanguage = getCodeSampleSourceFromLanguage;
|
|
76
73
|
function generateLanguageSet() {
|
|
77
74
|
const languageSet = [];
|
|
78
75
|
postman_code_generators_1.default.getLanguageList().forEach((language) => {
|
|
@@ -96,4 +93,3 @@ function generateLanguageSet() {
|
|
|
96
93
|
});
|
|
97
94
|
return languageSet;
|
|
98
95
|
}
|
|
99
|
-
exports.generateLanguageSet = generateLanguageSet;
|
|
@@ -39,22 +39,35 @@ var __setModuleDefault =
|
|
|
39
39
|
});
|
|
40
40
|
var __importStar =
|
|
41
41
|
(this && this.__importStar) ||
|
|
42
|
-
function (
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
42
|
+
(function () {
|
|
43
|
+
var ownKeys = function (o) {
|
|
44
|
+
ownKeys =
|
|
45
|
+
Object.getOwnPropertyNames ||
|
|
46
|
+
function (o) {
|
|
47
|
+
var ar = [];
|
|
48
|
+
for (var k in o)
|
|
49
|
+
if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
50
|
+
return ar;
|
|
51
|
+
};
|
|
52
|
+
return ownKeys(o);
|
|
53
|
+
};
|
|
54
|
+
return function (mod) {
|
|
55
|
+
if (mod && mod.__esModule) return mod;
|
|
56
|
+
var result = {};
|
|
57
|
+
if (mod != null)
|
|
58
|
+
for (var k = ownKeys(mod), i = 0; i < k.length; i++)
|
|
59
|
+
if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
60
|
+
__setModuleDefault(result, mod);
|
|
61
|
+
return result;
|
|
62
|
+
};
|
|
63
|
+
})();
|
|
52
64
|
var __importDefault =
|
|
53
65
|
(this && this.__importDefault) ||
|
|
54
66
|
function (mod) {
|
|
55
67
|
return mod && mod.__esModule ? mod : { default: mod };
|
|
56
68
|
};
|
|
57
69
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
70
|
+
exports.default = CodeTabs;
|
|
58
71
|
const react_1 = __importStar(require("react"));
|
|
59
72
|
const internal_1 = require("@docusaurus/theme-common/internal");
|
|
60
73
|
const useIsBrowser_1 = __importDefault(require("@docusaurus/useIsBrowser"));
|
|
@@ -72,7 +85,7 @@ function TabList({
|
|
|
72
85
|
tabValues,
|
|
73
86
|
}) {
|
|
74
87
|
const tabRefs = (0, react_1.useRef)([]);
|
|
75
|
-
const tabsScrollContainerRef = (0, react_1.useRef)();
|
|
88
|
+
const tabsScrollContainerRef = (0, react_1.useRef)(null);
|
|
76
89
|
const { blockElementScrollPositionUntilNextRender } = (0,
|
|
77
90
|
internal_1.useScrollPositionBlocker)();
|
|
78
91
|
(0, react_1.useEffect)(() => {
|
|
@@ -177,7 +190,11 @@ function TabList({
|
|
|
177
190
|
tabIndex: selectedValue === value ? 0 : -1,
|
|
178
191
|
"aria-selected": selectedValue === value,
|
|
179
192
|
key: value,
|
|
180
|
-
ref: (tabControl) =>
|
|
193
|
+
ref: (tabControl) => {
|
|
194
|
+
if (tabControl) {
|
|
195
|
+
tabRefs.current.push(tabControl);
|
|
196
|
+
}
|
|
197
|
+
},
|
|
181
198
|
onKeyDown: handleKeydown,
|
|
182
199
|
onClick: handleTabChange,
|
|
183
200
|
...attributes,
|
|
@@ -252,4 +269,3 @@ function CodeTabs(props) {
|
|
|
252
269
|
(0, internal_1.sanitizeTabsChildren)(props.children)
|
|
253
270
|
);
|
|
254
271
|
}
|
|
255
|
-
exports.default = CodeTabs;
|
|
@@ -7,5 +7,5 @@ export declare const slice: import("@reduxjs/toolkit").Slice<State, {
|
|
|
7
7
|
setContentType: (state: import("immer/dist/internal").WritableDraft<State>, action: PayloadAction<string>) => void;
|
|
8
8
|
}, "contentType">;
|
|
9
9
|
export declare const setContentType: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "contentType/setContentType">;
|
|
10
|
-
declare const _default: import("redux").Reducer<State
|
|
10
|
+
declare const _default: import("redux").Reducer<State>;
|
|
11
11
|
export default _default;
|
|
@@ -39,16 +39,28 @@ var __setModuleDefault =
|
|
|
39
39
|
});
|
|
40
40
|
var __importStar =
|
|
41
41
|
(this && this.__importStar) ||
|
|
42
|
-
function (
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
42
|
+
(function () {
|
|
43
|
+
var ownKeys = function (o) {
|
|
44
|
+
ownKeys =
|
|
45
|
+
Object.getOwnPropertyNames ||
|
|
46
|
+
function (o) {
|
|
47
|
+
var ar = [];
|
|
48
|
+
for (var k in o)
|
|
49
|
+
if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
50
|
+
return ar;
|
|
51
|
+
};
|
|
52
|
+
return ownKeys(o);
|
|
53
|
+
};
|
|
54
|
+
return function (mod) {
|
|
55
|
+
if (mod && mod.__esModule) return mod;
|
|
56
|
+
var result = {};
|
|
57
|
+
if (mod != null)
|
|
58
|
+
for (var k = ownKeys(mod), i = 0; i < k.length; i++)
|
|
59
|
+
if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
60
|
+
__setModuleDefault(result, mod);
|
|
61
|
+
return result;
|
|
62
|
+
};
|
|
63
|
+
})();
|
|
52
64
|
var __importDefault =
|
|
53
65
|
(this && this.__importDefault) ||
|
|
54
66
|
function (mod) {
|