@scalar/agent-chat 0.12.60 → 0.12.62
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/components/Selector.vue.d.ts.map +1 -1
- package/dist/components/Selector.vue_vue_type_script_setup_true_lang.js +16 -7
- package/dist/components/Selector.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/ServerSelector.vue.d.ts.map +1 -1
- package/dist/components/ServerSelector.vue_vue_type_script_setup_true_lang.js +6 -5
- package/dist/components/ServerSelector.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/style.css +21 -21
- package/dist/views/Settings/DocSettings.vue.d.ts.map +1 -1
- package/dist/views/Settings/DocSettings.vue.js +1 -1
- package/dist/views/Settings/DocSettings.vue_vue_type_script_setup_true_lang.js +3 -5
- package/dist/views/Settings/DocSettings.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/vue-styles.css +2 -2
- package/package.json +10 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Selector.vue.d.ts","sourceRoot":"","sources":["../../src/components/Selector.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Selector.vue.d.ts","sourceRoot":"","sources":["../../src/components/Selector.vue"],"names":[],"mappings":"AAkHA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAGhG,KAAK,WAAW,GAAG;IACjB,8BAA8B;IAC9B,cAAc,EAAE,YAAY,GAAG,IAAI,CAAA;IACnC,wBAAwB;IACxB,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,qEAAqE;IACrE,MAAM,EAAE,MAAM,CAAA;CACf,CAAC;AAuNF,QAAA,MAAM,YAAY;;;;;;;;;;;;kFAIhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { computed, createBlock, createElementBlock, createElementVNode, createVNode, defineComponent, openBlock, toDisplayString, unref, withCtx } from "vue";
|
|
2
|
+
import { getServerSelectionIndex, getServerSelectionKeys, resolveServerUrl, resolveServerUrlTemplate } from "@scalar/workspace-store/request-example";
|
|
2
3
|
import { ScalarButton } from "@scalar/components/button";
|
|
3
4
|
import { ScalarIconCaretDown } from "@scalar/icons";
|
|
4
5
|
import { ScalarListbox } from "@scalar/components/listbox";
|
|
@@ -19,12 +20,20 @@ var Selector_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineC
|
|
|
19
20
|
emits: ["update:modelValue"],
|
|
20
21
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
21
22
|
const emit = __emit;
|
|
22
|
-
const serverOptions = computed(() => __props.servers.map((
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
23
|
+
const serverOptions = computed(() => getServerSelectionKeys(__props.servers).map((id, index) => {
|
|
24
|
+
const server = __props.servers[index];
|
|
25
|
+
return {
|
|
26
|
+
id,
|
|
27
|
+
label: id === server.url ? server.url : server.name || resolveServerUrl(server)
|
|
28
|
+
};
|
|
29
|
+
}));
|
|
30
|
+
const serverUrlWithoutTrailingSlash = computed(() => __props.selectedServer ? resolveServerUrlTemplate(__props.selectedServer).replace(/\/$/, "") : "");
|
|
31
|
+
const selectedServerOption = computed(() => serverOptions.value[getServerSelectionIndex(__props.servers, __props.selectedServer)]);
|
|
32
|
+
const serverTriggerLabel = computed(() => {
|
|
33
|
+
const url = serverUrlWithoutTrailingSlash.value;
|
|
34
|
+
if (!__props.selectedServer || !selectedServerOption.value || selectedServerOption.value.id === __props.selectedServer.url) return url;
|
|
35
|
+
return __props.selectedServer.name ? `${__props.selectedServer.name} — ${url}` : resolveServerUrl(__props.selectedServer).replace(/\/$/, "");
|
|
36
|
+
});
|
|
28
37
|
__expose({
|
|
29
38
|
servers: __props.servers,
|
|
30
39
|
serverUrlWithoutTrailingSlash,
|
|
@@ -49,7 +58,7 @@ var Selector_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineC
|
|
|
49
58
|
}, {
|
|
50
59
|
default: withCtx(() => [
|
|
51
60
|
_cache[1] || (_cache[1] = createElementVNode("span", { class: "sr-only" }, "Server:", -1)),
|
|
52
|
-
createElementVNode("span", _hoisted_1, toDisplayString(
|
|
61
|
+
createElementVNode("span", _hoisted_1, toDisplayString(serverTriggerLabel.value || "Select a server"), 1),
|
|
53
62
|
createVNode(unref(ScalarIconCaretDown), {
|
|
54
63
|
class: "text-c-2 ui-open:rotate-180 mt-0.25 size-3 transition-transform duration-100",
|
|
55
64
|
weight: "bold"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Selector.vue_vue_type_script_setup_true_lang.js","names":["_openBlock","_createBlock","_unref","_withCtx","_createVNode","_createElementVNode","_toDisplayString","_createElementBlock"],"sources":["../../src/components/Selector.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ScalarButton } from '@scalar/components/button'\nimport { ScalarListbox } from '@scalar/components/listbox'\nimport { ScalarIconCaretDown } from '@scalar/icons'\nimport type { ServerObject } from '@scalar/workspace-store/schemas/v3.2/strict/openapi-document'\nimport { computed } from 'vue'\n\nconst { target, servers, selectedServer } = defineProps<{\n /** The selected server URL */\n selectedServer: ServerObject | null\n /** Available servers */\n servers: ServerObject[]\n /** The id of the target to use for the popover (e.g. address bar) */\n target: string\n}>()\n\nconst emit = defineEmits<{\n /** Emitted when the selected server changes */\n (e: 'update:modelValue', value: string): void\n}>()\n\nconst serverOptions = computed(() =>\n servers.map((
|
|
1
|
+
{"version":3,"file":"Selector.vue_vue_type_script_setup_true_lang.js","names":["_openBlock","_createBlock","_unref","_withCtx","_createVNode","_createElementVNode","_toDisplayString","_createElementBlock"],"sources":["../../src/components/Selector.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ScalarButton } from '@scalar/components/button'\nimport { ScalarListbox } from '@scalar/components/listbox'\nimport { ScalarIconCaretDown } from '@scalar/icons'\nimport {\n getServerSelectionIndex,\n getServerSelectionKeys,\n resolveServerUrl,\n resolveServerUrlTemplate,\n} from '@scalar/workspace-store/request-example'\nimport type { ServerObject } from '@scalar/workspace-store/schemas/v3.2/strict/openapi-document'\nimport { computed } from 'vue'\n\nconst { target, servers, selectedServer } = defineProps<{\n /** The selected server URL */\n selectedServer: ServerObject | null\n /** Available servers */\n servers: ServerObject[]\n /** The id of the target to use for the popover (e.g. address bar) */\n target: string\n}>()\n\nconst emit = defineEmits<{\n /** Emitted when the selected server changes */\n (e: 'update:modelValue', value: string): void\n}>()\n\nconst serverOptions = computed(() =>\n getServerSelectionKeys(servers).map((id, index) => {\n const server = servers[index]!\n return {\n id,\n label:\n id === server.url\n ? server.url\n : server.name || resolveServerUrl(server),\n }\n }),\n)\n\nconst serverUrlWithoutTrailingSlash = computed(() =>\n selectedServer\n ? resolveServerUrlTemplate(selectedServer).replace(/\\/$/, '')\n : '',\n)\n\nconst selectedServerOption = computed(\n () => serverOptions.value[getServerSelectionIndex(servers, selectedServer)],\n)\n\nconst serverTriggerLabel = computed(() => {\n const url = serverUrlWithoutTrailingSlash.value\n if (\n !selectedServer ||\n !selectedServerOption.value ||\n selectedServerOption.value.id === selectedServer.url\n ) {\n return url\n }\n return selectedServer.name\n ? `${selectedServer.name} — ${url}`\n : resolveServerUrl(selectedServer).replace(/\\/$/, '')\n})\n\n// For testing\ndefineExpose({\n servers,\n serverUrlWithoutTrailingSlash,\n serverOptions,\n selectedServer,\n})\n</script>\n<template>\n <ScalarListbox\n v-if=\"serverOptions.length > 1\"\n ref=\"elem\"\n class=\"group\"\n :modelValue=\"selectedServerOption\"\n :options=\"serverOptions\"\n placement=\"bottom-start\"\n resize\n :target=\"target\"\n @update:modelValue=\"(e) => emit('update:modelValue', e.id)\">\n <ScalarButton\n class=\"bg-b-1 text-c-1 h-auto w-full justify-start gap-1.5 overflow-x-auto rounded-t-none rounded-b-xl px-3 py-1.5 text-base font-normal whitespace-nowrap -outline-offset-1\"\n variant=\"ghost\">\n <span class=\"sr-only\">Server:</span>\n <span class=\"overflow-x-auto\">{{\n serverTriggerLabel || 'Select a server'\n }}</span>\n <ScalarIconCaretDown\n class=\"text-c-2 ui-open:rotate-180 mt-0.25 size-3 transition-transform duration-100\"\n weight=\"bold\" />\n </ScalarButton>\n </ScalarListbox>\n <div\n v-else\n class=\"text-c-1 flex h-auto w-full items-center gap-0.75 rounded-b-lg px-3 py-1.5 text-base leading-[20px] whitespace-nowrap\">\n <span class=\"sr-only\">Server:</span>\n <span class=\"overflow-x-auto\">{{ serverUrlWithoutTrailingSlash }}</span>\n </div>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;EAsBA,MAAM,OAAO;EAKb,MAAM,gBAAgB,eACpB,uBAAuB,QAAA,OAAO,CAAC,CAAC,KAAK,IAAI,UAAU;GACjD,MAAM,SAAS,QAAA,QAAQ;GACvB,OAAO;IACL;IACA,OACE,OAAO,OAAO,MACV,OAAO,MACP,OAAO,QAAQ,iBAAiB,MAAM;GAC9C;EACF,CAAC,CACH;EAEA,MAAM,gCAAgC,eACpC,QAAA,iBACI,yBAAyB,QAAA,cAAc,CAAC,CAAC,QAAQ,OAAO,EAAE,IAC1D,EACN;EAEA,MAAM,uBAAuB,eACrB,cAAc,MAAM,wBAAwB,QAAA,SAAS,QAAA,cAAc,EAC3E;EAEA,MAAM,qBAAqB,eAAe;GACxC,MAAM,MAAM,8BAA8B;GAC1C,IACE,CAAC,QAAA,kBACD,CAAC,qBAAqB,SACtB,qBAAqB,MAAM,OAAO,QAAA,eAAe,KAEjD,OAAO;GAET,OAAO,QAAA,eAAe,OAClB,GAAG,QAAA,eAAe,KAAK,KAAK,QAC5B,iBAAiB,QAAA,cAAc,CAAC,CAAC,QAAQ,OAAO,EAAE;EACxD,CAAC;EAGD,SAAa;GACX,SAAM,QAAA;GACN;GACA;GACA,gBAAa,QAAA;EACf,CAAC;;GAIS,OAAA,cAAA,MAAc,SAAM,KAD5BA,UAAA,GAAAC,YAqBgBC,MAAA,aAAA,GAAA;;IAnBd,KAAI;IACJ,OAAM;IACL,YAAY,qBAAA;IACZ,SAAS,cAAA;IACV,WAAU;IACV,QAAA;IACC,QAAQ,QAAA;IACR,uBAAiB,OAAA,OAAA,OAAA,MAAG,MAAM,KAAI,qBAAsB,EAAE,EAAE;;IACzD,SAAAC,cAUe,CAVfC,YAUeF,MAAA,YAAA,GAAA;KATb,OAAM;KACN,SAAQ;;KACR,SAAAC,cAAoC;MAApC,OAAA,OAAA,OAAA,KAAAE,mBAAoC,QAAA,EAA9B,OAAM,UAAS,GAAC,WAAO,EAAA;MAC7BA,mBAES,QAFT,YAESC,gBADP,mBAAA,SAAkB,iBAAA,GAAA,CAAA;MAEpBF,YAEkBF,MAAA,mBAAA,GAAA;OADhB,OAAM;OACN,QAAO;;;;;;;;;;G,OAGbF,UAAA,GAAAO,mBAKM,OALN,YAKM,CAFJ,OAAA,OAAA,OAAA,KAAAF,mBAAoC,QAAA,EAA9B,OAAM,UAAS,GAAC,WAAO,EAAA,IAC7BA,mBAAwE,QAAxE,YAAwEC,gBAAvC,8BAAA,KAA6B,GAAA,CAAA,C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ServerSelector.vue.d.ts","sourceRoot":"","sources":["../../src/components/ServerSelector.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ServerSelector.vue.d.ts","sourceRoot":"","sources":["../../src/components/ServerSelector.vue"],"names":[],"mappings":"AAuGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAKvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAMhG,KAAK,aAAa,GAAG;IACnB,+CAA+C;IAC/C,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,2BAA2B;IAC3B,cAAc,EAAE,YAAY,GAAG,IAAI,CAAA;IACnC,wBAAwB;IACxB,OAAO,EAAE,YAAY,EAAE,CAAA;CACxB,CAAA;AAED;;;;;;;;GAQG;wBACkB,OAAO,YAAY;AAAxC,wBAAyC;AAGzC,QAAA,MAAM,YAAY,sSAoJd,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import Selector_default from "./Selector.vue.js";
|
|
2
2
|
import { Fragment, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, normalizeClass, openBlock, unref, useId } from "vue";
|
|
3
|
+
import { getServerSelectionIndex, getServerSelectionUpdate } from "@scalar/workspace-store/request-example";
|
|
3
4
|
import { ScalarMarkdown } from "@scalar/components/markdown";
|
|
4
5
|
import { ServerVariablesForm } from "@scalar/api-client/components/Server";
|
|
5
6
|
// src/components/ServerSelector.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -14,16 +15,16 @@ var ServerSelector_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ d
|
|
|
14
15
|
setup(__props) {
|
|
15
16
|
const id = useId();
|
|
16
17
|
/** Update the selected server */
|
|
17
|
-
const updateServer = (
|
|
18
|
-
__props.
|
|
19
|
-
|
|
18
|
+
const updateServer = (key) => {
|
|
19
|
+
const selection = getServerSelectionUpdate(__props.servers, key, __props.selectedServer);
|
|
20
|
+
if (selection) __props.eventBus.emit("server:update:selected", {
|
|
21
|
+
...selection,
|
|
20
22
|
meta: { type: "document" }
|
|
21
23
|
});
|
|
22
24
|
};
|
|
23
25
|
/** Update the server variable */
|
|
24
26
|
const updateServerVariable = (key, value) => {
|
|
25
|
-
|
|
26
|
-
const index = __props.servers.findIndex((s) => s.url === __props.selectedServer?.url);
|
|
27
|
+
const index = getServerSelectionIndex(__props.servers, __props.selectedServer);
|
|
27
28
|
if (index === -1) return;
|
|
28
29
|
__props.eventBus.emit("server:update:variables", {
|
|
29
30
|
index,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ServerSelector.vue_vue_type_script_setup_true_lang.js","names":["_openBlock","_createElementVNode","_unref","_normalizeClass","_createBlock","Selector","_createVNode"],"sources":["../../src/components/ServerSelector.vue"],"sourcesContent":["<script lang=\"ts\">\ntype SelectorProps = {\n /** The event bus to use for emitting events */\n eventBus: WorkspaceEventBus\n /** The selected server */\n selectedServer: ServerObject | null\n /** Available servers */\n servers: ServerObject[]\n}\n\n/**\n * ServerSelector\n *\n * Core component for rendering a server selector block.\n * Handles server selection and emits a 'server:update:selected' event when the selected server changes.\n *\n * @event server:update:selected - Emitted when the selected server changes\n * @event server:update:variables - Emitted when a server variable changes\n */\nexport default {}\n</script>\n\n<script lang=\"ts\" setup>\nimport { ServerVariablesForm } from '@scalar/api-client/components/Server'\nimport { ScalarMarkdown } from '@scalar/components/markdown'\nimport type { WorkspaceEventBus } from '@scalar/workspace-store/events'\nimport type { ServerObject } from '@scalar/workspace-store/schemas/v3.2/strict/openapi-document'\nimport { useId } from 'vue'\n\nimport Selector from './Selector.vue'\n\nconst { eventBus, servers, selectedServer } = defineProps<SelectorProps>()\n\nconst id = useId()\n\n/** Update the selected server */\nconst updateServer = (
|
|
1
|
+
{"version":3,"file":"ServerSelector.vue_vue_type_script_setup_true_lang.js","names":["_openBlock","_createElementVNode","_unref","_normalizeClass","_createBlock","Selector","_createVNode"],"sources":["../../src/components/ServerSelector.vue"],"sourcesContent":["<script lang=\"ts\">\ntype SelectorProps = {\n /** The event bus to use for emitting events */\n eventBus: WorkspaceEventBus\n /** The selected server */\n selectedServer: ServerObject | null\n /** Available servers */\n servers: ServerObject[]\n}\n\n/**\n * ServerSelector\n *\n * Core component for rendering a server selector block.\n * Handles server selection and emits a 'server:update:selected' event when the selected server changes.\n *\n * @event server:update:selected - Emitted when the selected server changes\n * @event server:update:variables - Emitted when a server variable changes\n */\nexport default {}\n</script>\n\n<script lang=\"ts\" setup>\nimport { ServerVariablesForm } from '@scalar/api-client/components/Server'\nimport { ScalarMarkdown } from '@scalar/components/markdown'\nimport type { WorkspaceEventBus } from '@scalar/workspace-store/events'\nimport {\n getServerSelectionIndex,\n getServerSelectionUpdate,\n} from '@scalar/workspace-store/request-example'\nimport type { ServerObject } from '@scalar/workspace-store/schemas/v3.2/strict/openapi-document'\nimport { useId } from 'vue'\n\nimport Selector from './Selector.vue'\n\nconst { eventBus, servers, selectedServer } = defineProps<SelectorProps>()\n\nconst id = useId()\n\n/** Update the selected server */\nconst updateServer = (key: string): void => {\n const selection = getServerSelectionUpdate(servers, key, selectedServer)\n if (selection) {\n eventBus.emit('server:update:selected', {\n ...selection,\n meta: { type: 'document' },\n })\n }\n}\n\n/** Update the server variable */\nconst updateServerVariable = (key: string, value: string): void => {\n const index = getServerSelectionIndex(servers, selectedServer)\n if (index === -1) {\n return\n }\n\n eventBus.emit('server:update:variables', {\n index,\n key,\n value,\n meta: {\n type: 'document',\n },\n })\n}\n</script>\n\n<template>\n <label\n class=\"bg-b-2 flex h-8 items-center rounded-t-xl border-x border-t px-3 py-2.5 font-medium\">\n Server\n </label>\n <div\n :id=\"id\"\n class=\"border\"\n :class=\"{\n 'rounded-b-xl':\n !selectedServer?.description && !selectedServer?.variables,\n }\">\n <Selector\n v-if=\"servers.length\"\n :selectedServer\n :servers=\"servers\"\n :target=\"id\"\n @update:modelValue=\"updateServer\" />\n </div>\n <ServerVariablesForm\n layout=\"reference\"\n :variables=\"selectedServer?.variables\"\n @update:variable=\"updateServerVariable\" />\n\n <!-- Description -->\n <ScalarMarkdown\n v-if=\"selectedServer?.description\"\n class=\"text-c-3 rounded-b-xl border-x border-b px-3 py-1.5\"\n :value=\"selectedServer.description\" />\n</template>\n"],"mappings":";;;;;;;;;;;;;;;EAqCA,MAAM,KAAK,MAAM;;EAGjB,MAAM,gBAAgB,QAAsB;GAC1C,MAAM,YAAY,yBAAyB,QAAA,SAAS,KAAK,QAAA,cAAc;GACvE,IAAI,WACF,QAAA,SAAS,KAAK,0BAA0B;IACtC,GAAG;IACH,MAAM,EAAE,MAAM,WAAW;GAC3B,CAAC;EAEL;;EAGA,MAAM,wBAAwB,KAAa,UAAwB;GACjE,MAAM,QAAQ,wBAAwB,QAAA,SAAS,QAAA,cAAc;GAC7D,IAAI,UAAU,IACZ;GAGF,QAAA,SAAS,KAAK,2BAA2B;IACvC;IACA;IACA;IACA,MAAM,EACJ,MAAM,WACR;GACF,CAAC;EACH;;;IAIE,OAAA,OAAA,OAAA,KAAAC,mBAGQ,SAAA,EAFN,OAAM,sFAAqF,GAAC,YAE9F,EAAA;IACAA,mBAaM,OAAA;KAZH,IAAIC,MAAA,EAAA;KACL,OAAKC,eAAA,CAAC,UAAQ,E,gBAC2B,CAAA,QAAA,gBAAgB,eAAW,CAAK,QAAA,gBAAgB,U;I,IAKjF,QAAA,QAAQ,UADhBH,UAAA,GAAAI,YAKsCC,kBAAA;;KAHnC,gBAAA,QAAA;KACA,SAAS,QAAA;KACT,QAAQH,MAAA,EAAA;KACR,uBAAmB;;;;;;IAExBI,YAG4CJ,MAAA,mBAAA,GAAA;KAF1C,QAAO;KACN,WAAW,QAAA,gBAAgB;KAC3B,qBAAiB;;IAIZ,QAAA,gBAAgB,eADxBF,UAAA,GAAAI,YAGwCF,MAAA,cAAA,GAAA;;KADtC,OAAM;KACL,OAAO,QAAA,eAAe"}
|
package/dist/package.json
CHANGED
package/dist/style.css
CHANGED
|
@@ -1164,7 +1164,7 @@
|
|
|
1164
1164
|
width: 66.6667%;
|
|
1165
1165
|
}
|
|
1166
1166
|
|
|
1167
|
-
.
|
|
1167
|
+
.scalar-sidebar-items[data-nested-open] :is(.scalar-sidebar-button, .group\/button) {
|
|
1168
1168
|
transition-behavior: allow-discrete;
|
|
1169
1169
|
max-height: 0;
|
|
1170
1170
|
transition-property: display, max-height;
|
|
@@ -1173,7 +1173,7 @@
|
|
|
1173
1173
|
display: none;
|
|
1174
1174
|
}
|
|
1175
1175
|
|
|
1176
|
-
.
|
|
1176
|
+
.scalar-sidebar-nested-items[data-open] > * > .scalar-sidebar-items:not([data-nested-open]) :is(.scalar-sidebar-button, .group\/button) {
|
|
1177
1177
|
max-height: 2147483647px;
|
|
1178
1178
|
display: flex;
|
|
1179
1179
|
}
|
|
@@ -2134,14 +2134,14 @@ input[data-v-029a43f5]::placeholder {
|
|
|
2134
2134
|
}
|
|
2135
2135
|
}
|
|
2136
2136
|
|
|
2137
|
-
.description[data-v-
|
|
2137
|
+
.description[data-v-4914cda8] .markdown {
|
|
2138
2138
|
font-weight: var(--scalar-semibold);
|
|
2139
2139
|
color: var(--scalar-color--1);
|
|
2140
2140
|
padding: 0;
|
|
2141
2141
|
display: block;
|
|
2142
2142
|
}
|
|
2143
2143
|
|
|
2144
|
-
.description[data-v-
|
|
2144
|
+
.description[data-v-4914cda8] .markdown > :first-child {
|
|
2145
2145
|
margin-top: 0;
|
|
2146
2146
|
}
|
|
2147
2147
|
|
|
@@ -2153,58 +2153,58 @@ input[data-v-029a43f5]::placeholder {
|
|
|
2153
2153
|
background: var(--scalar-background-2);
|
|
2154
2154
|
}
|
|
2155
2155
|
|
|
2156
|
-
[data-v-
|
|
2156
|
+
[data-v-4cdbd8d7] .cm-editor {
|
|
2157
2157
|
outline: none;
|
|
2158
2158
|
width: 100%;
|
|
2159
2159
|
height: 100%;
|
|
2160
2160
|
}
|
|
2161
2161
|
|
|
2162
|
-
[data-v-
|
|
2162
|
+
[data-v-4cdbd8d7] .cm-line {
|
|
2163
2163
|
padding: 0;
|
|
2164
2164
|
}
|
|
2165
2165
|
|
|
2166
|
-
[data-v-
|
|
2166
|
+
[data-v-4cdbd8d7] .cm-content {
|
|
2167
2167
|
font-size: var(--scalar-small);
|
|
2168
2168
|
align-items: center;
|
|
2169
2169
|
padding: 0;
|
|
2170
2170
|
display: flex;
|
|
2171
2171
|
}
|
|
2172
2172
|
|
|
2173
|
-
.scroll-timeline-x[data-v-
|
|
2173
|
+
.scroll-timeline-x[data-v-4cdbd8d7] {
|
|
2174
2174
|
-ms-overflow-style: none;
|
|
2175
2175
|
-webkit-mask-image: linear-gradient(to right, #0000 0, #000 6px calc(100% - 24px), #0000 100%);
|
|
2176
2176
|
mask-image: linear-gradient(to right, #0000 0, #000 6px calc(100% - 24px), #0000 100%);
|
|
2177
2177
|
}
|
|
2178
2178
|
|
|
2179
|
-
.scroll-timeline-x-hidden[data-v-
|
|
2179
|
+
.scroll-timeline-x-hidden[data-v-4cdbd8d7] {
|
|
2180
2180
|
overflow-x: auto;
|
|
2181
2181
|
}
|
|
2182
2182
|
|
|
2183
|
-
.scroll-timeline-x-hidden[data-v-
|
|
2183
|
+
.scroll-timeline-x-hidden[data-v-4cdbd8d7] .cm-scroller {
|
|
2184
2184
|
scrollbar-width: none;
|
|
2185
2185
|
-ms-overflow-style: none;
|
|
2186
2186
|
padding-right: 20px;
|
|
2187
2187
|
overflow: auto;
|
|
2188
2188
|
}
|
|
2189
2189
|
|
|
2190
|
-
.scroll-timeline-x-hidden[data-v-
|
|
2190
|
+
.scroll-timeline-x-hidden[data-v-4cdbd8d7]::-webkit-scrollbar {
|
|
2191
2191
|
width: 0;
|
|
2192
2192
|
height: 0;
|
|
2193
2193
|
display: none;
|
|
2194
2194
|
}
|
|
2195
2195
|
|
|
2196
|
-
.scroll-timeline-x-hidden[data-v-
|
|
2196
|
+
.scroll-timeline-x-hidden[data-v-4cdbd8d7] .cm-scroller::-webkit-scrollbar {
|
|
2197
2197
|
width: 0;
|
|
2198
2198
|
height: 0;
|
|
2199
2199
|
display: none;
|
|
2200
2200
|
}
|
|
2201
2201
|
|
|
2202
|
-
.scroll-timeline-x-address[data-v-
|
|
2202
|
+
.scroll-timeline-x-address[data-v-4cdbd8d7] {
|
|
2203
2203
|
scrollbar-width: none;
|
|
2204
2204
|
line-height: 27px;
|
|
2205
2205
|
}
|
|
2206
2206
|
|
|
2207
|
-
.scroll-timeline-x-address[data-v-
|
|
2207
|
+
.scroll-timeline-x-address[data-v-4cdbd8d7]:after {
|
|
2208
2208
|
content: "";
|
|
2209
2209
|
cursor: text;
|
|
2210
2210
|
width: 24px;
|
|
@@ -2213,30 +2213,30 @@ input[data-v-029a43f5]::placeholder {
|
|
|
2213
2213
|
right: 0;
|
|
2214
2214
|
}
|
|
2215
2215
|
|
|
2216
|
-
.address-bar-bg-states[data-v-
|
|
2216
|
+
.address-bar-bg-states[data-v-4cdbd8d7] {
|
|
2217
2217
|
--scalar-address-bar-bg: var(--scalar-background-1);
|
|
2218
2218
|
}
|
|
2219
2219
|
|
|
2220
2220
|
@supports (color: color-mix(in lab, red, red)) {
|
|
2221
|
-
.address-bar-bg-states[data-v-
|
|
2221
|
+
.address-bar-bg-states[data-v-4cdbd8d7] {
|
|
2222
2222
|
--scalar-address-bar-bg: color-mix(in srgb,
|
|
2223
2223
|
var(--scalar-background-1),
|
|
2224
2224
|
var(--scalar-background-2));
|
|
2225
2225
|
}
|
|
2226
2226
|
}
|
|
2227
2227
|
|
|
2228
|
-
.address-bar-bg-states[data-v-
|
|
2228
|
+
.address-bar-bg-states[data-v-4cdbd8d7] {
|
|
2229
2229
|
background: var(--scalar-address-bar-bg);
|
|
2230
2230
|
}
|
|
2231
2231
|
|
|
2232
|
-
.address-bar-bg-states[data-v-
|
|
2232
|
+
.address-bar-bg-states[data-v-4cdbd8d7]:has(.cm-focused) {
|
|
2233
2233
|
--scalar-address-bar-bg: var(--scalar-background-1);
|
|
2234
2234
|
border-color: var(--scalar-border-color);
|
|
2235
2235
|
outline-width: 1px;
|
|
2236
2236
|
outline-style: solid;
|
|
2237
2237
|
}
|
|
2238
2238
|
|
|
2239
|
-
.address-bar-bg-states:has(.cm-focused) .fade-left[data-v-
|
|
2239
|
+
.address-bar-bg-states:has(.cm-focused) .fade-left[data-v-4cdbd8d7], .address-bar-bg-states:has(.cm-focused) .fade-right[data-v-4cdbd8d7] {
|
|
2240
2240
|
--scalar-address-bar-bg: var(--scalar-background-1);
|
|
2241
2241
|
}
|
|
2242
2242
|
|
|
@@ -6092,7 +6092,7 @@ div + .userMessage[data-v-6573ec87] {
|
|
|
6092
6092
|
width: 100%;
|
|
6093
6093
|
}
|
|
6094
6094
|
|
|
6095
|
-
.docSettings[data-v-
|
|
6095
|
+
.docSettings[data-v-cd399be5] {
|
|
6096
6096
|
display: flex;
|
|
6097
6097
|
flex-direction: column;
|
|
6098
6098
|
gap: 12px;
|
|
@@ -6100,7 +6100,7 @@ div + .userMessage[data-v-6573ec87] {
|
|
|
6100
6100
|
font-size: var(--scalar-font-size-3);
|
|
6101
6101
|
max-height: 600px;
|
|
6102
6102
|
}
|
|
6103
|
-
.documentName[data-v-
|
|
6103
|
+
.documentName[data-v-cd399be5] {
|
|
6104
6104
|
font-weight: var(--scalar-semibold);
|
|
6105
6105
|
}
|
|
6106
6106
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocSettings.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Settings/DocSettings.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DocSettings.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Settings/DocSettings.vue"],"names":[],"mappings":"AAkFA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAA;AAOnG,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,eAAe,CAAA;IACzB,IAAI,EAAE,MAAM,CAAA;CACb,CAAC;AA+FF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -2,7 +2,7 @@ import DocSettings_vue_vue_type_script_setup_true_lang_default from "./DocSettin
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _plugin_vue_export_helper_default from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
// src/views/Settings/DocSettings.vue
|
|
5
|
-
var DocSettings_default = /*#__PURE__*/ _plugin_vue_export_helper_default(DocSettings_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-
|
|
5
|
+
var DocSettings_default = /*#__PURE__*/ _plugin_vue_export_helper_default(DocSettings_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-cd399be5"]]);
|
|
6
6
|
export { DocSettings_default as default };
|
|
7
7
|
|
|
8
8
|
//# sourceMappingURL=DocSettings.vue.js.map
|
|
@@ -14,10 +14,8 @@ var DocSettings_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
|
|
|
14
14
|
setup(__props) {
|
|
15
15
|
const { workspaceStore, config, eventBus } = useState();
|
|
16
16
|
const environment = computed(() => getActiveEnvironment(workspaceStore, __props.document).environment);
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
return getSelectedServer(__props.document, null, null, servers);
|
|
20
|
-
});
|
|
17
|
+
const servers = computed(() => getServers(__props.document.servers, { documentUrl: __props.document["x-scalar-original-source-url"] }));
|
|
18
|
+
const selectedServer = computed(() => getSelectedServer(__props.document, null, null, servers.value));
|
|
21
19
|
const securitySchemes = computed(() => __props.document.components?.securitySchemes ?? {});
|
|
22
20
|
return (_ctx, _cache) => {
|
|
23
21
|
return openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode("div", null, [createVNode(Auth_default, {
|
|
@@ -41,7 +39,7 @@ var DocSettings_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
|
|
|
41
39
|
])]), createElementVNode("div", null, [createVNode(ServerSelector_default, {
|
|
42
40
|
eventBus: unref(eventBus),
|
|
43
41
|
selectedServer: selectedServer.value,
|
|
44
|
-
servers:
|
|
42
|
+
servers: servers.value
|
|
45
43
|
}, null, 8, [
|
|
46
44
|
"eventBus",
|
|
47
45
|
"selectedServer",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocSettings.vue_vue_type_script_setup_true_lang.js","names":["_openBlock","_createElementBlock","_createElementVNode","_createVNode","Auth","_unref","ServerSelector"],"sources":["../../../src/views/Settings/DocSettings.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport {\n getActiveEnvironment,\n getSelectedServer,\n getServers,\n} from '@scalar/workspace-store/request-example'\nimport type { OpenApiDocument } from '@scalar/workspace-store/schemas/v3.2/strict/openapi-document'\nimport { computed } from 'vue'\n\nimport ServerSelector from '@/components/ServerSelector.vue'\nimport { useState } from '@/state/state'\nimport Auth from '@/views/Settings/Auth.vue'\n\nconst { document, name } = defineProps<{\n document: OpenApiDocument\n name: string\n}>()\n\nconst { workspaceStore, config, eventBus } = useState()\n\nconst environment = computed(\n () => getActiveEnvironment(workspaceStore, document).environment,\n)\n\nconst
|
|
1
|
+
{"version":3,"file":"DocSettings.vue_vue_type_script_setup_true_lang.js","names":["_openBlock","_createElementBlock","_createElementVNode","_createVNode","Auth","_unref","ServerSelector"],"sources":["../../../src/views/Settings/DocSettings.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport {\n getActiveEnvironment,\n getSelectedServer,\n getServers,\n} from '@scalar/workspace-store/request-example'\nimport type { OpenApiDocument } from '@scalar/workspace-store/schemas/v3.2/strict/openapi-document'\nimport { computed } from 'vue'\n\nimport ServerSelector from '@/components/ServerSelector.vue'\nimport { useState } from '@/state/state'\nimport Auth from '@/views/Settings/Auth.vue'\n\nconst { document, name } = defineProps<{\n document: OpenApiDocument\n name: string\n}>()\n\nconst { workspaceStore, config, eventBus } = useState()\n\nconst environment = computed(\n () => getActiveEnvironment(workspaceStore, document).environment,\n)\n\nconst servers = computed(() =>\n getServers(document.servers, {\n documentUrl: document['x-scalar-original-source-url'],\n }),\n)\nconst selectedServer = computed(() =>\n getSelectedServer(document, null, null, servers.value),\n)\n\nconst securitySchemes = computed(\n () => document.components?.securitySchemes ?? {},\n)\n</script>\n\n<template>\n <div class=\"docSettings\">\n <div>\n <Auth\n :authStore=\"workspaceStore.auth\"\n :document\n :environment\n :eventBus\n :name\n :options=\"config\"\n :securitySchemes\n :selectedServer />\n </div>\n <div>\n <ServerSelector\n :eventBus\n :selectedServer\n :servers />\n </div>\n </div>\n</template>\n\n<style scoped>\n.docSettings {\n display: flex;\n flex-direction: column;\n gap: 12px;\n margin-bottom: 12px;\n font-size: var(--scalar-font-size-3);\n max-height: 600px;\n}\n\n.documentName {\n font-weight: var(--scalar-semibold);\n}\n</style>\n"],"mappings":";;;;;;;;;;;;;;EAkBA,MAAM,EAAE,gBAAgB,QAAQ,aAAa,SAAS;EAEtD,MAAM,cAAc,eACZ,qBAAqB,gBAAgB,QAAA,QAAQ,CAAC,CAAC,WACvD;EAEA,MAAM,UAAU,eACd,WAAW,QAAA,SAAS,SAAS,EAC3B,aAAa,QAAA,SAAS,gCACxB,CAAC,CACH;EACA,MAAM,iBAAiB,eACrB,kBAAkB,QAAA,UAAU,MAAM,MAAM,QAAQ,KAAK,CACvD;EAEA,MAAM,kBAAkB,eAChB,QAAA,SAAS,YAAY,mBAAmB,CAAC,CACjD;;GAIE,OAAAA,UAAA,GAAAC,mBAkBM,OAlBN,YAkBM,CAjBJC,mBAUM,OAAA,MAAA,CATJC,YAQoBC,cAAA;IAPjB,WAAWC,MAAA,cAAA,CAAc,CAAC;IAC1B,UAAA,QAAA;IACA,aAAA,YAAA;IACA,UAAAA,MAAA,QAAA;IACA,MAAA,QAAA;IACA,SAASA,MAAA,MAAA;IACT,iBAAA,gBAAA;IACA,gBAAA,eAAA;;;;;;;;;;G,MAELH,mBAKM,OAAA,MAAA,CAJJC,YAGaG,wBAAA;IAFV,UAAAD,MAAA,QAAA;IACA,gBAAA,eAAA;IACA,SAAA,QAAA"}
|
package/dist/vue-styles.css
CHANGED
|
@@ -1260,7 +1260,7 @@ div + .userMessage[data-v-6573ec87] {
|
|
|
1260
1260
|
width: 100%;
|
|
1261
1261
|
}
|
|
1262
1262
|
|
|
1263
|
-
.docSettings[data-v-
|
|
1263
|
+
.docSettings[data-v-cd399be5] {
|
|
1264
1264
|
display: flex;
|
|
1265
1265
|
flex-direction: column;
|
|
1266
1266
|
gap: 12px;
|
|
@@ -1268,7 +1268,7 @@ div + .userMessage[data-v-6573ec87] {
|
|
|
1268
1268
|
font-size: var(--scalar-font-size-3);
|
|
1269
1269
|
max-height: 600px;
|
|
1270
1270
|
}
|
|
1271
|
-
.documentName[data-v-
|
|
1271
|
+
.documentName[data-v-cd399be5] {
|
|
1272
1272
|
font-weight: var(--scalar-semibold);
|
|
1273
1273
|
}
|
|
1274
1274
|
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"url": "git+https://github.com/scalar/scalar.git",
|
|
11
11
|
"directory": "packages/agent-chat"
|
|
12
12
|
},
|
|
13
|
-
"version": "0.12.
|
|
13
|
+
"version": "0.12.62",
|
|
14
14
|
"engines": {
|
|
15
15
|
"node": ">=22"
|
|
16
16
|
},
|
|
@@ -46,18 +46,18 @@
|
|
|
46
46
|
],
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@ai-sdk/vue": "4.0.179",
|
|
49
|
-
"@scalar/api-client": "3.
|
|
50
|
-
"@scalar/components": "0.
|
|
51
|
-
"@scalar/helpers": "0.
|
|
49
|
+
"@scalar/api-client": "3.30.1",
|
|
50
|
+
"@scalar/components": "0.37.0",
|
|
51
|
+
"@scalar/helpers": "0.21.0",
|
|
52
52
|
"@scalar/icons": "0.7.12",
|
|
53
|
-
"@scalar/json-magic": "0.
|
|
53
|
+
"@scalar/json-magic": "0.24.0",
|
|
54
54
|
"@scalar/openapi-types": "0.9.10",
|
|
55
|
-
"@scalar/schemas": "0.
|
|
55
|
+
"@scalar/schemas": "0.22.1",
|
|
56
56
|
"@scalar/themes": "0.22.0",
|
|
57
|
-
"@scalar/types": "0.
|
|
58
|
-
"@scalar/use-toasts": "0.10.
|
|
57
|
+
"@scalar/types": "0.34.1",
|
|
58
|
+
"@scalar/use-toasts": "0.10.12",
|
|
59
59
|
"@scalar/validation": "0.6.9",
|
|
60
|
-
"@scalar/workspace-store": "0.
|
|
60
|
+
"@scalar/workspace-store": "0.79.1",
|
|
61
61
|
"@vueuse/core": "15.0.0",
|
|
62
62
|
"ai": "7.0.179",
|
|
63
63
|
"js-base64": "^3.9.7",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"vue": "^3.5.46"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
|
-
"@scalar/sidebar": "0.13.
|
|
69
|
+
"@scalar/sidebar": "0.13.6",
|
|
70
70
|
"@tailwindcss/cli": "^4.3.5",
|
|
71
71
|
"@tailwindcss/vite": "^4.3.5",
|
|
72
72
|
"@types/jsdom": "30.0.0",
|