@redocly/replay 0.16.0-next.2 → 0.16.0-next.4

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.
@@ -0,0 +1,7 @@
1
+ import { a } from "./replay-index-BbnOfaYd.js";
2
+ async function o(e = {}) {
3
+ return typeof e == "object" && Object.freeze(e), await a("plugin:dialog|open", { options: e });
4
+ }
5
+ export {
6
+ o as open
7
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./replay-index-Cmt5nGER.js");async function v(i,l){const t=e.sep(),a=await e.resolve(i),c=await e.resolve(l),r=a.replace(new RegExp(`^${t}+`),"").split(t).filter(Boolean),n=c.replace(new RegExp(`^${t}+`),"").split(t).filter(Boolean),p=Math.min(r.length,n.length);let s=0;for(let o=0;o<p&&r[o]===n[o];o++)s++;const f=r.slice(s).map(()=>".."),g=n.slice(s);return[...f,...g].join(t)}exports.isAbsolute=e.isAbsolute;exports.join=e.join;exports.resolve=e.resolve;exports.relative=v;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./replay-index-BeZBRmGV.js");async function v(i,l){const t=e.sep(),a=await e.resolve(i),c=await e.resolve(l),r=a.replace(new RegExp(`^${t}+`),"").split(t).filter(Boolean),n=c.replace(new RegExp(`^${t}+`),"").split(t).filter(Boolean),p=Math.min(r.length,n.length);let s=0;for(let o=0;o<p&&r[o]===n[o];o++)s++;const f=r.slice(s).map(()=>".."),g=n.slice(s);return[...f,...g].join(t)}exports.isAbsolute=e.isAbsolute;exports.join=e.join;exports.resolve=e.resolve;exports.relative=v;
@@ -1,5 +1,5 @@
1
- import { s as h, r } from "./replay-index-Bx4FZEiI.js";
2
- import { i as j, j as u } from "./replay-index-Bx4FZEiI.js";
1
+ import { s as h, r } from "./replay-index-BbnOfaYd.js";
2
+ import { i as j, j as u } from "./replay-index-BbnOfaYd.js";
3
3
  async function x(s, i) {
4
4
  const t = h(), l = await r(s), c = await r(i), o = l.replace(new RegExp(`^${t}+`), "").split(t).filter(Boolean), a = c.replace(new RegExp(`^${t}+`), "").split(t).filter(Boolean), p = Math.min(o.length, a.length);
5
5
  let n = 0;
package/dist/replay.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./replay-index-Cmt5nGER.js");exports.EmbeddedReplay=e.EmbeddedReplay;exports.Modal=e.Modal;exports.Replay=e.Replay;exports.ReplayOverlay=e.ReplayOverlay;exports.utils=e.utils;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./replay-index-BeZBRmGV.js");exports.EmbeddedReplay=e.EmbeddedReplay;exports.Modal=e.Modal;exports.Replay=e.Replay;exports.ReplayOverlay=e.ReplayOverlay;
package/dist/replay.d.ts CHANGED
@@ -53,8 +53,6 @@ declare type ConvertOperationFunction = (path: string, method: string, openAPI:
53
53
 
54
54
  export declare function EmbeddedReplay(props: ReplayAppProps): JSX.Element;
55
55
 
56
- declare function getAbsoluteProjectDir(projectSlug: string): Promise<string>;
57
-
58
56
  declare type GetOperationURLFunction = (operationId?: string) => string | undefined;
59
57
 
60
58
  declare type ImplicitOAuthFlowsObject = {
@@ -508,12 +506,6 @@ declare interface OpenAPIXBadges {
508
506
  position?: 'before' | 'after';
509
507
  }
510
508
 
511
- declare function openFile({ name, extensions, multiple, }: {
512
- name: string;
513
- extensions: string[];
514
- multiple: boolean;
515
- }): Promise<string[] | string | null>;
516
-
517
509
  declare type OperationIn = 'query' | 'header' | 'path' | 'cookie';
518
510
 
519
511
  declare type OperationParameter = {
@@ -624,11 +616,6 @@ declare type ServerVariable = {
624
616
 
625
617
  declare type TracerName = 'try-it' | 'replay-openapi' | 'desktop';
626
618
 
627
- export declare const utils: {
628
- openFile: typeof openFile;
629
- getAbsoluteProjectDir: typeof getAbsoluteProjectDir;
630
- };
631
-
632
619
  declare interface XLogo {
633
620
  url?: string;
634
621
  backgroundColor?: string;
package/dist/replay.js CHANGED
@@ -1,8 +1,7 @@
1
- import { E as l, M as s, a as d, R as p, u as y } from "./replay-index-Bx4FZEiI.js";
1
+ import { E as l, M as d, R as p, b as s } from "./replay-index-BbnOfaYd.js";
2
2
  export {
3
3
  l as EmbeddedReplay,
4
- s as Modal,
5
- d as Replay,
6
- p as ReplayOverlay,
7
- y as utils
4
+ d as Modal,
5
+ p as Replay,
6
+ s as ReplayOverlay
8
7
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redocly/replay",
3
- "version": "0.16.0-next.2",
3
+ "version": "0.16.0-next.4",
4
4
  "type": "module",
5
5
  "main": "./dist/replay.cjs",
6
6
  "module": "./dist/replay.js",
@@ -19,30 +19,34 @@
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.57.0-next.2"
22
+ "@redocly/theme": "0.57.0-next.3"
23
23
  },
24
24
  "dependencies": {
25
25
  "@codemirror/autocomplete": "^6.15.0",
26
26
  "@codemirror/lang-html": "^6.4.7",
27
27
  "@codemirror/lang-json": "^6.0.1",
28
28
  "@codemirror/lang-xml": "^6.0.2",
29
+ "@codemirror/lang-yaml": "^6.1.2",
29
30
  "@codemirror/lint": "^6.5.0",
30
31
  "@codemirror/state": "^6.5.2",
31
32
  "@codemirror/view": "^6.25.1",
33
+ "@lezer/highlight": "^1.1.6",
34
+ "@noble/hashes": "^1.8.0",
32
35
  "@redocly/hookstate-core": "^4.2.0",
33
36
  "@redocly/hookstate-devtools": "^4.2.0",
34
37
  "@redocly/hookstate-localstored": "^4.0.2",
35
- "@lezer/highlight": "^1.1.6",
38
+ "@redocly/openapi-core": "0.0.0-snapshot.1755009111",
39
+ "@redocly/respect-core": "0.0.0-snapshot.1755009111",
36
40
  "@redocly/vscode-json-languageservice": "^3.4.9",
37
41
  "@tauri-apps/api": "2.4.1",
38
42
  "@tauri-apps/plugin-dialog": "2.0.0-rc.1",
39
43
  "@tauri-apps/plugin-fs": "2.0.0-rc.2",
40
44
  "@uiw/codemirror-theme-material": "^4.21.20",
41
45
  "@uiw/react-codemirror": "^4.21.20",
42
- "crypto-js": "^4.2.0",
43
46
  "dayjs": "^1.11.7",
44
47
  "js-yaml": "4.1.0",
45
48
  "json-pointer": "^0.6.2",
49
+ "json-schema-typed": "^8.0.1",
46
50
  "marked": "^4.0.15",
47
51
  "path-browserify": "^1.0.1",
48
52
  "rc-tooltip": "^6.1.3",
@@ -58,7 +62,6 @@
58
62
  "@babel/preset-typescript": "7.23.3",
59
63
  "@testing-library/jest-dom": "6.6.3",
60
64
  "@testing-library/react": "16.3.0",
61
- "@types/crypto-js": "4.2.2",
62
65
  "@types/jest": "^29.5.12",
63
66
  "@types/js-yaml": "4.0.9",
64
67
  "@types/json-pointer": "1.0.34",
@@ -73,6 +76,7 @@
73
76
  "identity-obj-proxy": "3.0.0",
74
77
  "jest": "^29.7.0",
75
78
  "jest-styled-components": "7.2.0",
79
+ "json-schema-typed": "^8.0.1",
76
80
  "ts-jest": "^29.1.2",
77
81
  "ts-node": "10.9.2",
78
82
  "typescript": "5.6.2",