@redocly/openapi-docs 3.11.0 → 3.12.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.
- package/dist/redocly-openapi-docs.min.js +720 -741
- package/lib/components/RedoclyOpenAPIDocs/Providers.js +1 -1
- package/lib/components/Replay/EmbeddedReplay.d.ts +2 -1
- package/lib/components/Replay/EmbeddedReplay.js +3 -3
- package/lib/components/Replay/utils.d.ts +3 -1
- package/lib/components/Replay/utils.js +1 -1
- package/lib/components/Security/OAuthScopes.d.ts +5 -7
- package/lib/components/Security/OAuthScopes.js +9 -9
- package/lib/components/Security/SecurityFlow.js +4 -4
- package/lib/components/Security/helper.d.ts +1 -0
- package/lib/components/Security/helper.js +1 -1
- package/lib/components/Security/index.d.ts +1 -1
- package/lib/components/Security/index.js +1 -1
- package/lib/components/common/Select/styled.d.ts +0 -1
- package/lib/components/common/Select/styled.js +7 -28
- package/lib/jotai/operation.d.ts +2 -2
- package/lib/jotai/operation.js +1 -1
- package/package.json +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as d}from"react/jsx-runtime";import{memo as v,useCallback as g,useEffect as b,useMemo as y}from"react";import S from"@markdoc/markdoc";import{LayoutVariant as O,markdoc as
|
|
1
|
+
import{jsx as d}from"react/jsx-runtime";import{memo as v,useCallback as g,useEffect as b,useMemo as y}from"react";import S from"@markdoc/markdoc";import{LayoutVariant as O,markdoc as E}from"@redocly/theme";import{createStore as A,Provider as N}from"jotai";import{normalizeOptions as k,OpenAPIParser as D}from"../../services/index.js";import{getMarkdownHeaderId as j}from"./utils.js";import{normalizeServers as x}from"../../utils/index.js";import{SchemaDefinition as C}from"../SchemaDefinition/index.js";import{appStore as P,appStoreOverrideAtom as H,environmentAtom as M,layoutAtom as l,userClaimsAtom as I}from"../../jotai/app.js";import{mapObject as L}from"../../utils/object.js";import{mergeInMockServer as R}from"../../models/operation.js";import{getDefaultOperationStore as T,operationStore as V}from"../../jotai/operation.js";import{getServerEnvName as z}from"../../utils/environments.js";import{globalStoreAtom as _}from"../../jotai/store.js";const q={ignoreNamedSchemas:["java.io.ObjectStreamField"],maxDisplayedEnumValues:10,markdocOptions:{tags:{schemaDefinition:{render:"SchemaDefinition",attributes:{schemaRef:{type:String},exampleRef:{type:String},showReadOnly:{type:Boolean},showWriteOnly:{type:Boolean},htmlWrap:{type:String,default:!1}}}},nodes:{heading:{children:["inline"],attributes:{id:{type:String},level:{type:Number,required:!0,default:1}},transform(n,i){const t=n.transformAttributes(i),m=n.transformChildren(i),e=typeof t.id=="string"?t.id:j(m);return new S.Tag("Heading",{...t,id:e,level:n.attributes.level},m)}}},components:{SchemaDefinition:C,Heading:E.components.Heading}}},re=v(({children:n,options:i,definitionUrl:t,definition:m,withState:e})=>{const p=g(()=>{const r=k(i,q),o=new D(m,t,r);return{options:r,parser:o}},[m,t,i]),a=y(()=>{const r=A(),o=p();r.set(_,o);const c=x(o.parser.definitionUrl,R(o.parser.definition?.servers||[],o.options.mockServer)),u=Object.fromEntries(c.map(s=>[z(s),{server:s.url,...L(s.variables||{},f=>f.default||"")}]));if(r.sub(P,()=>{}),r.set(l,o.options?.layout||O.THREE_PANEL),r.set(M,{environments:u}),r.set(I,e?.userClaims||{}),e&&r.set(H,{environment:e.environment,environments:e.environments,activeMimeName:e.activeMimeName,userClaims:e.userClaims}),e?.operation){const s=T(e.operation.pointer,e.operation.state.requestValues,e.operation.state.activeExampleName);r.set(V(e.operation.pointer),s)}return r},[p,e]);return b(()=>{e?.layout&&a.set(l,e?.layout)},[a,e?.layout]),d(N,{store:a,children:n})});export{re as StoreProvider};
|
|
@@ -3,7 +3,8 @@ export type ReplayProps = {
|
|
|
3
3
|
activeOperationId: string;
|
|
4
4
|
fullOpenApi: OpenAPIDefinition;
|
|
5
5
|
corsProxyUrl?: string;
|
|
6
|
+
pointer: string;
|
|
6
7
|
};
|
|
7
|
-
declare function EmbeddedReplayComponent({ activeOperationId, corsProxyUrl, fullOpenApi }: ReplayProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function EmbeddedReplayComponent({ activeOperationId, corsProxyUrl, fullOpenApi, pointer, }: ReplayProps): import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
export declare const EmbeddedReplay: import("react").MemoExoticComponent<typeof EmbeddedReplayComponent>;
|
|
9
10
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";import{Suspense as
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{Suspense as y,lazy as h,memo as S,useEffect as x,useState as E}from"react";import{useAtomValue as o}from"jotai";import{globalOptionsAtom as R}from"../../jotai/store.js";import{operationStore as O}from"../../jotai/operation.js";import{appStore as L,environmentsAtom as T}from"../../jotai/app.js";import{useTranslate as V}from"../../hooks/index.js";import{convertOperationToReplayValue as j}from"./utils.js";import{styled as a}from"../../styled-components.js";const A=h(async()=>import("@redocly/replay").then(t=>({default:t.EmbeddedReplay})));function C({activeOperationId:t,corsProxyUrl:d,fullOpenApi:p,pointer:s}){const r=V(),{mockServer:m}=o(R),l=o(O(s)),n=o(L),c=o(T),[f,u]=E(!1);return x(()=>{u(!0)},[]),e(k,{children:f?e(y,{fallback:e(i,{children:r("openapi.loading","Loading...")}),children:e(A,{activeOperationId:t,api:p,settings:{environment:n.environment,predefinedEnvValues:c,corsProxyUrl:d,mockServer:m,disableCollectionsTab:!0,convertOperationToReplayValue:(v,b,g)=>j(v,b,g,void 0,l,n)}})}):e(i,{children:r("openapi.loading","Loading...")})})}const G=S(C),i=a.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: center;
|
|
4
4
|
align-items: center;
|
|
5
5
|
min-height: 100px;
|
|
6
|
-
`,
|
|
6
|
+
`,k=a.div`
|
|
7
7
|
border: 1px solid var(--border-color-primary);
|
|
8
8
|
border-radius: var(--border-radius-lg);
|
|
9
9
|
padding: 0;
|
|
10
|
-
`;export{
|
|
10
|
+
`;export{G as EmbeddedReplay};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type { UserClaims } from '@redocly/theme';
|
|
2
2
|
import type { OpenAPIDefinition } from '../../types/index.js';
|
|
3
|
+
import type { OperationStore } from '../../jotai/operation.js';
|
|
4
|
+
import type { AppStore } from '../../jotai/app.js';
|
|
3
5
|
import { type SecurityRequirement } from '../../models/index.js';
|
|
4
|
-
export declare function convertOperationToReplayValue(path: string, method: string, openAPI: OpenAPIDefinition, userClaims?: UserClaims): {
|
|
6
|
+
export declare function convertOperationToReplayValue(path: string, method: string, openAPI: OpenAPIDefinition, userClaims?: UserClaims, operationState?: OperationStore, appState?: AppStore): {
|
|
5
7
|
id: string;
|
|
6
8
|
name: string;
|
|
7
9
|
method: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isPrimitive as
|
|
1
|
+
import{isPrimitive as x}from"@redocly/theme";import{getOperation as h}from"../../models/index.js";import{normalizeOptions as v,OpenAPIParser as b}from"../../services/index.js";import{JsonPointer as E}from"../../utils/index.js";function O(t,a,n,r,e,c){if(!n)return;const i=new b(n),s=i.definition.paths?.[t],d=s?.[a],m=h(i,{...d,pathName:t,httpVerb:a,pathParameters:s.parameters||[],pathServers:s.servers||[]},void 0,v({}),"",{isCallback:!1},r);if(!m)return;const f=c?.activeMimeName||"application/json";return{id:m.id,name:m.name,method:m.httpVerb,operationId:m.operationId,parameters:N(m.parameters,e?.requestValues),body:w(m.requestBody,n,e?.requestValues?.body?{activeExampleName:e?.activeExampleName,[f]:e?.requestValues?.body}:e?.activeExampleName?{activeExampleName:e?.activeExampleName}:void 0),path:m.path,href:m.href,servers:m.servers,security:y(m.security),responses:Object.fromEntries(m.responses.map(u=>[u.code,{code:u.code,description:u.description,mediaTypes:u.content?.mediaTypes.reduce((l,o)=>(l[o.name]={name:o.name,schema:p(o.schema?.rawSchema,n)},l),{})}]))}}function P(t){return function(a,n,r){const e=O(a,n,r,t);if(e)return{...e,operationId:e.operationId||E.compile(["paths",e.path,e.method])}}}function N(t,a){const n=new Set,r=t.map(e=>(n.add(e.in+":"+e.name),{name:e.name,in:e.in,required:e.required,description:e.description,example:a?.[String(e.in)]?.[e.name]||e.example,schema:e.schema}));for(const[e,c]of Object.entries(a||{}))for(const[i,s]of Object.entries(c||{}))n.has(e+":"+i)||r.push({name:i,in:e,required:!1,description:"",example:String(s),schema:void 0});return r}function V({type:t,format:a,enum:n}){return t==="string"&&(a==="binary"||a==="base64")?"file":t==="object"?"multiline":n.length>0?"select":"text"}function g(t,a){const n=t[0]?.example||t[0]?.examples;if(n)return n;if(t.schema?.example)return t.schema.example;const r=a?.default?.value||a?.default?.rawValue;return r?.[t.name]?x(r?.[t.name])?String(r?.[t.name]):JSON.stringify(r?.[t.name]):""}function w(t,a,n){if(!t||!t.content?.mediaTypes){if(!n)return;const{activeExampleName:r,...e}=n;return{activeExampleName:r,mediaTypes:Object.fromEntries(Object.entries(e).map(([c,i])=>[c,{name:c,examples:{default:{value:i}},schema:{},parameters:[]}]))}}return{required:t.required,activeExampleName:n?.activeExampleName,mediaTypes:t.content.mediaTypes.reduce((r,e)=>{const c=e.schema,i=n?.[e.name]?{default:{value:n?.[e.name],rawValue:n?.[e.name],mime:e.name}}:e.examples||e.formExamples;return r[e.name]={name:e.name,examples:i,schema:p(e.schema?.rawSchema,a),parameters:c?.fields?.map(s=>({inputType:V(s.schema),name:s.name,example:g(s,i)}))},r},{})}}function p(t,a){if(!(!t||!a))return{...t,components:a?.components||{}}}function y(t){if(t)return t.map(({schemes:a})=>a.map(n=>{const r={id:n.id,type:n.type,in:n.in,openIdConnectUrl:n.openIdConnectUrl,scopes:n.scopes,scheme:n.scheme,name:n.name,flows:n.flows,"x-defaultAccessToken":n["x-defaultAccessToken"],"x-defaultTokenType":n["x-defaultTokenType"],"x-defaultClientId":n["x-defaultClientId"],"x-defaultClientSecret":n["x-defaultClientSecret"],"x-defaultUsername":n["x-defaultUsername"],"x-defaultPassword":n["x-defaultPassword"]};return Object.keys(r).forEach(e=>r[e]===void 0&&delete r[e]),r}))}export{O as convertOperationToReplayValue,P as convertOperationToReplayValueForRedoc,y as convertRequestSecurity};
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import type { PropsWithChildren } from 'react';
|
|
2
2
|
import type { OpenAPISecurityScheme } from '../../types/index.js';
|
|
3
3
|
import type { SecurityRequirement } from '../../models/index.js';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
export interface OAuthRequiredScopesProps {
|
|
4
|
+
type Flow = OpenAPISecurityScheme['flows'];
|
|
5
|
+
interface OAuthScopesMainProps {
|
|
8
6
|
id: string;
|
|
9
7
|
securities: SecurityRequirement[];
|
|
10
|
-
|
|
8
|
+
flows?: Flow;
|
|
11
9
|
}
|
|
12
|
-
export declare const
|
|
13
|
-
export
|
|
10
|
+
export declare const OAuthScopes: import("react").NamedExoticComponent<PropsWithChildren<OAuthScopesMainProps>>;
|
|
11
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as r,Fragment as p,jsxs as c}from"react/jsx-runtime";import{memo as S,useState as v}from"react";import{ChevronRightIcon as b}from"@redocly/theme";import{Markdown as d}from"../Markdown/index.js";import{SecuritySchemeItem as a}from"./SecuritySchemeItem.js";import{Tag as m}from"./styled.js";import{useTranslate as l}from"../../hooks/index.js";import{getOptionalScopes as O,getRequiredScopes as x}from"./helper.js";import{styled as i}from"../../styled-components.js";function y({id:e,securities:t,flows:n}){const o=x(e,t);return c(p,{children:[r(w,{flows:n,requiredScopes:o}),r(q,{flows:n,requiredScopes:o})]})}function q({flows:e,requiredScopes:t}){return e&&Object.keys(e).map(n=>r(j,{flow:e[n],requiredScopes:t},n))}function j({flow:e,requiredScopes:t}){const n=l(),[o,h]=v(!1),f=Object.keys(e?.scopes||{}),u=O(t,f);return u.length===0?null:c(p,{children:[r(a,{label:c(A,{onClick:()=>{h(s=>!s)},children:[n(o?"openapi.hideOptionalScopes":"openapi.showOptionalScopes",o?"Hide optional scopes":"Show optional scopes"),r(C,{isOpen:o,children:r(b,{size:"var(--font-size-base)",color:"var(--tree-content-color-default)"})})]}),value:" "}),r(z,{isOpen:o,children:u.map(s=>r(a,{label:r(g,{className:"tag-grey",children:s}),value:r(d,{source:e?.scopes[s]||""})},s))})]})}function w({requiredScopes:e,flows:t}){const n=l();return e.length===0?null:t&&Object.keys(t).length>0?Object.keys(t).map(o=>r(k,{flow:t[o],requiredScopes:e},o)):r(a,{label:n("openapi.requiredScopes","Required scopes"),value:r(R,{children:e.map(o=>r(m,{className:"tag-grey",children:o},o))})})}function k({flow:e,requiredScopes:t}){const n=l();return c(p,{children:[r(a,{label:n("openapi.requiredScopes","Required scopes"),value:" "}),t.map(o=>r(a,{label:r(g,{className:"tag-grey",children:o}),value:r(d,{source:e?.scopes[o]||""})},o))]})}const g=i(m)`
|
|
2
2
|
font-family: var(--font-family-base);
|
|
3
3
|
font-size: var(--font-size-base);
|
|
4
4
|
line-height: var(--line-height-base);
|
|
@@ -6,28 +6,28 @@ import{jsx as e,jsxs as c,Fragment as d}from"react/jsx-runtime";import{memo as m
|
|
|
6
6
|
padding: 0 var(--spacing-xs);
|
|
7
7
|
border: var(--tag-border-width) var(--tag-border-style) var(--tag-bg-color);
|
|
8
8
|
border-radius: var(--tag-border-radius);
|
|
9
|
-
`,
|
|
9
|
+
`,A=i.div`
|
|
10
10
|
cursor: pointer;
|
|
11
11
|
display: flex;
|
|
12
12
|
gap: var(--spacing-xxs);
|
|
13
13
|
align-items: center;
|
|
14
14
|
user-select: none;
|
|
15
|
-
`,
|
|
15
|
+
`,R=i.div`
|
|
16
16
|
display: flex;
|
|
17
17
|
flex-wrap: wrap;
|
|
18
18
|
gap: var(--spacing-xxs);
|
|
19
19
|
word-break: normal;
|
|
20
|
-
`,
|
|
21
|
-
max-height: ${
|
|
22
|
-
opacity: ${
|
|
20
|
+
`,z=i.div`
|
|
21
|
+
max-height: ${e=>e.isOpen?"1000px":"0"};
|
|
22
|
+
opacity: ${e=>e.isOpen?"1":"0"};
|
|
23
23
|
overflow: hidden;
|
|
24
24
|
transition:
|
|
25
25
|
max-height 0.5s ease-in-out,
|
|
26
26
|
opacity 0.5s ease-in-out;
|
|
27
|
-
`,
|
|
27
|
+
`,C=i.span`
|
|
28
28
|
display: inline-flex;
|
|
29
29
|
align-items: center;
|
|
30
30
|
justify-content: center;
|
|
31
|
-
transform: ${
|
|
31
|
+
transform: ${e=>e.isOpen?"rotate(90deg)":"rotate(0deg)"};
|
|
32
32
|
transition: transform 0.5s ease-in-out;
|
|
33
|
-
`,
|
|
33
|
+
`,B=S(y);export{B as OAuthScopes};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as r,Fragment as p,jsxs as i}from"react/jsx-runtime";import{SecuritySchemeItem as a}from"./SecuritySchemeItem.js";import{titleize as v}from"../../utils/index.js";import{OAuthFlow as g}from"./OAuthFlow.js";import{StyledLink as w}from"./styled.js";import{Markdown as x}from"../Markdown/index.js";import{useTranslate as S}from"../../hooks/index.js";import{OAuthScopes as y}from"./OAuthScopes.js";import{styled as m}from"../../styled-components.js";function K({type:o,bearerFormat:c,name:d,flows:t,openIdConnectUrl:n,description:h,id:l,securities:u,in:f}){const e=S();if(!o||!l)return null;const b={http:i(p,{children:[r(a,{label:e("openapi.httpAuthorizationScheme","HTTP Authorization Scheme"),value:o}),r(a,{label:e("openapi.bearerFormat","Bearer Format"),value:c})]}),apiKey:r(a,{label:`${v(f||"")} ${e("openapi.parameterName","parameter name")}:`,value:d}),oauth2:i(p,{children:[r(a,{label:e("openapi.flowType","Flow type"),value:o}),t&&Object.keys(t).map(s=>r(g,{flow:t[s]},s))]}),openIdConnect:r(a,{label:e("openapi.connectUrl","Connect URL"),value:n&&r(w,{target:"_blank",rel:"noopener noreferrer",href:n,children:n})})};return i(F,{children:[r(T,{children:l}),r(x,{source:h}),i(z,{children:[b[o]||null,r(y,{id:l,securities:u,flows:t})]})]})}const F=m.div`
|
|
2
2
|
background: var(--layer-color);
|
|
3
3
|
padding: var(--spacing-base);
|
|
4
4
|
border-radius: var(--border-radius);
|
|
5
5
|
border: 1px solid var(--border-color-secondary);
|
|
6
6
|
width: 100%;
|
|
7
7
|
margin-top: var(--spacing-base);
|
|
8
|
-
`,
|
|
8
|
+
`,z=m.div`
|
|
9
9
|
width: 100%;
|
|
10
10
|
margin-top: var(--spacing-md);
|
|
11
|
-
`,
|
|
11
|
+
`,T=m.p`
|
|
12
12
|
font-size: var(--font-size-base);
|
|
13
13
|
margin: 0 0 var(--spacing-xs);
|
|
14
14
|
text-transform: capitalize;
|
|
15
15
|
font-weight: var(--font-weight-semibold);
|
|
16
|
-
`;export{
|
|
16
|
+
`;export{K as SecurityFlow};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function f(r,o){const e=new Set;return o.forEach(({schemes:t})=>{t.forEach(({id:c,scopes:n})=>{c===r&&n.forEach(a=>e.add(a))})}),Array.from(e)}function i(r,o){const e=new Set(r);return o.filter(t=>!e.has(t))}export{i as getOptionalScopes,f as getRequiredScopes};
|
|
@@ -3,7 +3,7 @@ export { SecurityButton } from './SecurityButton.js';
|
|
|
3
3
|
export { SecurityFlow } from './SecurityFlow.js';
|
|
4
4
|
export { SecuritySchemeItem } from './SecuritySchemeItem.js';
|
|
5
5
|
export { OAuthFlow } from './OAuthFlow.js';
|
|
6
|
-
export {
|
|
6
|
+
export { OAuthScopes } from './OAuthScopes.js';
|
|
7
7
|
export { SecurityModal } from './SecurityModal.js';
|
|
8
8
|
export { Divider } from './Divider.js';
|
|
9
9
|
export * from './helper.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Security as e}from"./Security.js";import{SecurityButton as
|
|
1
|
+
import{Security as e}from"./Security.js";import{SecurityButton as m}from"./SecurityButton.js";import{SecurityFlow as f}from"./SecurityFlow.js";import{SecuritySchemeItem as u}from"./SecuritySchemeItem.js";import{OAuthFlow as i}from"./OAuthFlow.js";import{OAuthScopes as y}from"./OAuthScopes.js";import{SecurityModal as l}from"./SecurityModal.js";import{Divider as w}from"./Divider.js";export*from"./helper.js";export*from"./styled.js";export{w as Divider,i as OAuthFlow,y as OAuthScopes,e as Security,m as SecurityButton,f as SecurityFlow,l as SecurityModal,u as SecuritySchemeItem};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{css as
|
|
1
|
+
import{css as n}from"styled-components";import{ChevronDownIcon as t}from"@redocly/theme";import{Select as i}from"./Select.js";import{styled as e}from"../../../styled-components.js";const r=n`
|
|
2
2
|
background-color: var(--panel-samples-dropdown-bg-color);
|
|
3
3
|
border: var(--panel-samples-dropdown-border);
|
|
4
4
|
color: var(--panel-samples-dropdown-color);
|
|
@@ -8,7 +8,7 @@ import{css as t}from"styled-components";import{ChevronDownIcon as a}from"@redocl
|
|
|
8
8
|
&:focus-within {
|
|
9
9
|
box-shadow: none;
|
|
10
10
|
}
|
|
11
|
-
`,
|
|
11
|
+
`,a=e(i)`
|
|
12
12
|
box-sizing: border-box;
|
|
13
13
|
outline: none;
|
|
14
14
|
display: inline-block;
|
|
@@ -43,7 +43,7 @@ import{css as t}from"styled-components";import{ChevronDownIcon as a}from"@redocl
|
|
|
43
43
|
box-shadow: none;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
${({variant:o})=>o==="dark"?
|
|
46
|
+
${({variant:o})=>o==="dark"?r:""};
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
.dropdown-select {
|
|
@@ -62,9 +62,9 @@ import{css as t}from"styled-components";import{ChevronDownIcon as a}from"@redocl
|
|
|
62
62
|
font-size: var(--font-size-base);
|
|
63
63
|
font-family: inherit;
|
|
64
64
|
padding: var(--docs-dropdown-padding);
|
|
65
|
-
${({variant:o})=>o==="dark"?
|
|
65
|
+
${({variant:o})=>o==="dark"?r:""};
|
|
66
66
|
}
|
|
67
|
-
`,c=
|
|
67
|
+
`,c=e(a)`
|
|
68
68
|
svg {
|
|
69
69
|
top: 60%;
|
|
70
70
|
transform: translateY(-60%);
|
|
@@ -82,29 +82,8 @@ import{css as t}from"styled-components";import{ChevronDownIcon as a}from"@redocl
|
|
|
82
82
|
box-shadow: none;
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
|
-
`,
|
|
86
|
-
svg {
|
|
87
|
-
top: 60%;
|
|
88
|
-
transform: translateY(-60%);
|
|
89
|
-
}
|
|
90
|
-
label {
|
|
91
|
-
${e};
|
|
92
|
-
|
|
93
|
-
border-radius: var(--border-radius-lg);
|
|
94
|
-
margin-left: 5px;
|
|
95
|
-
transition: none;
|
|
96
|
-
min-width: auto;
|
|
97
|
-
background-color: ${({active:o})=>o?"var(--panel-samples-tabs-bg-color-active)":"var(--bg-color-raised)"};
|
|
98
|
-
& {
|
|
99
|
-
&[open],
|
|
100
|
-
&:focus-within,
|
|
101
|
-
&:hover {
|
|
102
|
-
background-color: var(--bg-color-tonal);
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
`,h=r(a)`
|
|
85
|
+
`,h=e(t)`
|
|
107
86
|
position: absolute;
|
|
108
87
|
right: 10px;
|
|
109
88
|
top: 10px;
|
|
110
|
-
`;export{h as Arrow,
|
|
89
|
+
`;export{h as Arrow,a as Select,c as SimpleSelect};
|
package/lib/jotai/operation.d.ts
CHANGED
|
@@ -16,8 +16,8 @@ export type OperationStore = {
|
|
|
16
16
|
};
|
|
17
17
|
export declare function getDefaultOperationStore(pointer: string, requestValues?: {
|
|
18
18
|
[field: string]: any;
|
|
19
|
-
}): {
|
|
20
|
-
activeExampleName: undefined;
|
|
19
|
+
}, activeExampleName?: string): {
|
|
20
|
+
activeExampleName: string | undefined;
|
|
21
21
|
activeOneOf: {
|
|
22
22
|
[x: string]: number;
|
|
23
23
|
};
|
package/lib/jotai/operation.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{atom as a}from"jotai";import{atomFamily as
|
|
1
|
+
import{atom as a}from"jotai";import{atomFamily as s}from"jotai/utils";import u from"deepmerge";function l(e,t={},o){return{activeExampleName:o,activeOneOf:{[e]:0},requestValues:t,request:{expandedAll:void 0},response:{expandedAll:void 0}}}const r=a({}),c=s(e=>a(t=>t(r)?.[e]||l(e),(t,o,m)=>{const n=t(r),p=n[e]||l(e);o(r,{...n,[e]:u(p,m)})}));export{r as allOperations,l as getDefaultOperationStore,c as operationStore};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redocly/openapi-docs",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.12.0-next.1",
|
|
4
4
|
"description": "Redocly OpenAPI Docs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"npm": ">=10.0.0"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
17
|
-
"@redocly/theme": ">=0.
|
|
17
|
+
"@redocly/theme": ">=0.56.0-next.0",
|
|
18
18
|
"react": "^19.1.0",
|
|
19
19
|
"react-dom": "^19.1.0",
|
|
20
20
|
"styled-components": "^4.1.1 || ^5.3.11 || ^6.0.0"
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"url-template": "^2.0.8",
|
|
37
37
|
"util": "~0.12.5",
|
|
38
38
|
"web-vitals": "3.3.1",
|
|
39
|
-
"@redocly/
|
|
40
|
-
"@redocly/
|
|
39
|
+
"@redocly/config": "0.26.2",
|
|
40
|
+
"@redocly/replay": "0.15.0-next.0"
|
|
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.
|
|
77
|
+
"@redocly/theme": "0.56.0-next.0"
|
|
78
78
|
},
|
|
79
79
|
"scripts": {
|
|
80
80
|
"start": "npm run copy-highlight-hook && vite",
|