@redocly/portal-plugin-async-api 1.17.0-next.3 → 1.17.0-next.4
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 +13 -0
- package/lib/.tsbuildinfo +1 -1
- package/lib/config.d.ts +7 -7
- package/lib/plugin.js +4 -3
- package/lib/plugin.js.map +1 -1
- package/lib/styles.d.ts +1 -1
- package/package.json +9 -10
package/lib/config.d.ts
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import type { FromSchema } from 'json-schema-to-ts';
|
|
2
2
|
export declare const asyncApiDocsConfigSchema: {
|
|
3
|
-
readonly type:
|
|
3
|
+
readonly type: 'object';
|
|
4
4
|
readonly properties: {
|
|
5
5
|
readonly schemaId: {
|
|
6
|
-
readonly type:
|
|
6
|
+
readonly type: 'string';
|
|
7
7
|
};
|
|
8
8
|
readonly hideInfo: {
|
|
9
|
-
readonly type:
|
|
9
|
+
readonly type: 'boolean';
|
|
10
10
|
};
|
|
11
11
|
readonly hideOperations: {
|
|
12
|
-
readonly type:
|
|
12
|
+
readonly type: 'boolean';
|
|
13
13
|
};
|
|
14
14
|
readonly hideServers: {
|
|
15
|
-
readonly type:
|
|
15
|
+
readonly type: 'boolean';
|
|
16
16
|
};
|
|
17
17
|
readonly hideMessages: {
|
|
18
|
-
readonly type:
|
|
18
|
+
readonly type: 'boolean';
|
|
19
19
|
};
|
|
20
20
|
readonly hideSchemas: {
|
|
21
|
-
readonly type:
|
|
21
|
+
readonly type: 'boolean';
|
|
22
22
|
};
|
|
23
23
|
};
|
|
24
24
|
readonly additionalProperties: false;
|
package/lib/plugin.js
CHANGED
|
@@ -34,7 +34,8 @@ export default function asyncAPIDocsPlugin() {
|
|
|
34
34
|
}),
|
|
35
35
|
},
|
|
36
36
|
processContent: (actions, context) => __awaiter(this, void 0, void 0, function* () {
|
|
37
|
-
var _a, _b, _c, _d, _e, _f
|
|
37
|
+
var _a, _b, _c, _d, _e, _f;
|
|
38
|
+
var _g, _h, _j, _k;
|
|
38
39
|
const asyncAPITemplateId = actions.createTemplate(ASYNCAPI_TEMPLATE_ID, '@redocly/portal-plugin-async-api/template.js');
|
|
39
40
|
const config = yield context.getConfig();
|
|
40
41
|
const globalSettings = (config === null || config === void 0 ? void 0 : config.asyncapi) || {};
|
|
@@ -47,12 +48,12 @@ export default function asyncAPIDocsPlugin() {
|
|
|
47
48
|
const { data: document } = yield context.cache.load(record.realRelativePath, 'asyncapi');
|
|
48
49
|
if (!document)
|
|
49
50
|
continue;
|
|
50
|
-
yield actions.createSharedData(sharedDataId, (
|
|
51
|
+
yield actions.createSharedData(sharedDataId, (_g = document === null || document === void 0 ? void 0 : document.json()) !== null && _g !== void 0 ? _g : {});
|
|
51
52
|
actions.addRoute({
|
|
52
53
|
fsPath: relativePath,
|
|
53
54
|
templateId: asyncAPITemplateId,
|
|
54
55
|
getStaticData: buildGetStaticDataFn(globalSettings, context.withPathPrefix),
|
|
55
|
-
metadata: Object.assign({ type: 'asyncapi', title: (
|
|
56
|
+
metadata: Object.assign({ type: 'asyncapi', title: (_h = (_b = (_a = document === null || document === void 0 ? void 0 : document.json()) === null || _a === void 0 ? void 0 : _a.info) === null || _b === void 0 ? void 0 : _b.title) !== null && _h !== void 0 ? _h : 'AsyncAPI', description: (_j = (_d = (_c = document === null || document === void 0 ? void 0 : document.json()) === null || _c === void 0 ? void 0 : _c.info) === null || _d === void 0 ? void 0 : _d.description) !== null && _j !== void 0 ? _j : '' }, ((_k = (_f = (_e = document === null || document === void 0 ? void 0 : document.json()) === null || _e === void 0 ? void 0 : _e.info) === null || _f === void 0 ? void 0 : _f['x-metadata']) !== null && _k !== void 0 ? _k : {})),
|
|
56
57
|
sharedData: [{ key: 'AsyncApiDefinition', id: sharedDataId }],
|
|
57
58
|
});
|
|
58
59
|
}
|
package/lib/plugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sourceRoot":"","sources":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AC;IACJ,CAAC;AACH,CAAC"}
|
package/lib/styles.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const StylesProvider: import("styled-components").
|
|
1
|
+
export declare const StylesProvider: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redocly/portal-plugin-async-api",
|
|
3
|
-
"version": "1.17.0-next.
|
|
3
|
+
"version": "1.17.0-next.4",
|
|
4
4
|
"description": "Async API plugin for Redocly products",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -22,7 +22,6 @@
|
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@types/node": "24.1.0",
|
|
24
24
|
"@types/react": "^19.2.7",
|
|
25
|
-
"@types/styled-components": "5.1.34",
|
|
26
25
|
"json-schema-to-ts": "2.9.1",
|
|
27
26
|
"typescript": "6.0.3"
|
|
28
27
|
},
|
|
@@ -32,16 +31,16 @@
|
|
|
32
31
|
"@asyncapi/avro-schema-parser": "3.0.24",
|
|
33
32
|
"buffer": "6.0.3",
|
|
34
33
|
"events": "3.3.0",
|
|
35
|
-
"styled-components": "
|
|
34
|
+
"styled-components": "^6.4.2"
|
|
36
35
|
},
|
|
37
36
|
"peerDependencies": {
|
|
38
37
|
"react": "^19.2.4",
|
|
39
38
|
"react-dom": "^19.2.4",
|
|
40
|
-
"@redocly/realm": "0.134.0-next.
|
|
41
|
-
"@redocly/redoc": "0.134.0-next.
|
|
42
|
-
"@redocly/redoc-reef": "0.134.0-next.
|
|
43
|
-
"@redocly/redoc-revel": "0.134.0-next.
|
|
44
|
-
"@redocly/theme": "0.66.0-next.
|
|
39
|
+
"@redocly/realm": "0.134.0-next.4",
|
|
40
|
+
"@redocly/redoc": "0.134.0-next.4",
|
|
41
|
+
"@redocly/redoc-reef": "0.134.0-next.4",
|
|
42
|
+
"@redocly/redoc-revel": "0.134.0-next.4",
|
|
43
|
+
"@redocly/theme": "0.66.0-next.3",
|
|
45
44
|
"@redocly/config": "0.49.0"
|
|
46
45
|
},
|
|
47
46
|
"peerDependenciesMeta": {
|
|
@@ -64,8 +63,8 @@
|
|
|
64
63
|
},
|
|
65
64
|
"scripts": {
|
|
66
65
|
"clean": "rm -rf lib",
|
|
67
|
-
"compile": "
|
|
66
|
+
"compile": "tsgo -p tsconfig.build.json",
|
|
68
67
|
"build": "pnpm run clean && pnpm run compile",
|
|
69
|
-
"watch": "
|
|
68
|
+
"watch": "tsgo -w -p tsconfig.build.json"
|
|
70
69
|
}
|
|
71
70
|
}
|