@redocly/portal-plugin-async-api 1.0.227 → 1.0.229
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/CHANGELOG.md +17 -0
- package/lib/.tsbuildinfo +1 -1
- package/lib/config.d.ts +0 -6
- package/lib/config.js +0 -1
- package/lib/config.js.map +1 -1
- package/lib/template.js +2 -2
- package/lib/template.js.map +1 -1
- package/package.json +3 -3
- package/src/config.ts +0 -1
- package/src/template.tsx +2 -3
package/lib/config.d.ts
CHANGED
|
@@ -5,9 +5,6 @@ declare const asyncApiDocsSchema: {
|
|
|
5
5
|
readonly schemaId: {
|
|
6
6
|
readonly type: "string";
|
|
7
7
|
};
|
|
8
|
-
readonly hideErrors: {
|
|
9
|
-
readonly type: "boolean";
|
|
10
|
-
};
|
|
11
8
|
readonly hideInfo: {
|
|
12
9
|
readonly type: "boolean";
|
|
13
10
|
};
|
|
@@ -35,9 +32,6 @@ export declare const themeConfigSchema: {
|
|
|
35
32
|
readonly schemaId: {
|
|
36
33
|
readonly type: "string";
|
|
37
34
|
};
|
|
38
|
-
readonly hideErrors: {
|
|
39
|
-
readonly type: "boolean";
|
|
40
|
-
};
|
|
41
35
|
readonly hideInfo: {
|
|
42
36
|
readonly type: "boolean";
|
|
43
37
|
};
|
package/lib/config.js
CHANGED
package/lib/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAEA,MAAM,kBAAkB,GAAG;IACzB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC5B,
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAEA,MAAM,kBAAkB,GAAG;IACzB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC5B,QAAQ,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;QAC7B,cAAc,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;QACnC,WAAW,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;QAChC,YAAY,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;QACjC,WAAW,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KACjC;IACD,oBAAoB,EAAE,KAAK;CACnB,CAAC;AAEX,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,QAAQ,EAAE,kBAAkB;KAC7B;CACO,CAAC"}
|
package/lib/template.js
CHANGED
|
@@ -9,11 +9,11 @@ import { StylesProvider } from './styles.js';
|
|
|
9
9
|
function AsyncApiDocs({ pageProps }) {
|
|
10
10
|
const { settings = {} } = pageProps;
|
|
11
11
|
const asyncApiDefinition = usePageSharedData('AsyncApiDefinition');
|
|
12
|
-
const { schemaId, hideOperations,
|
|
12
|
+
const { schemaId, hideOperations, hideInfo, hideMessages, hideSchemas, hideServers } = settings;
|
|
13
13
|
const componentConfig = {
|
|
14
14
|
schemaID: schemaId,
|
|
15
15
|
show: {
|
|
16
|
-
errors:
|
|
16
|
+
errors: true,
|
|
17
17
|
info: !hideInfo,
|
|
18
18
|
operations: !hideOperations,
|
|
19
19
|
servers: !hideServers,
|
package/lib/template.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template.js","sourceRoot":"","sources":["../src/template.tsx"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,MAAM,2BAA2B,CAAC;AAC1D,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAE,WAAW,IAAI,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAMjE,0CAA0C;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,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,OAAO,EAAE,KAAK;SACf;QACD,MAAM,EAAE;YACN,eAAe,EAAE,KAAK;SACvB;QACD,OAAO,EAAE;YACP,WAAW,EAAE,WAAW;YACxB,cAAc,EAAE,WAAW;SAC5B;QACD,YAAY,EAAE,WAAW;QACzB,cAAc,EAAE,YAAY;QAC5B,SAAS,EAAE,MAAM;QACjB,YAAY,EAAE,SAAS;QACvB,YAAY,EAAE,SAAS;QACvB,UAAU,EAAE,OAAO;KACpB,CAAC;IAEF,OAAO,CACL,oBAAC,cAAc;QACb,oBAAC,WAAW,OAAG;QACf,oBAAC,iBAAiB,IAAC,MAAM,EAAE,kBAAkB,EAAE,MAAM,EAAE,eAAe,GAAI,CAC3D,CAClB,CAAC;AACJ,CAAC;AAED,eAAe,YAAY,CAAC;AAE5B,MAAM,WAAW,GAAG,MAAM,CAAC,gBAAgB,CAAC,CAAA;;CAE3C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redocly/portal-plugin-async-api",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.229",
|
|
4
4
|
"description": "Async API plugin for @redocly/portal",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"react": "^18.0.0",
|
|
36
36
|
"react-dom": "^18.0.0",
|
|
37
|
-
"@redocly/realm": "0.
|
|
38
|
-
"@redocly/theme": "0.38.
|
|
37
|
+
"@redocly/realm": "0.92.0",
|
|
38
|
+
"@redocly/theme": "0.38.7"
|
|
39
39
|
},
|
|
40
40
|
"peerDependenciesMeta": {
|
|
41
41
|
"@redocly/realm": {
|
package/src/config.ts
CHANGED
package/src/template.tsx
CHANGED
|
@@ -23,13 +23,12 @@ function AsyncApiDocs({ pageProps }: AsyncApiDocsProps) {
|
|
|
23
23
|
const { settings = {} } = pageProps;
|
|
24
24
|
const asyncApiDefinition = usePageSharedData('AsyncApiDefinition') as AsyncApiProps['schema'];
|
|
25
25
|
|
|
26
|
-
const { schemaId, hideOperations,
|
|
27
|
-
settings;
|
|
26
|
+
const { schemaId, hideOperations, hideInfo, hideMessages, hideSchemas, hideServers } = settings;
|
|
28
27
|
|
|
29
28
|
const componentConfig: Partial<ConfigInterface> = {
|
|
30
29
|
schemaID: schemaId,
|
|
31
30
|
show: {
|
|
32
|
-
errors:
|
|
31
|
+
errors: true,
|
|
33
32
|
info: !hideInfo,
|
|
34
33
|
operations: !hideOperations,
|
|
35
34
|
servers: !hideServers,
|