@redocly/openapi-docs 3.21.0-next.6 → 3.22.0-next.0
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 +2131 -2091
- package/lib/components/Replay/EmbeddedReplay.js +3 -3
- package/package.json +6 -11
|
@@ -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 h,lazy as O,memo as S,useEffect as x,useState as R}from"react";import{useAtomValue as o}from"jotai";import{operationStore as T}from"../../jotai/operation.js";import{appStore as A,allowedEnvironmentsAtom as C,environmentsAtom as L}from"../../jotai/app.js";import{globalOptionsAtom as V}from"../../jotai/store.js";import{useTranslate as j}from"../../hooks/index.js";import{convertOperationToReplayValue as w}from"./utils.js";import{getDefaultCollectorUrl as P}from"../../utils/telemetry.js";import{styled as i}from"../../styled-components.js";import{HTTPSnippet as U}from"../../services/code-samples/httpsnippet/index.js";const W=O(async()=>import("@redocly/replay").then(t=>({default:t.EmbeddedReplay})));function k({activeOperationId:t,corsProxyUrl:d,fullOpenApi:l,pointer:r,hideOtherSecuritySchemes:m}){const n=j(),s=o(T(r)),c=o(A),f=o(L),a=o(C),u=o(V),[y,g]=R(!1);return x(()=>{g(!0)},[]),e(z,{children:y?e(h,{fallback:e(p,{children:n("openapi.loading","Loading...")}),children:e(W,{activeOperationId:t,activeOperationPointer:r,api:l,settings:{predefinedEnvValues:f,corsProxyUrl:d,disableCollectionsTab:!0,hideOtherSecuritySchemes:m,...a&&{allowedEnvironments:a},telemetry:{tracerName:"replay-openapi",collectorUrl:P()},HTTPSnippet:U,convertOperationToReplayValue:(v,b,E)=>w(v,b,E,void 0,s,c,void 0,u)}})}):e(p,{children:n("openapi.loading","Loading...")})})}const M=S(k),p=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: center;
|
|
4
4
|
align-items: center;
|
|
5
5
|
min-height: 100px;
|
|
6
|
-
`,
|
|
6
|
+
`,z=i.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{M as EmbeddedReplay};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redocly/openapi-docs",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.22.0-next.0",
|
|
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.66.0-next.0",
|
|
18
18
|
"react": "^19.2.4",
|
|
19
19
|
"react-dom": "^19.2.4",
|
|
20
20
|
"styled-components": "^4.1.1 || ^5.3.11 || ^6.0.0"
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"url-template": "^2.0.8",
|
|
39
39
|
"util": "~0.12.5",
|
|
40
40
|
"web-vitals": "3.3.1",
|
|
41
|
-
"@redocly/config": "0.48.
|
|
41
|
+
"@redocly/config": "0.48.2",
|
|
42
42
|
"@redocly/redoc-opentelemetry": "0.1.0",
|
|
43
|
-
"@redocly/replay": "0.
|
|
43
|
+
"@redocly/replay": "0.25.0-next.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@shikijs/transformers": "3.21.0",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"url": "~0.11.0",
|
|
73
73
|
"vite": "7.2.6",
|
|
74
74
|
"vitest": "4.0.10",
|
|
75
|
-
"@redocly/theme": "0.
|
|
75
|
+
"@redocly/theme": "0.66.0-next.0"
|
|
76
76
|
},
|
|
77
77
|
"scripts": {
|
|
78
78
|
"start": "pnpm run copy-highlight-hook && vite",
|
|
@@ -83,15 +83,10 @@
|
|
|
83
83
|
"prepare:community-source-only": "pnpm run prepare:community-source --ignore /src/* private-readme.md",
|
|
84
84
|
"prepare:community-dependencies": "pnpm exec tsx scripts/prepare-community-dependencies.ts",
|
|
85
85
|
"apply:community-source": "pnpm exec tsx scripts/apply-changes-from-community-source.ts",
|
|
86
|
-
"test": "vitest run",
|
|
87
|
-
"unit": "vitest run",
|
|
88
|
-
"unit:update": "vitest run -u",
|
|
89
|
-
"unit:watch": "vitest",
|
|
90
|
-
"unit:coverage": "vitest run --coverage",
|
|
91
|
-
"unit:coverage:html": "vitest run --coverage --coverage.reporter=html",
|
|
92
86
|
"ts:check": "tsc --noEmit --skipLibCheck",
|
|
93
87
|
"clean": "rimraf bin dist lib redocly-static",
|
|
94
88
|
"clear:cache": "scripts/clear-cache.sh",
|
|
89
|
+
"test": "nx run vitest:test",
|
|
95
90
|
"pack:sourcemaps": "rimraf openapi-docs.sourcemaps.tag.gz && find lib -name \"*.js.map\" | xargs tar -czvf openapi-docs.sourcemaps.tar.gz",
|
|
96
91
|
"list:licenses": "node ./scripts/list-licenses.js",
|
|
97
92
|
"license:check": "npx license-checker --production --onlyAllow 'MIT;ISC;Apache-2.0;Apache;CC0-1.0;BSD;BSD-2-Clause;BSD-3-Clause;UNKNOWN' --summary",
|