@redocly/theme 0.48.2 → 0.49.0

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.
@@ -5,6 +5,7 @@ export type OperationParameter = {
5
5
  description: string | string[];
6
6
  place: string;
7
7
  path?: string[];
8
+ deepLink?: string;
8
9
  };
9
10
  export type SearchDocument = {
10
11
  id: string;
@@ -0,0 +1,24 @@
1
+ export type SecurityDetails = {
2
+ password?: string;
3
+ username?: string;
4
+ token?: {
5
+ token_type?: string;
6
+ access_token: string;
7
+ };
8
+ client_id?: string;
9
+ client_secret?: string;
10
+ scopes?: string[];
11
+ };
12
+ export type ConfigureRequestValues = {
13
+ headers?: Record<string, string>;
14
+ body?: Record<string, any>;
15
+ query?: Record<string, string>;
16
+ path?: Record<string, string>;
17
+ cookie?: Record<string, string>;
18
+ security?: SecurityDetails;
19
+ };
20
+ type Configure = {
21
+ requestValues?: ConfigureRequestValues;
22
+ };
23
+ export declare function configure(): Configure;
24
+ export {};
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.configure = configure;
4
+ function configure() {
5
+ // const exampleRequestValues: ConfigureRequestValues = {
6
+ // body: {
7
+ // name: 'John Doe',
8
+ // },
9
+ // security: {
10
+ // token: {
11
+ // access_token: 'John Doe token',
12
+ // },
13
+ // },
14
+ // };
15
+ // return { requestValues: exampleRequestValues } satisfies Configure;
16
+ return {};
17
+ }
18
+ //# sourceMappingURL=configure.js.map
package/lib/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export * from './core';
2
2
  export * from './config';
3
+ export * from './ext/configure';
3
4
  export * from './components/Button/Button';
4
5
  export * from './components/JsonViewer/JsonViewer';
5
6
  export * from './components/Tag/Tag';
package/lib/index.js CHANGED
@@ -29,6 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.markdoc = void 0;
30
30
  __exportStar(require("./core"), exports);
31
31
  __exportStar(require("./config"), exports);
32
+ __exportStar(require("./ext/configure"), exports);
32
33
  /* Components */
33
34
  __exportStar(require("./components/Button/Button"), exports);
34
35
  __exportStar(require("./components/JsonViewer/JsonViewer"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redocly/theme",
3
- "version": "0.48.2",
3
+ "version": "0.49.0",
4
4
  "description": "Shared UI components lib",
5
5
  "keywords": [
6
6
  "theme",
@@ -19,6 +19,7 @@
19
19
  "./src/": "./src/",
20
20
  "./core/*": "./lib/core/*/index.js",
21
21
  "./core/templates/*": "./lib/core/templates/*.js",
22
+ "./ext/*": "./lib/ext/*.js",
22
23
  "./components/*": "./lib/components/*.js",
23
24
  "./layouts/*": "./lib/layouts/*.js",
24
25
  "./icons/*": "./lib/icons/*.js",
@@ -6,6 +6,7 @@ export type OperationParameter = {
6
6
  description: string | string[];
7
7
  place: string;
8
8
  path?: string[];
9
+ deepLink?: string;
9
10
  };
10
11
 
11
12
  export type SearchDocument = {
@@ -0,0 +1,39 @@
1
+ export type SecurityDetails = {
2
+ password?: string;
3
+ username?: string;
4
+ token?: {
5
+ token_type?: string;
6
+ access_token: string;
7
+ };
8
+ client_id?: string;
9
+ client_secret?: string;
10
+ scopes?: string[];
11
+ };
12
+
13
+ export type ConfigureRequestValues = {
14
+ headers?: Record<string, string>;
15
+ body?: Record<string, any>;
16
+ query?: Record<string, string>;
17
+ path?: Record<string, string>;
18
+ cookie?: Record<string, string>;
19
+ security?: SecurityDetails;
20
+ };
21
+
22
+ type Configure = {
23
+ requestValues?: ConfigureRequestValues;
24
+ };
25
+
26
+ export function configure(): Configure {
27
+ // const exampleRequestValues: ConfigureRequestValues = {
28
+ // body: {
29
+ // name: 'John Doe',
30
+ // },
31
+ // security: {
32
+ // token: {
33
+ // access_token: 'John Doe token',
34
+ // },
35
+ // },
36
+ // };
37
+ // return { requestValues: exampleRequestValues } satisfies Configure;
38
+ return {} satisfies Configure;
39
+ }
package/src/index.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export * from '@redocly/theme/core';
2
2
  export * from '@redocly/theme/config';
3
+ export * from '@redocly/theme/ext/configure';
3
4
 
4
5
  /* Components */
5
6
  export * from '@redocly/theme/components/Button/Button';