@redocly/openapi-docs 3.12.0-next.21 → 3.12.0-next.23
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/dist/redocly-openapi-docs.min.js +1277 -1259
- package/lib/components/common/panels.js +16 -9
- package/lib/types/open-api.d.ts +1 -0
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{css as
|
|
2
|
-
${({compact:a,isStacked:
|
|
1
|
+
import{css as i}from"styled-components";import{LayoutVariant as p}from"@redocly/config";import{H2 as l}from"@redocly/theme/components/Typography/H2";import{Markdown as d}from"@redocly/theme/components/Markdown/Markdown";import{breakpoints as t}from"@redocly/theme/core/openapi";import{SECTION_ATTR as c}from"../../constants.js";import{styled as r}from"../../styled-components.js";const f=r.div`
|
|
2
|
+
${({compact:a,isStacked:o,fullWidth:e})=>{const n=a?0:"var(--spacing-vertical)";return i`
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
5
5
|
width: 100%;
|
|
@@ -10,11 +10,11 @@ import{css as o}from"styled-components";import{LayoutVariant as p}from"@redocly/
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
@media screen and (min-width: ${t.large}) {
|
|
13
|
-
width: ${e||
|
|
14
|
-
padding-left: ${
|
|
15
|
-
padding-right: ${
|
|
13
|
+
width: ${e||o?"100%":"calc(100% - var(--panel-samples-width))"};
|
|
14
|
+
padding-left: ${o?"var(--panel-gap-horizontal)":"calc(var(--panel-gap-horizontal) * 2)"};
|
|
15
|
+
padding-right: ${o?"var(--panel-gap-vertical)":"var(--panel-gap-horizontal)"};
|
|
16
16
|
padding-top: 0;
|
|
17
|
-
padding-bottom: ${
|
|
17
|
+
padding-bottom: ${o?"var(--spacing-vertical)":0};
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
@media print {
|
|
@@ -24,6 +24,13 @@ import{css as o}from"styled-components";import{LayoutVariant as p}from"@redocly/
|
|
|
24
24
|
}
|
|
25
25
|
`}};
|
|
26
26
|
|
|
27
|
+
${({compact:a})=>a&&i`
|
|
28
|
+
& & {
|
|
29
|
+
padding-left: 0;
|
|
30
|
+
padding-right: 0;
|
|
31
|
+
}
|
|
32
|
+
`}
|
|
33
|
+
|
|
27
34
|
&:last-child > ${d} :last-child,
|
|
28
35
|
${d} article :last-child {
|
|
29
36
|
margin-bottom: 0;
|
|
@@ -32,7 +39,7 @@ import{css as o}from"styled-components";import{LayoutVariant as p}from"@redocly/
|
|
|
32
39
|
padding: 0;
|
|
33
40
|
width: 100%;
|
|
34
41
|
|
|
35
|
-
${({expanded:a})=>a&&
|
|
42
|
+
${({expanded:a})=>a&&i`
|
|
36
43
|
background-color: var(--layer-color);
|
|
37
44
|
border-bottom: 1px solid var(--border-color-secondary);
|
|
38
45
|
--code-block-bg-color: var(--bg-color);
|
|
@@ -46,7 +53,7 @@ import{css as o}from"styled-components";import{LayoutVariant as p}from"@redocly/
|
|
|
46
53
|
@media screen and (min-width: ${t.medium}) {
|
|
47
54
|
padding-top: var(--spacing-xs);
|
|
48
55
|
|
|
49
|
-
${({expanded:a})=>!a&&
|
|
56
|
+
${({expanded:a})=>!a&&i`
|
|
50
57
|
padding-bottom: var(--spacing-xs);
|
|
51
58
|
`}
|
|
52
59
|
}
|
|
@@ -55,7 +62,7 @@ import{css as o}from"styled-components";import{LayoutVariant as p}from"@redocly/
|
|
|
55
62
|
padding: 0;
|
|
56
63
|
}
|
|
57
64
|
|
|
58
|
-
${({underlined:a})=>a&&
|
|
65
|
+
${({underlined:a})=>a&&i`
|
|
59
66
|
position: relative;
|
|
60
67
|
|
|
61
68
|
&:not(:last-of-type):after {
|
package/lib/types/open-api.d.ts
CHANGED
|
@@ -105,6 +105,7 @@ export interface OpenAPIOperation extends ParsedDescriptionWithSummary {
|
|
|
105
105
|
'x-codeSamples'?: OpenAPIXCodeSample[];
|
|
106
106
|
'x-badges'?: OpenAPIXBadges[];
|
|
107
107
|
'x-hideReplay'?: boolean;
|
|
108
|
+
'x-owner-key'?: string;
|
|
108
109
|
}
|
|
109
110
|
export interface OpenAPIParameter extends ParsedDescription {
|
|
110
111
|
name: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redocly/openapi-docs",
|
|
3
|
-
"version": "3.12.0-next.
|
|
3
|
+
"version": "3.12.0-next.23",
|
|
4
4
|
"description": "Redocly OpenAPI Docs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"util": "~0.12.5",
|
|
38
38
|
"web-vitals": "3.3.1",
|
|
39
39
|
"@redocly/config": "0.28.0",
|
|
40
|
-
"@redocly/replay": "0.15.0-next.
|
|
40
|
+
"@redocly/replay": "0.15.0-next.17"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@jest/globals": "29.5.0",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"typescript": "5.6.2",
|
|
75
75
|
"url": "~0.11.0",
|
|
76
76
|
"vite": "^6.3.5",
|
|
77
|
-
"@redocly/theme": "0.56.0-next.
|
|
77
|
+
"@redocly/theme": "0.56.0-next.14"
|
|
78
78
|
},
|
|
79
79
|
"scripts": {
|
|
80
80
|
"start": "npm run copy-highlight-hook && vite",
|