@redocly/replay 0.18.0-next.1 → 0.18.0-next.11
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/oauth2-redirect.cjs +3 -3
- package/dist/oauth2-redirect.d.ts +0 -10
- package/dist/oauth2-redirect.js +28 -29
- package/dist/replay-index-BQYP1xr8.js +32 -0
- package/dist/replay-index-C4h35ymL.js +5081 -0
- package/dist/replay-index-CnDTRj3W.js +107198 -0
- package/dist/{replay-index-DPVVIR4i.js → replay-index-CzFgkO6x.js} +1 -1
- package/dist/replay-index-DRv6Vpfr.js +3777 -0
- package/dist/{replay-index-y3pvXgBP.js → replay-index-DXgHbX20.js} +1 -1
- package/dist/replay-tauri-path-CKzwm1ID.js +1 -0
- package/dist/replay-tauri-path-DPfyngqO.js +21 -0
- package/dist/replay.cjs +1 -1
- package/dist/replay.d.ts +12 -10
- package/dist/replay.js +7 -4
- package/package.json +9 -9
- package/dist/replay-index-CfH4WmU1.js +0 -134
- package/dist/replay-index-D-GwImOJ.js +0 -100714
- package/dist/replay-index-DM4kGyuL.js +0 -16644
- package/dist/replay-index-hXC9mqMj.js +0 -4310
- package/dist/replay-tauri-path-CturJpPH.js +0 -16
- package/dist/replay-tauri-path-sMFxMpbK.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./replay-index-C4h35ymL.js");async function u(r,n){const t=e.sep(),l=await e.resolve(r),c=await e.resolve(n),a=l.replace(new RegExp(`^${t}+`),"").split(t).filter(Boolean),s=c.replace(new RegExp(`^${t}+`),"").split(t).filter(Boolean),p=Math.min(a.length,s.length);let i=0;for(let o=0;o<p&&a[o]===s[o];o++)i++;const m=a.slice(i).map(()=>".."),f=s.slice(i);return[...m,...f].join(t)}async function g(r){const n=await e.extname(r);return n?`.${n}`:""}exports.isAbsolute=e.isAbsolute;exports.join=e.join;exports.resolve=e.resolve;exports.extname=g;exports.relative=u;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { s as h, r as i, e as x } from "./replay-index-CnDTRj3W.js";
|
|
2
|
+
import { i as j, j as b } from "./replay-index-CnDTRj3W.js";
|
|
3
|
+
async function u(a, e) {
|
|
4
|
+
const t = h(), l = await i(a), c = await i(e), o = l.replace(new RegExp(`^${t}+`), "").split(t).filter(Boolean), r = c.replace(new RegExp(`^${t}+`), "").split(t).filter(Boolean), p = Math.min(o.length, r.length);
|
|
5
|
+
let s = 0;
|
|
6
|
+
for (let n = 0; n < p && o[n] === r[n]; n++)
|
|
7
|
+
s++;
|
|
8
|
+
const m = o.slice(s).map(() => ".."), f = r.slice(s);
|
|
9
|
+
return [...m, ...f].join(t);
|
|
10
|
+
}
|
|
11
|
+
async function w(a) {
|
|
12
|
+
const e = await x(a);
|
|
13
|
+
return e ? `.${e}` : "";
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
w as extname,
|
|
17
|
+
j as isAbsolute,
|
|
18
|
+
b as join,
|
|
19
|
+
u as relative,
|
|
20
|
+
i as resolve
|
|
21
|
+
};
|
package/dist/replay.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./replay-index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./replay-index-C4h35ymL.js");exports.EmbeddedReplay=e.EmbeddedReplay;exports.Modal=e.Modal;exports.Replay=e.Replay;exports.ReplayOverlay=e.ReplayOverlay;exports.applyThemeToDOM=e.applyThemeToDOM;exports.getCurrentTheme=e.getCurrentTheme;exports.resolveTheme=e.resolveTheme;
|
package/dist/replay.d.ts
CHANGED
|
@@ -8,6 +8,8 @@ declare type ApiPath = {
|
|
|
8
8
|
method: string;
|
|
9
9
|
};
|
|
10
10
|
|
|
11
|
+
export declare function applyThemeToDOM(resolvedTheme: ResolvedTheme): void;
|
|
12
|
+
|
|
11
13
|
declare type AuthorizationCodeOAuthFlowsObject = {
|
|
12
14
|
authorizationUrl: string;
|
|
13
15
|
tokenUrl: string;
|
|
@@ -53,6 +55,8 @@ declare type ConvertOperationFunction = (path: string, method: string, openAPI:
|
|
|
53
55
|
|
|
54
56
|
export declare function EmbeddedReplay(props: ReplayAppProps): JSX.Element;
|
|
55
57
|
|
|
58
|
+
export declare function getCurrentTheme(): ResolvedTheme;
|
|
59
|
+
|
|
56
60
|
declare type GetOperationURLFunction = (operationId?: string) => string | undefined;
|
|
57
61
|
|
|
58
62
|
declare type ImplicitOAuthFlowsObject = {
|
|
@@ -115,6 +119,7 @@ declare type ModalProps = {
|
|
|
115
119
|
isOpen: boolean;
|
|
116
120
|
onClose: () => void;
|
|
117
121
|
title: string;
|
|
122
|
+
hideHeader?: boolean;
|
|
118
123
|
content: ReactElement;
|
|
119
124
|
mountId?: string;
|
|
120
125
|
className?: string;
|
|
@@ -582,6 +587,7 @@ declare type ReplayAppProps = {
|
|
|
582
587
|
activeOperationPointer?: string;
|
|
583
588
|
api?: OpenAPIDefinition;
|
|
584
589
|
settings: InputSettings;
|
|
590
|
+
renderProjectSelect?: () => React.ReactNode;
|
|
585
591
|
};
|
|
586
592
|
|
|
587
593
|
export declare type ReplayOnChangeParams = {
|
|
@@ -601,6 +607,10 @@ declare type ReplayOverlayProps = {
|
|
|
601
607
|
onRequestChange?: (props: ReplayOnChangeParams) => void;
|
|
602
608
|
} & ReplayAppProps;
|
|
603
609
|
|
|
610
|
+
export declare type ResolvedTheme = 'light' | 'dark';
|
|
611
|
+
|
|
612
|
+
export declare function resolveTheme(theme: Theme): ResolvedTheme;
|
|
613
|
+
|
|
604
614
|
declare type Response_2 = ImmutableObject<{
|
|
605
615
|
headers: [string, string][];
|
|
606
616
|
cookies: [string, string][];
|
|
@@ -628,6 +638,8 @@ declare type ServerVariable = {
|
|
|
628
638
|
description?: string;
|
|
629
639
|
};
|
|
630
640
|
|
|
641
|
+
export declare type Theme = 'light' | 'dark' | 'auto';
|
|
642
|
+
|
|
631
643
|
declare type TracerName = 'try-it' | 'replay-openapi' | 'desktop';
|
|
632
644
|
|
|
633
645
|
declare interface XLogo {
|
|
@@ -655,13 +667,3 @@ declare interface XSEO {
|
|
|
655
667
|
}
|
|
656
668
|
|
|
657
669
|
export { }
|
|
658
|
-
|
|
659
|
-
declare global {
|
|
660
|
-
interface Window {
|
|
661
|
-
__TAURI__: {
|
|
662
|
-
http: {
|
|
663
|
-
fetch: typeof globalThis.fetch;
|
|
664
|
-
};
|
|
665
|
-
};
|
|
666
|
-
}
|
|
667
|
-
}
|
package/dist/replay.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { V as s, W as l, X as p, Y as r, _ as m, $ as o, Z as y } from "./replay-index-CnDTRj3W.js";
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
s as EmbeddedReplay,
|
|
4
|
+
l as Modal,
|
|
5
5
|
p as Replay,
|
|
6
|
-
|
|
6
|
+
r as ReplayOverlay,
|
|
7
|
+
m as applyThemeToDOM,
|
|
8
|
+
o as getCurrentTheme,
|
|
9
|
+
y as resolveTheme
|
|
7
10
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redocly/replay",
|
|
3
|
-
"version": "0.18.0-next.
|
|
3
|
+
"version": "0.18.0-next.11",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/replay.cjs",
|
|
6
6
|
"module": "./dist/replay.js",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"react-dom": "^19.1.0",
|
|
20
20
|
"react-router-dom": "^6.21.1",
|
|
21
21
|
"styled-components": "^5.3.11",
|
|
22
|
-
"@redocly/theme": "0.59.0-next.
|
|
22
|
+
"@redocly/theme": "0.59.0-next.10"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@codemirror/autocomplete": "^6.15.0",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"@redocly/hookstate-core": "^4.2.0",
|
|
36
36
|
"@redocly/hookstate-devtools": "^4.2.0",
|
|
37
37
|
"@redocly/hookstate-localstored": "^4.0.2",
|
|
38
|
-
"@redocly/openapi-core": "2.
|
|
39
|
-
"@redocly/respect-core": "2.
|
|
38
|
+
"@redocly/openapi-core": "2.8.0",
|
|
39
|
+
"@redocly/respect-core": "2.8.0",
|
|
40
40
|
"@redocly/vscode-json-languageservice": "^3.4.9",
|
|
41
41
|
"@tauri-apps/api": "2.4.1",
|
|
42
42
|
"@tauri-apps/plugin-dialog": "2.0.0-rc.1",
|
|
@@ -66,12 +66,12 @@
|
|
|
66
66
|
"@types/js-yaml": "4.0.9",
|
|
67
67
|
"@types/json-pointer": "1.0.34",
|
|
68
68
|
"@types/marked": "4.3.2",
|
|
69
|
-
"@types/node": "22.
|
|
69
|
+
"@types/node": "22.18.13",
|
|
70
70
|
"@types/path-browserify": "^1.0.3",
|
|
71
71
|
"@types/react": "^19.1.4",
|
|
72
72
|
"@types/react-dom": "^19.1.4",
|
|
73
73
|
"@types/styled-components": "5.1.34",
|
|
74
|
-
"@vitejs/plugin-react-swc": "^
|
|
74
|
+
"@vitejs/plugin-react-swc": "^4.0.0",
|
|
75
75
|
"babel-jest": "29.7.0",
|
|
76
76
|
"identity-obj-proxy": "3.0.0",
|
|
77
77
|
"jest": "^29.7.0",
|
|
@@ -79,9 +79,9 @@
|
|
|
79
79
|
"json-schema-typed": "^8.0.1",
|
|
80
80
|
"ts-jest": "^29.1.2",
|
|
81
81
|
"ts-node": "10.9.2",
|
|
82
|
-
"typescript": "5.
|
|
83
|
-
"vite": "
|
|
84
|
-
"vite-plugin-dts": "
|
|
82
|
+
"typescript": "5.9.3",
|
|
83
|
+
"vite": "7.1.9",
|
|
84
|
+
"vite-plugin-dts": "4.5.4",
|
|
85
85
|
"vite-tsconfig-paths": "4.3.2",
|
|
86
86
|
"@redocly/replay-asyncapi-sdk": "0.0.1"
|
|
87
87
|
},
|