@scalar/api-reference 1.46.3 → 1.47.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/CHANGELOG.md +70 -0
- package/dist/browser/standalone.js +1697 -1683
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/AgentScalar/AgentScalarDrawer.vue.d.ts.map +1 -1
- package/dist/components/AgentScalar/AgentScalarDrawer.vue.js +1 -1
- package/dist/components/AgentScalar/AgentScalarDrawer.vue2.js +54 -29
- package/dist/components/ApiReference.vue.d.ts.map +1 -1
- package/dist/components/ApiReference.vue.js +1 -1
- package/dist/components/ApiReference.vue2.js +12 -3
- package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaComposition.vue.js +1 -1
- package/dist/components/Content/Schema/helpers/schema-name.js +6 -6
- package/dist/features/developer-tools/DeveloperTools.vue.d.ts.map +1 -1
- package/dist/features/developer-tools/DeveloperTools.vue.js +1 -1
- package/dist/helpers/lazy-bus.d.ts +6 -0
- package/dist/helpers/lazy-bus.d.ts.map +1 -1
- package/dist/helpers/lazy-bus.js +1 -0
- package/dist/style.css +41 -113
- package/package.json +22 -22
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentScalarDrawer.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AgentScalar/AgentScalarDrawer.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AgentScalarDrawer.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AgentScalar/AgentScalarDrawer.vue"],"names":[],"mappings":"AAsFA,OAAO,8BAA8B,CAAA;AAGrC,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,6BAA6B,CAAA;AACtF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAIvE,KAAK,WAAW,GAAG;IACjB,wBAAwB,EAAE,mCAAmC,CAAC,OAAO,CAAC,CAAA;IACtE,cAAc,EAAE,cAAc,CAAA;IAC9B,QAAQ,EAAE,iBAAiB,CAAA;CAC5B,CAAC;AA8KF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./AgentScalarDrawer.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const AgentScalarDrawer = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const AgentScalarDrawer = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b38821a2"]]);
|
|
5
5
|
export {
|
|
6
6
|
AgentScalarDrawer as default
|
|
7
7
|
};
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
import { defineComponent, defineAsyncComponent, createElementBlock, openBlock, Fragment, withDirectives, createElementVNode, unref,
|
|
1
|
+
import { defineComponent, defineAsyncComponent, createElementBlock, openBlock, Fragment, createVNode, Transition, withCtx, withDirectives, createElementVNode, unref, vShow, withKeys } from "vue";
|
|
2
2
|
import { ScalarIconX } from "@scalar/icons";
|
|
3
3
|
import "@scalar/agent-chat/style.css";
|
|
4
|
+
import { ScalarIconButton } from "@scalar/components";
|
|
4
5
|
import { useAgentContext } from "../../hooks/use-agent.js";
|
|
5
|
-
const _hoisted_1 = {
|
|
6
|
-
class: "app-exit-button zoomed:static zoomed:p-1 fixed top-2 right-2 rounded-full p-2",
|
|
7
|
-
type: "button"
|
|
8
|
-
};
|
|
9
|
-
const _hoisted_2 = { class: "agent-scalar" };
|
|
10
|
-
const _hoisted_3 = { class: "agent-scalar-container custom-scroll custom-scroll-self-contain-overflow" };
|
|
6
|
+
const _hoisted_1 = { class: "agent-scalar-container custom-scroll custom-scroll-self-contain-overflow overflow-auto px-6" };
|
|
11
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
8
|
__name: "AgentScalarDrawer",
|
|
13
9
|
props: {
|
|
@@ -22,28 +18,57 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
22
18
|
);
|
|
23
19
|
return (_ctx, _cache) => {
|
|
24
20
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
21
|
+
createVNode(Transition, {
|
|
22
|
+
enterActiveClass: "transition-opacity duration-500",
|
|
23
|
+
enterFromClass: "opacity-0",
|
|
24
|
+
enterToClass: "opacity-100",
|
|
25
|
+
leaveActiveClass: "transition-opacity duration-200",
|
|
26
|
+
leaveFromClass: "opacity-100",
|
|
27
|
+
leaveToClass: "opacity-0"
|
|
28
|
+
}, {
|
|
29
|
+
default: withCtx(() => [
|
|
30
|
+
withDirectives(createElementVNode("div", {
|
|
31
|
+
class: "agent-scalar-overlay bg-backdrop fixed inset-0 z-10 ease-[cubic-bezier(0.77,0,0.175,1)]",
|
|
32
|
+
onClick: _cache[0] || (_cache[0] = ($event) => unref(agentContext)?.closeAgent())
|
|
33
|
+
}, null, 512), [
|
|
34
|
+
[vShow, unref(agentContext)?.showAgent.value]
|
|
35
|
+
])
|
|
36
|
+
]),
|
|
37
|
+
_: 1
|
|
38
|
+
}),
|
|
39
|
+
createVNode(Transition, {
|
|
40
|
+
enterActiveClass: "transition-transform duration-300",
|
|
41
|
+
enterFromClass: "-translate-x-full",
|
|
42
|
+
enterToClass: "translate-x-0",
|
|
43
|
+
leaveActiveClass: "transition-transform duration-200",
|
|
44
|
+
leaveFromClass: "translate-x-0",
|
|
45
|
+
leaveToClass: "-translate-x-full"
|
|
46
|
+
}, {
|
|
47
|
+
default: withCtx(() => [
|
|
48
|
+
withDirectives(createElementVNode("div", {
|
|
49
|
+
class: "agent-scalar left-w-sidebar bg-b-1 fixed inset-y-0 right-12 z-10 grid border-r shadow-lg",
|
|
50
|
+
onKeydown: _cache[2] || (_cache[2] = withKeys(($event) => unref(agentContext)?.closeAgent(), ["escape"]))
|
|
51
|
+
}, [
|
|
52
|
+
createElementVNode("div", _hoisted_1, [
|
|
53
|
+
createVNode(unref(AgentScalarChatInterface), {
|
|
54
|
+
agentScalarConfiguration: __props.agentScalarConfiguration,
|
|
55
|
+
prefilledMessage: unref(agentContext)?.prefilledMessage,
|
|
56
|
+
workspaceStore: __props.workspaceStore
|
|
57
|
+
}, null, 8, ["agentScalarConfiguration", "prefilledMessage", "workspaceStore"])
|
|
58
|
+
]),
|
|
59
|
+
createVNode(unref(ScalarIconButton), {
|
|
60
|
+
class: "agent-scalar-exit-button absolute top-2 right-2",
|
|
61
|
+
icon: unref(ScalarIconX),
|
|
62
|
+
label: "Close Client",
|
|
63
|
+
weight: "bold",
|
|
64
|
+
onClick: _cache[1] || (_cache[1] = ($event) => unref(agentContext)?.closeAgent())
|
|
65
|
+
}, null, 8, ["icon"])
|
|
66
|
+
], 544), [
|
|
67
|
+
[vShow, unref(agentContext)?.showAgent.value]
|
|
68
|
+
])
|
|
69
|
+
]),
|
|
70
|
+
_: 1
|
|
71
|
+
})
|
|
47
72
|
], 64);
|
|
48
73
|
};
|
|
49
74
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiReference.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReference.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ApiReference.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReference.vue"],"names":[],"mappings":"AAywCA,OAAO,EAEL,KAAK,4BAA4B,EAGlC,MAAM,6BAA6B,CAAA;AAOpC,OAAO,KAAK,EACV,cAAc,EAEf,MAAM,4CAA4C,CAAA;AAkBnD,OAAO,8BAA8B,CAAA;AAkCrC,KAAK,WAAW,GAAG;IACjB;;;OAGG;IACH,aAAa,CAAC,EAAE,4BAA4B,CAAA;CAC7C,CAAC;AAGF,KAAK,WAAW,GAAG;IACjB,eAAe,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;IAC1C,aAAa,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;IACxC,eAAe,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;IAC1C,aAAa,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;IACxC,oBAAoB,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;IAC/C,MAAM,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;CAClC,CAAC;AA01CF,QAAA,MAAM,UAAU;;;;oPAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -4,7 +4,7 @@ import _sfc_main from "./ApiReference.vue2.js";
|
|
|
4
4
|
/* empty css */
|
|
5
5
|
/* empty css */
|
|
6
6
|
import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
|
|
7
|
-
const ApiReference = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
7
|
+
const ApiReference = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-69e552a7"]]);
|
|
8
8
|
export {
|
|
9
9
|
ApiReference as default
|
|
10
10
|
};
|
|
@@ -28,7 +28,7 @@ import _sfc_main$3 from "../features/Search/components/SearchButton.vue.js";
|
|
|
28
28
|
import { getSystemModePreference } from "../helpers/color-mode.js";
|
|
29
29
|
import { downloadDocument } from "../helpers/download.js";
|
|
30
30
|
import { getIdFromUrl, makeUrlFromId } from "../helpers/id-routing.js";
|
|
31
|
-
import { intersectionEnabled, scrollToLazy, blockIntersection } from "../helpers/lazy-bus.js";
|
|
31
|
+
import { intersectionEnabled, addToPriorityQueue, scrollToLazy, blockIntersection } from "../helpers/lazy-bus.js";
|
|
32
32
|
import { loadClientFromStorage, loadAuthFromStorage } from "../helpers/load-from-perssistance.js";
|
|
33
33
|
import { mapConfigPlugins } from "../helpers/map-config-plugins.js";
|
|
34
34
|
import { mapConfigToWorkspaceStore } from "../helpers/map-config-to-workspace-store.js";
|
|
@@ -45,7 +45,7 @@ const _hoisted_1 = {
|
|
|
45
45
|
class: "flex gap-1.5 px-3 pt-3"
|
|
46
46
|
};
|
|
47
47
|
const _hoisted_2 = { key: 1 };
|
|
48
|
-
const _hoisted_3 = ["aria-label"];
|
|
48
|
+
const _hoisted_3 = ["aria-label", "inert"];
|
|
49
49
|
const _hoisted_4 = { class: "w-64 empty:hidden" };
|
|
50
50
|
const _hoisted_5 = {
|
|
51
51
|
key: 2,
|
|
@@ -162,6 +162,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
162
162
|
activeSlug.value = slug;
|
|
163
163
|
}
|
|
164
164
|
const workspaceStore = createWorkspaceStore({
|
|
165
|
+
verbose: isDevelopment,
|
|
165
166
|
plugins: [
|
|
166
167
|
persistencePlugin({
|
|
167
168
|
prefix: () => activeSlug.value,
|
|
@@ -491,6 +492,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
491
492
|
eventBus.on("toggle:nav-item", ({ id, open }) => {
|
|
492
493
|
if (open) {
|
|
493
494
|
mergedConfig.value.onShowMore?.(id);
|
|
495
|
+
const entry = sidebarState.getEntryById(id);
|
|
496
|
+
if (entry && "children" in entry && entry.children) {
|
|
497
|
+
const first = entry.children[0];
|
|
498
|
+
if (first) {
|
|
499
|
+
addToPriorityQueue(first.id);
|
|
500
|
+
}
|
|
501
|
+
}
|
|
494
502
|
}
|
|
495
503
|
sidebarState.setExpanded(id, open ?? !sidebarState.isExpanded(id));
|
|
496
504
|
});
|
|
@@ -638,7 +646,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
638
646
|
}, 8, ["breadcrumb", "isSidebarOpen", "showSidebar"])) : createCommentVNode("", true),
|
|
639
647
|
createElementVNode("main", {
|
|
640
648
|
"aria-label": `Open API Documentation for ${unref(workspaceStore).workspace.activeDocument?.info?.title}`,
|
|
641
|
-
class: "references-rendered"
|
|
649
|
+
class: "references-rendered",
|
|
650
|
+
inert: unref(agent).showAgent.value
|
|
642
651
|
}, [
|
|
643
652
|
createVNode(_sfc_main$5, {
|
|
644
653
|
authStore: unref(workspaceStore).auth,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaComposition.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaComposition.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SchemaComposition.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaComposition.vue"],"names":[],"mappings":"AAiKA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAEvE,OAAO,KAAK,EACV,mBAAmB,EACnB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAGrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAA;AAItE,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAItE,KAAK,WAAW,GAAG;IACf,oDAAoD;IACpD,WAAW,EAAE,kBAAkB,CAAA;IAC/B,4DAA4D;IAC5D,aAAa,CAAC,EAAE,mBAAmB,CAAA;IACnC,mCAAmC;IACnC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,kDAAkD;IAClD,MAAM,EAAE,YAAY,CAAA;IACpB,2CAA2C;IAC3C,KAAK,EAAE,MAAM,CAAA;IACb,oCAAoC;IACpC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,kCAAkC;IAClC,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,gCAAgC;IAChC,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,iCAAiC;IACjC,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAClC,yEAAyE;IACzE,OAAO,EAAE,aAAa,CAAA;CACvB,CAAC;AAuNJ,QAAA,MAAM,YAAY;aAhOJ,OAAO;iBAEH,OAAO;6EAiOvB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -40,7 +40,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
40
40
|
const listboxOptions = computed(
|
|
41
41
|
() => composition.value.map((schema, index) => {
|
|
42
42
|
const resolved = resolve.schema(schema.original);
|
|
43
|
-
const label = (getModelNameFromSchema(
|
|
43
|
+
const label = (getModelNameFromSchema(resolved) ?? getSchemaType(resolved)) || "Schema";
|
|
44
44
|
return { id: String(index), label };
|
|
45
45
|
})
|
|
46
46
|
);
|
|
@@ -4,12 +4,6 @@ const getModelNameFromSchema = (schemaOrRef) => {
|
|
|
4
4
|
if (!schemaOrRef) {
|
|
5
5
|
return null;
|
|
6
6
|
}
|
|
7
|
-
if ("$ref" in schemaOrRef) {
|
|
8
|
-
const refName = getRefName(schemaOrRef.$ref);
|
|
9
|
-
if (refName) {
|
|
10
|
-
return refName;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
7
|
const schema = resolve.schema(schemaOrRef);
|
|
14
8
|
if (schema.title) {
|
|
15
9
|
return schema.title;
|
|
@@ -17,6 +11,12 @@ const getModelNameFromSchema = (schemaOrRef) => {
|
|
|
17
11
|
if (schema.name) {
|
|
18
12
|
return schema.name;
|
|
19
13
|
}
|
|
14
|
+
if ("$ref" in schemaOrRef) {
|
|
15
|
+
const refName = getRefName(schemaOrRef.$ref);
|
|
16
|
+
if (refName) {
|
|
17
|
+
return refName;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
20
|
return null;
|
|
21
21
|
};
|
|
22
22
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeveloperTools.vue.d.ts","sourceRoot":"","sources":["../../../src/features/developer-tools/DeveloperTools.vue"],"names":[],"mappings":"AA0DA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAC5E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAQpE,KAAK,WAAW,GAAG;IACjB,SAAS,CAAC,EAAE,cAAc,CAAA;IAC1B,aAAa,CAAC,EAAE,OAAO,CAAC,yBAAyB,CAAC,CAAA;CACnD,CAAC;AAuBF,KAAK,gBAAgB,GAAG;IACxB,WAAW,CAAC,EAAE,OAAO,CAAC,yBAAyB,CAAC,CAAC;CAChD,CAAC;AAKF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"DeveloperTools.vue.d.ts","sourceRoot":"","sources":["../../../src/features/developer-tools/DeveloperTools.vue"],"names":[],"mappings":"AA0DA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAC5E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAQpE,KAAK,WAAW,GAAG;IACjB,SAAS,CAAC,EAAE,cAAc,CAAA;IAC1B,aAAa,CAAC,EAAE,OAAO,CAAC,yBAAyB,CAAC,CAAA;CACnD,CAAC;AAuBF,KAAK,gBAAgB,GAAG;IACxB,WAAW,CAAC,EAAE,OAAO,CAAC,yBAAyB,CAAC,CAAC;CAChD,CAAC;AAKF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;AAoFxD,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -7,7 +7,7 @@ import _sfc_main$3 from "./components/ShareApiReference.vue.js";
|
|
|
7
7
|
const _hoisted_1 = {
|
|
8
8
|
key: 0,
|
|
9
9
|
"aria-label": "Developer Tools",
|
|
10
|
-
class: "api-reference-toolbar bg-b-1
|
|
10
|
+
class: "api-reference-toolbar bg-b-1 flex h-10 justify-center border-b px-15"
|
|
11
11
|
};
|
|
12
12
|
const _hoisted_2 = { class: "-mx-2 flex max-w-(--refs-content-max-width) flex-1 items-center" };
|
|
13
13
|
const _hoisted_3 = { class: "flex flex-1 items-center" };
|
|
@@ -11,6 +11,12 @@ type UnblockFn = () => void;
|
|
|
11
11
|
export declare const blockIntersection: () => UnblockFn;
|
|
12
12
|
/** If there are any pending blocking operations we disable intersection */
|
|
13
13
|
export declare const intersectionEnabled: import("vue").ComputedRef<boolean>;
|
|
14
|
+
/**
|
|
15
|
+
* Add elements to the priority queue for immediate rendering.
|
|
16
|
+
* We allow adding items already in readyQueue so that callbacks are still triggered,
|
|
17
|
+
* but processQueue will skip actual re-rendering for items already ready.
|
|
18
|
+
*/
|
|
19
|
+
export declare const addToPriorityQueue: (id: string | undefined) => void;
|
|
14
20
|
/**
|
|
15
21
|
* Tracks the lazy loading state of an element.
|
|
16
22
|
* The element should be conditionally rendered using the isReady property.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lazy-bus.d.ts","sourceRoot":"","sources":["../../src/helpers/lazy-bus.ts"],"names":[],"mappings":"AAwBA;;;GAGG;AACH,eAAO,MAAM,qBAAqB,qCAAa,CAAA;AAc/C,KAAK,SAAS,GAAG,MAAM,IAAI,CAAA;AAE3B;;;GAGG;AACH,eAAO,MAAM,iBAAiB,QAAO,SAMpC,CAAA;AAED,2EAA2E;AAC3E,eAAO,MAAM,mBAAmB,oCAAkD,CAAA;
|
|
1
|
+
{"version":3,"file":"lazy-bus.d.ts","sourceRoot":"","sources":["../../src/helpers/lazy-bus.ts"],"names":[],"mappings":"AAwBA;;;GAGG;AACH,eAAO,MAAM,qBAAqB,qCAAa,CAAA;AAc/C,KAAK,SAAS,GAAG,MAAM,IAAI,CAAA;AAE3B;;;GAGG;AACH,eAAO,MAAM,iBAAiB,QAAO,SAMpC,CAAA;AAED,2EAA2E;AAC3E,eAAO,MAAM,mBAAmB,oCAAkD,CAAA;AA8ElF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAAI,IAAI,MAAM,GAAG,SAAS,SAIxD,CAAA;AAWD;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,EAAE,EAAE,MAAM;;EAUpC;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,YAAY,GACvB,IAAI,MAAM,EACV,aAAa,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,EACjD,cAAc,CAAC,EAAE,EAAE,MAAM,KAAK;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;IAAC,QAAQ,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;CAAE,GAAG,SAAS,SA2D/G,CAAA"}
|
package/dist/helpers/lazy-bus.js
CHANGED
package/dist/style.css
CHANGED
|
@@ -2379,95 +2379,17 @@ to {
|
|
|
2379
2379
|
gap: 12px;
|
|
2380
2380
|
border-top: var(--scalar-border-width) solid var(--scalar-border-color);
|
|
2381
2381
|
}
|
|
2382
|
-
|
|
2383
|
-
.agent-scalar[data-v-b45a83b1] {
|
|
2384
|
-
position: fixed;
|
|
2385
|
-
top: 0;
|
|
2386
|
-
left: 0;
|
|
2387
|
-
width: calc(100% - 50px);
|
|
2388
|
-
height: 100dvh;
|
|
2389
|
-
background: var(--scalar-background-1);
|
|
2390
|
-
border-right: var(--scalar-border-width) solid var(--scalar-border-color);
|
|
2391
|
-
transform: translate3d(
|
|
2392
|
-
calc(-100% + var(--scalar-sidebar-width, 288px)),
|
|
2393
|
-
0,
|
|
2394
|
-
0
|
|
2395
|
-
);
|
|
2396
|
-
z-index: 2;
|
|
2397
|
-
animation: 0.35s forwards scalaragentslidein-b45a83b1;
|
|
2398
|
-
box-shadow: var(--scalar-shadow-2);
|
|
2399
|
-
}
|
|
2400
|
-
.agent-scalar-container[data-v-b45a83b1] {
|
|
2401
|
-
width: calc(100% - var(--scalar-sidebar-width, 288px));
|
|
2402
|
-
height: 100%;
|
|
2403
|
-
margin-left: auto;
|
|
2404
|
-
overflow: auto;
|
|
2405
|
-
padding: 0 24px;
|
|
2406
|
-
}
|
|
2407
|
-
.scalar-app-exit[data-v-b45a83b1] {
|
|
2408
|
-
cursor: pointer;
|
|
2409
|
-
z-index: 2;
|
|
2410
|
-
width: 100vw;
|
|
2411
|
-
height: 100vh;
|
|
2412
|
-
transition: all 0.3s ease-in-out;
|
|
2413
|
-
position: fixed;
|
|
2414
|
-
top: 0;
|
|
2415
|
-
left: 0;
|
|
2416
|
-
}
|
|
2382
|
+
/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */
|
|
2417
2383
|
@media (max-width: 1000px) {
|
|
2418
|
-
.agent-scalar-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
height: calc(100dvh - 50px);
|
|
2424
|
-
bottom: 0;
|
|
2425
|
-
top: initial;
|
|
2426
|
-
border-radius: var(--scalar-radius-lg) var(--scalar-radius-lg) 0 0;
|
|
2427
|
-
z-index: 12;
|
|
2428
|
-
}
|
|
2429
|
-
.scalar-app-exit[data-v-b45a83b1] {
|
|
2430
|
-
z-index: 11;
|
|
2431
|
-
}
|
|
2432
|
-
}
|
|
2433
|
-
.scalar-app-exit-animation[data-v-b45a83b1]:before {
|
|
2434
|
-
content: '';
|
|
2435
|
-
position: absolute;
|
|
2436
|
-
width: 100%;
|
|
2437
|
-
height: 100%;
|
|
2438
|
-
background: #00000038;
|
|
2439
|
-
animation: 0.5s forwards scalardrawerexitfadein-b45a83b1;
|
|
2440
|
-
animation-timing-function: cubic-bezier(0.77, 0, 0.175, 1);
|
|
2441
|
-
}
|
|
2442
|
-
.dark-mode .scalar .scalar-app-exit-animation[data-v-b45a83b1]:before {
|
|
2443
|
-
background: #00000073;
|
|
2444
|
-
}
|
|
2445
|
-
@keyframes scalaragentslidein-b45a83b1 {
|
|
2446
|
-
from {
|
|
2447
|
-
transform: translate3d(
|
|
2448
|
-
calc(-100% + var(--scalar-sidebar-width, 288px)),
|
|
2449
|
-
0,
|
|
2450
|
-
0
|
|
2451
|
-
);
|
|
2452
|
-
}
|
|
2453
|
-
to {
|
|
2454
|
-
transform: translate3d(0, 0, 0);
|
|
2455
|
-
}
|
|
2456
|
-
}
|
|
2457
|
-
@keyframes scalardrawerexitfadein-b45a83b1 {
|
|
2458
|
-
from {
|
|
2459
|
-
opacity: 0;
|
|
2460
|
-
}
|
|
2461
|
-
to {
|
|
2462
|
-
opacity: 1;
|
|
2384
|
+
.agent-scalar.agent-scalar[data-v-b38821a2] {
|
|
2385
|
+
border-top-left-radius: var(--scalar-radius-lg);
|
|
2386
|
+
border-top-right-radius: var(--scalar-radius-lg);
|
|
2387
|
+
inset-inline: 0;
|
|
2388
|
+
top: 48px;
|
|
2463
2389
|
}
|
|
2390
|
+
.agent-scalar.agent-scalar[data-v-b38821a2], .agent-scalar-overlay.agent-scalar-overlay[data-v-b38821a2] {
|
|
2391
|
+
z-index: 15;
|
|
2464
2392
|
}
|
|
2465
|
-
.app-exit-button[data-v-b45a83b1] {
|
|
2466
|
-
color: white;
|
|
2467
|
-
background: rgba(0, 0, 0, 0.1);
|
|
2468
|
-
}
|
|
2469
|
-
.app-exit-button[data-v-b45a83b1]:hover {
|
|
2470
|
-
background: rgba(255, 255, 255, 0.1);
|
|
2471
2393
|
}
|
|
2472
2394
|
/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */
|
|
2473
2395
|
@layer properties {
|
|
@@ -3600,6 +3522,9 @@ body {
|
|
|
3600
3522
|
.scalar-app .top-\[calc\(9px\+0\.5lh\)\] {
|
|
3601
3523
|
top: calc(9px + .5lh);
|
|
3602
3524
|
}
|
|
3525
|
+
.scalar-app .right-12 {
|
|
3526
|
+
right: 48px;
|
|
3527
|
+
}
|
|
3603
3528
|
.scalar-app .-left-4\.5 {
|
|
3604
3529
|
left: -18px;
|
|
3605
3530
|
}
|
|
@@ -3609,6 +3534,9 @@ body {
|
|
|
3609
3534
|
.scalar-app .-left-6 {
|
|
3610
3535
|
left: -24px;
|
|
3611
3536
|
}
|
|
3537
|
+
.scalar-app .left-w-sidebar {
|
|
3538
|
+
left: var(--refs-sidebar-width);
|
|
3539
|
+
}
|
|
3612
3540
|
.scalar-app .z-10 {
|
|
3613
3541
|
z-index: 10;
|
|
3614
3542
|
z-index: 10;
|
|
@@ -3794,6 +3722,14 @@ body {
|
|
|
3794
3722
|
.scalar-app .text-current {
|
|
3795
3723
|
color: currentColor;
|
|
3796
3724
|
}
|
|
3725
|
+
.scalar-app .duration-500 {
|
|
3726
|
+
--tw-duration: .5s;
|
|
3727
|
+
transition-duration: .5s;
|
|
3728
|
+
}
|
|
3729
|
+
.scalar-app .ease-\[cubic-bezier\(0\.77\,0\,0\.175\,1\)\] {
|
|
3730
|
+
--tw-ease: cubic-bezier(.77, 0, .175, 1);
|
|
3731
|
+
transition-timing-function: cubic-bezier(.77, 0, .175, 1);
|
|
3732
|
+
}
|
|
3797
3733
|
.scalar-app .\[--scalar-address-bar-height\:0px\] {
|
|
3798
3734
|
--scalar-address-bar-height: 0px;
|
|
3799
3735
|
}
|
|
@@ -3871,14 +3807,6 @@ body {
|
|
|
3871
3807
|
margin-left: auto;
|
|
3872
3808
|
}
|
|
3873
3809
|
}
|
|
3874
|
-
@media (max-width: 720px) and (max-height: 480px) {
|
|
3875
|
-
.scalar-app .zoomed\:static {
|
|
3876
|
-
position: static;
|
|
3877
|
-
}
|
|
3878
|
-
.scalar-app .zoomed\:p-1 {
|
|
3879
|
-
padding: 4px;
|
|
3880
|
-
}
|
|
3881
|
-
}
|
|
3882
3810
|
.scalar-app .\[\&_a\]\:underline a {
|
|
3883
3811
|
text-decoration-line: underline;
|
|
3884
3812
|
}
|
|
@@ -4176,10 +4104,6 @@ body {
|
|
|
4176
4104
|
inherits: false;
|
|
4177
4105
|
initial-value: transparent;
|
|
4178
4106
|
}
|
|
4179
|
-
@property --tw-ease {
|
|
4180
|
-
syntax: "*";
|
|
4181
|
-
inherits: false
|
|
4182
|
-
}
|
|
4183
4107
|
@keyframes fade-in-27df5cd8 {
|
|
4184
4108
|
0% {
|
|
4185
4109
|
opacity: 0;
|
|
@@ -12203,10 +12127,14 @@ to {
|
|
|
12203
12127
|
syntax: "*";
|
|
12204
12128
|
inherits: false
|
|
12205
12129
|
}
|
|
12130
|
+
@property --tw-ease {
|
|
12131
|
+
syntax: "*";
|
|
12132
|
+
inherits: false
|
|
12133
|
+
}
|
|
12206
12134
|
|
|
12207
12135
|
/* Configurable Layout Variables */
|
|
12208
12136
|
@layer scalar-config {
|
|
12209
|
-
.scalar-api-reference[data-v-
|
|
12137
|
+
.scalar-api-reference[data-v-69e552a7] {
|
|
12210
12138
|
/* The header height */
|
|
12211
12139
|
--refs-header-height: calc(
|
|
12212
12140
|
var(--scalar-custom-header-height, 0px) + var(--scalar-header-height, 0px)
|
|
@@ -12228,20 +12156,20 @@ to {
|
|
|
12228
12156
|
/* The maximum width of the content column */
|
|
12229
12157
|
--refs-content-max-width: var(--scalar-content-max-width, 1540px);
|
|
12230
12158
|
}
|
|
12231
|
-
.scalar-api-reference.references-classic[data-v-
|
|
12159
|
+
.scalar-api-reference.references-classic[data-v-69e552a7] {
|
|
12232
12160
|
/* Classic layout is wider */
|
|
12233
12161
|
--refs-content-max-width: var(--scalar-content-max-width, 1420px);
|
|
12234
12162
|
min-height: 100dvh;
|
|
12235
12163
|
--refs-sidebar-width: 0;
|
|
12236
12164
|
}
|
|
12237
12165
|
}
|
|
12238
|
-
.t-doc__sidebar[data-v-
|
|
12166
|
+
.t-doc__sidebar[data-v-69e552a7] {
|
|
12239
12167
|
z-index: 10;
|
|
12240
12168
|
}
|
|
12241
12169
|
|
|
12242
12170
|
/* ----------------------------------------------------- */
|
|
12243
12171
|
/* References Layout */
|
|
12244
|
-
.references-layout[data-v-
|
|
12172
|
+
.references-layout[data-v-69e552a7] {
|
|
12245
12173
|
/* Try to fill the container */
|
|
12246
12174
|
min-height: 100dvh;
|
|
12247
12175
|
min-width: 100%;
|
|
@@ -12265,39 +12193,39 @@ to {
|
|
|
12265
12193
|
|
|
12266
12194
|
background: var(--scalar-background-1);
|
|
12267
12195
|
}
|
|
12268
|
-
.references-editor[data-v-
|
|
12196
|
+
.references-editor[data-v-69e552a7] {
|
|
12269
12197
|
grid-area: editor;
|
|
12270
12198
|
display: flex;
|
|
12271
12199
|
min-width: 0;
|
|
12272
12200
|
background: var(--scalar-background-1);
|
|
12273
12201
|
}
|
|
12274
|
-
.references-rendered[data-v-
|
|
12202
|
+
.references-rendered[data-v-69e552a7] {
|
|
12275
12203
|
position: relative;
|
|
12276
12204
|
grid-area: rendered;
|
|
12277
12205
|
min-width: 0;
|
|
12278
12206
|
background: var(--scalar-background-1);
|
|
12279
12207
|
}
|
|
12280
|
-
.scalar-api-reference.references-classic[data-v-
|
|
12281
|
-
.references-classic .references-rendered[data-v-
|
|
12208
|
+
.scalar-api-reference.references-classic[data-v-69e552a7],
|
|
12209
|
+
.references-classic .references-rendered[data-v-69e552a7] {
|
|
12282
12210
|
height: initial !important;
|
|
12283
12211
|
max-height: initial !important;
|
|
12284
12212
|
}
|
|
12285
12213
|
@layer scalar-config {
|
|
12286
|
-
.references-sidebar[data-v-
|
|
12214
|
+
.references-sidebar[data-v-69e552a7] {
|
|
12287
12215
|
/* Set a default width if references are enabled */
|
|
12288
12216
|
--refs-sidebar-width: var(--scalar-sidebar-width, 288px);
|
|
12289
12217
|
}
|
|
12290
12218
|
}
|
|
12291
12219
|
|
|
12292
12220
|
/* Footer */
|
|
12293
|
-
.references-footer[data-v-
|
|
12221
|
+
.references-footer[data-v-69e552a7] {
|
|
12294
12222
|
grid-area: footer;
|
|
12295
12223
|
}
|
|
12296
12224
|
/* ----------------------------------------------------- */
|
|
12297
12225
|
/* Responsive / Mobile Layout */
|
|
12298
12226
|
@media (max-width: 1000px) {
|
|
12299
12227
|
/* Stack view on mobile */
|
|
12300
|
-
.references-layout[data-v-
|
|
12228
|
+
.references-layout[data-v-69e552a7] {
|
|
12301
12229
|
/* Adjust the sidebar height to the viewport height minus the header height */
|
|
12302
12230
|
--refs-sidebar-height: calc(
|
|
12303
12231
|
var(--full-height, 100dvh) - var(--scalar-custom-header-height, 0px)
|
|
@@ -12312,13 +12240,13 @@ to {
|
|
|
12312
12240
|
'rendered'
|
|
12313
12241
|
'footer';
|
|
12314
12242
|
}
|
|
12315
|
-
.references-editable[data-v-
|
|
12243
|
+
.references-editable[data-v-69e552a7] {
|
|
12316
12244
|
grid-template-areas:
|
|
12317
12245
|
'header'
|
|
12318
12246
|
'navigation'
|
|
12319
12247
|
'editor';
|
|
12320
12248
|
}
|
|
12321
|
-
.references-rendered[data-v-
|
|
12249
|
+
.references-rendered[data-v-69e552a7] {
|
|
12322
12250
|
position: static;
|
|
12323
12251
|
}
|
|
12324
12252
|
}
|
|
@@ -12329,12 +12257,12 @@ to {
|
|
|
12329
12257
|
* when the new elements are available
|
|
12330
12258
|
*/
|
|
12331
12259
|
@media (max-width: 1000px) {
|
|
12332
|
-
.scalar-api-references-standalone-mobile[data-v-
|
|
12260
|
+
.scalar-api-references-standalone-mobile[data-v-69e552a7]:not(.references-classic) {
|
|
12333
12261
|
--scalar-header-height: 50px;
|
|
12334
12262
|
}
|
|
12335
12263
|
}
|
|
12336
12264
|
|
|
12337
|
-
.darklight-reference[data-v-
|
|
12265
|
+
.darklight-reference[data-v-69e552a7] {
|
|
12338
12266
|
width: 100%;
|
|
12339
12267
|
margin-top: auto;
|
|
12340
12268
|
}
|
package/package.json
CHANGED
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"vue",
|
|
21
21
|
"vue3"
|
|
22
22
|
],
|
|
23
|
-
"version": "1.
|
|
23
|
+
"version": "1.47.0",
|
|
24
24
|
"engines": {
|
|
25
|
-
"node": ">=
|
|
25
|
+
"node": ">=22"
|
|
26
26
|
},
|
|
27
27
|
"type": "module",
|
|
28
28
|
"main": "./dist/index.js",
|
|
@@ -85,22 +85,22 @@
|
|
|
85
85
|
"microdiff": "^1.5.0",
|
|
86
86
|
"nanoid": "^5.1.6",
|
|
87
87
|
"vue": "^3.5.26",
|
|
88
|
-
"@scalar/agent-chat": "0.
|
|
89
|
-
"@scalar/
|
|
90
|
-
"@scalar/
|
|
91
|
-
"@scalar/
|
|
92
|
-
"@scalar/
|
|
93
|
-
"@scalar/
|
|
94
|
-
"@scalar/
|
|
95
|
-
"@scalar/openapi-types": "0.
|
|
96
|
-
"@scalar/
|
|
97
|
-
"@scalar/
|
|
98
|
-
"@scalar/snippetz": "0.
|
|
99
|
-
"@scalar/
|
|
100
|
-
"@scalar/
|
|
101
|
-
"@scalar/
|
|
102
|
-
"@scalar/workspace-store": "0.
|
|
103
|
-
"@scalar/use-
|
|
88
|
+
"@scalar/agent-chat": "0.8.0",
|
|
89
|
+
"@scalar/code-highlight": "0.3.0",
|
|
90
|
+
"@scalar/api-client": "2.32.0",
|
|
91
|
+
"@scalar/components": "0.20.0",
|
|
92
|
+
"@scalar/helpers": "0.3.0",
|
|
93
|
+
"@scalar/icons": "0.6.0",
|
|
94
|
+
"@scalar/openapi-parser": "0.25.0",
|
|
95
|
+
"@scalar/openapi-types": "0.6.0",
|
|
96
|
+
"@scalar/sidebar": "0.8.0",
|
|
97
|
+
"@scalar/oas-utils": "0.9.0",
|
|
98
|
+
"@scalar/snippetz": "0.7.0",
|
|
99
|
+
"@scalar/themes": "0.15.0",
|
|
100
|
+
"@scalar/types": "0.7.0",
|
|
101
|
+
"@scalar/use-hooks": "0.4.0",
|
|
102
|
+
"@scalar/workspace-store": "0.36.0",
|
|
103
|
+
"@scalar/use-toasts": "0.10.0"
|
|
104
104
|
},
|
|
105
105
|
"devDependencies": {
|
|
106
106
|
"@hono/node-server": "^1.19.7",
|
|
@@ -118,10 +118,10 @@
|
|
|
118
118
|
"vite-plugin-banner": "^0.8.1",
|
|
119
119
|
"vite-plugin-css-injected-by-js": "^3.5.2",
|
|
120
120
|
"vitest": "4.0.16",
|
|
121
|
-
"@scalar/build-tooling": "0.
|
|
122
|
-
"@scalar/core": "0.
|
|
123
|
-
"@scalar/
|
|
124
|
-
"@scalar/
|
|
121
|
+
"@scalar/build-tooling": "0.5.0",
|
|
122
|
+
"@scalar/core": "0.4.0",
|
|
123
|
+
"@scalar/galaxy": "0.6.0",
|
|
124
|
+
"@scalar/react-renderer": "0.4.0"
|
|
125
125
|
},
|
|
126
126
|
"scripts": {
|
|
127
127
|
"build": "pnpm build:default && pnpm build:standalone && pnpm types:build",
|