@redocly/replay 0.27.0-next.8 → 0.27.0
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-AiChatProvider-DHIxHTKX.js → replay-AiChatProvider-LQhrLIDL.js} +44 -44
- package/dist/{replay-AiChatProvider-O8HHQobN.js → replay-AiChatProvider-Oms5CFgT.js} +1 -1
- package/dist/{replay-AiChatSqliteDBStorage-DNMrzkJg.js → replay-AiChatSqliteDBStorage-3-p1mthX.js} +1 -1
- package/dist/{replay-AiChatSqliteDBStorage-DjUq9VX3.js → replay-AiChatSqliteDBStorage-GZibdHOQ.js} +1 -1
- package/dist/replay-AiPanel-BvwwBTh1.js +742 -0
- package/dist/{replay-AiPanel-CR815YqV.js → replay-AiPanel-lcDNvgo0.js} +973 -1176
- package/dist/replay-FileWatcher-ClVd_wG0.js +1 -0
- package/dist/replay-FileWatcher-DR-wJLe2.js +343 -0
- package/dist/replay-Observable-D6wKbFwB.js +31 -0
- package/dist/replay-Observable-bjJ6wkRB.js +1 -0
- package/dist/replay-SemanticSearchService-CCqwCRo6.js +1 -0
- package/dist/replay-SemanticSearchService-U1eXQGfF.js +723 -0
- package/dist/{replay-SqliteDBStorage-B3oYWXem.js → replay-SqliteDBStorage-Dn6DoVWW.js} +1 -1
- package/dist/{replay-SqliteDBStorage-CC9kLioX.js → replay-SqliteDBStorage-d_ZK6ScA.js} +1 -1
- package/dist/replay-TauriFileSystemAdapter-CpiUuG3T.js +99 -0
- package/dist/replay-TauriFileSystemAdapter-dwJ0xBYr.js +1 -0
- package/dist/replay-TauriRootStorage-CuVbYMXX.js +605 -0
- package/dist/replay-TauriRootStorage-DhzbAahU.js +1 -0
- package/dist/{replay-agent-loop-CTq5eJ4u.js → replay-agent-loop-BLSu4v_O.js} +1 -1
- package/dist/{replay-agent-loop-CCYOzyHo.js → replay-agent-loop-DgEHdXUt.js} +11 -11
- package/dist/{replay-ai-chat-mappers-C8y5UhCq.js → replay-ai-chat-mappers-BvfcEubB.js} +5 -5
- package/dist/{replay-ai-chat-mappers-B_wovMvG.js → replay-ai-chat-mappers-Dy2kJ7ZG.js} +1 -1
- package/dist/replay-core-BJmXmoC5.js +1 -0
- package/dist/replay-core-B_hiOZZr.js +10 -0
- package/dist/{replay-create-model-C5yvtnXA.js → replay-create-model-DNPFcOIp.js} +579 -578
- package/dist/{replay-create-model-CBCmuEKC.js → replay-create-model-bOIDB-e8.js} +10 -10
- package/dist/{replay-db-CCBQadnT.js → replay-db-BQGv3PGw.js} +1 -1
- package/dist/{replay-db-DfOjLqsq.js → replay-db-CMXZZs9v.js} +1 -1
- package/dist/{replay-external-resolver-BRouROm6.js → replay-external-resolver-mrykFC2h.js} +2 -2
- package/dist/{replay-external-resolver-B6tpqUZt.js → replay-external-resolver-n5OvQMRF.js} +1 -1
- package/dist/replay-index-3lwhSmvi.js +1 -0
- package/dist/{replay-index-BzzBKjHm.js → replay-index-Bc5RHu5L.js} +23771 -25420
- package/dist/replay-index-CFLu-XMV.js +25 -0
- package/dist/{replay-index-Xq6K7XSm.js → replay-index-CHGVyIdG.js} +1 -1
- package/dist/{replay-index-Cpkh9r0X.js → replay-index-CSR_qlua.js} +1 -1
- package/dist/replay-index-CepJ5Z0m.js +6875 -0
- package/dist/{replay-index-Bzttek8l.js → replay-index-CgCGhu4l.js} +6 -6
- package/dist/replay-index-DDjmUXWm.js +1 -0
- package/dist/replay-index-DiSy_1OY.js +21 -0
- package/dist/replay-index-Oct6Dygd.js +1 -0
- package/dist/{replay-index-B_OHqSlS.js → replay-index-QXosJxRc.js} +18 -18
- package/dist/replay-index-jkDlU0Lx.js +32 -0
- package/dist/{replay-lint-gtuMJgII.js → replay-lint-DoHQIATV.js} +122 -122
- package/dist/{replay-lint-DlDmPTBV.js → replay-lint-PWaLESz5.js} +8921 -8880
- package/dist/{replay-lint-graphql-DHOq8lRT.js → replay-lint-graphql-xh8VoAwd.js} +1 -1
- package/dist/{replay-lint-graphql-BQJ00lU4.js → replay-lint-graphql-zO8zunug.js} +1 -1
- package/dist/replay-periodic-revalidation-BoyLQHtg.js +1 -0
- package/dist/replay-periodic-revalidation-Dsp-n7ui.js +21 -0
- package/dist/replay-promise-map-limit-DRDkHc-b.js +1 -0
- package/dist/replay-promise-map-limit-Db_42GvV.js +14 -0
- package/dist/replay-resolve-B0AjmaE9.js +47 -0
- package/dist/{replay-resolve-DsgcWnjC.js → replay-resolve-MVe_8Ube.js} +1364 -1329
- package/dist/{replay-respect-run-7Cwe1_ri.js → replay-respect-run-BJsR4a4m.js} +1 -1
- package/dist/{replay-respect-run-D1zyh-5j.js → replay-respect-run-X4PSO6Fj.js} +3 -3
- package/dist/{replay-tauri-path-BAY3g5sW.js → replay-tauri-path-CkGiQWsb.js} +5 -5
- package/dist/{replay-tauri-path-CaVeI3a-.js → replay-tauri-path-D8FJsoZb.js} +1 -1
- package/dist/replay-useAiChatQueries-BXL-_N2Q.js +215 -0
- package/dist/{replay-useAiChatQueries-CxZNLVje.js → replay-useAiChatQueries-D7sHNAfV.js} +1078 -1022
- package/dist/{replay-validate-key-Cv0mvYDS.js → replay-validate-key-CmzSfORv.js} +1 -1
- package/dist/{replay-validate-key-Di8MCBz7.js → replay-validate-key-CtZEJRP7.js} +2 -2
- package/dist/replay.cjs +1 -1
- package/dist/replay.js +11 -11
- package/package.json +10 -9
- package/dist/replay-AiPanel-CfYBCkrN.js +0 -868
- package/dist/replay-index-C6SJPGDO.js +0 -23
- package/dist/replay-index-CUs62_1f.js +0 -1
- package/dist/replay-index-Dfnqt_IZ.js +0 -6899
- package/dist/replay-resolve-DqFS69S_.js +0 -47
- package/dist/replay-useAiChatQueries-D99tAUpY.js +0 -215
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i } from "./replay-index-Bc5RHu5L.js";
|
|
2
2
|
async function l(t = {}) {
|
|
3
|
-
return typeof t == "object" && Object.freeze(t), await
|
|
3
|
+
return typeof t == "object" && Object.freeze(t), await i("plugin:dialog|open", { options: t });
|
|
4
4
|
}
|
|
5
5
|
async function o(t = {}) {
|
|
6
|
-
return typeof t == "object" && Object.freeze(t), await
|
|
6
|
+
return typeof t == "object" && Object.freeze(t), await i("plugin:dialog|save", { options: t });
|
|
7
7
|
}
|
|
8
8
|
async function g(t, n) {
|
|
9
9
|
const e = typeof n == "string" ? { title: n } : n;
|
|
10
|
-
await
|
|
10
|
+
await i("plugin:dialog|message", {
|
|
11
11
|
message: t.toString(),
|
|
12
12
|
title: e?.title?.toString(),
|
|
13
13
|
kind: e?.kind,
|
|
@@ -16,7 +16,7 @@ async function g(t, n) {
|
|
|
16
16
|
}
|
|
17
17
|
async function r(t, n) {
|
|
18
18
|
const e = typeof n == "string" ? { title: n } : n;
|
|
19
|
-
return await
|
|
19
|
+
return await i("plugin:dialog|ask", {
|
|
20
20
|
message: t.toString(),
|
|
21
21
|
title: e?.title?.toString(),
|
|
22
22
|
kind: e?.kind,
|
|
@@ -26,7 +26,7 @@ async function r(t, n) {
|
|
|
26
26
|
}
|
|
27
27
|
async function c(t, n) {
|
|
28
28
|
const e = typeof n == "string" ? { title: n } : n;
|
|
29
|
-
return await
|
|
29
|
+
return await i("plugin:dialog|confirm", {
|
|
30
30
|
message: t.toString(),
|
|
31
31
|
title: e?.title?.toString(),
|
|
32
32
|
kind: e?.kind,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./replay-SemanticSearchService-CCqwCRo6.js"),r=require("react");function u(){const[n,c]=r.useState(!1),[s,a]=r.useState(null);return{search:r.useCallback(async(i,S=10)=>{c(!0),a(null);try{return await e.getSemanticSearchService().search(i,S)}catch(t){const o=t instanceof Error?t:new Error(String(t));return a(o),[]}finally{c(!1)}},[]),isSearching:n,error:s}}exports.SemanticSearchService=e.SemanticSearchService;exports.extractAllDocuments=e.extractAllDocuments;exports.extractApiDocuments=e.extractApiDocuments;exports.extractCollectionDocuments=e.extractCollectionDocuments;exports.getSemanticSearchService=e.getSemanticSearchService;exports.useSemanticSearch=u;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { i } from "./replay-core-B_hiOZZr.js";
|
|
2
|
+
async function o(n, e) {
|
|
3
|
+
await i("plugin:opener|open_url", {
|
|
4
|
+
url: n,
|
|
5
|
+
with: e
|
|
6
|
+
});
|
|
7
|
+
}
|
|
8
|
+
async function r(n, e) {
|
|
9
|
+
await i("plugin:opener|open_path", {
|
|
10
|
+
path: n,
|
|
11
|
+
with: e
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
async function p(n) {
|
|
15
|
+
return i("plugin:opener|reveal_item_in_dir", { paths: typeof n == "string" ? [n] : n });
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
r as openPath,
|
|
19
|
+
o as openUrl,
|
|
20
|
+
p as revealItemInDir
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./replay-core-BJmXmoC5.js");async function o(e,n){await i.invoke("plugin:opener|open_url",{url:e,with:n})}async function t(e,n){await i.invoke("plugin:opener|open_path",{path:e,with:n})}async function r(e){const n=typeof e=="string"?[e]:e;return i.invoke("plugin:opener|reveal_item_in_dir",{paths:n})}exports.openPath=t;exports.openUrl=o;exports.revealItemInDir=r;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as N, g as T, d as j, t as P, A as F, S as w, N as V, n as
|
|
3
|
-
import { a as fe, b as de, e as ge, f as he, h as ve, j as Ee, k as ue, m as Te, o as Se, D as Re, p as be, I as Oe, q as Ie, O as Ne, r as Pe, s as De, u as Ce, v as _e, x as xe, P as ke, y as ze, z as je, B as Fe, E as we, F as Ve, G as
|
|
4
|
-
import { B as v, n as M, r as U, m as C } from "./replay-resolve-
|
|
5
|
-
import { R as ps, S as ys, Y as fs, e as ds, g as gs, i as hs, a as vs, b as Es, c as us, d as Ts, f as Ss, h as Rs, p as bs, j as Os, k as Is, s as Ns, u as Ps } from "./replay-resolve-
|
|
1
|
+
import { aR as u, aS as p } from "./replay-index-Bc5RHu5L.js";
|
|
2
|
+
import { i as N, g as T, d as j, t as P, A as F, S as w, N as V, n as $, w as L, C as Y, R as G, c as S, l as D } from "./replay-lint-PWaLESz5.js";
|
|
3
|
+
import { a as fe, b as de, e as ge, f as he, h as ve, j as Ee, k as ue, m as Te, o as Se, D as Re, p as be, I as Oe, q as Ie, O as Ne, r as Pe, s as De, u as Ce, v as _e, x as xe, P as ke, y as ze, z as je, B as Fe, E as we, F as Ve, G as $e, H as Le, J as Ye, K as Ge, L as Me, M as Ue, Q as Be, T as Ke, U as We, V as He, W as Je, X as qe, Y as Xe, Z as Ze, _ as Qe, $ as Ae, a0 as es, a1 as ss, a2 as ts, a3 as as, a4 as ns, a5 as rs, a6 as is, a7 as os, Z as ls, a8 as cs } from "./replay-lint-PWaLESz5.js";
|
|
4
|
+
import { B as v, n as M, r as U, m as C } from "./replay-resolve-MVe_8Ube.js";
|
|
5
|
+
import { R as ps, S as ys, Y as fs, e as ds, g as gs, i as hs, a as vs, b as Es, c as us, d as Ts, f as Ss, h as Rs, p as bs, j as Os, k as Is, s as Ns, u as Ps } from "./replay-resolve-MVe_8Ube.js";
|
|
6
6
|
function ae(e) {
|
|
7
7
|
return (u.extname(e) === ".yaml" || u.extname(e) === ".yml") && !1;
|
|
8
8
|
}
|
|
@@ -13,7 +13,7 @@ async function re(e) {
|
|
|
13
13
|
return new Promise((s) => setTimeout(s, e));
|
|
14
14
|
}
|
|
15
15
|
const E = "type", R = ["api-description", "api-operation", "data-schema"];
|
|
16
|
-
function
|
|
16
|
+
function B(e, s) {
|
|
17
17
|
const { ctx: t } = T("EntityFileDefault", s), { ctx: a, discriminatorResolver: n } = T("EntityFile", e);
|
|
18
18
|
return {
|
|
19
19
|
entityTypes: {
|
|
@@ -194,7 +194,7 @@ const ie = (e) => ({
|
|
|
194
194
|
e.parameters.total = e.parameters.items.size, e.refs.total = e.refs.items.size, e.tags.total = e.tags.items.size;
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
|
-
}),
|
|
197
|
+
}), K = /^[a-z0-9]+(?:-[a-z0-9]+)*$/, b = 2, O = 150, W = () => ({
|
|
198
198
|
any(e, { report: s, location: t }) {
|
|
199
199
|
if (p(e) && "key" in e) {
|
|
200
200
|
const a = e.key;
|
|
@@ -211,7 +211,7 @@ const ie = (e) => ({
|
|
|
211
211
|
}), a.length > O && s({
|
|
212
212
|
message: `Entity 'key' must not exceed ${O} characters.`,
|
|
213
213
|
location: t.child(["key"])
|
|
214
|
-
}),
|
|
214
|
+
}), K.test(a) || s({
|
|
215
215
|
message: "Entity `key` must contain only lowercase letters, numbers, and hyphens, and cannot start or end with a hyphen.",
|
|
216
216
|
location: t.child(["key"])
|
|
217
217
|
});
|
|
@@ -292,7 +292,7 @@ async function Q(e) {
|
|
|
292
292
|
problems: [],
|
|
293
293
|
specVersion: "entity",
|
|
294
294
|
visitorsData: {}
|
|
295
|
-
}, { entityTypes: i, discriminatorResolver: y } =
|
|
295
|
+
}, { entityTypes: i, discriminatorResolver: y } = B(t, a), c = M(i);
|
|
296
296
|
let m = c.Entity;
|
|
297
297
|
if (Array.isArray(s.parsed))
|
|
298
298
|
m = c.EntityFileArray;
|
|
@@ -332,12 +332,12 @@ async function Q(e) {
|
|
|
332
332
|
visitor: W()
|
|
333
333
|
},
|
|
334
334
|
...f
|
|
335
|
-
], k =
|
|
335
|
+
], k = $(x, c), z = await U({
|
|
336
336
|
rootDocument: s,
|
|
337
337
|
rootType: m,
|
|
338
338
|
externalRefResolver: r
|
|
339
339
|
});
|
|
340
|
-
return
|
|
340
|
+
return L({
|
|
341
341
|
document: s,
|
|
342
342
|
rootType: m,
|
|
343
343
|
normalizedVisitors: k,
|
|
@@ -445,19 +445,19 @@ export {
|
|
|
445
445
|
we as clearPluginsCache,
|
|
446
446
|
S as createConfig,
|
|
447
447
|
Ve as createConfigTypes,
|
|
448
|
-
|
|
448
|
+
B as createEntityTypes,
|
|
449
449
|
j as dequal,
|
|
450
|
-
|
|
450
|
+
$e as detectSpec,
|
|
451
451
|
ae as doesYamlFileExist,
|
|
452
452
|
ds as escapePointerFragment,
|
|
453
|
-
|
|
453
|
+
Le as findConfig,
|
|
454
454
|
Ye as formatProblems,
|
|
455
455
|
Ge as getAstNodeByPointer,
|
|
456
456
|
Me as getCodeframe,
|
|
457
457
|
gs as getDir,
|
|
458
458
|
Ue as getLineColLocation,
|
|
459
|
-
|
|
460
|
-
|
|
459
|
+
Be as getMajorSpecVersion,
|
|
460
|
+
Ke as getPluginCacheVersion,
|
|
461
461
|
We as getTotals,
|
|
462
462
|
He as getTypes,
|
|
463
463
|
hs as isAbsoluteUrl,
|
|
@@ -486,7 +486,7 @@ export {
|
|
|
486
486
|
C as makeDocumentFromString,
|
|
487
487
|
as as mapTypeToComponent,
|
|
488
488
|
M as normalizeTypes,
|
|
489
|
-
|
|
489
|
+
$ as normalizeVisitors,
|
|
490
490
|
bs as parseYaml,
|
|
491
491
|
re as pause,
|
|
492
492
|
ns as pluralize,
|
|
@@ -499,6 +499,6 @@ export {
|
|
|
499
499
|
Ns as stringifyYaml,
|
|
500
500
|
Ps as unescapePointerFragment,
|
|
501
501
|
ls as validate,
|
|
502
|
-
|
|
502
|
+
L as walkDocument,
|
|
503
503
|
cs as xmlEscape
|
|
504
504
|
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { i as n, t as D } from "./replay-core-B_hiOZZr.js";
|
|
2
|
+
var a;
|
|
3
|
+
(function(r) {
|
|
4
|
+
r.WINDOW_RESIZED = "tauri://resize", r.WINDOW_MOVED = "tauri://move", r.WINDOW_CLOSE_REQUESTED = "tauri://close-requested", r.WINDOW_DESTROYED = "tauri://destroyed", r.WINDOW_FOCUS = "tauri://focus", r.WINDOW_BLUR = "tauri://blur", r.WINDOW_SCALE_FACTOR_CHANGED = "tauri://scale-change", r.WINDOW_THEME_CHANGED = "tauri://theme-changed", r.WINDOW_CREATED = "tauri://window-created", r.WINDOW_SUSPENDED = "tauri://suspended", r.WINDOW_RESUMED = "tauri://resumed", r.WEBVIEW_CREATED = "tauri://webview-created", r.DRAG_ENTER = "tauri://drag-enter", r.DRAG_OVER = "tauri://drag-over", r.DRAG_DROP = "tauri://drag-drop", r.DRAG_LEAVE = "tauri://drag-leave";
|
|
5
|
+
})(a || (a = {}));
|
|
6
|
+
async function u(r, e) {
|
|
7
|
+
window.__TAURI_EVENT_PLUGIN_INTERNALS__.unregisterListener(r, e), await n("plugin:event|unlisten", {
|
|
8
|
+
event: r,
|
|
9
|
+
eventId: e
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
async function o(r, e, s) {
|
|
13
|
+
var t;
|
|
14
|
+
const i = (t = void 0) !== null && t !== void 0 ? t : { kind: "Any" };
|
|
15
|
+
return n("plugin:event|listen", {
|
|
16
|
+
event: r,
|
|
17
|
+
target: i,
|
|
18
|
+
handler: D(e)
|
|
19
|
+
}).then((_) => async () => u(r, _));
|
|
20
|
+
}
|
|
21
|
+
async function d() {
|
|
22
|
+
return await n("plugin:deep-link|get_current");
|
|
23
|
+
}
|
|
24
|
+
async function l(r) {
|
|
25
|
+
return await o("deep-link://new-url", (e) => {
|
|
26
|
+
r(e.payload);
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
export {
|
|
30
|
+
d as getCurrent,
|
|
31
|
+
l as onOpenUrl
|
|
32
|
+
};
|