@redocly/replay 0.19.0-next.4 → 0.19.0-next.6
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/{replay-index-ByJGsujY.js → replay-index-5JdLVL4o.js} +1 -1
- package/dist/{replay-index-DxmOrvnr.js → replay-index-CD36M2en.js} +1 -1
- package/dist/{replay-index-BaPjCumo.js → replay-index-CXcBKtqt.js} +1423 -1139
- package/dist/{replay-index-VJE4ELop.js → replay-index-D-NcP33L.js} +35873 -29426
- package/dist/{replay-index-Cz6SRNih.js → replay-index-DAWlOXCP.js} +1 -1
- package/dist/{replay-index-EOLcLPbT.js → replay-index-DfeZbzPL.js} +1 -1
- package/dist/{replay-tauri-path-DdmzDP2i.js → replay-tauri-path-BiyOWioN.js} +2 -2
- package/dist/{replay-tauri-path-BH4VW5ev.js → replay-tauri-path-CDrQJjIg.js} +1 -1
- package/dist/replay.cjs +1 -1
- package/dist/replay.d.ts +54 -5
- package/dist/replay.js +9 -5
- package/package.json +13 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./replay-index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./replay-index-CXcBKtqt.js");async function n(e={}){return typeof e=="object"&&Object.freeze(e),await t.invoke("plugin:dialog|open",{options:e})}exports.open=n;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as Gt, a as U, p as Y, c as Io, f as ke, g as cr, h as Do, k as rr, l as Lo, y as fr, m as X, n as Re, o as Zt, q as No, t as ur, u as Yt, v as we, R as Ze, w as jo, x as Wo, C as V, z as Dt, A as qo, B as Uo, S as es, U as rs, D as J, E as zo, F as Bo, G as xo, H as Mo, I as Vo, J as Ko, K as Ho, L as Jo, M as Xo, N as Lt, O as Qo, P as Nt, Q as Go, T as Zo } from "./replay-index-
|
|
1
|
+
import { b as Gt, a as U, p as Y, c as Io, f as ke, g as cr, h as Do, k as rr, l as Lo, y as fr, m as X, n as Re, o as Zt, q as No, t as ur, u as Yt, v as we, R as Ze, w as jo, x as Wo, C as V, z as Dt, A as qo, B as Uo, S as es, U as rs, D as J, E as zo, F as Bo, G as xo, H as Mo, I as Vo, J as Ko, K as Ho, L as Jo, M as Xo, N as Lt, O as Qo, P as Nt, Q as Go, T as Zo } from "./replay-index-D-NcP33L.js";
|
|
2
2
|
async function Yo(r) {
|
|
3
3
|
const { descriptionPath: t, externalRefResolver: e, base: n } = r, a = await Gt({
|
|
4
4
|
base: n,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as h, r as i, e as x } from "./replay-index-
|
|
2
|
-
import { d as j, i as b, j as d } from "./replay-index-
|
|
1
|
+
import { s as h, r as i, e as x } from "./replay-index-D-NcP33L.js";
|
|
2
|
+
import { d as j, i as b, j as d } from "./replay-index-D-NcP33L.js";
|
|
3
3
|
async function u(n, e) {
|
|
4
4
|
const t = h(), l = await i(n), c = await i(e), o = l.replace(new RegExp(`^${t}+`), "").split(t).filter(Boolean), r = c.replace(new RegExp(`^${t}+`), "").split(t).filter(Boolean), m = Math.min(o.length, r.length);
|
|
5
5
|
let s = 0;
|
|
@@ -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-CXcBKtqt.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),i=c.replace(new RegExp(`^${t}+`),"").split(t).filter(Boolean),m=Math.min(a.length,i.length);let s=0;for(let o=0;o<m&&a[o]===i[o];o++)s++;const p=a.slice(s).map(()=>".."),f=i.slice(s);return[...p,...f].join(t)}async function g(r){const n=await e.extname(r);return n?`.${n}`:""}exports.dirname=e.dirname;exports.isAbsolute=e.isAbsolute;exports.join=e.join;exports.resolve=e.resolve;exports.extname=g;exports.relative=u;
|
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-CXcBKtqt.js");exports.EmbeddedReplay=e.EmbeddedReplay;exports.Modal=e.Modal;exports.Replay=e.Replay;exports.ReplayOverlay=e.ReplayOverlay;Object.defineProperty(exports,"SpanStatusCode",{enumerable:!0,get:()=>e.SpanStatusCode});exports.TelemetryClient=e.TelemetryClient;exports.applyThemeToDOM=e.applyThemeToDOM;exports.getCurrentTheme=e.getCurrentTheme;exports.resolveTheme=e.resolveTheme;exports.useTelemetry=e.useTelemetry;exports.useTelemetryClient=e.useTelemetryClient;
|
package/dist/replay.d.ts
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
import { AsyncApiReplay } from '@redocly/replay-asyncapi-sdk';
|
|
1
2
|
import { ImmutableObject } from '@redocly/hookstate-core';
|
|
2
3
|
import { JSX } from 'react/jsx-runtime';
|
|
3
4
|
import { NamedExoticComponent } from 'react';
|
|
4
5
|
import { ReactElement } from 'react';
|
|
6
|
+
import { SpanStatusCode } from '@opentelemetry/api';
|
|
7
|
+
import { Context as TelemetryContext } from '@opentelemetry/api';
|
|
5
8
|
|
|
6
9
|
declare type ApiPath = {
|
|
7
10
|
path: string;
|
|
@@ -78,13 +81,10 @@ declare type InputSettings = {
|
|
|
78
81
|
certificates?: Certificate[];
|
|
79
82
|
storageKey?: string;
|
|
80
83
|
convertOperationToReplayValue?: ConvertOperationFunction;
|
|
84
|
+
HTTPSnippet?: any;
|
|
81
85
|
getOperationUrl?: GetOperationURLFunction;
|
|
82
86
|
onRequestReset?: () => void;
|
|
83
|
-
telemetry?:
|
|
84
|
-
tracerName?: TracerName;
|
|
85
|
-
collectorUrl?: string;
|
|
86
|
-
enableErrorInstrumentation?: boolean;
|
|
87
|
-
};
|
|
87
|
+
telemetry?: TelemetryConfig;
|
|
88
88
|
hideOtherSecuritySchemes?: boolean;
|
|
89
89
|
};
|
|
90
90
|
|
|
@@ -641,10 +641,59 @@ declare type ServerVariable = {
|
|
|
641
641
|
description?: string;
|
|
642
642
|
};
|
|
643
643
|
|
|
644
|
+
export { SpanStatusCode }
|
|
645
|
+
|
|
646
|
+
export declare class TelemetryClient {
|
|
647
|
+
private _client;
|
|
648
|
+
private _isInitialized;
|
|
649
|
+
private _initResolve;
|
|
650
|
+
private _initPromise;
|
|
651
|
+
private _globalAttributes;
|
|
652
|
+
constructor();
|
|
653
|
+
get isInitialized(): boolean;
|
|
654
|
+
get client(): AsyncApiReplay.Telemetry;
|
|
655
|
+
awaitInit(): Promise<TelemetryClient>;
|
|
656
|
+
updateCloudEventData(useCloudEventData: () => AsyncApiReplay.CloudEventBaseData): void;
|
|
657
|
+
enrichGlobalAttributes(attributes: Partial<TelemetryGlobalAttributes>): void;
|
|
658
|
+
getGlobalAttributes(): Readonly<TelemetryGlobalAttributes>;
|
|
659
|
+
clearGlobalAttributes(): void;
|
|
660
|
+
init(config?: TelemetryConfig): void;
|
|
661
|
+
sendEvent<T extends AsyncApiReplay.EventType>(event: T, data: AsyncApiReplay.GetEventData<T>): void;
|
|
662
|
+
startSpan<T extends AsyncApiReplay.EventType>(event: T, data?: AsyncApiReplay.EventPayload<T>, parentCtx?: TelemetryContext): AsyncApiReplay.OtelClientSpan<T> | undefined;
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
export declare type TelemetryConfig = {
|
|
666
|
+
serviceName?: string;
|
|
667
|
+
serviceVersion?: string;
|
|
668
|
+
version?: string;
|
|
669
|
+
tracerName?: TracerName;
|
|
670
|
+
collectorUrl?: string;
|
|
671
|
+
isProd?: boolean;
|
|
672
|
+
enableErrorInstrumentation?: boolean;
|
|
673
|
+
};
|
|
674
|
+
|
|
675
|
+
export { TelemetryContext }
|
|
676
|
+
|
|
677
|
+
export declare type TelemetryGlobalAttributes = {
|
|
678
|
+
platform: string;
|
|
679
|
+
deviceId: string;
|
|
680
|
+
};
|
|
681
|
+
|
|
682
|
+
export declare type TelemetryMethods = {
|
|
683
|
+
sendEvent: <T extends AsyncApiReplay.EventType>(event: T, data: AsyncApiReplay.GetEventData<T>) => void;
|
|
684
|
+
startSpan: <T extends AsyncApiReplay.EventType>(event: T, data?: AsyncApiReplay.EventPayload<T>, parentCtx?: TelemetryContext) => AsyncApiReplay.OtelClientSpan<T> | undefined;
|
|
685
|
+
};
|
|
686
|
+
|
|
644
687
|
export declare type Theme = 'light' | 'dark' | 'auto';
|
|
645
688
|
|
|
646
689
|
declare type TracerName = 'try-it' | 'replay-openapi' | 'desktop';
|
|
647
690
|
|
|
691
|
+
export declare function useTelemetry(): TelemetryMethods;
|
|
692
|
+
|
|
693
|
+
export declare const useTelemetryClient: ({ awaitInit }?: {
|
|
694
|
+
awaitInit?: boolean;
|
|
695
|
+
}) => TelemetryClient | undefined;
|
|
696
|
+
|
|
648
697
|
declare interface XLogo {
|
|
649
698
|
url?: string;
|
|
650
699
|
backgroundColor?: string;
|
package/dist/replay.js
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import { W as s, X as l, Y as
|
|
1
|
+
import { W as s, X as l, Y as t, Z as r, _ as m, a2 as y, a0 as p, a1 as T, $ as o, a3 as d, a4 as n } from "./replay-index-D-NcP33L.js";
|
|
2
2
|
export {
|
|
3
3
|
s as EmbeddedReplay,
|
|
4
4
|
l as Modal,
|
|
5
|
-
|
|
5
|
+
t as Replay,
|
|
6
6
|
r as ReplayOverlay,
|
|
7
|
-
m as
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
m as SpanStatusCode,
|
|
8
|
+
y as TelemetryClient,
|
|
9
|
+
p as applyThemeToDOM,
|
|
10
|
+
T as getCurrentTheme,
|
|
11
|
+
o as resolveTheme,
|
|
12
|
+
d as useTelemetry,
|
|
13
|
+
n as useTelemetryClient
|
|
10
14
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redocly/replay",
|
|
3
|
-
"version": "0.19.0-next.
|
|
3
|
+
"version": "0.19.0-next.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/replay.cjs",
|
|
6
6
|
"module": "./dist/replay.js",
|
|
@@ -19,12 +19,18 @@
|
|
|
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.60.0-next.
|
|
22
|
+
"@redocly/theme": "0.60.0-next.5"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@codemirror/autocomplete": "^6.15.0",
|
|
26
|
+
"@codemirror/search": "^6.5.11",
|
|
27
|
+
"@codemirror/language": "^6.11.3",
|
|
26
28
|
"@codemirror/lang-html": "^6.4.7",
|
|
27
29
|
"@codemirror/lang-json": "^6.0.1",
|
|
30
|
+
"@codemirror/lang-javascript": "^6.2.4",
|
|
31
|
+
"@codemirror/lang-python": "^6.2.1",
|
|
32
|
+
"@codemirror/lang-java": "^6.0.2",
|
|
33
|
+
"@codemirror/legacy-modes": "^6.5.2",
|
|
28
34
|
"@codemirror/lang-xml": "^6.0.2",
|
|
29
35
|
"@codemirror/lang-yaml": "^6.1.2",
|
|
30
36
|
"@codemirror/lint": "^6.5.0",
|
|
@@ -33,7 +39,7 @@
|
|
|
33
39
|
"@lezer/highlight": "^1.1.6",
|
|
34
40
|
"@noble/hashes": "^1.8.0",
|
|
35
41
|
"@opentelemetry/api": "1.9.0",
|
|
36
|
-
"@redocly/hookstate-core": "^4.2.
|
|
42
|
+
"@redocly/hookstate-core": "^4.2.1",
|
|
37
43
|
"@redocly/hookstate-devtools": "^4.2.0",
|
|
38
44
|
"@redocly/hookstate-localstored": "^4.0.2",
|
|
39
45
|
"@redocly/openapi-core": "2.11.1",
|
|
@@ -50,10 +56,14 @@
|
|
|
50
56
|
"json-schema-typed": "^8.0.1",
|
|
51
57
|
"marked": "^4.0.15",
|
|
52
58
|
"path-browserify": "^1.0.1",
|
|
59
|
+
"p-queue": "^7.3.4",
|
|
53
60
|
"rc-tooltip": "^6.1.3",
|
|
54
61
|
"react-arborist": "3.4.0",
|
|
55
62
|
"react-resizable-panels": "2.1.7",
|
|
56
63
|
"react-select": "5.10.1",
|
|
64
|
+
"@dnd-kit/core": "^6.1.0",
|
|
65
|
+
"@dnd-kit/sortable": "^8.0.0",
|
|
66
|
+
"@dnd-kit/utilities": "^3.2.2",
|
|
57
67
|
"styled-components": "^5.3.11",
|
|
58
68
|
"usehooks-ts": "^3.1.1"
|
|
59
69
|
},
|