@redocly/theme 0.59.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.
@@ -10,5 +10,6 @@ export type LinkProps = {
10
10
  languageInsensitive?: boolean;
11
11
  onClick?: () => void;
12
12
  [key: string]: unknown;
13
+ rel?: string;
13
14
  };
14
15
  export declare function Link(props: React.PropsWithChildren<LinkProps>): JSX.Element;
package/lib/config.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import type { ProductConfig, CatalogFilterConfig, CatalogConfig, AmplitudeAnalyticsConfig, GoogleAnalyticsConfig, SegmentAnalyticsConfig, RudderstackAnalyticsConfig, GtmAnalyticsConfig, ScorecardConfig, ProductGoogleAnalyticsConfig, ProductThemeOverrideConfig, ProductUiConfig, RedoclyConfig, UiAccessibleConfig, ThemeConfig, ThemeUIConfig } from '@redocly/config';
2
- export type { ProductConfig, CatalogFilterConfig, CatalogConfig, AmplitudeAnalyticsConfig, GoogleAnalyticsConfig, SegmentAnalyticsConfig, RudderstackAnalyticsConfig, GtmAnalyticsConfig, ScorecardConfig, ProductGoogleAnalyticsConfig, ProductThemeOverrideConfig, ProductUiConfig, RedoclyConfig, UiAccessibleConfig, ThemeConfig, ThemeUIConfig, };
1
+ import type { ProductConfig, CatalogFilterConfig, CatalogConfig, AmplitudeAnalyticsConfig, GoogleAnalyticsConfig, SegmentAnalyticsConfig, RudderstackAnalyticsConfig, GtmAnalyticsConfig, ScorecardConfig, ScorecardsConfig, ProductGoogleAnalyticsConfig, ProductThemeOverrideConfig, ProductUiConfig, RedoclyConfig, UiAccessibleConfig, ThemeConfig, ThemeUIConfig } from '@redocly/config';
2
+ export type { ProductConfig, CatalogFilterConfig, CatalogConfig, AmplitudeAnalyticsConfig, GoogleAnalyticsConfig, SegmentAnalyticsConfig, RudderstackAnalyticsConfig, GtmAnalyticsConfig, ScorecardConfig, ScorecardsConfig, ProductGoogleAnalyticsConfig, ProductThemeOverrideConfig, ProductUiConfig, RedoclyConfig, UiAccessibleConfig, ThemeConfig, ThemeUIConfig, };
@@ -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
  };
@@ -7,8 +7,10 @@ function configure(_context) {
7
7
  // name: 'Default Product'
8
8
  // },
9
9
  // security: {
10
- // username: 'default_api_user',
11
- // password: 'secureP@ssword123'
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
- // username: 'dev_api_user',
23
- // password: 'Dev@P!T3st'
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
- // username: 'prod_api_user',
35
- // password: 'Pr0d@P!S3cur3'
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
- // token: {
33
- // access_token: token,
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=useConfigureReplay.js.map
65
+ //# sourceMappingURL=use-configure-replay.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redocly/theme",
3
- "version": "0.59.0",
3
+ "version": "0.60.0-next.1",
4
4
  "description": "Shared UI components lib",
5
5
  "keywords": [
6
6
  "theme",
@@ -88,7 +88,7 @@
88
88
  "react-calendar": "5.1.0",
89
89
  "react-date-picker": "11.0.0",
90
90
  "@redocly/config": "0.38.0",
91
- "@redocly/realm-asyncapi-sdk": "0.5.0"
91
+ "@redocly/realm-asyncapi-sdk": "0.6.0-next.0"
92
92
  },
93
93
  "scripts": {
94
94
  "watch": "tsc -p tsconfig.build.json && (concurrently \"tsc -w -p tsconfig.build.json\" \"tsc-alias -w -p tsconfig.build.json\")",
@@ -16,6 +16,7 @@ export type LinkProps = {
16
16
  languageInsensitive?: boolean;
17
17
  onClick?: () => void;
18
18
  [key: string]: unknown;
19
+ rel?: string;
19
20
  };
20
21
 
21
22
  export function Link(props: React.PropsWithChildren<LinkProps>): JSX.Element {
package/src/config.ts CHANGED
@@ -8,6 +8,7 @@ import type {
8
8
  RudderstackAnalyticsConfig,
9
9
  GtmAnalyticsConfig,
10
10
  ScorecardConfig,
11
+ ScorecardsConfig,
11
12
  ProductGoogleAnalyticsConfig,
12
13
  ProductThemeOverrideConfig,
13
14
  ProductUiConfig,
@@ -27,6 +28,7 @@ export type {
27
28
  RudderstackAnalyticsConfig,
28
29
  GtmAnalyticsConfig,
29
30
  ScorecardConfig,
31
+ ScorecardsConfig,
30
32
  ProductGoogleAnalyticsConfig,
31
33
  ProductThemeOverrideConfig,
32
34
  ProductUiConfig,
@@ -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
- // username: 'default_api_user',
53
- // password: 'secureP@ssword123'
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
- // username: 'dev_api_user',
66
- // password: 'Dev@P!T3st'
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
- // username: 'prod_api_user',
79
- // password: 'Pr0d@P!S3cur3'
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
- // token: {
45
- // access_token: token,
44
+ // default: {
45
+ // token: {
46
+ // access_token: token,
47
+ // }
46
48
  // }
47
49
  // }
48
50
  // };