docusaurus-theme-openapi-docs 0.0.0-1044 → 0.0.0-1046
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/theme/ApiExplorer/Accept/slice.d.ts +2 -2
- package/lib/theme/ApiExplorer/Authorization/slice.d.ts +3 -3
- package/lib/theme/ApiExplorer/Body/slice.d.ts +9 -9
- package/lib/theme/ApiExplorer/ContentType/slice.d.ts +2 -2
- package/lib/theme/ApiExplorer/ParamOptions/slice.d.ts +2 -2
- package/lib/theme/ApiExplorer/Response/slice.d.ts +7 -7
- package/lib/theme/ApiExplorer/Server/slice.d.ts +3 -3
- package/lib/theme/ApiItem/hooks.d.ts +1 -9
- package/lib/theme/ApiItem/store.d.ts +7 -43
- package/package.json +28 -28
- package/src/theme/ApiExplorer/persistanceMiddleware.ts +3 -1
|
@@ -4,8 +4,8 @@ export interface State {
|
|
|
4
4
|
options: string[];
|
|
5
5
|
}
|
|
6
6
|
export declare const slice: import("@reduxjs/toolkit").Slice<State, {
|
|
7
|
-
setAccept: (state: import("immer
|
|
8
|
-
}, "accept"
|
|
7
|
+
setAccept: (state: import("immer").WritableDraft<State>, action: PayloadAction<string>) => void;
|
|
8
|
+
}, "accept", "accept", import("@reduxjs/toolkit").SliceSelectors<State>>;
|
|
9
9
|
export declare const setAccept: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "accept/setAccept">;
|
|
10
10
|
declare const _default: import("redux").Reducer<State>;
|
|
11
11
|
export default _default;
|
|
@@ -24,13 +24,13 @@ export interface AuthState {
|
|
|
24
24
|
selected?: string;
|
|
25
25
|
}
|
|
26
26
|
export declare const slice: import("@reduxjs/toolkit").Slice<AuthState, {
|
|
27
|
-
setAuthData: (state: import("immer
|
|
27
|
+
setAuthData: (state: import("immer").WritableDraft<AuthState>, action: PayloadAction<{
|
|
28
28
|
scheme: string;
|
|
29
29
|
key: string;
|
|
30
30
|
value?: string;
|
|
31
31
|
}>) => void;
|
|
32
|
-
setSelectedAuth: (state: import("immer
|
|
33
|
-
}, "auth"
|
|
32
|
+
setSelectedAuth: (state: import("immer").WritableDraft<AuthState>, action: PayloadAction<string>) => void;
|
|
33
|
+
}, "auth", "auth", import("@reduxjs/toolkit").SliceSelectors<AuthState>>;
|
|
34
34
|
export declare const setAuthData: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
35
35
|
scheme: string;
|
|
36
36
|
key: string;
|
|
@@ -27,17 +27,17 @@ export interface EmptyBody {
|
|
|
27
27
|
export type Body = EmptyBody | FormBody | RawBody;
|
|
28
28
|
export type State = Body;
|
|
29
29
|
export declare const slice: import("@reduxjs/toolkit").Slice<FormBody | RawBody | EmptyBody, {
|
|
30
|
-
clearRawBody: (_state: import("immer
|
|
30
|
+
clearRawBody: (_state: import("immer").WritableDraft<FormBody> | import("immer").WritableDraft<RawBody> | import("immer").WritableDraft<EmptyBody>) => {
|
|
31
31
|
type: "empty";
|
|
32
32
|
};
|
|
33
|
-
setStringRawBody: (_state: import("immer
|
|
33
|
+
setStringRawBody: (_state: import("immer").WritableDraft<FormBody> | import("immer").WritableDraft<RawBody> | import("immer").WritableDraft<EmptyBody>, action: PayloadAction<string>) => {
|
|
34
34
|
type: "raw";
|
|
35
35
|
content: {
|
|
36
36
|
type: "string";
|
|
37
37
|
value: string;
|
|
38
38
|
};
|
|
39
39
|
};
|
|
40
|
-
setFileRawBody: (_state: import("immer
|
|
40
|
+
setFileRawBody: (_state: import("immer").WritableDraft<FormBody> | import("immer").WritableDraft<RawBody> | import("immer").WritableDraft<EmptyBody>, action: PayloadAction<FileContent["value"]>) => {
|
|
41
41
|
type: "raw";
|
|
42
42
|
content: {
|
|
43
43
|
type: "file";
|
|
@@ -47,15 +47,15 @@ export declare const slice: import("@reduxjs/toolkit").Slice<FormBody | RawBody
|
|
|
47
47
|
};
|
|
48
48
|
};
|
|
49
49
|
};
|
|
50
|
-
clearFormBodyKey: (state: import("immer
|
|
51
|
-
setStringFormBody: (state: import("immer
|
|
50
|
+
clearFormBodyKey: (state: import("immer").WritableDraft<FormBody> | import("immer").WritableDraft<RawBody> | import("immer").WritableDraft<EmptyBody>, action: PayloadAction<string>) => void;
|
|
51
|
+
setStringFormBody: (state: import("immer").WritableDraft<FormBody> | import("immer").WritableDraft<RawBody> | import("immer").WritableDraft<EmptyBody>, action: PayloadAction<{
|
|
52
52
|
key: string;
|
|
53
53
|
value: string;
|
|
54
|
-
}>) => import("immer
|
|
55
|
-
setFileFormBody: (state: import("immer
|
|
54
|
+
}>) => import("immer").WritableDraft<FormBody>;
|
|
55
|
+
setFileFormBody: (state: import("immer").WritableDraft<FormBody> | import("immer").WritableDraft<RawBody> | import("immer").WritableDraft<EmptyBody>, action: PayloadAction<{
|
|
56
56
|
key: string;
|
|
57
57
|
value: FileContent["value"];
|
|
58
|
-
}>) => import("immer
|
|
58
|
+
}>) => import("immer").WritableDraft<FormBody> | {
|
|
59
59
|
type: "form";
|
|
60
60
|
content: {
|
|
61
61
|
[x: string]: {
|
|
@@ -67,7 +67,7 @@ export declare const slice: import("@reduxjs/toolkit").Slice<FormBody | RawBody
|
|
|
67
67
|
};
|
|
68
68
|
};
|
|
69
69
|
};
|
|
70
|
-
}, "body"
|
|
70
|
+
}, "body", "body", import("@reduxjs/toolkit").SliceSelectors<FormBody | RawBody | EmptyBody>>;
|
|
71
71
|
export declare const clearRawBody: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"body/clearRawBody">, setStringRawBody: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "body/setStringRawBody">, setFileRawBody: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
72
72
|
src: string;
|
|
73
73
|
content: Blob;
|
|
@@ -4,8 +4,8 @@ export interface State {
|
|
|
4
4
|
options: string[];
|
|
5
5
|
}
|
|
6
6
|
export declare const slice: import("@reduxjs/toolkit").Slice<State, {
|
|
7
|
-
setContentType: (state: import("immer
|
|
8
|
-
}, "contentType"
|
|
7
|
+
setContentType: (state: import("immer").WritableDraft<State>, action: PayloadAction<string>) => void;
|
|
8
|
+
}, "contentType", "contentType", import("@reduxjs/toolkit").SliceSelectors<State>>;
|
|
9
9
|
export declare const setContentType: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "contentType/setContentType">;
|
|
10
10
|
declare const _default: import("redux").Reducer<State>;
|
|
11
11
|
export default _default;
|
|
@@ -10,8 +10,8 @@ export interface State {
|
|
|
10
10
|
cookie: Param[];
|
|
11
11
|
}
|
|
12
12
|
export declare const slice: import("@reduxjs/toolkit").Slice<State, {
|
|
13
|
-
setParam: (state: import("immer
|
|
14
|
-
}, "params"
|
|
13
|
+
setParam: (state: import("immer").WritableDraft<State>, action: PayloadAction<Param>) => void;
|
|
14
|
+
}, "params", "params", import("@reduxjs/toolkit").SliceSelectors<State>>;
|
|
15
15
|
export declare const setParam: import("@reduxjs/toolkit").ActionCreatorWithPayload<Param, "params/setParam">;
|
|
16
16
|
declare const _default: import("redux").Reducer<State>;
|
|
17
17
|
export default _default;
|
|
@@ -5,13 +5,13 @@ export interface State {
|
|
|
5
5
|
headers?: string;
|
|
6
6
|
}
|
|
7
7
|
export declare const slice: import("@reduxjs/toolkit").Slice<State, {
|
|
8
|
-
setResponse: (state: import("immer
|
|
9
|
-
setCode: (state: import("immer
|
|
10
|
-
setHeaders: (state: import("immer
|
|
11
|
-
clearResponse: (state: import("immer
|
|
12
|
-
clearCode: (state: import("immer
|
|
13
|
-
clearHeaders: (state: import("immer
|
|
14
|
-
}, "response"
|
|
8
|
+
setResponse: (state: import("immer").WritableDraft<State>, action: PayloadAction<string>) => void;
|
|
9
|
+
setCode: (state: import("immer").WritableDraft<State>, action: PayloadAction<string>) => void;
|
|
10
|
+
setHeaders: (state: import("immer").WritableDraft<State>, action: PayloadAction<string>) => void;
|
|
11
|
+
clearResponse: (state: import("immer").WritableDraft<State>) => void;
|
|
12
|
+
clearCode: (state: import("immer").WritableDraft<State>) => void;
|
|
13
|
+
clearHeaders: (state: import("immer").WritableDraft<State>) => void;
|
|
14
|
+
}, "response", "response", import("@reduxjs/toolkit").SliceSelectors<State>>;
|
|
15
15
|
export declare const setResponse: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "response/setResponse">, clearResponse: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"response/clearResponse">, setCode: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "response/setCode">, clearCode: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"response/clearCode">, setHeaders: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "response/setHeaders">, clearHeaders: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"response/clearHeaders">;
|
|
16
16
|
declare const _default: import("redux").Reducer<State>;
|
|
17
17
|
export default _default;
|
|
@@ -5,9 +5,9 @@ export interface State {
|
|
|
5
5
|
options: ServerObject[];
|
|
6
6
|
}
|
|
7
7
|
export declare const slice: import("@reduxjs/toolkit").Slice<State, {
|
|
8
|
-
setServer: (state: import("immer
|
|
9
|
-
setServerVariable: (state: import("immer
|
|
10
|
-
}, "server"
|
|
8
|
+
setServer: (state: import("immer").WritableDraft<State>, action: PayloadAction<string>) => void;
|
|
9
|
+
setServerVariable: (state: import("immer").WritableDraft<State>, action: PayloadAction<string>) => void;
|
|
10
|
+
}, "server", "server", import("@reduxjs/toolkit").SliceSelectors<State>>;
|
|
11
11
|
export declare const setServer: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "server/setServer">, setServerVariable: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "server/setServerVariable">;
|
|
12
12
|
declare const _default: import("redux").Reducer<State>;
|
|
13
13
|
export default _default;
|
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
import { TypedUseSelectorHook } from "react-redux";
|
|
2
2
|
import type { RootState } from "./store";
|
|
3
|
-
export declare const useTypedDispatch: () => import("redux-thunk").ThunkDispatch<import("redux").
|
|
4
|
-
accept: unknown;
|
|
5
|
-
contentType: unknown;
|
|
6
|
-
response: unknown;
|
|
7
|
-
server: unknown;
|
|
8
|
-
body: unknown;
|
|
9
|
-
params: unknown;
|
|
10
|
-
auth: unknown;
|
|
11
|
-
}>, undefined, import("redux").AnyAction> & import("redux").Dispatch<any>;
|
|
3
|
+
export declare const useTypedDispatch: () => import("redux-thunk").ThunkDispatch<any, undefined, import("redux").UnknownAction> & import("redux").Dispatch<import("redux").UnknownAction>;
|
|
12
4
|
export declare const useTypedSelector: TypedUseSelectorHook<RootState>;
|
|
@@ -1,46 +1,10 @@
|
|
|
1
|
-
declare const rootReducer:
|
|
2
|
-
accept: unknown;
|
|
3
|
-
contentType: unknown;
|
|
4
|
-
response: unknown;
|
|
5
|
-
server: unknown;
|
|
6
|
-
body: unknown;
|
|
7
|
-
params: unknown;
|
|
8
|
-
auth: unknown;
|
|
9
|
-
}>, any>;
|
|
1
|
+
declare const rootReducer: any;
|
|
10
2
|
export type RootState = ReturnType<typeof rootReducer>;
|
|
11
|
-
export declare const createStoreWithState: (preloadedState: RootState, middlewares: any[]) => import("@reduxjs/toolkit/
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
params: unknown;
|
|
18
|
-
auth: unknown;
|
|
19
|
-
}, any, import("@reduxjs/toolkit").MiddlewareArray<[import("@reduxjs/toolkit").ThunkMiddleware<import("redux").CombinedState<{
|
|
20
|
-
accept: unknown;
|
|
21
|
-
contentType: unknown;
|
|
22
|
-
response: unknown;
|
|
23
|
-
server: unknown;
|
|
24
|
-
body: unknown;
|
|
25
|
-
params: unknown;
|
|
26
|
-
auth: unknown;
|
|
27
|
-
}>, import("redux").AnyAction>, ...any[]]>>;
|
|
28
|
-
export declare const createStoreWithoutState: (preloadedState: {}, middlewares: any[]) => import("@reduxjs/toolkit/dist/configureStore").ToolkitStore<import("redux").EmptyObject & {
|
|
29
|
-
accept: unknown;
|
|
30
|
-
contentType: unknown;
|
|
31
|
-
response: unknown;
|
|
32
|
-
server: unknown;
|
|
33
|
-
body: unknown;
|
|
34
|
-
params: unknown;
|
|
35
|
-
auth: unknown;
|
|
36
|
-
}, any, import("@reduxjs/toolkit").MiddlewareArray<[import("@reduxjs/toolkit").ThunkMiddleware<import("redux").CombinedState<{
|
|
37
|
-
accept: unknown;
|
|
38
|
-
contentType: unknown;
|
|
39
|
-
response: unknown;
|
|
40
|
-
server: unknown;
|
|
41
|
-
body: unknown;
|
|
42
|
-
params: unknown;
|
|
43
|
-
auth: unknown;
|
|
44
|
-
}>, import("redux").AnyAction>, ...any[]]>>;
|
|
3
|
+
export declare const createStoreWithState: (preloadedState: RootState, middlewares: any[]) => import("@reduxjs/toolkit").EnhancedStore<any, import("redux").UnknownAction, import("@reduxjs/toolkit").Tuple<[import("redux").StoreEnhancer<{
|
|
4
|
+
dispatch: import("redux-thunk").ThunkDispatch<any, undefined, import("redux").UnknownAction>;
|
|
5
|
+
}>, import("redux").StoreEnhancer]>>;
|
|
6
|
+
export declare const createStoreWithoutState: (preloadedState: {}, middlewares: any[]) => import("@reduxjs/toolkit").EnhancedStore<any, import("redux").UnknownAction, import("@reduxjs/toolkit").Tuple<[import("redux").StoreEnhancer<{
|
|
7
|
+
dispatch: import("redux-thunk").ThunkDispatch<any, undefined, import("redux").UnknownAction>;
|
|
8
|
+
}>, import("redux").StoreEnhancer]>>;
|
|
45
9
|
export type AppDispatch = ReturnType<typeof createStoreWithState>["dispatch"];
|
|
46
10
|
export {};
|
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-
|
|
4
|
+
"version": "0.0.0-1046",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"openapi",
|
|
@@ -31,45 +31,45 @@
|
|
|
31
31
|
"@docusaurus/theme-classic": "^3.5.0",
|
|
32
32
|
"@docusaurus/theme-common": "^3.5.0",
|
|
33
33
|
"@docusaurus/types": "^3.5.0",
|
|
34
|
-
"@types/crypto-js": "^4.
|
|
35
|
-
"@types/file-saver": "^2.0.
|
|
36
|
-
"@types/lodash": "^4.
|
|
34
|
+
"@types/crypto-js": "^4.2.2",
|
|
35
|
+
"@types/file-saver": "^2.0.7",
|
|
36
|
+
"@types/lodash": "^4.17.20",
|
|
37
37
|
"@types/pako": "^2.0.3",
|
|
38
38
|
"@types/postman-collection": "^3.5.11",
|
|
39
39
|
"@types/react-modal": "^3.16.3",
|
|
40
|
-
"concurrently": "^
|
|
41
|
-
"docusaurus-plugin-openapi-docs": "0.0.0-
|
|
42
|
-
"docusaurus-plugin-sass": "^0.2.
|
|
43
|
-
"eslint-plugin-prettier": "^5.
|
|
40
|
+
"concurrently": "^9.2.0",
|
|
41
|
+
"docusaurus-plugin-openapi-docs": "0.0.0-1046",
|
|
42
|
+
"docusaurus-plugin-sass": "^0.2.6",
|
|
43
|
+
"eslint-plugin-prettier": "^5.5.1"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@hookform/error-message": "^2.0.1",
|
|
47
|
-
"@reduxjs/toolkit": "^
|
|
47
|
+
"@reduxjs/toolkit": "^2.8.2",
|
|
48
48
|
"allof-merge": "^0.6.6",
|
|
49
49
|
"buffer": "^6.0.3",
|
|
50
|
-
"clsx": "^
|
|
51
|
-
"copy-text-to-clipboard": "^3.
|
|
52
|
-
"crypto-js": "^4.
|
|
50
|
+
"clsx": "^2.1.1",
|
|
51
|
+
"copy-text-to-clipboard": "^3.2.0",
|
|
52
|
+
"crypto-js": "^4.2.0",
|
|
53
53
|
"file-saver": "^2.0.5",
|
|
54
|
-
"lodash": "^4.17.
|
|
54
|
+
"lodash": "^4.17.21",
|
|
55
55
|
"pako": "^2.1.0",
|
|
56
|
-
"postman-code-generators": "^
|
|
57
|
-
"postman-collection": "^
|
|
58
|
-
"prism-react-renderer": "^2.
|
|
56
|
+
"postman-code-generators": "^2.0.0",
|
|
57
|
+
"postman-collection": "^5.0.2",
|
|
58
|
+
"prism-react-renderer": "^2.4.1",
|
|
59
59
|
"process": "^0.11.10",
|
|
60
|
-
"react-hook-form": "^7.
|
|
61
|
-
"react-live": "^4.
|
|
60
|
+
"react-hook-form": "^7.59.0",
|
|
61
|
+
"react-live": "^4.1.8",
|
|
62
62
|
"react-magic-dropzone": "^1.0.1",
|
|
63
|
-
"react-markdown": "^
|
|
64
|
-
"react-modal": "^3.
|
|
65
|
-
"react-redux": "^
|
|
66
|
-
"rehype-raw": "^
|
|
67
|
-
"remark-gfm": "
|
|
68
|
-
"sass": "^1.
|
|
69
|
-
"sass-loader": "^16.0.
|
|
63
|
+
"react-markdown": "^10.1.0",
|
|
64
|
+
"react-modal": "^3.16.3",
|
|
65
|
+
"react-redux": "^9.2.0",
|
|
66
|
+
"rehype-raw": "^7.0.0",
|
|
67
|
+
"remark-gfm": "4.0.1",
|
|
68
|
+
"sass": "^1.89.2",
|
|
69
|
+
"sass-loader": "^16.0.5",
|
|
70
70
|
"unist-util-visit": "^5.0.0",
|
|
71
|
-
"url": "^0.11.
|
|
72
|
-
"xml-formatter": "^
|
|
71
|
+
"url": "^0.11.4",
|
|
72
|
+
"xml-formatter": "^3.6.6"
|
|
73
73
|
},
|
|
74
74
|
"peerDependencies": {
|
|
75
75
|
"@docusaurus/theme-common": "^3.5.0",
|
|
@@ -81,5 +81,5 @@
|
|
|
81
81
|
"engines": {
|
|
82
82
|
"node": ">=14"
|
|
83
83
|
},
|
|
84
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "1d302ddba2690d6e43186c46fd03f1da8ca7f9dd"
|
|
85
85
|
}
|
|
@@ -18,7 +18,9 @@ import { createStorage, hashArray } from "./storage-utils";
|
|
|
18
18
|
|
|
19
19
|
export function createPersistanceMiddleware(options: ThemeConfig["api"]) {
|
|
20
20
|
const persistanceMiddleware: Middleware<{}, RootState, AppDispatch> =
|
|
21
|
-
(storeAPI) =>
|
|
21
|
+
(storeAPI) =>
|
|
22
|
+
(next) =>
|
|
23
|
+
(action: ReturnType<typeof setAuthData | typeof setSelectedAuth> | any) => {
|
|
22
24
|
const result = next(action);
|
|
23
25
|
|
|
24
26
|
const state = storeAPI.getState();
|