@redocly/openapi-docs 3.16.0-next.9 → 3.16.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 +2128 -2080
- package/lib/components/Security/Security.js +1 -1
- package/package.json +19 -18
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as r,Fragment as
|
|
1
|
+
import{jsx as r,Fragment as f,jsxs as y}from"react/jsx-runtime";import{useState as h,useRef as C}from"react";import{Portal as b}from"@redocly/theme/components/Portal/Portal";import{useModalScrollLock as w}from"@redocly/theme/core/openapi";import{SecurityButton as M}from"./SecurityButton.js";import{SecurityModal as S}from"./SecurityModal.js";import{useTelemetry as g}from"../../hooks/index.js";function _({securities:t}){const[i,c]=h(!1),l=g(),e=C(null);if(w(i),!t.length)return null;const m=()=>{const o=t.flatMap(s=>s.schemes),n=[...new Set(o.map(s=>s.type))],u=o.length,a=n.length>1,p=Date.now();e.current={securityTypes:n,schemesCount:u,isCombined:a,modalOpenTime:p},l.sendViewSecurityDetailsClickedMessage({id:"openapi-docs-security-button",object:"button",uri:window.location.href,securityTypes:n,schemesCount:u,isCombined:a}),c(!0)},d=()=>{if(e.current){const o=Date.now()-e.current.modalOpenTime;l.sendViewSecurityDetailsClosedMessage({id:"openapi-docs-security-button",object:"button",uri:window.location.href,securityTypes:e.current.securityTypes,schemesCount:e.current.schemesCount,isCombined:e.current.isCombined,timeInModalMs:o}),e.current=null}c(!1)};return y(f,{children:[r(M,{securities:t,onClick:m}),i&&r(b,{mountId:"api-content",children:r(S,{securities:t,onClose:d})})]})}export{_ as Security};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redocly/openapi-docs",
|
|
3
|
-
"version": "3.16.
|
|
3
|
+
"version": "3.16.1",
|
|
4
4
|
"description": "Redocly OpenAPI Docs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
17
17
|
"@redocly/theme": ">=0.60.0-next.0",
|
|
18
|
-
"react": "^19.1
|
|
19
|
-
"react-dom": "^19.1
|
|
18
|
+
"react": "^19.2.1",
|
|
19
|
+
"react-dom": "^19.2.1",
|
|
20
20
|
"styled-components": "^4.1.1 || ^5.3.11 || ^6.0.0"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@markdoc/markdoc": "0.5.2",
|
|
24
|
-
"@redocly/openapi-core": "2.12.
|
|
24
|
+
"@redocly/openapi-core": "2.12.3",
|
|
25
25
|
"deepmerge": "^4.2.2",
|
|
26
26
|
"dompurify": "3.2.7",
|
|
27
27
|
"fast-deep-equal": "^3.1.3",
|
|
@@ -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/replay": "0.19.1",
|
|
40
|
+
"@redocly/config": "0.41.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@jest/globals": "29.5.0",
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"@types/json-pointer": "1.0.34",
|
|
51
51
|
"@types/json-schema": "^7.0.15",
|
|
52
52
|
"@types/node": "22.18.13",
|
|
53
|
-
"@types/react": "^19.
|
|
54
|
-
"@types/react-dom": "^19.
|
|
53
|
+
"@types/react": "^19.2.7",
|
|
54
|
+
"@types/react-dom": "^19.2.3",
|
|
55
55
|
"@types/styled-components": "5.1.34",
|
|
56
56
|
"@vitejs/plugin-react": "5.1.1",
|
|
57
57
|
"esbuild": "0.27.0",
|
|
@@ -64,18 +64,19 @@
|
|
|
64
64
|
"outdent": "0.8.0",
|
|
65
65
|
"path-browserify": "1.0.1",
|
|
66
66
|
"prettier-2": "npm:prettier@2.8.8",
|
|
67
|
-
"react": "^19.1
|
|
68
|
-
"react-dom": "^19.1
|
|
67
|
+
"react": "^19.2.1",
|
|
68
|
+
"react-dom": "^19.2.1",
|
|
69
69
|
"rimraf": "5.0.7",
|
|
70
70
|
"rollup-plugin-bundle-stats": "^4.20.2",
|
|
71
71
|
"shiki": "1.24.4",
|
|
72
72
|
"styled-components": "5.3.11",
|
|
73
73
|
"ts-jest": "29.1.2",
|
|
74
|
+
"ts-jest-mock-import-meta": "1.1.0",
|
|
74
75
|
"tsx": "4.20.3",
|
|
75
76
|
"typescript": "5.9.3",
|
|
76
77
|
"url": "~0.11.0",
|
|
77
78
|
"vite": "7.2.6",
|
|
78
|
-
"@redocly/theme": "0.60.
|
|
79
|
+
"@redocly/theme": "0.60.1"
|
|
79
80
|
},
|
|
80
81
|
"scripts": {
|
|
81
82
|
"start": "npm run copy-highlight-hook && vite",
|
|
@@ -86,13 +87,13 @@
|
|
|
86
87
|
"prepare:community-source-only": "npm run prepare:community-source --ignore /src/* private-readme.md",
|
|
87
88
|
"prepare:community-dependencies": "npx tsx scripts/prepare-community-dependencies.ts",
|
|
88
89
|
"apply:community-source": "npx tsx scripts/apply-changes-from-community-source.ts",
|
|
89
|
-
"test": "npm run prepare:community-source && npm run test:redoc &&
|
|
90
|
-
"test:redoc": "cd redoc && pnpm install &&
|
|
91
|
-
"unit": "
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
90
|
+
"test": "npm run prepare:community-source && npm run redoc:use-workspace && npm run test:redoc && npm run redoc:revert-workspace && vitest run",
|
|
91
|
+
"test:redoc": "cd redoc && pnpm install &&npm run lint && npm run unit",
|
|
92
|
+
"unit": "vitest run",
|
|
93
|
+
"unit:update": "vitest run -u",
|
|
94
|
+
"unit:watch": "vitest",
|
|
95
|
+
"unit:coverage": "vitest run --coverage",
|
|
96
|
+
"unit:coverage:html": "vitest run --coverage --coverage.reporter=html",
|
|
96
97
|
"ts:check": "tsc --noEmit --skipLibCheck",
|
|
97
98
|
"clean": "rimraf bin dist lib redocly-static",
|
|
98
99
|
"clear:cache": "scripts/clear-cache.sh",
|