@scalar/api-reference 1.44.3 → 1.44.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/CHANGELOG.md +95 -0
- package/dist/browser/standalone.js +19661 -19589
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/AgentScalar/AgentScalarButton.vue.d.ts +3 -0
- package/dist/components/AgentScalar/AgentScalarButton.vue.d.ts.map +1 -0
- package/dist/components/AgentScalar/AgentScalarButton.vue.js +22 -0
- package/dist/components/AgentScalar/AgentScalarButton.vue2.js +4 -0
- package/dist/components/{AgentChat.vue.d.ts → AgentScalar/AgentScalarChatInterface.vue.d.ts} +4 -2
- package/dist/components/AgentScalar/AgentScalarChatInterface.vue.d.ts.map +1 -0
- package/dist/components/AgentScalar/AgentScalarChatInterface.vue.js +4 -0
- package/dist/components/{AgentChat.vue2.js → AgentScalar/AgentScalarChatInterface.vue2.js} +9 -7
- package/dist/components/AgentScalar/AgentScalarDrawer.vue.d.ts +12 -0
- package/dist/components/AgentScalar/AgentScalarDrawer.vue.d.ts.map +1 -0
- package/dist/components/AgentScalar/AgentScalarDrawer.vue.js +7 -0
- package/dist/components/AgentScalar/AgentScalarDrawer.vue2.js +53 -0
- package/dist/components/AgentScalar/AgentScalarTooltip.vue.d.ts +19 -0
- package/dist/components/AgentScalar/AgentScalarTooltip.vue.d.ts.map +1 -0
- package/dist/components/AgentScalar/AgentScalarTooltip.vue.js +35 -0
- package/dist/components/AgentScalar/AgentScalarTooltip.vue2.js +4 -0
- package/dist/components/AgentScalar/index.d.ts +4 -0
- package/dist/components/AgentScalar/index.d.ts.map +1 -0
- package/dist/components/ApiReference.vue.d.ts.map +1 -1
- package/dist/components/ApiReference.vue.js +1 -1
- package/dist/components/ApiReference.vue2.js +51 -70
- package/dist/components/Content/Schema/SchemaComposition.vue.d.ts +3 -2
- package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue2.js +1 -1
- package/dist/components/Content/Schema/helpers/get-ref-name.d.ts +1 -2
- package/dist/components/Content/Schema/helpers/get-ref-name.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/get-ref-name.js +1 -5
- package/dist/components/Content/Schema/helpers/get-schema-type.d.ts +2 -1
- package/dist/components/Content/Schema/helpers/get-schema-type.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/get-schema-type.js +7 -1
- package/dist/components/Content/Schema/helpers/optimize-value-for-display.d.ts +5 -1
- package/dist/components/Content/Schema/helpers/optimize-value-for-display.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/optimize-value-for-display.js +2 -0
- package/dist/components/Content/Schema/helpers/schema-name.js +1 -1
- package/dist/components/MobileHeader.vue.js +2 -2
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue.js +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue2.js +2 -0
- package/dist/features/ask-agent-button/AskAgentButton.vue.d.ts +3 -0
- package/dist/features/ask-agent-button/AskAgentButton.vue.d.ts.map +1 -0
- package/dist/features/ask-agent-button/AskAgentButton.vue.js +7 -0
- package/dist/features/ask-agent-button/AskAgentButton.vue2.js +47 -0
- package/dist/helpers/lazy-bus.d.ts.map +1 -1
- package/dist/helpers/lazy-bus.js +5 -3
- package/dist/helpers/storage.d.ts +2 -2
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +4 -0
- package/dist/hooks/use-agent.d.ts +36 -0
- package/dist/hooks/use-agent.d.ts.map +1 -0
- package/dist/hooks/use-agent.js +42 -0
- package/dist/style.css +318 -244
- package/package.json +14 -14
- package/dist/components/AgentChat.vue.d.ts.map +0 -1
- package/dist/components/AgentChat.vue.js +0 -4
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
3
|
+
//# sourceMappingURL=AgentScalarButton.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgentScalarButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AgentScalar/AgentScalarButton.vue"],"names":[],"mappings":";AA8EA,wBAKG"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, unref, createVNode, createTextVNode } from "vue";
|
|
2
|
+
import { ScalarIconSparkle } from "@scalar/icons";
|
|
3
|
+
import { useAgentContext } from "../../hooks/use-agent.js";
|
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
+
__name: "AgentScalarButton",
|
|
6
|
+
setup(__props) {
|
|
7
|
+
const agentContext = useAgentContext();
|
|
8
|
+
return (_ctx, _cache) => {
|
|
9
|
+
return openBlock(), createElementBlock("button", {
|
|
10
|
+
class: "bg-sidebar-b-search text-sidebar-c-2 hover:text-sidebar-c-1 flex items-center gap-1.5 rounded border px-2 text-base whitespace-nowrap",
|
|
11
|
+
type: "button",
|
|
12
|
+
onClick: _cache[0] || (_cache[0] = ($event) => unref(agentContext)?.openAgent())
|
|
13
|
+
}, [
|
|
14
|
+
createVNode(unref(ScalarIconSparkle)),
|
|
15
|
+
_cache[1] || (_cache[1] = createTextVNode(" Ask AI ", -1))
|
|
16
|
+
]);
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
export {
|
|
21
|
+
_sfc_main as default
|
|
22
|
+
};
|
package/dist/components/{AgentChat.vue.d.ts → AgentScalar/AgentScalarChatInterface.vue.d.ts}
RENAMED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { type ApiReferenceConfigurationWithSource } from '@scalar/types/api-reference';
|
|
2
2
|
import type { WorkspaceStore } from '@scalar/workspace-store/client';
|
|
3
|
+
import type { Ref } from 'vue';
|
|
3
4
|
type __VLS_Props = {
|
|
4
|
-
|
|
5
|
+
agentScalarConfiguration: ApiReferenceConfigurationWithSource['agent'];
|
|
5
6
|
workspaceStore: WorkspaceStore;
|
|
7
|
+
prefilledMessage?: Ref<string>;
|
|
6
8
|
};
|
|
7
9
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
10
|
export default _default;
|
|
9
|
-
//# sourceMappingURL=
|
|
11
|
+
//# sourceMappingURL=AgentScalarChatInterface.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgentScalarChatInterface.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AgentScalar/AgentScalarChatInterface.vue"],"names":[],"mappings":"AAkCA,OAAO,EAAE,KAAK,mCAAmC,EAAE,MAAM,6BAA6B,CAAA;AACtF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAI9B,KAAK,WAAW,GAAG;IACf,wBAAwB,EAAE,mCAAmC,CAAC,OAAO,CAAC,CAAA;IACtE,cAAc,EAAE,cAAc,CAAA;IAC9B,gBAAgB,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;CAC/B,CAAC;;AAoEJ,wBAMG"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { defineComponent, createBlock, openBlock, unref } from "vue";
|
|
2
2
|
import { Chat } from "@scalar/agent-chat";
|
|
3
|
-
import { REGISTRY_URL, DASHBOARD_URL, API_BASE_URL } from "
|
|
3
|
+
import { REGISTRY_URL, DASHBOARD_URL, API_BASE_URL } from "../../consts/urls.js";
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
-
__name: "
|
|
5
|
+
__name: "AgentScalarChatInterface",
|
|
6
6
|
props: {
|
|
7
|
-
|
|
8
|
-
workspaceStore: {}
|
|
7
|
+
agentScalarConfiguration: {},
|
|
8
|
+
workspaceStore: {},
|
|
9
|
+
prefilledMessage: {}
|
|
9
10
|
},
|
|
10
11
|
setup(__props) {
|
|
11
12
|
return (_ctx, _cache) => {
|
|
@@ -13,11 +14,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
13
14
|
baseUrl: unref(API_BASE_URL),
|
|
14
15
|
dashboardUrl: unref(DASHBOARD_URL),
|
|
15
16
|
getActiveDocumentJson: () => __props.workspaceStore.exportActiveDocument("json"),
|
|
16
|
-
getAgentKey: __props.
|
|
17
|
-
mode: __props.
|
|
17
|
+
getAgentKey: __props.agentScalarConfiguration?.key ? () => __props.agentScalarConfiguration?.key ?? "" : void 0,
|
|
18
|
+
mode: __props.agentScalarConfiguration?.key ? "full" : "preview",
|
|
19
|
+
prefilledMessage: __props.prefilledMessage,
|
|
18
20
|
registryDocuments: [],
|
|
19
21
|
registryUrl: unref(REGISTRY_URL)
|
|
20
|
-
}, null, 8, ["baseUrl", "dashboardUrl", "getActiveDocumentJson", "getAgentKey", "mode", "registryUrl"]);
|
|
22
|
+
}, null, 8, ["baseUrl", "dashboardUrl", "getActiveDocumentJson", "getAgentKey", "mode", "prefilledMessage", "registryUrl"]);
|
|
21
23
|
};
|
|
22
24
|
}
|
|
23
25
|
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import '@scalar/agent-chat/style.css';
|
|
2
|
+
import type { ApiReferenceConfigurationWithSource } from '@scalar/types/api-reference';
|
|
3
|
+
import type { WorkspaceStore } from '@scalar/workspace-store/client';
|
|
4
|
+
import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
5
|
+
type __VLS_Props = {
|
|
6
|
+
agentScalarConfiguration: ApiReferenceConfigurationWithSource['agent'];
|
|
7
|
+
workspaceStore: WorkspaceStore;
|
|
8
|
+
eventBus: WorkspaceEventBus;
|
|
9
|
+
};
|
|
10
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
export default _default;
|
|
12
|
+
//# sourceMappingURL=AgentScalarDrawer.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgentScalarDrawer.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AgentScalar/AgentScalarDrawer.vue"],"names":[],"mappings":"AAmJA,OAAO,8BAA8B,CAAA;AAErC,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;;AA+GF,wBAMG"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import _sfc_main from "./AgentScalarDrawer.vue2.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const AgentScalarDrawer = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b45a83b1"]]);
|
|
5
|
+
export {
|
|
6
|
+
AgentScalarDrawer as default
|
|
7
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { defineComponent, defineAsyncComponent, createElementBlock, openBlock, Fragment, withDirectives, createElementVNode, unref, normalizeClass, createVNode, vShow } from "vue";
|
|
2
|
+
import { ScalarIconX } from "@scalar/icons";
|
|
3
|
+
import "@scalar/agent-chat/style.css";
|
|
4
|
+
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" };
|
|
11
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
|
+
__name: "AgentScalarDrawer",
|
|
13
|
+
props: {
|
|
14
|
+
agentScalarConfiguration: {},
|
|
15
|
+
workspaceStore: {},
|
|
16
|
+
eventBus: {}
|
|
17
|
+
},
|
|
18
|
+
setup(__props) {
|
|
19
|
+
const agentContext = useAgentContext();
|
|
20
|
+
const AgentScalarChatInterface = defineAsyncComponent(
|
|
21
|
+
async () => import("./AgentScalarChatInterface.vue.js")
|
|
22
|
+
);
|
|
23
|
+
return (_ctx, _cache) => {
|
|
24
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
25
|
+
withDirectives(createElementVNode("div", {
|
|
26
|
+
class: normalizeClass(["scalar-app-exit", unref(agentContext)?.showAgent.value ? "scalar-app-exit-animation" : ""]),
|
|
27
|
+
onClick: _cache[0] || (_cache[0] = ($event) => unref(agentContext)?.closeAgent())
|
|
28
|
+
}, [
|
|
29
|
+
createElementVNode("button", _hoisted_1, [
|
|
30
|
+
createVNode(unref(ScalarIconX), { weight: "bold" }),
|
|
31
|
+
_cache[1] || (_cache[1] = createElementVNode("span", { class: "sr-only" }, "Close Client", -1))
|
|
32
|
+
])
|
|
33
|
+
], 2), [
|
|
34
|
+
[vShow, unref(agentContext)?.showAgent.value]
|
|
35
|
+
]),
|
|
36
|
+
withDirectives(createElementVNode("div", _hoisted_2, [
|
|
37
|
+
createElementVNode("div", _hoisted_3, [
|
|
38
|
+
createVNode(unref(AgentScalarChatInterface), {
|
|
39
|
+
agentScalarConfiguration: __props.agentScalarConfiguration,
|
|
40
|
+
prefilledMessage: unref(agentContext)?.prefilledMessage,
|
|
41
|
+
workspaceStore: __props.workspaceStore
|
|
42
|
+
}, null, 8, ["agentScalarConfiguration", "prefilledMessage", "workspaceStore"])
|
|
43
|
+
])
|
|
44
|
+
], 512), [
|
|
45
|
+
[vShow, unref(agentContext)?.showAgent.value]
|
|
46
|
+
])
|
|
47
|
+
], 64);
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
export {
|
|
52
|
+
_sfc_main as default
|
|
53
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ApiReferenceConfigurationWithSource } from '@scalar/types/api-reference';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
agentScalarConfiguration: ApiReferenceConfigurationWithSource['agent'] | undefined;
|
|
4
|
+
};
|
|
5
|
+
declare var __VLS_5: {}, __VLS_7: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_5) => any;
|
|
8
|
+
} & {
|
|
9
|
+
default?: (props: typeof __VLS_7) => any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=AgentScalarTooltip.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgentScalarTooltip.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AgentScalar/AgentScalarTooltip.vue"],"names":[],"mappings":"AA8CA,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,6BAA6B,CAAA;AAGtF,KAAK,WAAW,GAAG;IACjB,wBAAwB,EACpB,mCAAmC,CAAC,OAAO,CAAC,GAC5C,SAAS,CAAA;CACd,CAAC;AAgDF,QAAA,IAAI,OAAO,IAAU,EAAE,OAAO,IAAW,CAAE;AAC3C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAoB/C,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { defineComponent, computed, createBlock, renderSlot, openBlock, unref, withCtx } from "vue";
|
|
2
|
+
import { ScalarTooltip } from "@scalar/components";
|
|
3
|
+
import { isLocalUrl } from "@scalar/helpers/url/is-local-url";
|
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
+
__name: "AgentScalarTooltip",
|
|
6
|
+
props: {
|
|
7
|
+
agentScalarConfiguration: {}
|
|
8
|
+
},
|
|
9
|
+
setup(__props) {
|
|
10
|
+
const content = computed(() => {
|
|
11
|
+
if (typeof window !== "undefined" && !isLocalUrl(window.location.href)) {
|
|
12
|
+
return void 0;
|
|
13
|
+
}
|
|
14
|
+
if (__props.agentScalarConfiguration?.key) {
|
|
15
|
+
return void 0;
|
|
16
|
+
}
|
|
17
|
+
return "Available in development only.";
|
|
18
|
+
});
|
|
19
|
+
return (_ctx, _cache) => {
|
|
20
|
+
return content.value ? (openBlock(), createBlock(unref(ScalarTooltip), {
|
|
21
|
+
key: 0,
|
|
22
|
+
content: content.value,
|
|
23
|
+
placement: "bottom"
|
|
24
|
+
}, {
|
|
25
|
+
default: withCtx(() => [
|
|
26
|
+
renderSlot(_ctx.$slots, "default")
|
|
27
|
+
]),
|
|
28
|
+
_: 3
|
|
29
|
+
}, 8, ["content"])) : renderSlot(_ctx.$slots, "default", { key: 1 });
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
export {
|
|
34
|
+
_sfc_main as default
|
|
35
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/AgentScalar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AACtE,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AACtE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,0BAA0B,CAAA"}
|
|
@@ -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":"AAysCA,OAAO,EAEL,KAAK,4BAA4B,EAGlC,MAAM,6BAA6B,CAAA;AAgCpC,OAAO,8BAA8B,CAAA;AAiCrC,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;AAqwCF,QAAA,MAAM,eAAe;;;oPAOnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,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-797651d6"]]);
|
|
8
8
|
export {
|
|
9
9
|
ApiReference as default
|
|
10
10
|
};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { defineComponent, computed, ref, watch, useId, provide, onServerPrefetch, onBeforeMount, useTemplateRef, onMounted, onBeforeUnmount,
|
|
1
|
+
import { defineComponent, computed, ref, watch, useId, provide, onServerPrefetch, onBeforeMount, useTemplateRef, onMounted, onBeforeUnmount, createElementBlock, openBlock, createBlock, createElementVNode, createVNode, resolveDynamicComponent, withCtx, createTextVNode, toDisplayString, normalizeClass, createCommentVNode, unref, renderSlot, normalizeProps, guardReactiveProps, createSlots } from "vue";
|
|
2
2
|
import { provideUseId } from "@headlessui/vue";
|
|
3
3
|
import { OpenApiClientButton } from "@scalar/api-client/components";
|
|
4
4
|
import { createApiClientModal } from "@scalar/api-client/v2/features/modal";
|
|
5
5
|
import { getActiveEnvironment } from "@scalar/api-client/v2/helpers";
|
|
6
6
|
import { addScalarClassesToHeadless, ScalarSidebarFooter, ScalarColorModeToggleButton, ScalarColorModeToggleIcon } from "@scalar/components";
|
|
7
7
|
import { redirectToProxy } from "@scalar/helpers/url/redirect-to-proxy";
|
|
8
|
-
import { ScalarIconX, ScalarIconSparkle } from "@scalar/icons";
|
|
9
8
|
import { createSidebarState, ScalarSidebar } from "@scalar/sidebar";
|
|
10
9
|
import { hasObtrusiveScrollbars, getThemeStyles } from "@scalar/themes";
|
|
11
10
|
import { apiReferenceConfigurationSchema } from "@scalar/types/api-reference";
|
|
@@ -16,16 +15,17 @@ import { ScalarToasts } from "@scalar/use-toasts";
|
|
|
16
15
|
import { createWorkspaceStore } from "@scalar/workspace-store/client";
|
|
17
16
|
import { createWorkspaceEventBus } from "@scalar/workspace-store/events";
|
|
18
17
|
import diff from "microdiff";
|
|
18
|
+
import { useAgent, AGENT_CONTEXT_SYMBOL } from "../hooks/use-agent.js";
|
|
19
19
|
import "@scalar/agent-chat/style.css";
|
|
20
20
|
import { isLocalUrl } from "@scalar/helpers/url/is-local-url";
|
|
21
21
|
import { useScrollLock } from "@vueuse/core";
|
|
22
22
|
import ClassicHeader from "./ClassicHeader.vue.js";
|
|
23
|
-
import _sfc_main$
|
|
23
|
+
import _sfc_main$6 from "./Content/Content.vue.js";
|
|
24
24
|
/* empty css */
|
|
25
25
|
import _sfc_main$1 from "./MobileHeader.vue.js";
|
|
26
26
|
import _sfc_main$2 from "../features/multiple-documents/DocumentSelector.vue.js";
|
|
27
27
|
import _sfc_main$3 from "../features/Search/components/SearchButton.vue.js";
|
|
28
|
-
import _sfc_main$
|
|
28
|
+
import _sfc_main$7 from "../features/toolbar/ApiReferenceToolbar.vue.js";
|
|
29
29
|
import { getSystemModePreference } from "../helpers/color-mode.js";
|
|
30
30
|
import { downloadDocument } from "../helpers/download.js";
|
|
31
31
|
import { getIdFromUrl, makeUrlFromId } from "../helpers/id-routing.js";
|
|
@@ -38,20 +38,18 @@ import { useIntersection } from "../hooks/use-intersection.js";
|
|
|
38
38
|
import { persistencePlugin } from "../plugins/persistance-plugin.js";
|
|
39
39
|
import { PLUGIN_MANAGER_SYMBOL } from "../plugins/hooks/usePluginManager.js";
|
|
40
40
|
import { createPluginManager } from "../plugins/plugin-manager.js";
|
|
41
|
+
import AgentScalarDrawer from "./AgentScalar/AgentScalarDrawer.vue.js";
|
|
42
|
+
import _sfc_main$4 from "./AgentScalar/AgentScalarTooltip.vue.js";
|
|
43
|
+
import _sfc_main$5 from "./AgentScalar/AgentScalarButton.vue.js";
|
|
41
44
|
const _hoisted_1 = {
|
|
42
|
-
key: 1,
|
|
43
|
-
class: "agent-scalar"
|
|
44
|
-
};
|
|
45
|
-
const _hoisted_2 = { class: "agent-scalar-container custom-scroll custom-scroll-self-contain-overflow" };
|
|
46
|
-
const _hoisted_3 = {
|
|
47
45
|
key: 1,
|
|
48
46
|
class: "flex gap-1.5 p-3 pt-1.5"
|
|
49
47
|
};
|
|
50
|
-
const
|
|
51
|
-
const
|
|
52
|
-
const
|
|
53
|
-
const
|
|
54
|
-
key:
|
|
48
|
+
const _hoisted_2 = { key: 1 };
|
|
49
|
+
const _hoisted_3 = ["aria-label"];
|
|
50
|
+
const _hoisted_4 = { class: "w-64 empty:hidden" };
|
|
51
|
+
const _hoisted_5 = {
|
|
52
|
+
key: 2,
|
|
55
53
|
class: "references-footer"
|
|
56
54
|
};
|
|
57
55
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -381,13 +379,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
381
379
|
const documentUrl = computed(() => {
|
|
382
380
|
return configList.value[activeSlug.value]?.source?.url;
|
|
383
381
|
});
|
|
384
|
-
const
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
382
|
+
const agent = useAgent({
|
|
383
|
+
agentEnabled: computed(() => {
|
|
384
|
+
const currentConfiguration = configList.value[activeSlug.value];
|
|
385
|
+
if (currentConfiguration?.agent?.disabled) {
|
|
386
|
+
return false;
|
|
387
|
+
}
|
|
388
|
+
if (typeof window !== "undefined" && isLocalUrl(window.location.href)) {
|
|
389
|
+
return true;
|
|
390
|
+
}
|
|
391
|
+
return Boolean(configList.value[activeSlug.value]?.agent?.key);
|
|
392
|
+
})
|
|
390
393
|
});
|
|
394
|
+
provide(AGENT_CONTEXT_SYMBOL, agent);
|
|
391
395
|
const modal = useTemplateRef("modal");
|
|
392
396
|
const apiClient = ref(null);
|
|
393
397
|
onMounted(() => {
|
|
@@ -503,11 +507,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
503
507
|
}
|
|
504
508
|
return mode;
|
|
505
509
|
});
|
|
506
|
-
const AgentChat = defineAsyncComponent(async () => import("./AgentChat.vue.js"));
|
|
507
510
|
const bodyScrollLocked = useScrollLock(document.body);
|
|
508
|
-
watch(showAgent, () =>
|
|
509
|
-
bodyScrollLocked.value = showAgent.value;
|
|
510
|
-
});
|
|
511
|
+
watch(agent.showAgent, () => bodyScrollLocked.value = agent.showAgent.value);
|
|
511
512
|
return (_ctx, _cache) => {
|
|
512
513
|
return openBlock(), createElementBlock("div", null, [
|
|
513
514
|
(openBlock(), createBlock(resolveDynamicComponent("style"), null, {
|
|
@@ -530,38 +531,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
530
531
|
_ctx.$attrs.class
|
|
531
532
|
]])
|
|
532
533
|
}, [
|
|
533
|
-
agentEnabled.value ?
|
|
534
|
+
unref(agent).agentEnabled.value ? (openBlock(), createBlock(unref(AgentScalarDrawer), {
|
|
534
535
|
key: 0,
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
class: "app-exit-button zoomed:static zoomed:p-1 fixed top-2 right-2 rounded-full p-2",
|
|
540
|
-
type: "button",
|
|
541
|
-
onClick: _cache[0] || (_cache[0] = ($event) => unref(eventBus).emit("ui:close:client-modal"))
|
|
542
|
-
}, [
|
|
543
|
-
createVNode(unref(ScalarIconX), { weight: "bold" }),
|
|
544
|
-
_cache[8] || (_cache[8] = createElementVNode("span", { class: "sr-only" }, "Close Client", -1))
|
|
545
|
-
])
|
|
546
|
-
], 2)), [
|
|
547
|
-
[vShow, showAgent.value && agentEnabled.value]
|
|
548
|
-
]) : createCommentVNode("", true),
|
|
549
|
-
agentEnabled.value ? withDirectives((openBlock(), createElementBlock("div", _hoisted_1, [
|
|
550
|
-
createElementVNode("div", _hoisted_2, [
|
|
551
|
-
createVNode(unref(AgentChat), {
|
|
552
|
-
agentConfig: configList.value[activeSlug.value]?.agent,
|
|
553
|
-
workspaceStore: unref(workspaceStore)
|
|
554
|
-
}, null, 8, ["agentConfig", "workspaceStore"])
|
|
555
|
-
])
|
|
556
|
-
], 512)), [
|
|
557
|
-
[vShow, showAgent.value && agentEnabled.value]
|
|
558
|
-
]) : createCommentVNode("", true),
|
|
536
|
+
agentScalarConfiguration: configList.value[activeSlug.value]?.agent,
|
|
537
|
+
eventBus: unref(eventBus),
|
|
538
|
+
workspaceStore: unref(workspaceStore)
|
|
539
|
+
}, null, 8, ["agentScalarConfiguration", "eventBus", "workspaceStore"])) : createCommentVNode("", true),
|
|
559
540
|
mergedConfig.value.layout === "modern" ? (openBlock(), createBlock(_sfc_main$1, {
|
|
560
|
-
key:
|
|
541
|
+
key: 1,
|
|
561
542
|
breadcrumb: breadcrumb.value,
|
|
562
543
|
isSidebarOpen: isSidebarOpen.value,
|
|
563
544
|
showSidebar: mergedConfig.value.showSidebar,
|
|
564
|
-
onToggleSidebar: _cache[
|
|
545
|
+
onToggleSidebar: _cache[2] || (_cache[2] = () => isSidebarOpen.value = !isSidebarOpen.value)
|
|
565
546
|
}, {
|
|
566
547
|
search: withCtx(() => [
|
|
567
548
|
!mergedConfig.value.hideSearch ? (openBlock(), createBlock(_sfc_main$3, {
|
|
@@ -585,7 +566,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
585
566
|
layout: "reference",
|
|
586
567
|
options: mergedConfig.value,
|
|
587
568
|
role: "navigation",
|
|
588
|
-
onSelectItem: _cache[
|
|
569
|
+
onSelectItem: _cache[1] || (_cache[1] = (id) => handleSelectItem(id, "sidebar"))
|
|
589
570
|
}, {
|
|
590
571
|
header: withCtx(() => [
|
|
591
572
|
documentOptionList.value.length > 1 ? (openBlock(), createBlock(_sfc_main$2, {
|
|
@@ -595,22 +576,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
595
576
|
options: documentOptionList.value,
|
|
596
577
|
"onUpdate:modelValue": changeSelectedDocument
|
|
597
578
|
}, null, 8, ["modelValue", "options"])) : createCommentVNode("", true),
|
|
598
|
-
!mergedConfig.value.hideSearch ? (openBlock(), createElementBlock("div",
|
|
579
|
+
!mergedConfig.value.hideSearch ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
599
580
|
createVNode(_sfc_main$3, {
|
|
600
581
|
document: unref(workspaceStore).workspace.activeDocument,
|
|
601
582
|
eventBus: unref(eventBus),
|
|
602
583
|
hideModels: mergedConfig.value.hideModels,
|
|
603
584
|
searchHotKey: mergedConfig.value.searchHotKey
|
|
604
585
|
}, null, 8, ["document", "eventBus", "hideModels", "searchHotKey"]),
|
|
605
|
-
agentEnabled.value ? (openBlock(),
|
|
586
|
+
unref(agent).agentEnabled.value ? (openBlock(), createBlock(unref(_sfc_main$4), {
|
|
606
587
|
key: 0,
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
])) : createCommentVNode("", true)
|
|
588
|
+
agentScalarConfiguration: configList.value[activeSlug.value]?.agent
|
|
589
|
+
}, {
|
|
590
|
+
default: withCtx(() => [
|
|
591
|
+
createVNode(unref(_sfc_main$5))
|
|
592
|
+
]),
|
|
593
|
+
_: 1
|
|
594
|
+
}, 8, ["agentScalarConfiguration"])) : createCommentVNode("", true)
|
|
614
595
|
])) : createCommentVNode("", true),
|
|
615
596
|
renderSlot(_ctx.$slots, "sidebar-start", normalizeProps(guardReactiveProps(slotProps.value)), void 0, true)
|
|
616
597
|
]),
|
|
@@ -621,8 +602,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
621
602
|
!mergedConfig.value.hideDarkModeToggle && !mergedConfig.value.forceDarkModeState ? (openBlock(), createBlock(unref(ScalarColorModeToggleButton), {
|
|
622
603
|
key: 0,
|
|
623
604
|
modelValue: colorMode.value === "dark",
|
|
624
|
-
"onUpdate:modelValue": _cache[
|
|
625
|
-
}, null, 8, ["modelValue"])) : (openBlock(), createElementBlock("span",
|
|
605
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = () => unref(toggleColorMode)())
|
|
606
|
+
}, null, 8, ["modelValue"])) : (openBlock(), createElementBlock("span", _hoisted_2))
|
|
626
607
|
]),
|
|
627
608
|
default: withCtx(() => [
|
|
628
609
|
!mergedConfig.value.hideClientButton ? (openBlock(), createBlock(unref(OpenApiClientButton), {
|
|
@@ -646,7 +627,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
646
627
|
"aria-label": `Open API Documentation for ${unref(workspaceStore).workspace.activeDocument?.info?.title}`,
|
|
647
628
|
class: "references-rendered"
|
|
648
629
|
}, [
|
|
649
|
-
createVNode(_sfc_main$
|
|
630
|
+
createVNode(_sfc_main$6, {
|
|
650
631
|
document: unref(workspaceStore).workspace.activeDocument,
|
|
651
632
|
environment: environment.value,
|
|
652
633
|
eventBus: unref(eventBus),
|
|
@@ -658,10 +639,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
658
639
|
xScalarDefaultClient: unref(workspaceStore).workspace["x-scalar-default-client"]
|
|
659
640
|
}, createSlots({
|
|
660
641
|
start: withCtx(() => [
|
|
661
|
-
unref(workspaceStore).workspace.activeDocument && unref(mediaQueries).lg.value ? (openBlock(), createBlock(_sfc_main$
|
|
642
|
+
unref(workspaceStore).workspace.activeDocument && unref(mediaQueries).lg.value ? (openBlock(), createBlock(_sfc_main$7, {
|
|
662
643
|
key: 0,
|
|
663
644
|
overrides: configurationOverrides.value,
|
|
664
|
-
"onUpdate:overrides": _cache[
|
|
645
|
+
"onUpdate:overrides": _cache[3] || (_cache[3] = ($event) => configurationOverrides.value = $event),
|
|
665
646
|
configuration: mergedConfig.value,
|
|
666
647
|
workspace: unref(workspaceStore)
|
|
667
648
|
}, null, 8, ["overrides", "configuration", "workspace"])) : createCommentVNode("", true),
|
|
@@ -677,11 +658,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
677
658
|
mode: colorMode.value,
|
|
678
659
|
style: { "transform": "scale(1.4)" },
|
|
679
660
|
variant: "icon",
|
|
680
|
-
onClick: _cache[
|
|
661
|
+
onClick: _cache[4] || (_cache[4] = () => unref(toggleColorMode)())
|
|
681
662
|
}, null, 8, ["mode"])) : createCommentVNode("", true)
|
|
682
663
|
]),
|
|
683
664
|
default: withCtx(() => [
|
|
684
|
-
createElementVNode("div",
|
|
665
|
+
createElementVNode("div", _hoisted_4, [
|
|
685
666
|
documentOptionList.value.length > 1 ? (openBlock(), createBlock(_sfc_main$2, {
|
|
686
667
|
key: 0,
|
|
687
668
|
modelValue: activeSlug.value,
|
|
@@ -715,8 +696,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
715
696
|
key: "0"
|
|
716
697
|
} : void 0
|
|
717
698
|
]), 1032, ["document", "environment", "eventBus", "expandedItems", "headingSlugGenerator", "infoSectionId", "items", "options", "xScalarDefaultClient"])
|
|
718
|
-
], 8,
|
|
719
|
-
_ctx.$slots.footer ? (openBlock(), createElementBlock("div",
|
|
699
|
+
], 8, _hoisted_3),
|
|
700
|
+
_ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
720
701
|
renderSlot(_ctx.$slots, "footer", normalizeProps(guardReactiveProps(slotProps.value)), void 0, true)
|
|
721
702
|
])) : createCommentVNode("", true),
|
|
722
703
|
createElementVNode("div", {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
2
|
-
import type { DiscriminatorObject
|
|
2
|
+
import type { DiscriminatorObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
3
|
+
import type { SchemaWithOriginalRef } from '../../../components/Content/Schema/helpers/optimize-value-for-display.js';
|
|
3
4
|
import type { SchemaOptions } from '../../../components/Content/Schema/types';
|
|
4
5
|
import { type CompositionKeyword } from './helpers/schema-composition.js';
|
|
5
6
|
type __VLS_Props = {
|
|
@@ -10,7 +11,7 @@ type __VLS_Props = {
|
|
|
10
11
|
/** Optional name for the schema */
|
|
11
12
|
name?: string;
|
|
12
13
|
/** The schema value containing the composition */
|
|
13
|
-
schema:
|
|
14
|
+
schema: SchemaWithOriginalRef;
|
|
14
15
|
/** Nesting level for proper indentation */
|
|
15
16
|
level: number;
|
|
16
17
|
/** Whether to use compact layout */
|
|
@@ -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":"AA0JA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAEvE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8DAA8D,CAAA;AAGvG,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gEAAgE,CAAA;AAC3G,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAA;AAItE,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAGtE,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,qBAAqB,CAAA;IAC7B,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;;aATU,OAAO;iBAEH,OAAO;;AAgOzB,wBAOG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.vue"],"names":[],"mappings":"AAyaA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAEvE,OAAO,KAAK,EACV,mBAAmB,EACnB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAErE,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,KAAK,CAAA;AAI9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAA;AAetE;;;;;GAKG;AAEH,KAAK,WAAW,GAAG;IACf,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACvB,MAAM,EAAE,YAAY,GAAG,SAAS,CAAA;IAChC,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,aAAa,CAAC,EAAE,mBAAmB,CAAA;IACnC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,OAAO,CAAC,EAAE,sBAAsB,GAAG,mBAAmB,CAAA;IACtD,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAClC,OAAO,EAAE,aAAa,CAAA;CACvB,CAAC;;WAZQ,MAAM;cAEH,OAAO;aACR,OAAO;oBAGA,OAAO;;
|
|
1
|
+
{"version":3,"file":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.vue"],"names":[],"mappings":"AAyaA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAEvE,OAAO,KAAK,EACV,mBAAmB,EACnB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAErE,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,KAAK,CAAA;AAI9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAA;AAetE;;;;;GAKG;AAEH,KAAK,WAAW,GAAG;IACf,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACvB,MAAM,EAAE,YAAY,GAAG,SAAS,CAAA;IAChC,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,aAAa,CAAC,EAAE,mBAAmB,CAAA;IACnC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,OAAO,CAAC,EAAE,sBAAsB,GAAG,mBAAmB,CAAA;IACtD,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAClC,OAAO,EAAE,aAAa,CAAA;CACvB,CAAC;;WAZQ,MAAM;cAEH,OAAO;aACR,OAAO;oBAGA,OAAO;;AAsc5B,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./SchemaProperty.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const SchemaProperty = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const SchemaProperty = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8da63347"]]);
|
|
5
5
|
export {
|
|
6
6
|
SchemaProperty as default
|
|
7
7
|
};
|
|
@@ -205,7 +205,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
205
205
|
name: __props.name,
|
|
206
206
|
noncollapsible: __props.noncollapsible,
|
|
207
207
|
options: __props.options,
|
|
208
|
-
schema:
|
|
208
|
+
schema: compositionData.value
|
|
209
209
|
}, null, 8, ["breadcrumb", "compact", "composition", "discriminator", "eventBus", "hideHeading", "level", "name", "noncollapsible", "options", "schema"]);
|
|
210
210
|
}), 128)),
|
|
211
211
|
createVNode(unref(_sfc_main$3), { value: optimizedValue.value }, null, 8, ["value"])
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { ReferenceType, SchemaObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
2
1
|
/**
|
|
3
2
|
* Gets the "name" of the schema from the ref path
|
|
4
3
|
* TODO: this will change so fix it when the new refs are out
|
|
@@ -6,5 +5,5 @@ import type { ReferenceType, SchemaObject } from '@scalar/workspace-store/schema
|
|
|
6
5
|
*
|
|
7
6
|
* @example SchemaName from #/components/schemas/SchemaName
|
|
8
7
|
*/
|
|
9
|
-
export declare const getRefName: (
|
|
8
|
+
export declare const getRefName: (ref: string) => string | null | undefined;
|
|
10
9
|
//# sourceMappingURL=get-ref-name.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-ref-name.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/get-ref-name.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-ref-name.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/get-ref-name.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,GAAI,KAAK,MAAM,8BAWrC,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ReferenceType, SchemaObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
2
|
+
import type { SchemaWithOriginalRef } from '../../../../components/Content/Schema/helpers/optimize-value-for-display.js';
|
|
2
3
|
/**
|
|
3
4
|
* Computes the human-readable type for a schema.
|
|
4
5
|
*
|
|
@@ -11,5 +12,5 @@ import type { ReferenceType, SchemaObject } from '@scalar/workspace-store/schema
|
|
|
11
12
|
* 6. $ref names
|
|
12
13
|
* 7. raw type
|
|
13
14
|
*/
|
|
14
|
-
export declare const getSchemaType: (valueOrRef:
|
|
15
|
+
export declare const getSchemaType: (valueOrRef: SchemaWithOriginalRef | ReferenceType<SchemaObject>) => string;
|
|
15
16
|
//# sourceMappingURL=get-schema-type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-schema-type.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/get-schema-type.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;
|
|
1
|
+
{"version":3,"file":"get-schema-type.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/get-schema-type.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAI/G,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gEAAgE,CAAA;AAiC3G;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,aAAa,GAAI,YAAY,qBAAqB,GAAG,aAAa,CAAC,YAAY,CAAC,KAAG,MAkE/F,CAAA"}
|