@redocly/replay 0.24.0-next.1 → 0.24.0-next.3

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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./replay-index-Dt0DBXvY.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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./replay-index-o0B_MaDr.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;
@@ -1,5 +1,5 @@
1
- import { e as h, s as x, r as i } from "./replay-index-DGOIXl2g.js";
2
- import { d as j, a as b, j as d } from "./replay-index-DGOIXl2g.js";
1
+ import { e as h, s as x, r as i } from "./replay-index-CJcnXz6B.js";
2
+ import { d as j, a as b, j as d } from "./replay-index-CJcnXz6B.js";
3
3
  async function u(n, e) {
4
4
  const t = x(), 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;
package/dist/replay.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./replay-index-Dt0DBXvY.js"),t=require("./replay-oauth2-redirect-handler-Bqw5UUvl.js");exports.AgentLoop=e.AgentLoop;exports.AiPanelContext=e.AiPanelContext;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.useAiPanel=e.useAiPanel;exports.useTelemetry=e.useTelemetry;exports.useTelemetryClient=e.useTelemetryClient;exports.validateApiKey=e.validateApiKey;exports.OAuth2Error=t.OAuth2Error;exports.handleOAuth2Redirect=t.handleOAuth2Redirect;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./replay-index-o0B_MaDr.js"),t=require("./replay-oauth2-redirect-handler-Bqw5UUvl.js");exports.AgentLoop=e.AgentLoop;exports.AiPanelContext=e.AiPanelContext;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.useAiPanel=e.useAiPanel;exports.useTelemetry=e.useTelemetry;exports.useTelemetryClient=e.useTelemetryClient;exports.validateApiKey=e.validateApiKey;exports.OAuth2Error=t.OAuth2Error;exports.handleOAuth2Redirect=t.handleOAuth2Redirect;
package/dist/replay.d.ts CHANGED
@@ -1,4 +1,6 @@
1
1
  import { AsyncApiReplay } from '@redocly/replay-asyncapi-sdk';
2
+ import { ConfigureRequestValues } from '../../node_modules/@redocly/theme/src/ext/configure';
3
+ import { ConfigureServerRequestValues } from '../../node_modules/@redocly/theme/src/ext/configure';
2
4
  import { Context } from 'react';
3
5
  import { ImmutableObject } from '@redocly/hookstate-core';
4
6
  import { InferToolInput } from 'ai';
@@ -575,6 +577,7 @@ declare type InputSettings = {
575
577
  allowedEnvironments?: string[];
576
578
  apiId?: string;
577
579
  predefinedEnvValues?: Record<string, Record<string, string>>;
580
+ dynamicReplayValues?: ConfigureRequestValues | ConfigureServerRequestValues | null;
578
581
  certificates?: Certificate[];
579
582
  storageKey?: string;
580
583
  convertOperationToReplayValue?: ConvertOperationFunction;
package/dist/replay.js CHANGED
@@ -1,4 +1,4 @@
1
- import { w as s, x as t, E as l, M as r, R as o, y as p, S as y, T as m, z as n, C as d, D as T, F as h, G as i, H as u, I as A } from "./replay-index-DGOIXl2g.js";
1
+ import { w as s, x as t, E as l, M as r, R as o, y as p, S as y, T as m, z as n, C as d, D as T, F as h, G as i, H as u, I as A } from "./replay-index-CJcnXz6B.js";
2
2
  import { O, h as R } from "./replay-oauth2-redirect-handler-CqKZB3aV.js";
3
3
  export {
4
4
  s as AgentLoop,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redocly/replay",
3
- "version": "0.24.0-next.1",
3
+ "version": "0.24.0-next.3",
4
4
  "type": "module",
5
5
  "main": "./dist/replay.cjs",
6
6
  "module": "./dist/replay.js",
@@ -20,7 +20,7 @@
20
20
  "react-dom": "^19.2.4",
21
21
  "react-router-dom": "^6.30.3",
22
22
  "styled-components": "^5.3.11",
23
- "@redocly/theme": "0.65.0-next.1"
23
+ "@redocly/theme": "0.65.0-next.3"
24
24
  },
25
25
  "dependencies": {
26
26
  "@ai-sdk/anthropic": "3.0.1",
@@ -50,8 +50,8 @@
50
50
  "@opentelemetry/api": "1.9.0",
51
51
  "@redocly/hookstate-core": "4.2.3",
52
52
  "@redocly/hookstate-devtools": "^4.2.0",
53
- "@redocly/openapi-core": "2.29.1",
54
- "@redocly/respect-core": "2.29.1",
53
+ "@redocly/openapi-core": "2.30.2",
54
+ "@redocly/respect-core": "2.30.2",
55
55
  "@redocly/vscode-json-languageservice": "^3.4.9",
56
56
  "@tauri-apps/api": "2.4.1",
57
57
  "@tauri-apps/plugin-dialog": "2.0.0-rc.1",
@@ -113,10 +113,6 @@
113
113
  "build": "pnpm run clean && vite build && pnpm run copy-static",
114
114
  "copy-static": "cp src/oauth2-redirect-page/oauth2-redirect.html dist",
115
115
  "preview": "vite preview",
116
- "test": "jest",
117
- "test:update": "jest -u",
118
- "test:watch": "jest --watch",
119
- "test:coverage": "jest --coverage",
120
116
  "ts:check": "tsc --noEmit --skipLibCheck",
121
117
  "watch": "tsc --build --watch",
122
118
  "clean": "rm -rf dist"