@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.
@@ -10,3 +10,4 @@ export * from '../../core/types/select';
10
10
  export * from '../../core/types/sidebar';
11
11
  export * from '../../core/types/filter';
12
12
  export * from '../../core/types/user-menu';
13
+ export * from '../../core/types/user-claims';
@@ -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
@@ -0,0 +1,4 @@
1
+ export type UserClaims = {
2
+ email?: string;
3
+ name?: string;
4
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=user-claims.js.map
@@ -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
- export declare function configure(): Configure;
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 {};
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.configure = configure;
4
- function configure() {
4
+ function configure(_context) {
5
5
  // const exampleRequestValues: ConfigureRequestValues = {
6
6
  // body: {
7
7
  // name: 'John Doe',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redocly/theme",
3
- "version": "0.52.0-next.1",
3
+ "version": "0.52.0-next.2",
4
4
  "description": "Shared UI components lib",
5
5
  "keywords": [
6
6
  "theme",
@@ -10,3 +10,4 @@ export * from '@redocly/theme/core/types/select';
10
10
  export * from '@redocly/theme/core/types/sidebar';
11
11
  export * from '@redocly/theme/core/types/filter';
12
12
  export * from '@redocly/theme/core/types/user-menu';
13
+ export * from '@redocly/theme/core/types/user-claims';
@@ -0,0 +1,4 @@
1
+ export type UserClaims = {
2
+ email?: string;
3
+ name?: string;
4
+ };
@@ -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
- export function configure(): Configure {
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',