@redocly/theme 0.52.0-next.1 → 0.52.0-next.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/core/types/index.d.ts +1 -0
- package/lib/core/types/index.js +1 -0
- package/lib/core/types/user-claims.d.ts +4 -0
- package/lib/core/types/user-claims.js +3 -0
- package/lib/ext/configure.d.ts +12 -1
- package/lib/ext/configure.js +1 -1
- package/package.json +1 -1
- package/src/core/types/index.ts +1 -0
- package/src/core/types/user-claims.ts +4 -0
- package/src/ext/configure.ts +14 -1
package/lib/core/types/index.js
CHANGED
|
@@ -26,4 +26,5 @@ __exportStar(require("../../core/types/select"), exports);
|
|
|
26
26
|
__exportStar(require("../../core/types/sidebar"), exports);
|
|
27
27
|
__exportStar(require("../../core/types/filter"), exports);
|
|
28
28
|
__exportStar(require("../../core/types/user-menu"), exports);
|
|
29
|
+
__exportStar(require("../../core/types/user-claims"), exports);
|
|
29
30
|
//# sourceMappingURL=index.js.map
|
package/lib/ext/configure.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { UserClaims } from '../index.js';
|
|
1
2
|
export type SecurityDetails = {
|
|
2
3
|
password?: string;
|
|
3
4
|
username?: string;
|
|
@@ -20,5 +21,15 @@ export type ConfigureRequestValues = {
|
|
|
20
21
|
type Configure = {
|
|
21
22
|
requestValues?: ConfigureRequestValues;
|
|
22
23
|
};
|
|
23
|
-
|
|
24
|
+
type ContextProps = {
|
|
25
|
+
userClaims?: UserClaims;
|
|
26
|
+
operation: {
|
|
27
|
+
name: string;
|
|
28
|
+
path: string;
|
|
29
|
+
operationId?: string;
|
|
30
|
+
href?: string;
|
|
31
|
+
method: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
export declare function configure(_context: ContextProps): Configure;
|
|
24
35
|
export {};
|
package/lib/ext/configure.js
CHANGED
package/package.json
CHANGED
package/src/core/types/index.ts
CHANGED
package/src/ext/configure.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { UserClaims } from '@redocly/theme';
|
|
2
|
+
|
|
1
3
|
export type SecurityDetails = {
|
|
2
4
|
password?: string;
|
|
3
5
|
username?: string;
|
|
@@ -23,7 +25,18 @@ type Configure = {
|
|
|
23
25
|
requestValues?: ConfigureRequestValues;
|
|
24
26
|
};
|
|
25
27
|
|
|
26
|
-
|
|
28
|
+
type ContextProps = {
|
|
29
|
+
userClaims?: UserClaims;
|
|
30
|
+
operation: {
|
|
31
|
+
name: string;
|
|
32
|
+
path: string;
|
|
33
|
+
operationId?: string;
|
|
34
|
+
href?: string;
|
|
35
|
+
method: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export function configure(_context: ContextProps): Configure {
|
|
27
40
|
// const exampleRequestValues: ConfigureRequestValues = {
|
|
28
41
|
// body: {
|
|
29
42
|
// name: 'John Doe',
|