@redocly/theme 0.60.0-next.0 → 0.60.0-next.1
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/ext/configure.d.ts +1 -1
- package/lib/ext/configure.js +12 -6
- package/lib/ext/{useConfigureReplay.js → use-configure-replay.js} +5 -4
- package/package.json +1 -1
- package/src/ext/configure.ts +13 -7
- package/src/ext/{useConfigureReplay.ts → use-configure-replay.ts} +5 -3
- /package/lib/ext/{useConfigureReplay.d.ts → use-configure-replay.d.ts} +0 -0
package/lib/ext/configure.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export type ConfigureRequestValues = {
|
|
|
16
16
|
query?: Record<string, string>;
|
|
17
17
|
path?: Record<string, string>;
|
|
18
18
|
cookie?: Record<string, string>;
|
|
19
|
-
security?: SecurityDetails
|
|
19
|
+
security?: Record<string, SecurityDetails>;
|
|
20
20
|
envVariables?: Record<string, string>;
|
|
21
21
|
serverVariables?: Record<string, string>;
|
|
22
22
|
};
|
package/lib/ext/configure.js
CHANGED
|
@@ -7,8 +7,10 @@ function configure(_context) {
|
|
|
7
7
|
// name: 'Default Product'
|
|
8
8
|
// },
|
|
9
9
|
// security: {
|
|
10
|
-
//
|
|
11
|
-
//
|
|
10
|
+
// default: {
|
|
11
|
+
// username: 'default_api_user',
|
|
12
|
+
// password: 'secureP@ssword123'
|
|
13
|
+
// },
|
|
12
14
|
// },
|
|
13
15
|
// envVariables: {
|
|
14
16
|
// customLocation: 'default'
|
|
@@ -19,8 +21,10 @@ function configure(_context) {
|
|
|
19
21
|
// name: 'Development Product'
|
|
20
22
|
// },
|
|
21
23
|
// security: {
|
|
22
|
-
//
|
|
23
|
-
//
|
|
24
|
+
// default: {
|
|
25
|
+
// username: 'dev_api_user',
|
|
26
|
+
// password: 'Dev@P!T3st'
|
|
27
|
+
// },
|
|
24
28
|
// },
|
|
25
29
|
// envVariables: {
|
|
26
30
|
// customLocation: 'dev'
|
|
@@ -31,8 +35,10 @@ function configure(_context) {
|
|
|
31
35
|
// name: 'Production Product'
|
|
32
36
|
// },
|
|
33
37
|
// security: {
|
|
34
|
-
//
|
|
35
|
-
//
|
|
38
|
+
// default: {
|
|
39
|
+
// username: 'prod_api_user',
|
|
40
|
+
// password: 'Pr0d@P!S3cur3'
|
|
41
|
+
// },
|
|
36
42
|
// },
|
|
37
43
|
// envVariables: {
|
|
38
44
|
// customLocation: 'prod'
|
|
@@ -26,11 +26,12 @@ function getReplayConfiguration(_context) {
|
|
|
26
26
|
// throw new Error(`HTTP error! status: ${response.status}`);
|
|
27
27
|
// }
|
|
28
28
|
// const { token } = await response.json();
|
|
29
|
-
//
|
|
30
29
|
// return {
|
|
31
30
|
// security: {
|
|
32
|
-
//
|
|
33
|
-
//
|
|
31
|
+
// default: {
|
|
32
|
+
// token: {
|
|
33
|
+
// access_token: token,
|
|
34
|
+
// }
|
|
34
35
|
// }
|
|
35
36
|
// }
|
|
36
37
|
// };
|
|
@@ -61,4 +62,4 @@ function useConfigureReplay(context, isOpened) {
|
|
|
61
62
|
}, [isOpened, refresh]);
|
|
62
63
|
return { config, refresh };
|
|
63
64
|
}
|
|
64
|
-
//# sourceMappingURL=
|
|
65
|
+
//# sourceMappingURL=use-configure-replay.js.map
|
package/package.json
CHANGED
package/src/ext/configure.ts
CHANGED
|
@@ -18,7 +18,7 @@ export type ConfigureRequestValues = {
|
|
|
18
18
|
query?: Record<string, string>;
|
|
19
19
|
path?: Record<string, string>;
|
|
20
20
|
cookie?: Record<string, string>;
|
|
21
|
-
security?: SecurityDetails
|
|
21
|
+
security?: Record<string, SecurityDetails>;
|
|
22
22
|
envVariables?: Record<string, string>;
|
|
23
23
|
serverVariables?: Record<string, string>;
|
|
24
24
|
};
|
|
@@ -49,8 +49,10 @@ export function configure(_context: ContextProps): Configure {
|
|
|
49
49
|
// name: 'Default Product'
|
|
50
50
|
// },
|
|
51
51
|
// security: {
|
|
52
|
-
//
|
|
53
|
-
//
|
|
52
|
+
// default: {
|
|
53
|
+
// username: 'default_api_user',
|
|
54
|
+
// password: 'secureP@ssword123'
|
|
55
|
+
// },
|
|
54
56
|
// },
|
|
55
57
|
// envVariables: {
|
|
56
58
|
// customLocation: 'default'
|
|
@@ -62,8 +64,10 @@ export function configure(_context: ContextProps): Configure {
|
|
|
62
64
|
// name: 'Development Product'
|
|
63
65
|
// },
|
|
64
66
|
// security: {
|
|
65
|
-
//
|
|
66
|
-
//
|
|
67
|
+
// default: {
|
|
68
|
+
// username: 'dev_api_user',
|
|
69
|
+
// password: 'Dev@P!T3st'
|
|
70
|
+
// },
|
|
67
71
|
// },
|
|
68
72
|
// envVariables: {
|
|
69
73
|
// customLocation: 'dev'
|
|
@@ -75,8 +79,10 @@ export function configure(_context: ContextProps): Configure {
|
|
|
75
79
|
// name: 'Production Product'
|
|
76
80
|
// },
|
|
77
81
|
// security: {
|
|
78
|
-
//
|
|
79
|
-
//
|
|
82
|
+
// default: {
|
|
83
|
+
// username: 'prod_api_user',
|
|
84
|
+
// password: 'Pr0d@P!S3cur3'
|
|
85
|
+
// },
|
|
80
86
|
// },
|
|
81
87
|
// envVariables: {
|
|
82
88
|
// customLocation: 'prod'
|
|
@@ -38,11 +38,13 @@ async function getReplayConfiguration(
|
|
|
38
38
|
// }
|
|
39
39
|
|
|
40
40
|
// const { token } = await response.json();
|
|
41
|
-
|
|
41
|
+
|
|
42
42
|
// return {
|
|
43
43
|
// security: {
|
|
44
|
-
//
|
|
45
|
-
//
|
|
44
|
+
// default: {
|
|
45
|
+
// token: {
|
|
46
|
+
// access_token: token,
|
|
47
|
+
// }
|
|
46
48
|
// }
|
|
47
49
|
// }
|
|
48
50
|
// };
|
|
File without changes
|