@scalar/agent-chat 0.1.2
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/App.vue.d.ts +10 -0
- package/dist/App.vue.d.ts.map +1 -0
- package/dist/App.vue.js +23 -0
- package/dist/App.vue.js.map +1 -0
- package/dist/App.vue2.js +5 -0
- package/dist/App.vue2.js.map +1 -0
- package/dist/Chat.vue.d.ts +3 -0
- package/dist/Chat.vue.d.ts.map +1 -0
- package/dist/Chat.vue.js +55 -0
- package/dist/Chat.vue.js.map +1 -0
- package/dist/Chat.vue2.js +5 -0
- package/dist/Chat.vue2.js.map +1 -0
- package/dist/_virtual/_plugin-vue_export-helper.js +11 -0
- package/dist/_virtual/_plugin-vue_export-helper.js.map +1 -0
- package/dist/components/ContextItem.vue.d.ts +16 -0
- package/dist/components/ContextItem.vue.d.ts.map +1 -0
- package/dist/components/ContextItem.vue.js +8 -0
- package/dist/components/ContextItem.vue.js.map +1 -0
- package/dist/components/ContextItem.vue2.js +22 -0
- package/dist/components/ContextItem.vue2.js.map +1 -0
- package/dist/components/Endpoint.vue.d.ts +9 -0
- package/dist/components/Endpoint.vue.d.ts.map +1 -0
- package/dist/components/Endpoint.vue.js +8 -0
- package/dist/components/Endpoint.vue.js.map +1 -0
- package/dist/components/Endpoint.vue2.js +98 -0
- package/dist/components/Endpoint.vue2.js.map +1 -0
- package/dist/components/LoadingMiniOpenAPIDoc.vue.d.ts +3 -0
- package/dist/components/LoadingMiniOpenAPIDoc.vue.d.ts.map +1 -0
- package/dist/components/LoadingMiniOpenAPIDoc.vue.js +32 -0
- package/dist/components/LoadingMiniOpenAPIDoc.vue.js.map +1 -0
- package/dist/components/Logo.vue.d.ts +3 -0
- package/dist/components/Logo.vue.d.ts.map +1 -0
- package/dist/components/Logo.vue.js +25 -0
- package/dist/components/Logo.vue.js.map +1 -0
- package/dist/components/SendingRequest.vue.d.ts +3 -0
- package/dist/components/SendingRequest.vue.d.ts.map +1 -0
- package/dist/components/SendingRequest.vue.js +26 -0
- package/dist/components/SendingRequest.vue.js.map +1 -0
- package/dist/components/Suggestion.vue.d.ts +10 -0
- package/dist/components/Suggestion.vue.d.ts.map +1 -0
- package/dist/components/Suggestion.vue.js +8 -0
- package/dist/components/Suggestion.vue.js.map +1 -0
- package/dist/components/Suggestion.vue2.js +28 -0
- package/dist/components/Suggestion.vue2.js.map +1 -0
- package/dist/components/TestRequestButton.vue.d.ts +8 -0
- package/dist/components/TestRequestButton.vue.d.ts.map +1 -0
- package/dist/components/TestRequestButton.vue.js +8 -0
- package/dist/components/TestRequestButton.vue.js.map +1 -0
- package/dist/components/TestRequestButton.vue2.js +37 -0
- package/dist/components/TestRequestButton.vue2.js.map +1 -0
- package/dist/helpers.d.ts +39 -0
- package/dist/helpers.d.ts.map +1 -0
- package/dist/helpers.js +111 -0
- package/dist/helpers.js.map +1 -0
- package/dist/hooks/useActiveServer.d.ts +2 -0
- package/dist/hooks/useActiveServer.d.ts.map +1 -0
- package/dist/hooks/useActiveServer.js +20 -0
- package/dist/hooks/useActiveServer.js.map +1 -0
- package/dist/hooks/useChatOperationBlocks.d.ts +3 -0
- package/dist/hooks/useChatOperationBlocks.d.ts.map +1 -0
- package/dist/hooks/useChatOperationBlocks.js +29 -0
- package/dist/hooks/useChatOperationBlocks.js.map +1 -0
- package/dist/hooks/useChatScroll.d.ts +2 -0
- package/dist/hooks/useChatScroll.d.ts.map +1 -0
- package/dist/hooks/useChatScroll.js +22 -0
- package/dist/hooks/useChatScroll.js.map +1 -0
- package/dist/hooks/useSecuritySchemes.d.ts +2 -0
- package/dist/hooks/useSecuritySchemes.d.ts.map +1 -0
- package/dist/hooks/useSecuritySchemes.js +29 -0
- package/dist/hooks/useSecuritySchemes.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -0
- package/dist/node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/api.js +11 -0
- package/dist/node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/api.js.map +1 -0
- package/dist/node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/core.js +58 -0
- package/dist/node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/core.js.map +1 -0
- package/dist/node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/errors.js +25 -0
- package/dist/node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/errors.js.map +1 -0
- package/dist/node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/parse.js +64 -0
- package/dist/node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/parse.js.map +1 -0
- package/dist/node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/regexes.js +8 -0
- package/dist/node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/regexes.js.map +1 -0
- package/dist/node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/schemas.js +181 -0
- package/dist/node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/schemas.js.map +1 -0
- package/dist/node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/util.js +61 -0
- package/dist/node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/util.js.map +1 -0
- package/dist/node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/versions.js +9 -0
- package/dist/node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/versions.js.map +1 -0
- package/dist/node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/mini/schemas.js +60 -0
- package/dist/node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/mini/schemas.js.map +1 -0
- package/dist/package.json +63 -0
- package/dist/registry/get-document.d.ts +4 -0
- package/dist/registry/get-document.d.ts.map +1 -0
- package/dist/registry/get-document.js +23 -0
- package/dist/registry/get-document.js.map +1 -0
- package/dist/state/state.d.ts +47 -0
- package/dist/state/state.d.ts.map +1 -0
- package/dist/state/state.js +107 -0
- package/dist/state/state.js.map +1 -0
- package/dist/style.css +12261 -0
- package/dist/views/Auth.vue.d.ts +17 -0
- package/dist/views/Auth.vue.d.ts.map +1 -0
- package/dist/views/Auth.vue.js +71 -0
- package/dist/views/Auth.vue.js.map +1 -0
- package/dist/views/Auth.vue2.js +5 -0
- package/dist/views/Auth.vue2.js.map +1 -0
- package/dist/views/Chat/Chat.vue.d.ts +7 -0
- package/dist/views/Chat/Chat.vue.d.ts.map +1 -0
- package/dist/views/Chat/Chat.vue.js +8 -0
- package/dist/views/Chat/Chat.vue.js.map +1 -0
- package/dist/views/Chat/Chat.vue2.js +72 -0
- package/dist/views/Chat/Chat.vue2.js.map +1 -0
- package/dist/views/Chat/Messages/ExecuteRequestTool.vue.d.ts +10 -0
- package/dist/views/Chat/Messages/ExecuteRequestTool.vue.d.ts.map +1 -0
- package/dist/views/Chat/Messages/ExecuteRequestTool.vue.js +8 -0
- package/dist/views/Chat/Messages/ExecuteRequestTool.vue.js.map +1 -0
- package/dist/views/Chat/Messages/ExecuteRequestTool.vue2.js +62 -0
- package/dist/views/Chat/Messages/ExecuteRequestTool.vue2.js.map +1 -0
- package/dist/views/Chat/Messages/GetMiniOpenAPIDocTool.vue.d.ts +11 -0
- package/dist/views/Chat/Messages/GetMiniOpenAPIDocTool.vue.d.ts.map +1 -0
- package/dist/views/Chat/Messages/GetMiniOpenAPIDocTool.vue.js +8 -0
- package/dist/views/Chat/Messages/GetMiniOpenAPIDocTool.vue.js.map +1 -0
- package/dist/views/Chat/Messages/GetMiniOpenAPIDocTool.vue2.js +66 -0
- package/dist/views/Chat/Messages/GetMiniOpenAPIDocTool.vue2.js.map +1 -0
- package/dist/views/Chat/Messages/Text.vue.d.ts +8 -0
- package/dist/views/Chat/Messages/Text.vue.d.ts.map +1 -0
- package/dist/views/Chat/Messages/Text.vue.js +21 -0
- package/dist/views/Chat/Messages/Text.vue.js.map +1 -0
- package/dist/views/Chat/Messages/Text.vue2.js +5 -0
- package/dist/views/Chat/Messages/Text.vue2.js.map +1 -0
- package/dist/views/Layout.vue.d.ts +7 -0
- package/dist/views/Layout.vue.d.ts.map +1 -0
- package/dist/views/Layout.vue.js +8 -0
- package/dist/views/Layout.vue.js.map +1 -0
- package/dist/views/Layout.vue2.js +32 -0
- package/dist/views/Layout.vue2.js.map +1 -0
- package/dist/views/PromptForm.vue.d.ts +10 -0
- package/dist/views/PromptForm.vue.d.ts.map +1 -0
- package/dist/views/PromptForm.vue.js +8 -0
- package/dist/views/PromptForm.vue.js.map +1 -0
- package/dist/views/PromptForm.vue2.js +125 -0
- package/dist/views/PromptForm.vue2.js.map +1 -0
- package/dist/views/Settings.vue.d.ts +7 -0
- package/dist/views/Settings.vue.d.ts.map +1 -0
- package/dist/views/Settings.vue.js +9 -0
- package/dist/views/Settings.vue.js.map +1 -0
- package/dist/views/Settings.vue2.js +81 -0
- package/dist/views/Settings.vue2.js.map +1 -0
- package/dist/views/Start.vue.d.ts +7 -0
- package/dist/views/Start.vue.d.ts.map +1 -0
- package/dist/views/Start.vue.js +8 -0
- package/dist/views/Start.vue.js.map +1 -0
- package/dist/views/Start.vue2.js +57 -0
- package/dist/views/Start.vue2.js.map +1 -0
- package/package.json +63 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import './index.css';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
namespace: string;
|
|
4
|
+
slug: string;
|
|
5
|
+
registryUrl: string;
|
|
6
|
+
baseUrl: string;
|
|
7
|
+
};
|
|
8
|
+
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>;
|
|
9
|
+
export default _default;
|
|
10
|
+
//# sourceMappingURL=App.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"App.vue.d.ts","sourceRoot":"","sources":["../src/App.vue"],"names":[],"mappings":"AAyBA,OAAO,aAAa,CAAA;AAOpB,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,OAAO,EAAE,MAAM,CAAA;CAChB,CAAC;;AA0CF,wBAEG"}
|
package/dist/App.vue.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { defineComponent, provide, createBlock, openBlock } from "vue";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import _sfc_main$1 from "./Chat.vue.js";
|
|
4
|
+
import { STATE_SYMBOL, createState } from "./state/state.js";
|
|
5
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "App",
|
|
7
|
+
props: {
|
|
8
|
+
namespace: {},
|
|
9
|
+
slug: {},
|
|
10
|
+
registryUrl: {},
|
|
11
|
+
baseUrl: {}
|
|
12
|
+
},
|
|
13
|
+
setup(__props) {
|
|
14
|
+
provide(STATE_SYMBOL, createState({ namespace: __props.namespace, slug: __props.slug, registryUrl: __props.registryUrl, baseUrl: __props.baseUrl }));
|
|
15
|
+
return (_ctx, _cache) => {
|
|
16
|
+
return openBlock(), createBlock(_sfc_main$1);
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
export {
|
|
21
|
+
_sfc_main as default
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=App.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"App.vue.js","sources":["../src/App.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport './index.css'\n\nimport { provide } from 'vue'\n\nimport Chat from '@/Chat.vue'\nimport { createState, STATE_SYMBOL } from '@/state/state'\n\nconst { namespace, slug, registryUrl, baseUrl } = defineProps<{\n namespace: string\n slug: string\n registryUrl: string\n baseUrl: string\n}>()\n\nprovide(STATE_SYMBOL, createState({ namespace, slug, registryUrl, baseUrl }))\n</script>\n\n<template>\n <Chat />\n</template>\n\n<style scoped></style>\n"],"names":["_createBlock","Chat"],"mappings":";;;;;;;;;;;;;AAeA,YAAQ,cAAc,YAAY,EAAE,8BAAW,MAAG,QAAA,MAAG,aAAU,QAAA,aAAG,SAAM,QAAA,QAAA,CAAG,CAAC;;0BAI1EA,YAAQC,WAAA;AAAA;;;"}
|
package/dist/App.vue2.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"App.vue2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -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=Chat.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Chat.vue.d.ts","sourceRoot":"","sources":["../src/Chat.vue"],"names":[],"mappings":";AA2LA,wBACG"}
|
package/dist/Chat.vue.js
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { defineComponent, useTemplateRef, ref, onMounted, onBeforeUnmount, provide, createElementBlock, openBlock, Fragment, createVNode, createElementVNode, unref } from "vue";
|
|
2
|
+
import { createApiClientModal } from "@scalar/api-client/v2/features/modal";
|
|
3
|
+
import { PLUGIN_MANAGER_SYMBOL, createPluginManager } from "@scalar/api-reference/plugins";
|
|
4
|
+
import { createWorkspaceEventBus } from "@scalar/workspace-store/events";
|
|
5
|
+
import { useChatOperationBlocks } from "./hooks/useChatOperationBlocks.js";
|
|
6
|
+
import { useChatScroll } from "./hooks/useChatScroll.js";
|
|
7
|
+
import { useState } from "./state/state.js";
|
|
8
|
+
import Layout from "./views/Layout.vue.js";
|
|
9
|
+
import Settings from "./views/Settings.vue.js";
|
|
10
|
+
const _hoisted_1 = { ref: "clientModal" };
|
|
11
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
|
+
__name: "Chat",
|
|
13
|
+
setup(__props) {
|
|
14
|
+
const { workspaceStore, eventBus, config, chat, prompt, settingsModal } = useState();
|
|
15
|
+
const clientModalRef = useTemplateRef("clientModal");
|
|
16
|
+
createWorkspaceEventBus({ debug: false });
|
|
17
|
+
useChatOperationBlocks(workspaceStore);
|
|
18
|
+
const apiClient = ref(null);
|
|
19
|
+
onMounted(() => {
|
|
20
|
+
if (!clientModalRef.value) {
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
apiClient.value = createApiClientModal({
|
|
24
|
+
el: clientModalRef.value,
|
|
25
|
+
eventBus,
|
|
26
|
+
workspaceStore,
|
|
27
|
+
options: config
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
onBeforeUnmount(() => {
|
|
31
|
+
apiClient.value?.app.unmount();
|
|
32
|
+
});
|
|
33
|
+
useChatScroll();
|
|
34
|
+
provide(
|
|
35
|
+
PLUGIN_MANAGER_SYMBOL,
|
|
36
|
+
createPluginManager({
|
|
37
|
+
plugins: []
|
|
38
|
+
})
|
|
39
|
+
);
|
|
40
|
+
function handleSubmit() {
|
|
41
|
+
chat.sendMessage({ text: prompt.value });
|
|
42
|
+
}
|
|
43
|
+
return (_ctx, _cache) => {
|
|
44
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
45
|
+
createVNode(Layout, { onSubmit: handleSubmit }),
|
|
46
|
+
createElementVNode("div", _hoisted_1, null, 512),
|
|
47
|
+
createVNode(Settings, { modalState: unref(settingsModal) }, null, 8, ["modalState"])
|
|
48
|
+
], 64);
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
export {
|
|
53
|
+
_sfc_main as default
|
|
54
|
+
};
|
|
55
|
+
//# sourceMappingURL=Chat.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Chat.vue.js","sources":["../src/Chat.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { onBeforeUnmount, onMounted, provide, ref, useTemplateRef } from 'vue'\n\nimport {\n type ApiClientModal,\n createApiClientModal,\n} from '@scalar/api-client/v2/features/modal'\nimport {\n createPluginManager,\n PLUGIN_MANAGER_SYMBOL,\n} from '@scalar/api-reference/plugins'\nimport { createWorkspaceEventBus } from '@scalar/workspace-store/events'\n\nimport { useChatOperationBlocks } from '@/hooks/useChatOperationBlocks'\nimport { useChatScroll } from '@/hooks/useChatScroll'\nimport { useState } from '@/state/state'\nimport Layout from '@/views/Layout.vue'\nimport Settings from '@/views/Settings.vue'\n\nconst { workspaceStore, eventBus, config, chat, prompt, settingsModal } =\n useState()\n\nconst clientModalRef = useTemplateRef<HTMLElement>('clientModal')\n\ncreateWorkspaceEventBus({ debug: false })\n\nuseChatOperationBlocks(workspaceStore)\n\nconst apiClient = ref<ApiClientModal | null>(null)\n\nonMounted(() => {\n if (!clientModalRef.value) {\n return\n }\n\n apiClient.value = createApiClientModal({\n el: clientModalRef.value,\n eventBus,\n workspaceStore,\n options: config,\n })\n})\n\nonBeforeUnmount(() => {\n apiClient.value?.app.unmount()\n})\n\nuseChatScroll()\n\nprovide(\n PLUGIN_MANAGER_SYMBOL,\n createPluginManager({\n plugins: [],\n }),\n)\n\nfunction handleSubmit() {\n chat.sendMessage({ text: prompt.value })\n}\n</script>\n\n<template>\n <Layout @submit=\"handleSubmit\" />\n <div ref=\"clientModal\" />\n <Settings :modalState=\"settingsModal\" />\n</template>\n"],"names":["_createVNode","_createElementVNode","_unref"],"mappings":";;;;;;;;;;;;;AAmBA,UAAM,EAAE,gBAAgB,UAAU,QAAQ,MAAM,QAAQ,cAAA,IACtD,SAAA;AAEF,UAAM,iBAAiB,eAA4B,aAAa;AAEhE,4BAAwB,EAAE,OAAO,OAAO;AAExC,2BAAuB,cAAc;AAErC,UAAM,YAAY,IAA2B,IAAI;AAEjD,cAAU,MAAM;AACd,UAAI,CAAC,eAAe,OAAO;AACzB;AAAA,MACF;AAEA,gBAAU,QAAQ,qBAAqB;AAAA,QACrC,IAAI,eAAe;AAAA,QACnB;AAAA,QACA;AAAA,QACA,SAAS;AAAA,MAAA,CACV;AAAA,IACH,CAAC;AAED,oBAAgB,MAAM;AACpB,gBAAU,OAAO,IAAI,QAAA;AAAA,IACvB,CAAC;AAED,kBAAA;AAEA;AAAA,MACE;AAAA,MACA,oBAAoB;AAAA,QAClB,SAAS,CAAA;AAAA,MAAC,CACX;AAAA,IAAA;AAGH,aAAS,eAAe;AACtB,WAAK,YAAY,EAAE,MAAM,OAAO,OAAO;AAAA,IACzC;;;QAIEA,YAAiC,QAAA,EAAxB,UAAQ,cAAY;AAAA,QAC7BC,mBAAyB,OAAzB,YAAyB,MAAA,GAAA;AAAA,QACzBD,YAAwC,UAAA,EAA7B,YAAYE,MAAA,aAAA,EAAA,GAAa,MAAA,GAAA,CAAA,YAAA,CAAA;AAAA,MAAA;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Chat.vue2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_plugin-vue_export-helper.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
loading: boolean;
|
|
3
|
+
};
|
|
4
|
+
declare var __VLS_1: {};
|
|
5
|
+
type __VLS_Slots = {} & {
|
|
6
|
+
default?: (props: typeof __VLS_1) => any;
|
|
7
|
+
};
|
|
8
|
+
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>;
|
|
9
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
10
|
+
export default _default;
|
|
11
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
12
|
+
new (): {
|
|
13
|
+
$slots: S;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=ContextItem.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContextItem.vue.d.ts","sourceRoot":"","sources":["../../src/components/ContextItem.vue"],"names":[],"mappings":"AA0DA,KAAK,WAAW,GAAG;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC;AA8BxC,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAgB/C,QAAA,MAAM,eAAe,kSAEnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAE1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import _sfc_main from "./ContextItem.vue2.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const ContextItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-fc541aca"]]);
|
|
5
|
+
export {
|
|
6
|
+
ContextItem as default
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=ContextItem.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContextItem.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, normalizeClass, renderSlot } from "vue";
|
|
2
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
3
|
+
__name: "ContextItem",
|
|
4
|
+
props: {
|
|
5
|
+
loading: { type: Boolean }
|
|
6
|
+
},
|
|
7
|
+
setup(__props) {
|
|
8
|
+
return (_ctx, _cache) => {
|
|
9
|
+
return openBlock(), createElementBlock("div", {
|
|
10
|
+
class: normalizeClass(["contextItem", {
|
|
11
|
+
shimmer: _ctx.loading
|
|
12
|
+
}])
|
|
13
|
+
}, [
|
|
14
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
15
|
+
], 2);
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
export {
|
|
20
|
+
_sfc_main as default
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=ContextItem.vue2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContextItem.vue2.js","sources":["../../src/components/ContextItem.vue"],"sourcesContent":["<script setup lang=\"ts\">\nconst { loading } = defineProps<{ loading: boolean }>()\n</script>\n\n<template>\n <div\n class=\"contextItem\"\n :class=\"{\n shimmer: loading,\n }\">\n <slot />\n </div>\n</template>\n\n<style scoped>\n.contextItem {\n padding: 5px 12px;\n border-radius: 30px;\n width: max-content;\n font-size: var(--scalar-font-size-3);\n background: var(--scalar-background-3);\n}\n\n.shimmer {\n background: var(--scalar-background-2);\n background-image: linear-gradient(\n 90deg,\n #202020 0%,\n var(--scalar-background-2) 40%,\n var(--scalar-background-3) 80%\n );\n background-size: 200% 100%;\n animation: shimmer 1.4s ease-in-out infinite;\n}\n\n.light-mode .shimmer {\n background: var(--scalar-background-2);\n background-image: linear-gradient(\n 90deg,\n #fafafa 0%,\n var(--scalar-background-2) 40%,\n var(--scalar-background-3) 80%\n );\n background-size: 200% 100%;\n animation: shimmer 1.4s ease-in-out infinite;\n}\n\n@keyframes shimmer {\n 0% {\n background-position: 200% 0;\n }\n 100% {\n background-position: -200% 0;\n }\n}\n</style>\n"],"names":["_createElementBlock","loading","_renderSlot"],"mappings":";;;;;;;;0BAKEA,mBAMM,OAAA;AAAA,QALJ,uBAAM,eAAa;AAAA,mBACMC,KAAAA;AAAAA,QAAAA;;QAGzBC,WAAQ,KAAA,QAAA,WAAA,CAAA,GAAA,QAAA,IAAA;AAAA,MAAA;;;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type CustomComponentNode } from 'markstream-vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
node: CustomComponentNode & {
|
|
4
|
+
attrs: [string, string][];
|
|
5
|
+
};
|
|
6
|
+
};
|
|
7
|
+
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
|
+
export default _default;
|
|
9
|
+
//# sourceMappingURL=Endpoint.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Endpoint.vue.d.ts","sourceRoot":"","sources":["../../src/components/Endpoint.vue"],"names":[],"mappings":"AAqIA,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AAuBzD,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,mBAAmB,GAAG;QAAE,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAA;KAAE,CAAA;CAC1D,CAAC;;AAsKF,wBAEG"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import _sfc_main from "./Endpoint.vue2.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const Endpoint = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b3f5bb2f"]]);
|
|
5
|
+
export {
|
|
6
|
+
Endpoint as default
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=Endpoint.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Endpoint.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { defineComponent, computed, ref, onMounted, createElementBlock, createCommentVNode, openBlock, createVNode, unref, withCtx } from "vue";
|
|
2
|
+
import { generateClientOptions, OperationCodeSample } from "@scalar/api-client/v2/blocks/operation-code-sample";
|
|
3
|
+
import { mergeAuthConfig } from "@scalar/api-client/v2/blocks/scalar-auth-selector-block";
|
|
4
|
+
import { getSelectedServer } from "@scalar/api-client/v2/features/operation";
|
|
5
|
+
import { getResolvedRef } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
6
|
+
import TestRequestButton from "./TestRequestButton.vue.js";
|
|
7
|
+
import { filterSelectedSecurity, getFirstServer, combineParams } from "../helpers.js";
|
|
8
|
+
import { useState } from "../state/state.js";
|
|
9
|
+
const _hoisted_1 = {
|
|
10
|
+
key: 0,
|
|
11
|
+
class: "sample"
|
|
12
|
+
};
|
|
13
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
14
|
+
__name: "Endpoint",
|
|
15
|
+
props: {
|
|
16
|
+
node: {}
|
|
17
|
+
},
|
|
18
|
+
setup(__props) {
|
|
19
|
+
const attrs = computed(
|
|
20
|
+
() => Object.fromEntries(__props.node.attrs)
|
|
21
|
+
);
|
|
22
|
+
const { workspaceStore, config, eventBus } = useState();
|
|
23
|
+
const pathValue = ref();
|
|
24
|
+
const operation = ref();
|
|
25
|
+
const activeDocument = computed(() => workspaceStore.workspace.activeDocument);
|
|
26
|
+
const selectedClient = computed(
|
|
27
|
+
() => workspaceStore.workspace["x-scalar-default-client"] ?? "js/fetch"
|
|
28
|
+
);
|
|
29
|
+
const clientOptions = computed(
|
|
30
|
+
() => generateClientOptions(
|
|
31
|
+
workspaceStore.config["x-scalar-reference-config"]?.httpClients
|
|
32
|
+
)
|
|
33
|
+
);
|
|
34
|
+
const securitySchemes = computed(
|
|
35
|
+
() => mergeAuthConfig(
|
|
36
|
+
activeDocument.value?.components?.securitySchemes,
|
|
37
|
+
config.value.authentication?.securitySchemes
|
|
38
|
+
)
|
|
39
|
+
);
|
|
40
|
+
const selectedSecuritySchemes = computed(
|
|
41
|
+
() => activeDocument.value && operation.value ? filterSelectedSecurity(
|
|
42
|
+
activeDocument.value,
|
|
43
|
+
operation.value,
|
|
44
|
+
securitySchemes.value
|
|
45
|
+
) : []
|
|
46
|
+
);
|
|
47
|
+
const generateLabel = () => attrs.value.path;
|
|
48
|
+
async function loadOperation() {
|
|
49
|
+
const basePath = workspaceStore.workspace.activeDocument?.paths?.[attrs.value.path ?? ""];
|
|
50
|
+
const baseOperation = basePath?.[attrs.value.method];
|
|
51
|
+
const entity = getResolvedRef(baseOperation);
|
|
52
|
+
const parameters = combineParams(basePath?.parameters, entity?.parameters);
|
|
53
|
+
pathValue.value = basePath;
|
|
54
|
+
operation.value = { ...entity, parameters };
|
|
55
|
+
}
|
|
56
|
+
onMounted(() => {
|
|
57
|
+
loadOperation();
|
|
58
|
+
});
|
|
59
|
+
const server = computed(() => getSelectedServer(activeDocument.value ?? null));
|
|
60
|
+
const selectedServer = computed(
|
|
61
|
+
() => getFirstServer(
|
|
62
|
+
// 1) Operation
|
|
63
|
+
operation.value?.servers,
|
|
64
|
+
// 2) Path Item
|
|
65
|
+
pathValue.value?.servers,
|
|
66
|
+
// 4) Document
|
|
67
|
+
server.value
|
|
68
|
+
)
|
|
69
|
+
);
|
|
70
|
+
return (_ctx, _cache) => {
|
|
71
|
+
return operation.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
72
|
+
createVNode(unref(OperationCodeSample), {
|
|
73
|
+
clientOptions: clientOptions.value,
|
|
74
|
+
eventBus: unref(eventBus),
|
|
75
|
+
generateLabel,
|
|
76
|
+
method: attrs.value.method,
|
|
77
|
+
operation: operation.value,
|
|
78
|
+
path: attrs.value.path,
|
|
79
|
+
securitySchemes: selectedSecuritySchemes.value,
|
|
80
|
+
selectedClient: selectedClient.value,
|
|
81
|
+
selectedServer: selectedServer.value
|
|
82
|
+
}, {
|
|
83
|
+
footer: withCtx(() => [
|
|
84
|
+
createVNode(TestRequestButton, {
|
|
85
|
+
method: attrs.value.method,
|
|
86
|
+
path: attrs.value.path
|
|
87
|
+
}, null, 8, ["method", "path"])
|
|
88
|
+
]),
|
|
89
|
+
_: 1
|
|
90
|
+
}, 8, ["clientOptions", "eventBus", "method", "operation", "path", "securitySchemes", "selectedClient", "selectedServer"])
|
|
91
|
+
])) : createCommentVNode("", true);
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
export {
|
|
96
|
+
_sfc_main as default
|
|
97
|
+
};
|
|
98
|
+
//# sourceMappingURL=Endpoint.vue2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Endpoint.vue2.js","sources":["../../src/components/Endpoint.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { type CustomComponentNode } from 'markstream-vue'\nimport { computed, onMounted, ref } from 'vue'\n\nimport {\n generateClientOptions,\n OperationCodeSample,\n} from '@scalar/api-client/v2/blocks/operation-code-sample'\nimport { mergeAuthConfig } from '@scalar/api-client/v2/blocks/scalar-auth-selector-block'\nimport { getSelectedServer } from '@scalar/api-client/v2/features/operation'\nimport { type HttpMethod } from '@scalar/helpers/http/http-methods'\nimport { getResolvedRef } from '@scalar/workspace-store/helpers/get-resolved-ref'\nimport { type OperationObject } from '@scalar/workspace-store/schemas/v3.1/strict/operation'\nimport { type PathItemObject } from '@scalar/workspace-store/schemas/v3.1/strict/path-item'\nimport { type ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/server'\n\nimport TestRequestButton from '@/components/TestRequestButton.vue'\nimport {\n combineParams,\n filterSelectedSecurity,\n getFirstServer,\n} from '@/helpers'\nimport { useState } from '@/state/state'\n\nconst { node } = defineProps<{\n node: CustomComponentNode & { attrs: [string, string][] }\n}>()\n\nconst attrs = computed(\n () => Object.fromEntries(node.attrs) as { path: string; method: HttpMethod },\n)\n\nconst { workspaceStore, config, eventBus } = useState()\n\nconst pathValue = ref<PathItemObject>()\nconst operation = ref<OperationObject>()\n\nconst activeDocument = computed(() => workspaceStore.workspace.activeDocument)\nconst selectedClient = computed(\n () => workspaceStore.workspace['x-scalar-default-client'] ?? 'js/fetch',\n)\nconst clientOptions = computed(() =>\n generateClientOptions(\n workspaceStore.config['x-scalar-reference-config']?.httpClients,\n ),\n)\n\nconst securitySchemes = computed(() =>\n mergeAuthConfig(\n activeDocument.value?.components?.securitySchemes,\n config.value.authentication?.securitySchemes,\n ),\n)\n\nconst selectedSecuritySchemes = computed(() =>\n activeDocument.value && operation.value\n ? filterSelectedSecurity(\n activeDocument.value,\n operation.value,\n securitySchemes.value,\n )\n : [],\n)\n\nconst generateLabel = () => attrs.value.path\n\nasync function loadOperation() {\n const basePath =\n workspaceStore.workspace.activeDocument?.paths?.[attrs.value.path ?? '']\n const baseOperation = basePath?.[attrs.value.method as 'get' | 'post']\n\n const entity = getResolvedRef(baseOperation)\n const parameters = combineParams(basePath?.parameters, entity?.parameters)\n\n pathValue.value = basePath\n operation.value = { ...entity, parameters }\n}\n\nonMounted(() => {\n loadOperation()\n})\n\n/** Compute the selected server for the document only (for now) */\nconst server = computed(() => getSelectedServer(activeDocument.value ?? null))\n\n/** Determine the effective server for the code examples. */\nconst selectedServer = computed<ServerObject | undefined>(() =>\n getFirstServer(\n // 1) Operation\n operation.value?.servers,\n // 2) Path Item\n pathValue.value?.servers,\n // 4) Document\n server.value,\n ),\n)\n</script>\n\n<template>\n <div\n v-if=\"operation\"\n class=\"sample\">\n <OperationCodeSample\n :clientOptions\n :eventBus\n :generateLabel\n :method=\"attrs.method\"\n :operation\n :path=\"attrs.path\"\n :securitySchemes=\"selectedSecuritySchemes\"\n :selectedClient\n :selectedServer>\n <template #footer>\n <TestRequestButton\n :method=\"attrs.method\"\n :path=\"attrs.path\" />\n </template>\n </OperationCodeSample>\n </div>\n</template>\n\n<style scoped>\n.sample {\n margin-top: 20px;\n margin-bottom: 20px;\n}\n\n.sample > :first-child {\n max-height: 400px;\n}\n</style>\n"],"names":["_openBlock","_createElementBlock","_createVNode","_unref"],"mappings":";;;;;;;;;;;;;;;;;;AA4BA,UAAM,QAAQ;AAAA,MACZ,MAAM,OAAO,YAAY,QAAA,KAAK,KAAK;AAAA,IAAA;AAGrC,UAAM,EAAE,gBAAgB,QAAQ,SAAA,IAAa,SAAA;AAE7C,UAAM,YAAY,IAAA;AAClB,UAAM,YAAY,IAAA;AAElB,UAAM,iBAAiB,SAAS,MAAM,eAAe,UAAU,cAAc;AAC7E,UAAM,iBAAiB;AAAA,MACrB,MAAM,eAAe,UAAU,yBAAyB,KAAK;AAAA,IAAA;AAE/D,UAAM,gBAAgB;AAAA,MAAS,MAC7B;AAAA,QACE,eAAe,OAAO,2BAA2B,GAAG;AAAA,MAAA;AAAA,IACtD;AAGF,UAAM,kBAAkB;AAAA,MAAS,MAC/B;AAAA,QACE,eAAe,OAAO,YAAY;AAAA,QAClC,OAAO,MAAM,gBAAgB;AAAA,MAAA;AAAA,IAC/B;AAGF,UAAM,0BAA0B;AAAA,MAAS,MACvC,eAAe,SAAS,UAAU,QAC9B;AAAA,QACE,eAAe;AAAA,QACf,UAAU;AAAA,QACV,gBAAgB;AAAA,MAAA,IAElB,CAAA;AAAA,IAAC;AAGP,UAAM,gBAAgB,MAAM,MAAM,MAAM;AAExC,mBAAe,gBAAgB;AAC7B,YAAM,WACJ,eAAe,UAAU,gBAAgB,QAAQ,MAAM,MAAM,QAAQ,EAAE;AACzE,YAAM,gBAAgB,WAAW,MAAM,MAAM,MAAwB;AAErE,YAAM,SAAS,eAAe,aAAa;AAC3C,YAAM,aAAa,cAAc,UAAU,YAAY,QAAQ,UAAU;AAEzE,gBAAU,QAAQ;AAClB,gBAAU,QAAQ,EAAE,GAAG,QAAQ,WAAA;AAAA,IACjC;AAEA,cAAU,MAAM;AACd,oBAAA;AAAA,IACF,CAAC;AAGD,UAAM,SAAS,SAAS,MAAM,kBAAkB,eAAe,SAAS,IAAI,CAAC;AAG7E,UAAM,iBAAiB;AAAA,MAAmC,MACxD;AAAA;AAAA,QAEE,UAAU,OAAO;AAAA;AAAA,QAEjB,UAAU,OAAO;AAAA;AAAA,QAEjB,OAAO;AAAA,MAAA;AAAA,IACT;;aAMQ,UAAA,SADRA,UAAA,GAAAC,mBAmBM,OAnBN,YAmBM;AAAA,QAhBJC,YAesBC,MAAA,mBAAA,GAAA;AAAA,UAdnB,eAAA,cAAA;AAAA,UACA,UAAAA,MAAA,QAAA;AAAA,UACA;AAAA,UACA,QAAQ,MAAA,MAAM;AAAA,UACd,WAAA,UAAA;AAAA,UACA,MAAM,MAAA,MAAM;AAAA,UACZ,iBAAiB,wBAAA;AAAA,UACjB,gBAAA,eAAA;AAAA,UACA,gBAAA,eAAA;AAAA,QAAA;UACU,gBACT,MAEuB;AAAA,YAFvBD,YAEuB,mBAAA;AAAA,cADpB,QAAQ,MAAA,MAAM;AAAA,cACd,MAAM,MAAA,MAAM;AAAA,YAAA;;;;;;;;"}
|
|
@@ -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=LoadingMiniOpenAPIDoc.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LoadingMiniOpenAPIDoc.vue.d.ts","sourceRoot":"","sources":["../../src/components/LoadingMiniOpenAPIDoc.vue"],"names":[],"mappings":";AAkIA,wBACG"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { createElementBlock, openBlock, createElementVNode, createTextVNode } from "vue";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const _sfc_main = {};
|
|
5
|
+
const _hoisted_1 = { class: "sendingRequest" };
|
|
6
|
+
function _sfc_render(_ctx, _cache) {
|
|
7
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [..._cache[0] || (_cache[0] = [
|
|
8
|
+
createElementVNode("div", { class: "playIcon" }, [
|
|
9
|
+
createElementVNode("svg", {
|
|
10
|
+
fill: "currentColor",
|
|
11
|
+
height: "32",
|
|
12
|
+
viewBox: "0 0 256 256",
|
|
13
|
+
width: "32",
|
|
14
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
15
|
+
}, [
|
|
16
|
+
createElementVNode("path", {
|
|
17
|
+
d: "M232.49,215.51,185,168a92.12,92.12,0,1,0-17,17l47.53,47.54a12,12,0,0,0,17-17ZM44,112a68,68,0,1,1,68,68A68.07,68.07,0,0,1,44,112Z",
|
|
18
|
+
stroke: "currentColor",
|
|
19
|
+
"stroke-linecap": "round",
|
|
20
|
+
"stroke-linejoin": "round",
|
|
21
|
+
"stroke-width": "16"
|
|
22
|
+
})
|
|
23
|
+
])
|
|
24
|
+
], -1),
|
|
25
|
+
createTextVNode(" Retrieving relevant information... ", -1)
|
|
26
|
+
])]);
|
|
27
|
+
}
|
|
28
|
+
const LoadingMiniOpenAPIDoc = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-67c1097c"]]);
|
|
29
|
+
export {
|
|
30
|
+
LoadingMiniOpenAPIDoc as default
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=LoadingMiniOpenAPIDoc.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LoadingMiniOpenAPIDoc.vue.js","sources":["../../src/components/LoadingMiniOpenAPIDoc.vue"],"sourcesContent":["<template>\n <div class=\"sendingRequest\">\n <div class=\"playIcon\">\n <svg\n fill=\"currentColor\"\n height=\"32\"\n viewBox=\"0 0 256 256\"\n width=\"32\"\n xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M232.49,215.51,185,168a92.12,92.12,0,1,0-17,17l47.53,47.54a12,12,0,0,0,17-17ZM44,112a68,68,0,1,1,68,68A68.07,68.07,0,0,1,44,112Z\"\n stroke=\"currentColor\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"16\" />\n </svg>\n </div>\n Retrieving relevant information...\n </div>\n</template>\n\n<style scoped>\n.playIcon {\n padding: 4px;\n height: 16px;\n width: 16px;\n z-index: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n background: var(--scalar-background-1);\n border-radius: 50%;\n}\n\n.playIcon::before {\n content: '';\n width: 16px;\n height: 16px;\n display: inline-block;\n box-sizing: border-box;\n position: absolute;\n border-width: 1.75px;\n border-style: solid;\n border-color: currentcolor currentcolor transparent;\n border-image: initial;\n border-radius: 50%;\n background: var(--scalar-background-1);\n animation: 0.42s linear 0s infinite normal none running rotation;\n}\n\n.sendingRequest {\n display: flex;\n align-items: center;\n gap: 10px;\n color: var(--scalar-color-2);\n font-weight: var(--scalar-semibold);\n}\n\n.sendingRequest svg {\n width: 100%;\n height: 100%;\n z-index: 1;\n border-radius: 50%;\n}\n\n@keyframes rotation {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n</style>\n"],"names":["_openBlock","_createElementBlock","_createElementVNode"],"mappings":";;;;AACO,MAAA,aAAA,EAAA,OAAM,iBAAgB;;AAA3B,SAAAA,UAAA,GAAAC,mBAiBM,OAjBN,YAiBM,CAAA,GAAA,OAAA,CAAA,MAAA,OAAA,CAAA,IAAA;AAAA,IAhBJC,mBAcM,OAAA,EAdD,OAAM,WAAU,GAAA;AAAA,MACnBA,mBAYM,OAAA;AAAA,QAXJ,MAAK;AAAA,QACL,QAAO;AAAA,QACP,SAAQ;AAAA,QACR,OAAM;AAAA,QACN,OAAM;AAAA;QACNA,mBAKsB,QAAA;AAAA,UAJpB,GAAE;AAAA,UACF,QAAO;AAAA,UACP,kBAAe;AAAA,UACf,mBAAgB;AAAA,UAChB,gBAAa;AAAA;;;oBAEb,wCAER,EAAA;AAAA;;;"}
|
|
@@ -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=Logo.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Logo.vue.d.ts","sourceRoot":"","sources":["../../src/components/Logo.vue"],"names":[],"mappings":";AAqDA,wBACG"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { createElementBlock, openBlock, createElementVNode } from "vue";
|
|
2
|
+
import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
const _sfc_main = {};
|
|
4
|
+
const _hoisted_1 = {
|
|
5
|
+
fill: "none",
|
|
6
|
+
height: "54",
|
|
7
|
+
viewBox: "0 0 64 54",
|
|
8
|
+
width: "64",
|
|
9
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
10
|
+
};
|
|
11
|
+
function _sfc_render(_ctx, _cache) {
|
|
12
|
+
return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [
|
|
13
|
+
createElementVNode("path", {
|
|
14
|
+
"clip-rule": "evenodd",
|
|
15
|
+
d: "M31.0667 0C40.2667 0 48.3333 6.13333 52.6 14.9333H57.2667C59.6 14.9333 61.5333 16.8 61.5333 19.1333V32.2C61.5333 33.4667 60.8667 34.6 60 35.3333L63.3333 45.4V45.4667C63.5639 46.207 63.6166 46.9912 63.4874 47.7557C63.3582 48.5202 63.0505 49.2435 62.5895 49.8669C62.1284 50.4903 61.5269 50.9962 60.8338 51.3437C60.1406 51.6911 59.3754 51.8703 58.6 51.8667H54.3333C53.9895 52.4222 53.5082 52.8797 52.936 53.195C52.3638 53.5103 51.72 53.6728 51.0667 53.6667H47.0667C46.5764 53.6755 46.0892 53.5877 45.6328 53.4082C45.1765 53.2287 44.76 52.961 44.4071 52.6205C44.0542 52.28 43.7719 51.8733 43.5762 51.4237C43.3805 50.9741 43.2753 50.4903 43.2667 50C43.2667 47.9333 44.9333 46.2667 47 46.2667H51.0667C52.4667 46.2667 53.7333 46.9333 54.3333 48.0667H58.6C59.3333 48.0667 59.9333 47.4 59.6667 46.6L56.3333 36.3333H51.3333C49.9333 36.3333 48.6 35.6667 47.8 34.5333V34.4667L46.8 32.9333C46.7585 32.8643 46.6999 32.8072 46.6298 32.7675C46.5597 32.7279 46.4805 32.707 46.4 32.707C46.3195 32.707 46.2403 32.7279 46.1702 32.7675C46.1001 32.8072 46.0415 32.8643 46 32.9333L45.4667 34C45.1162 34.7065 44.5739 35.3 43.9019 35.7126C43.2299 36.1253 42.4552 36.3404 41.6667 36.3333H24.9333C23.4 36.3333 21.9333 35.7333 20.8667 34.6667H20.8L19.8667 33.6667C19.6667 33.4667 19.4667 33.3333 19.2 33.3333L17.4667 33.1333C17.3333 38.8667 13.4667 43.4667 8.73333 43.4667C3.93333 43.4667 0 38.6667 0 32.9333C0 32.2667 0 31.6667 0.133333 31.1333V31C0.8 26.8 3.46667 23.4667 6.93333 22.6C9.46667 9.93333 19.3333 0 31.0667 0ZM3.93333 31.5333C4.46667 28 6.93333 26.2 8.73333 26.2C10.7333 26.2 13.6 28.4 13.6 32.8667C13.6 34.4667 13.2667 35.7333 12.7333 36.7333C11.7333 38.7333 10.0667 39.6667 8.73333 39.6667C7.67025 39.6269 6.66506 39.1722 5.93333 38.4C5.8414 38.3142 5.75246 38.2253 5.66667 38.1333C5.19113 37.6008 4.80806 36.9924 4.53333 36.3333C4.0607 35.2169 3.83335 34.0119 3.86667 32.8V31.6667L3.93333 31.6V31.5333ZM24.3333 20.6667C24.3333 19.6667 25.2 18.8 26.2667 18.8H55.8667C56.9333 18.8 57.8 19.6667 57.7333 20.7333V30.7333C57.6667 31.8 56.8 32.6667 55.7333 32.6667H53.4C53.0667 32.6667 52.7333 32.6667 52.4 32.5333C51.5333 32.3333 50.7333 31.8667 50.4 31.3333L47.9333 27.6C47.7363 27.2901 47.4602 27.0383 47.1336 26.8706C46.8069 26.7028 46.4414 26.6251 46.0747 26.6455C45.7081 26.6658 45.3535 26.7835 45.0474 26.9865C44.7413 27.1894 44.4948 27.4702 44.3333 27.8L42.6667 31C42.4199 31.4974 42.04 31.9165 41.5692 32.2107C41.0984 32.505 40.5552 32.6628 40 32.6667L26.2 32.8C25.1333 32.8 24.2667 31.9333 24.2667 30.8667V20.6667H24.3333ZM11 22.2C13.5333 11.5333 22 3.86667 31 3.86667C37.9333 3.86667 44.4 8.2 48.3333 15H24.3333C21.4667 15 18.6 16 16.3333 17.8L16.2667 17.8667L10.9333 22.2H11Z",
|
|
16
|
+
fill: "currentColor",
|
|
17
|
+
"fill-rule": "evenodd"
|
|
18
|
+
}, null, -1)
|
|
19
|
+
])]);
|
|
20
|
+
}
|
|
21
|
+
const Logo = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
22
|
+
export {
|
|
23
|
+
Logo as default
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=Logo.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Logo.vue.js","sources":["../../src/components/Logo.vue"],"sourcesContent":["<template>\n <svg\n fill=\"none\"\n height=\"54\"\n viewBox=\"0 0 64 54\"\n width=\"64\"\n xmlns=\"http://www.w3.org/2000/svg\">\n <path\n clip-rule=\"evenodd\"\n d=\"M31.0667 0C40.2667 0 48.3333 6.13333 52.6 14.9333H57.2667C59.6 14.9333 61.5333 16.8 61.5333 19.1333V32.2C61.5333 33.4667 60.8667 34.6 60 35.3333L63.3333 45.4V45.4667C63.5639 46.207 63.6166 46.9912 63.4874 47.7557C63.3582 48.5202 63.0505 49.2435 62.5895 49.8669C62.1284 50.4903 61.5269 50.9962 60.8338 51.3437C60.1406 51.6911 59.3754 51.8703 58.6 51.8667H54.3333C53.9895 52.4222 53.5082 52.8797 52.936 53.195C52.3638 53.5103 51.72 53.6728 51.0667 53.6667H47.0667C46.5764 53.6755 46.0892 53.5877 45.6328 53.4082C45.1765 53.2287 44.76 52.961 44.4071 52.6205C44.0542 52.28 43.7719 51.8733 43.5762 51.4237C43.3805 50.9741 43.2753 50.4903 43.2667 50C43.2667 47.9333 44.9333 46.2667 47 46.2667H51.0667C52.4667 46.2667 53.7333 46.9333 54.3333 48.0667H58.6C59.3333 48.0667 59.9333 47.4 59.6667 46.6L56.3333 36.3333H51.3333C49.9333 36.3333 48.6 35.6667 47.8 34.5333V34.4667L46.8 32.9333C46.7585 32.8643 46.6999 32.8072 46.6298 32.7675C46.5597 32.7279 46.4805 32.707 46.4 32.707C46.3195 32.707 46.2403 32.7279 46.1702 32.7675C46.1001 32.8072 46.0415 32.8643 46 32.9333L45.4667 34C45.1162 34.7065 44.5739 35.3 43.9019 35.7126C43.2299 36.1253 42.4552 36.3404 41.6667 36.3333H24.9333C23.4 36.3333 21.9333 35.7333 20.8667 34.6667H20.8L19.8667 33.6667C19.6667 33.4667 19.4667 33.3333 19.2 33.3333L17.4667 33.1333C17.3333 38.8667 13.4667 43.4667 8.73333 43.4667C3.93333 43.4667 0 38.6667 0 32.9333C0 32.2667 0 31.6667 0.133333 31.1333V31C0.8 26.8 3.46667 23.4667 6.93333 22.6C9.46667 9.93333 19.3333 0 31.0667 0ZM3.93333 31.5333C4.46667 28 6.93333 26.2 8.73333 26.2C10.7333 26.2 13.6 28.4 13.6 32.8667C13.6 34.4667 13.2667 35.7333 12.7333 36.7333C11.7333 38.7333 10.0667 39.6667 8.73333 39.6667C7.67025 39.6269 6.66506 39.1722 5.93333 38.4C5.8414 38.3142 5.75246 38.2253 5.66667 38.1333C5.19113 37.6008 4.80806 36.9924 4.53333 36.3333C4.0607 35.2169 3.83335 34.0119 3.86667 32.8V31.6667L3.93333 31.6V31.5333ZM24.3333 20.6667C24.3333 19.6667 25.2 18.8 26.2667 18.8H55.8667C56.9333 18.8 57.8 19.6667 57.7333 20.7333V30.7333C57.6667 31.8 56.8 32.6667 55.7333 32.6667H53.4C53.0667 32.6667 52.7333 32.6667 52.4 32.5333C51.5333 32.3333 50.7333 31.8667 50.4 31.3333L47.9333 27.6C47.7363 27.2901 47.4602 27.0383 47.1336 26.8706C46.8069 26.7028 46.4414 26.6251 46.0747 26.6455C45.7081 26.6658 45.3535 26.7835 45.0474 26.9865C44.7413 27.1894 44.4948 27.4702 44.3333 27.8L42.6667 31C42.4199 31.4974 42.04 31.9165 41.5692 32.2107C41.0984 32.505 40.5552 32.6628 40 32.6667L26.2 32.8C25.1333 32.8 24.2667 31.9333 24.2667 30.8667V20.6667H24.3333ZM11 22.2C13.5333 11.5333 22 3.86667 31 3.86667C37.9333 3.86667 44.4 8.2 48.3333 15H24.3333C21.4667 15 18.6 16 16.3333 17.8L16.2667 17.8667L10.9333 22.2H11Z\"\n fill=\"currentColor\"\n fill-rule=\"evenodd\" />\n </svg>\n</template>\n"],"names":["_openBlock","_createElementBlock","_createElementVNode"],"mappings":";;;;EAEI,MAAK;AAAA,EACL,QAAO;AAAA,EACP,SAAQ;AAAA,EACR,OAAM;AAAA,EACN,OAAM;;;AALR,SAAAA,UAAA,GAAAC,mBAWM,OAXN,YAWM,CAAA,GAAA,OAAA,CAAA,MAAA,OAAA,CAAA,IAAA;AAAA,IALJC,mBAIwB,QAAA;AAAA,MAHtB,aAAU;AAAA,MACV,GAAE;AAAA,MACF,MAAK;AAAA,MACL,aAAU;AAAA;;;;"}
|
|
@@ -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=SendingRequest.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SendingRequest.vue.d.ts","sourceRoot":"","sources":["../../src/components/SendingRequest.vue"],"names":[],"mappings":";AA0HA,wBACG"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { createElementBlock, openBlock, createElementVNode, createTextVNode } from "vue";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const _sfc_main = {};
|
|
5
|
+
const _hoisted_1 = { class: "sendingRequest" };
|
|
6
|
+
function _sfc_render(_ctx, _cache) {
|
|
7
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [..._cache[0] || (_cache[0] = [
|
|
8
|
+
createElementVNode("div", { class: "playIcon" }, [
|
|
9
|
+
createElementVNode("svg", {
|
|
10
|
+
fill: "currentColor",
|
|
11
|
+
height: "32",
|
|
12
|
+
viewBox: "0 0 256 256",
|
|
13
|
+
width: "32",
|
|
14
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
15
|
+
}, [
|
|
16
|
+
createElementVNode("path", { d: "M240,128a15.74,15.74,0,0,1-7.6,13.51L88.32,229.65a16,16,0,0,1-16.2.3A15.86,15.86,0,0,1,64,216.13V39.87a15.86,15.86,0,0,1,8.12-13.82,16,16,0,0,1,16.2.3L232.4,114.49A15.74,15.74,0,0,1,240,128Z" })
|
|
17
|
+
])
|
|
18
|
+
], -1),
|
|
19
|
+
createTextVNode(" Sending Request to Endpoint ", -1)
|
|
20
|
+
])]);
|
|
21
|
+
}
|
|
22
|
+
const SendingRequest = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-53e6e821"]]);
|
|
23
|
+
export {
|
|
24
|
+
SendingRequest as default
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=SendingRequest.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SendingRequest.vue.js","sources":["../../src/components/SendingRequest.vue"],"sourcesContent":["<template>\n <div class=\"sendingRequest\">\n <div class=\"playIcon\">\n <svg\n fill=\"currentColor\"\n height=\"32\"\n viewBox=\"0 0 256 256\"\n width=\"32\"\n xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M240,128a15.74,15.74,0,0,1-7.6,13.51L88.32,229.65a16,16,0,0,1-16.2.3A15.86,15.86,0,0,1,64,216.13V39.87a15.86,15.86,0,0,1,8.12-13.82,16,16,0,0,1,16.2.3L232.4,114.49A15.74,15.74,0,0,1,240,128Z\"></path>\n </svg>\n </div>\n Sending Request to Endpoint\n </div>\n</template>\n\n<style scoped>\n.playIcon {\n padding: 4px;\n height: 16px;\n width: 16px;\n z-index: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n background: var(--scalar-background-1);\n border-radius: 50%;\n}\n\n.playIcon::before {\n content: '';\n width: 16px;\n height: 16px;\n display: inline-block;\n box-sizing: border-box;\n position: absolute;\n border-width: 1.75px;\n border-style: solid;\n border-color: currentcolor currentcolor transparent;\n border-image: initial;\n border-radius: 50%;\n background: var(--scalar-background-1);\n animation: 0.42s linear 0s infinite normal none running rotation;\n}\n\n.sendingRequest {\n display: flex;\n align-items: center;\n gap: 10px;\n color: var(--scalar-color-blue);\n font-weight: var(--scalar-semibold);\n}\n\n.sendingRequest svg {\n width: 100%;\n height: 100%;\n z-index: 1;\n border-radius: 50%;\n}\n\n@keyframes rotation {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n</style>\n"],"names":["_openBlock","_createElementBlock","_createElementVNode"],"mappings":";;;;AACO,MAAA,aAAA,EAAA,OAAM,iBAAgB;;AAA3B,SAAAA,UAAA,GAAAC,mBAaM,OAbN,YAaM,CAAA,GAAA,OAAA,CAAA,MAAA,OAAA,CAAA,IAAA;AAAA,IAZJC,mBAUM,OAAA,EAVD,OAAM,WAAU,GAAA;AAAA,MACnBA,mBAQM,OAAA;AAAA,QAPJ,MAAK;AAAA,QACL,QAAO;AAAA,QACP,SAAQ;AAAA,QACR,OAAM;AAAA,QACN,OAAM;AAAA;QACNA,mBAC4M,QAAA,EAA1M,GAAE,iMAAgM,CAAA;AAAA;;oBAElM,iCAER,EAAA;AAAA;;;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
text: string;
|
|
3
|
+
};
|
|
4
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
5
|
+
click: () => any;
|
|
6
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
7
|
+
onClick?: (() => any) | undefined;
|
|
8
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
export default _default;
|
|
10
|
+
//# sourceMappingURL=Suggestion.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Suggestion.vue.d.ts","sourceRoot":"","sources":["../../src/components/Suggestion.vue"],"names":[],"mappings":"AA6CA,KAAK,WAAW,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;;;;;;AAwDpC,wBAGG"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import _sfc_main from "./Suggestion.vue2.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const Suggestion = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-db481fa6"]]);
|
|
5
|
+
export {
|
|
6
|
+
Suggestion as default
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=Suggestion.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Suggestion.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, toDisplayString } from "vue";
|
|
2
|
+
import { useState } from "../state/state.js";
|
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
+
__name: "Suggestion",
|
|
5
|
+
props: {
|
|
6
|
+
text: {}
|
|
7
|
+
},
|
|
8
|
+
emits: ["click"],
|
|
9
|
+
setup(__props, { emit: __emit }) {
|
|
10
|
+
const emit = __emit;
|
|
11
|
+
const state = useState();
|
|
12
|
+
function onClick() {
|
|
13
|
+
state.prompt.value = __props.text;
|
|
14
|
+
emit("click");
|
|
15
|
+
}
|
|
16
|
+
return (_ctx, _cache) => {
|
|
17
|
+
return openBlock(), createElementBlock("button", {
|
|
18
|
+
class: "suggestion",
|
|
19
|
+
type: "button",
|
|
20
|
+
onClick
|
|
21
|
+
}, toDisplayString(_ctx.text), 1);
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
export {
|
|
26
|
+
_sfc_main as default
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=Suggestion.vue2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Suggestion.vue2.js","sources":["../../src/components/Suggestion.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { useState } from '@/state/state'\n\nconst { text } = defineProps<{ text: string }>()\n\nconst emit = defineEmits<{\n (e: 'click'): void\n}>()\n\nconst state = useState()\n\nfunction onClick() {\n state.prompt.value = text\n emit('click')\n}\n</script>\n\n<template>\n <button\n class=\"suggestion\"\n type=\"button\"\n @click=\"onClick\">\n {{ text }}\n </button>\n</template>\n\n<style scoped>\n.suggestion {\n border: var(--scalar-border-width) solid var(--scalar-border-color);\n color: var(--scalar-color-2);\n font-weight: var(--scalar-semibold);\n height: 32px;\n border-radius: 16px;\n padding-inline: 8px;\n font-size: var(--scalar-font-size-3);\n}\n.suggestion:hover {\n background: var(--scalar-background-2);\n cursor: pointer;\n}\n</style>\n"],"names":["_createElementBlock","text"],"mappings":";;;;;;;;;AAKA,UAAM,OAAO;AAIb,UAAM,QAAQ,SAAA;AAEd,aAAS,UAAU;AACjB,YAAM,OAAO,QAAQ,QAAA;AACrB,WAAK,OAAO;AAAA,IACd;;0BAIEA,mBAKS,UAAA;AAAA,QAJP,OAAM;AAAA,QACN,MAAK;AAAA,QACJ;AAAA,MAAA,mBACEC,KAAAA,IAAI,GAAA,CAAA;AAAA;;;"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { HttpMethod } from '@scalar/helpers/http/http-methods';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
method: HttpMethod;
|
|
4
|
+
path: string;
|
|
5
|
+
};
|
|
6
|
+
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>;
|
|
7
|
+
export default _default;
|
|
8
|
+
//# sourceMappingURL=TestRequestButton.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TestRequestButton.vue.d.ts","sourceRoot":"","sources":["../../src/components/TestRequestButton.vue"],"names":[],"mappings":"AAsEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAInE,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,UAAU,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;CACb,CAAC;;AAuEF,wBAEG"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import _sfc_main from "./TestRequestButton.vue2.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const TestRequestButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-952649de"]]);
|
|
5
|
+
export {
|
|
6
|
+
TestRequestButton as default
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=TestRequestButton.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TestRequestButton.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|