@scalar/agent-chat 0.1.2 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{dist/App.vue.d.ts → App.vue.d.ts} +2 -2
- package/App.vue.d.ts.map +1 -0
- package/{dist/App.vue.js → App.vue.js} +9 -3
- package/App.vue.js.map +1 -0
- package/{dist/Chat.vue.js → Chat.vue.js} +3 -3
- package/Chat.vue.js.map +1 -0
- package/components/ApprovalSection.vue.d.ts +9 -0
- package/components/ApprovalSection.vue.d.ts.map +1 -0
- package/components/ApprovalSection.vue.js +8 -0
- package/components/ApprovalSection.vue.js.map +1 -0
- package/components/ApprovalSection.vue2.js +47 -0
- package/components/ApprovalSection.vue2.js.map +1 -0
- package/components/AutosendPaused.vue.d.ts +3 -0
- package/components/AutosendPaused.vue.d.ts.map +1 -0
- package/components/AutosendPaused.vue.js +15 -0
- package/components/AutosendPaused.vue.js.map +1 -0
- package/{dist/components → components}/ContextItem.vue.d.ts.map +1 -1
- package/{dist/components → components}/ContextItem.vue.js +1 -1
- package/{dist/components → components}/ContextItem.vue2.js +1 -1
- package/components/ContextItem.vue2.js.map +1 -0
- package/components/ErrorMessage.vue.d.ts +6 -0
- package/components/ErrorMessage.vue.d.ts.map +1 -0
- package/components/ErrorMessage.vue.js +8 -0
- package/components/ErrorMessage.vue.js.map +1 -0
- package/components/ErrorMessage.vue2.js +28 -0
- package/components/ErrorMessage.vue2.js.map +1 -0
- package/{dist/components → components}/LoadingMiniOpenAPIDoc.vue.d.ts.map +1 -1
- package/components/LoadingMiniOpenAPIDoc.vue.js +16 -0
- package/components/LoadingMiniOpenAPIDoc.vue.js.map +1 -0
- package/components/LoadingOpenAPISpecsSummary.vue.d.ts +3 -0
- package/components/LoadingOpenAPISpecsSummary.vue.d.ts.map +1 -0
- package/components/LoadingOpenAPISpecsSummary.vue.js +16 -0
- package/components/LoadingOpenAPISpecsSummary.vue.js.map +1 -0
- package/components/RequestApproved.vue.d.ts +3 -0
- package/components/RequestApproved.vue.d.ts.map +1 -0
- package/components/RequestApproved.vue.js +15 -0
- package/components/RequestApproved.vue.js.map +1 -0
- package/components/RequestFailed.vue.d.ts +3 -0
- package/components/RequestFailed.vue.d.ts.map +1 -0
- package/components/RequestFailed.vue.js +26 -0
- package/components/RequestFailed.vue.js.map +1 -0
- package/components/RequestPreview.vue.d.ts +10 -0
- package/components/RequestPreview.vue.d.ts.map +1 -0
- package/components/RequestPreview.vue.js +9 -0
- package/components/RequestPreview.vue.js.map +1 -0
- package/components/RequestPreview.vue2.js +150 -0
- package/components/RequestPreview.vue2.js.map +1 -0
- package/components/RequestRejected.vue.d.ts +3 -0
- package/components/RequestRejected.vue.d.ts.map +1 -0
- package/components/RequestRejected.vue.js +24 -0
- package/components/RequestRejected.vue.js.map +1 -0
- package/components/RequestSuccess.vue.d.ts +3 -0
- package/components/RequestSuccess.vue.d.ts.map +1 -0
- package/components/RequestSuccess.vue.js +15 -0
- package/components/RequestSuccess.vue.js.map +1 -0
- package/components/ResponseBody/ResponseBody.vue.d.ts +15 -0
- package/components/ResponseBody/ResponseBody.vue.d.ts.map +1 -0
- package/components/ResponseBody/ResponseBody.vue.js +45 -0
- package/components/ResponseBody/ResponseBody.vue.js.map +1 -0
- package/components/ResponseBody/ResponseBody.vue2.js +5 -0
- package/components/ResponseBody/ResponseBody.vue2.js.map +1 -0
- package/components/ResponseBody/ResponseBodyInfo.vue.d.ts +13 -0
- package/components/ResponseBody/ResponseBodyInfo.vue.d.ts.map +1 -0
- package/components/ResponseBody/ResponseBodyInfo.vue.js +17 -0
- package/components/ResponseBody/ResponseBodyInfo.vue.js.map +1 -0
- package/components/ResponseBody/ResponseBodyPreview.vue.d.ts +10 -0
- package/components/ResponseBody/ResponseBodyPreview.vue.d.ts.map +1 -0
- package/components/ResponseBody/ResponseBodyPreview.vue.js +8 -0
- package/components/ResponseBody/ResponseBodyPreview.vue.js.map +1 -0
- package/components/ResponseBody/ResponseBodyPreview.vue2.js +73 -0
- package/components/ResponseBody/ResponseBodyPreview.vue2.js.map +1 -0
- package/components/ResponseBody/ResponseBodyRaw.vue.d.ts +7 -0
- package/components/ResponseBody/ResponseBodyRaw.vue.d.ts.map +1 -0
- package/components/ResponseBody/ResponseBodyRaw.vue.js +23 -0
- package/components/ResponseBody/ResponseBodyRaw.vue.js.map +1 -0
- package/components/ResponseBody/ResponseBodyRaw.vue2.js +5 -0
- package/components/ResponseBody/ResponseBodyRaw.vue2.js.map +1 -0
- package/components/ResponseBody/ResponseBodyToggle.vue.d.ts +10 -0
- package/components/ResponseBody/ResponseBodyToggle.vue.d.ts.map +1 -0
- package/components/ResponseBody/ResponseBodyToggle.vue.js +30 -0
- package/components/ResponseBody/ResponseBodyToggle.vue.js.map +1 -0
- package/components/ResponseBody/ResponseBodyToggle.vue2.js +5 -0
- package/components/ResponseBody/ResponseBodyToggle.vue2.js.map +1 -0
- package/components/ResponseBody/helpers/media-types.d.ts +15 -0
- package/components/ResponseBody/helpers/media-types.d.ts.map +1 -0
- package/components/ResponseBody/helpers/media-types.js +134 -0
- package/components/ResponseBody/helpers/media-types.js.map +1 -0
- package/components/ResponseBody/helpers/process-response-body.d.ts +10 -0
- package/components/ResponseBody/helpers/process-response-body.d.ts.map +1 -0
- package/components/ResponseBody/helpers/process-response-body.js +63 -0
- package/components/ResponseBody/helpers/process-response-body.js.map +1 -0
- package/components/SearchPopover.vue.d.ts +13 -0
- package/components/SearchPopover.vue.d.ts.map +1 -0
- package/components/SearchPopover.vue.js +8 -0
- package/components/SearchPopover.vue.js.map +1 -0
- package/components/SearchPopover.vue2.js +78 -0
- package/components/SearchPopover.vue2.js.map +1 -0
- package/{dist/components → components}/SendingRequest.vue.d.ts.map +1 -1
- package/{dist/components → components}/SendingRequest.vue.js +1 -1
- package/{dist/components → components}/SendingRequest.vue.js.map +1 -1
- package/{dist/components → components}/Suggestion.vue.d.ts.map +1 -1
- package/{dist/components → components}/Suggestion.vue.js +1 -1
- package/{dist/components → components}/Suggestion.vue2.js +1 -1
- package/{dist/components → components}/Suggestion.vue2.js.map +1 -1
- package/{dist/components → components}/TestRequestButton.vue2.js +1 -1
- package/{dist/components → components}/TestRequestButton.vue2.js.map +1 -1
- package/helpers.d.ts +418 -0
- package/helpers.d.ts.map +1 -0
- package/helpers.js +201 -0
- package/helpers.js.map +1 -0
- package/hooks/useChatApprovals.d.ts +24 -0
- package/hooks/useChatApprovals.d.ts.map +1 -0
- package/hooks/useChatApprovals.js +25 -0
- package/hooks/useChatApprovals.js.map +1 -0
- package/{dist/hooks → hooks}/useChatOperationBlocks.js +1 -1
- package/hooks/useSearch.d.ts +26 -0
- package/hooks/useSearch.d.ts.map +1 -0
- package/hooks/useSearch.js +36 -0
- package/hooks/useSearch.js.map +1 -0
- package/package.json +3 -36
- package/registry/add-documents-to-store.d.ts +21 -0
- package/registry/add-documents-to-store.d.ts.map +1 -0
- package/registry/add-documents-to-store.js +42 -0
- package/registry/add-documents-to-store.js.map +1 -0
- package/{dist/state → state}/state.d.ts +29 -14
- package/state/state.d.ts.map +1 -0
- package/{dist/state → state}/state.js +45 -40
- package/state/state.js.map +1 -0
- package/{dist/style.css → style.css} +686 -234
- package/{dist/views → views}/Chat/Chat.vue.d.ts.map +1 -1
- package/{dist/views → views}/Chat/Chat.vue.js +1 -1
- package/{dist/views → views}/Chat/Chat.vue2.js +17 -5
- package/views/Chat/Chat.vue2.js.map +1 -0
- package/{dist/views → views}/Chat/Messages/ExecuteRequestTool.vue.d.ts.map +1 -1
- package/{dist/views → views}/Chat/Messages/ExecuteRequestTool.vue.js +1 -1
- package/views/Chat/Messages/ExecuteRequestTool.vue2.js +39 -0
- package/views/Chat/Messages/ExecuteRequestTool.vue2.js.map +1 -0
- package/{dist/views → views}/Chat/Messages/GetMiniOpenAPIDocTool.vue.d.ts.map +1 -1
- package/{dist/views → views}/Chat/Messages/GetMiniOpenAPIDocTool.vue.js +1 -1
- package/{dist/views → views}/Chat/Messages/GetMiniOpenAPIDocTool.vue2.js +2 -3
- package/views/Chat/Messages/GetMiniOpenAPIDocTool.vue2.js.map +1 -0
- package/views/Chat/Messages/GetOpenAPISpecsSummary.vue.d.ts +11 -0
- package/views/Chat/Messages/GetOpenAPISpecsSummary.vue.d.ts.map +1 -0
- package/views/Chat/Messages/GetOpenAPISpecsSummary.vue.js +32 -0
- package/views/Chat/Messages/GetOpenAPISpecsSummary.vue.js.map +1 -0
- package/views/Chat/Messages/GetOpenAPISpecsSummary.vue2.js +5 -0
- package/views/Chat/Messages/GetOpenAPISpecsSummary.vue2.js.map +1 -0
- package/{dist/views → views}/Chat/Messages/Text.vue.js +1 -1
- package/{dist/views → views}/Chat/Messages/Text.vue.js.map +1 -1
- package/views/Layout.vue.d.ts.map +1 -0
- package/{dist/views → views}/Layout.vue.js +1 -1
- package/{dist/views → views}/Layout.vue2.js +0 -4
- package/views/Layout.vue2.js.map +1 -0
- package/{dist/views → views}/PromptForm.vue.d.ts.map +1 -1
- package/{dist/views → views}/PromptForm.vue.js +1 -1
- package/views/PromptForm.vue2.js +182 -0
- package/views/PromptForm.vue2.js.map +1 -0
- package/{dist/views → views/Settings}/Auth.vue.d.ts +1 -0
- package/views/Settings/Auth.vue.d.ts.map +1 -0
- package/{dist/views → views/Settings}/Auth.vue.js +21 -26
- package/views/Settings/Auth.vue.js.map +1 -0
- package/views/Settings/DocSettings.vue.d.ts +8 -0
- package/views/Settings/DocSettings.vue.d.ts.map +1 -0
- package/views/Settings/DocSettings.vue.js +8 -0
- package/views/Settings/DocSettings.vue.js.map +1 -0
- package/views/Settings/DocSettings.vue2.js +50 -0
- package/views/Settings/DocSettings.vue2.js.map +1 -0
- package/views/Settings/Settings.vue.d.ts.map +1 -0
- package/{dist/views → views/Settings}/Settings.vue.js +2 -2
- package/views/Settings/Settings.vue2.js +78 -0
- package/views/Settings/Settings.vue2.js.map +1 -0
- package/views/Start.vue.d.ts.map +1 -0
- package/{dist/views → views}/Start.vue.js +1 -1
- package/{dist/views → views}/Start.vue2.js +0 -1
- package/views/Start.vue2.js.map +1 -0
- package/dist/App.vue.d.ts.map +0 -1
- package/dist/App.vue.js.map +0 -1
- package/dist/Chat.vue.js.map +0 -1
- package/dist/components/ContextItem.vue2.js.map +0 -1
- package/dist/components/LoadingMiniOpenAPIDoc.vue.js +0 -32
- package/dist/components/LoadingMiniOpenAPIDoc.vue.js.map +0 -1
- package/dist/helpers.d.ts +0 -39
- package/dist/helpers.d.ts.map +0 -1
- package/dist/helpers.js +0 -111
- package/dist/helpers.js.map +0 -1
- package/dist/hooks/useActiveServer.d.ts +0 -2
- package/dist/hooks/useActiveServer.d.ts.map +0 -1
- package/dist/hooks/useActiveServer.js +0 -20
- package/dist/hooks/useActiveServer.js.map +0 -1
- package/dist/hooks/useSecuritySchemes.d.ts +0 -2
- package/dist/hooks/useSecuritySchemes.d.ts.map +0 -1
- package/dist/hooks/useSecuritySchemes.js +0 -29
- package/dist/hooks/useSecuritySchemes.js.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/api.js +0 -11
- package/dist/node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/api.js.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/core.js +0 -58
- package/dist/node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/core.js.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/errors.js +0 -25
- package/dist/node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/errors.js.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/parse.js +0 -64
- package/dist/node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/parse.js.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/regexes.js +0 -8
- package/dist/node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/regexes.js.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/schemas.js +0 -181
- package/dist/node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/schemas.js.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/util.js +0 -61
- package/dist/node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/util.js.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/versions.js +0 -9
- package/dist/node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/versions.js.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/mini/schemas.js +0 -60
- package/dist/node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/mini/schemas.js.map +0 -1
- package/dist/package.json +0 -63
- package/dist/registry/get-document.d.ts +0 -4
- package/dist/registry/get-document.d.ts.map +0 -1
- package/dist/registry/get-document.js +0 -23
- package/dist/registry/get-document.js.map +0 -1
- package/dist/state/state.d.ts.map +0 -1
- package/dist/state/state.js.map +0 -1
- package/dist/views/Auth.vue.d.ts.map +0 -1
- package/dist/views/Auth.vue.js.map +0 -1
- package/dist/views/Chat/Chat.vue2.js.map +0 -1
- package/dist/views/Chat/Messages/ExecuteRequestTool.vue2.js +0 -62
- package/dist/views/Chat/Messages/ExecuteRequestTool.vue2.js.map +0 -1
- package/dist/views/Chat/Messages/GetMiniOpenAPIDocTool.vue2.js.map +0 -1
- package/dist/views/Layout.vue.d.ts.map +0 -1
- package/dist/views/Layout.vue2.js.map +0 -1
- package/dist/views/PromptForm.vue2.js +0 -125
- package/dist/views/PromptForm.vue2.js.map +0 -1
- package/dist/views/Settings.vue.d.ts.map +0 -1
- package/dist/views/Settings.vue2.js +0 -81
- package/dist/views/Settings.vue2.js.map +0 -1
- package/dist/views/Start.vue.d.ts.map +0 -1
- package/dist/views/Start.vue2.js.map +0 -1
- /package/{dist/App.vue2.js → App.vue2.js} +0 -0
- /package/{dist/App.vue2.js.map → App.vue2.js.map} +0 -0
- /package/{dist/Chat.vue.d.ts → Chat.vue.d.ts} +0 -0
- /package/{dist/Chat.vue.d.ts.map → Chat.vue.d.ts.map} +0 -0
- /package/{dist/Chat.vue2.js → Chat.vue2.js} +0 -0
- /package/{dist/Chat.vue2.js.map → Chat.vue2.js.map} +0 -0
- /package/{dist/_virtual → _virtual}/_plugin-vue_export-helper.js +0 -0
- /package/{dist/_virtual → _virtual}/_plugin-vue_export-helper.js.map +0 -0
- /package/{dist/components → components}/ContextItem.vue.d.ts +0 -0
- /package/{dist/components → components}/ContextItem.vue.js.map +0 -0
- /package/{dist/components → components}/Endpoint.vue.d.ts +0 -0
- /package/{dist/components → components}/Endpoint.vue.d.ts.map +0 -0
- /package/{dist/components → components}/Endpoint.vue.js +0 -0
- /package/{dist/components → components}/Endpoint.vue.js.map +0 -0
- /package/{dist/components → components}/Endpoint.vue2.js +0 -0
- /package/{dist/components → components}/Endpoint.vue2.js.map +0 -0
- /package/{dist/components → components}/LoadingMiniOpenAPIDoc.vue.d.ts +0 -0
- /package/{dist/components → components}/Logo.vue.d.ts +0 -0
- /package/{dist/components → components}/Logo.vue.d.ts.map +0 -0
- /package/{dist/components → components}/Logo.vue.js +0 -0
- /package/{dist/components → components}/Logo.vue.js.map +0 -0
- /package/{dist/components → components}/SendingRequest.vue.d.ts +0 -0
- /package/{dist/components → components}/Suggestion.vue.d.ts +0 -0
- /package/{dist/components → components}/Suggestion.vue.js.map +0 -0
- /package/{dist/components → components}/TestRequestButton.vue.d.ts +0 -0
- /package/{dist/components → components}/TestRequestButton.vue.d.ts.map +0 -0
- /package/{dist/components → components}/TestRequestButton.vue.js +0 -0
- /package/{dist/components → components}/TestRequestButton.vue.js.map +0 -0
- /package/{dist/hooks → hooks}/useChatOperationBlocks.d.ts +0 -0
- /package/{dist/hooks → hooks}/useChatOperationBlocks.d.ts.map +0 -0
- /package/{dist/hooks → hooks}/useChatOperationBlocks.js.map +0 -0
- /package/{dist/hooks → hooks}/useChatScroll.d.ts +0 -0
- /package/{dist/hooks → hooks}/useChatScroll.d.ts.map +0 -0
- /package/{dist/hooks → hooks}/useChatScroll.js +0 -0
- /package/{dist/hooks → hooks}/useChatScroll.js.map +0 -0
- /package/{dist/index.d.ts → index.d.ts} +0 -0
- /package/{dist/index.d.ts.map → index.d.ts.map} +0 -0
- /package/{dist/index.js → index.js} +0 -0
- /package/{dist/index.js.map → index.js.map} +0 -0
- /package/{dist/views → views}/Chat/Chat.vue.d.ts +0 -0
- /package/{dist/views → views}/Chat/Chat.vue.js.map +0 -0
- /package/{dist/views → views}/Chat/Messages/ExecuteRequestTool.vue.d.ts +0 -0
- /package/{dist/views → views}/Chat/Messages/ExecuteRequestTool.vue.js.map +0 -0
- /package/{dist/views → views}/Chat/Messages/GetMiniOpenAPIDocTool.vue.d.ts +0 -0
- /package/{dist/views → views}/Chat/Messages/GetMiniOpenAPIDocTool.vue.js.map +0 -0
- /package/{dist/views → views}/Chat/Messages/Text.vue.d.ts +0 -0
- /package/{dist/views → views}/Chat/Messages/Text.vue.d.ts.map +0 -0
- /package/{dist/views → views}/Chat/Messages/Text.vue2.js +0 -0
- /package/{dist/views → views}/Chat/Messages/Text.vue2.js.map +0 -0
- /package/{dist/views → views}/Layout.vue.d.ts +0 -0
- /package/{dist/views → views}/Layout.vue.js.map +0 -0
- /package/{dist/views → views}/PromptForm.vue.d.ts +0 -0
- /package/{dist/views → views}/PromptForm.vue.js.map +0 -0
- /package/{dist/views → views/Settings}/Auth.vue2.js +0 -0
- /package/{dist/views → views/Settings}/Auth.vue2.js.map +0 -0
- /package/{dist/views → views/Settings}/Settings.vue.d.ts +0 -0
- /package/{dist/views → views/Settings}/Settings.vue.js.map +0 -0
- /package/{dist/views → views}/Start.vue.d.ts +0 -0
- /package/{dist/views → views}/Start.vue.js.map +0 -0
package/App.vue.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"App.vue.d.ts","sourceRoot":"","sources":["../src/App.vue"],"names":[],"mappings":"AA+BA,OAAO,aAAa,CAAA;AAKpB,OAAO,EAAe,KAAK,gBAAgB,EAAgB,MAAM,eAAe,CAAA;AAEhF,KAAK,WAAW,GAAG;IACjB,iBAAiB,EAAE,CAAC,gBAAgB,EAAE,GAAG,gBAAgB,EAAE,CAAC,CAAA;IAC5D,WAAW,EAAE,MAAM,CAAA;IACnB,OAAO,EAAE,MAAM,CAAA;CAChB,CAAC;;AAiDF,wBAEG"}
|
|
@@ -5,13 +5,19 @@ import { STATE_SYMBOL, createState } from "./state/state.js";
|
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "App",
|
|
7
7
|
props: {
|
|
8
|
-
|
|
9
|
-
slug: {},
|
|
8
|
+
registryDocuments: {},
|
|
10
9
|
registryUrl: {},
|
|
11
10
|
baseUrl: {}
|
|
12
11
|
},
|
|
13
12
|
setup(__props) {
|
|
14
|
-
provide(
|
|
13
|
+
provide(
|
|
14
|
+
STATE_SYMBOL,
|
|
15
|
+
createState({
|
|
16
|
+
initialRegistryDocuments: __props.registryDocuments,
|
|
17
|
+
registryUrl: __props.registryUrl,
|
|
18
|
+
baseUrl: __props.baseUrl
|
|
19
|
+
})
|
|
20
|
+
);
|
|
15
21
|
return (_ctx, _cache) => {
|
|
16
22
|
return openBlock(), createBlock(_sfc_main$1);
|
|
17
23
|
};
|
package/App.vue.js.map
ADDED
|
@@ -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, type RegistryDocument, STATE_SYMBOL } from '@/state/state'\n\nconst { registryDocuments, registryUrl, baseUrl } = defineProps<{\n registryDocuments: [RegistryDocument, ...RegistryDocument[]]\n registryUrl: string\n baseUrl: string\n}>()\n\nprovide(\n STATE_SYMBOL,\n createState({\n initialRegistryDocuments: registryDocuments,\n registryUrl,\n baseUrl,\n }),\n)\n</script>\n\n<template>\n <Chat />\n</template>\n\n<style scoped></style>\n"],"names":["_createBlock","Chat"],"mappings":";;;;;;;;;;;;AAcA;AAAA,MACE;AAAA,MACA,YAAY;AAAA,QACV,0BAA0B,QAAA;AAAA,QAC1B,aAAU,QAAA;AAAA,QACV,SAAM,QAAA;AAAA,MAAA,CACP;AAAA,IAAA;;0BAKDA,YAAQC,WAAA;AAAA;;;"}
|
|
@@ -6,7 +6,7 @@ import { useChatOperationBlocks } from "./hooks/useChatOperationBlocks.js";
|
|
|
6
6
|
import { useChatScroll } from "./hooks/useChatScroll.js";
|
|
7
7
|
import { useState } from "./state/state.js";
|
|
8
8
|
import Layout from "./views/Layout.vue.js";
|
|
9
|
-
import Settings from "./views/Settings.vue.js";
|
|
9
|
+
import Settings from "./views/Settings/Settings.vue.js";
|
|
10
10
|
const _hoisted_1 = { ref: "clientModal" };
|
|
11
11
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
12
|
__name: "Chat",
|
|
@@ -37,8 +37,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
37
37
|
plugins: []
|
|
38
38
|
})
|
|
39
39
|
);
|
|
40
|
-
function handleSubmit() {
|
|
41
|
-
chat.sendMessage({ text: prompt.value });
|
|
40
|
+
async function handleSubmit() {
|
|
41
|
+
await chat.sendMessage({ text: prompt.value });
|
|
42
42
|
}
|
|
43
43
|
return (_ctx, _cache) => {
|
|
44
44
|
return openBlock(), createElementBlock(Fragment, null, [
|
package/Chat.vue.js.map
ADDED
|
@@ -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/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\nasync function handleSubmit() {\n await 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,mBAAe,eAAe;AAC5B,YAAM,KAAK,YAAY,EAAE,MAAM,OAAO,OAAO;AAAA,IAC/C;;;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,9 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
2
|
+
approve: () => any;
|
|
3
|
+
reject: () => any;
|
|
4
|
+
}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
5
|
+
onApprove?: (() => any) | undefined;
|
|
6
|
+
onReject?: (() => any) | undefined;
|
|
7
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
export default _default;
|
|
9
|
+
//# sourceMappingURL=ApprovalSection.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApprovalSection.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApprovalSection.vue"],"names":[],"mappings":";;;;;;;AA2OA,wBAEG"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import _sfc_main from "./ApprovalSection.vue2.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const ApprovalSection = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ca115005"]]);
|
|
5
|
+
export {
|
|
6
|
+
ApprovalSection as default
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=ApprovalSection.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApprovalSection.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, createElementVNode, createVNode, unref, withCtx, createTextVNode } from "vue";
|
|
2
|
+
import { ScalarButton } from "@scalar/components";
|
|
3
|
+
import { ScalarIconXCircle, ScalarIconChecks } from "@scalar/icons";
|
|
4
|
+
const _hoisted_1 = { class: "approvalSection" };
|
|
5
|
+
const _hoisted_2 = { class: "approveContainer" };
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "ApprovalSection",
|
|
8
|
+
emits: ["approve", "reject"],
|
|
9
|
+
setup(__props, { emit: __emit }) {
|
|
10
|
+
const emit = __emit;
|
|
11
|
+
return (_ctx, _cache) => {
|
|
12
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
13
|
+
_cache[4] || (_cache[4] = createElementVNode("strong", { class: "approvalText" }, "One or more requests require approval.", -1)),
|
|
14
|
+
createElementVNode("div", _hoisted_2, [
|
|
15
|
+
createVNode(unref(ScalarButton), {
|
|
16
|
+
class: "actionButton rejectButton",
|
|
17
|
+
onClick: _cache[0] || (_cache[0] = ($event) => emit("reject"))
|
|
18
|
+
}, {
|
|
19
|
+
icon: withCtx(() => [
|
|
20
|
+
createVNode(unref(ScalarIconXCircle), { weight: "bold" })
|
|
21
|
+
]),
|
|
22
|
+
default: withCtx(() => [
|
|
23
|
+
_cache[2] || (_cache[2] = createTextVNode(" Reject", -1))
|
|
24
|
+
]),
|
|
25
|
+
_: 1
|
|
26
|
+
}),
|
|
27
|
+
createVNode(unref(ScalarButton), {
|
|
28
|
+
class: "actionButton approveButton",
|
|
29
|
+
onClick: _cache[1] || (_cache[1] = ($event) => emit("approve"))
|
|
30
|
+
}, {
|
|
31
|
+
icon: withCtx(() => [
|
|
32
|
+
createVNode(unref(ScalarIconChecks), { weight: "bold" })
|
|
33
|
+
]),
|
|
34
|
+
default: withCtx(() => [
|
|
35
|
+
_cache[3] || (_cache[3] = createTextVNode(" Approve", -1))
|
|
36
|
+
]),
|
|
37
|
+
_: 1
|
|
38
|
+
})
|
|
39
|
+
])
|
|
40
|
+
]);
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
export {
|
|
45
|
+
_sfc_main as default
|
|
46
|
+
};
|
|
47
|
+
//# sourceMappingURL=ApprovalSection.vue2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApprovalSection.vue2.js","sources":["../../src/components/ApprovalSection.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ScalarButton } from '@scalar/components'\nimport { ScalarIconChecks, ScalarIconXCircle } from '@scalar/icons'\n\nconst emit = defineEmits<{\n (e: 'approve'): void\n (e: 'reject'): void\n}>()\n</script>\n\n<template>\n <div class=\"approvalSection\">\n <strong class=\"approvalText\">One or more requests require approval.</strong>\n <div class=\"approveContainer\">\n <ScalarButton\n class=\"actionButton rejectButton\"\n @click=\"emit('reject')\">\n <template #icon>\n <ScalarIconXCircle weight=\"bold\" />\n </template>\n Reject</ScalarButton\n >\n <ScalarButton\n class=\"actionButton approveButton\"\n @click=\"emit('approve')\">\n <template #icon>\n <ScalarIconChecks weight=\"bold\" />\n </template>\n Approve</ScalarButton\n >\n </div>\n </div>\n</template>\n\n<style scoped>\n.approvalSection {\n width: 100%;\n margin-bottom: -30px;\n padding: 5px 10px;\n padding-bottom: 35px;\n\n background: color-mix(\n in srgb,\n var(--scalar-background-2),\n var(--scalar-background-1)\n );\n border: var(--scalar-border-width) solid var(--scalar-border-color);\n border-radius: 16px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n}\n\n.approvalText {\n font-weight: var(--scalar-semibold);\n}\n\n.approveContainer {\n display: flex;\n gap: 5px;\n}\n\n.actionButton {\n display: flex;\n align-items: center;\n font-weight: var(--scalar-semibold);\n border-radius: 50px;\n padding: 5px 10px;\n}\n\n.rejectButton {\n color: white;\n background: var(--scalar-color-red);\n}\n.rejectButton:hover,\n.rejectButton:active {\n background: #bd1614;\n color: white !important;\n}\n\n.approveButton {\n color: white;\n background: var(--scalar-agent-blue);\n}\n.approveButton:hover,\n.approveButton:active {\n background: #0b73b3;\n color: white !important;\n}\n</style>\n"],"names":["_openBlock","_createElementBlock","_createElementVNode","_createVNode","_unref"],"mappings":";;;;;;;;;AAIA,UAAM,OAAO;;AAOX,aAAAA,UAAA,GAAAC,mBAoBM,OApBN,YAoBM;AAAA,QAnBJ,OAAA,CAAA,MAAA,OAAA,CAAA,IAAAC,mBAA4E,UAAA,EAApE,OAAM,eAAA,GAAe,0CAAsC,EAAA;AAAA,QACnEA,mBAiBM,OAjBN,YAiBM;AAAA,UAhBJC,YAOCC,MAAA,YAAA,GAAA;AAAA,YANC,OAAM;AAAA,YACL,+CAAO,KAAI,QAAA;AAAA,UAAA;YACD,cACT,MAAmC;AAAA,cAAnCD,YAAmCC,MAAA,iBAAA,GAAA,EAAhB,QAAO,QAAM;AAAA,YAAA;6BACvB,MACL;AAAA,wDADK,WACL,EAAA;AAAA,YAAA;;;UAERD,YAOCC,MAAA,YAAA,GAAA;AAAA,YANC,OAAM;AAAA,YACL,+CAAO,KAAI,SAAA;AAAA,UAAA;YACD,cACT,MAAkC;AAAA,cAAlCD,YAAkCC,MAAA,gBAAA,GAAA,EAAhB,QAAO,QAAM;AAAA,YAAA;6BACtB,MACJ;AAAA,wDADI,YACJ,EAAA;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=AutosendPaused.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AutosendPaused.vue.d.ts","sourceRoot":"","sources":["../../src/components/AutosendPaused.vue"],"names":[],"mappings":";AAkIA,wBACG"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { createElementBlock, openBlock, createStaticVNode } 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: "autosendPaused" };
|
|
6
|
+
function _sfc_render(_ctx, _cache) {
|
|
7
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [..._cache[0] || (_cache[0] = [
|
|
8
|
+
createStaticVNode('<svg fill="none" height="16" viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg" data-v-bd5bcdbc><rect height="14.25" rx="7.125" width="14.25" x="0.875" y="0.875" data-v-bd5bcdbc></rect><rect height="14.25" rx="7.125" stroke="currentColor" stroke-width="1.5" width="14.25" x="0.875" y="0.875" data-v-bd5bcdbc></rect><g clip-path="url(#clip0_74_585)" data-v-bd5bcdbc><path d="M10.75 5.5V10.5C10.75 10.6326 10.6973 10.7598 10.6036 10.8536C10.5098 10.9473 10.3826 11 10.25 11H9C8.86739 11 8.74021 10.9473 8.64645 10.8536C8.55268 10.7598 8.5 10.6326 8.5 10.5V5.5C8.5 5.36739 8.55268 5.24021 8.64645 5.14645C8.74021 5.05268 8.86739 5 9 5H10.25C10.3826 5 10.5098 5.05268 10.6036 5.14645C10.6973 5.24021 10.75 5.36739 10.75 5.5ZM7 5H5.75C5.61739 5 5.49021 5.05268 5.39645 5.14645C5.30268 5.24021 5.25 5.36739 5.25 5.5V10.5C5.25 10.6326 5.30268 10.7598 5.39645 10.8536C5.49021 10.9473 5.61739 11 5.75 11H7C7.13261 11 7.25979 10.9473 7.35355 10.8536C7.44732 10.7598 7.5 10.6326 7.5 10.5V5.5C7.5 5.36739 7.44732 5.24021 7.35355 5.14645C7.25979 5.05268 7.13261 5 7 5Z" fill="currentColor" data-v-bd5bcdbc></path></g><defs data-v-bd5bcdbc><clipPath id="clip0_74_585" data-v-bd5bcdbc><rect height="8" rx="4" width="8" x="4" y="4" data-v-bd5bcdbc></rect></clipPath></defs></svg> Accept Request to Continue ', 2)
|
|
9
|
+
])]);
|
|
10
|
+
}
|
|
11
|
+
const AutosendPaused = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-bd5bcdbc"]]);
|
|
12
|
+
export {
|
|
13
|
+
AutosendPaused as default
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=AutosendPaused.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AutosendPaused.vue.js","sources":["../../src/components/AutosendPaused.vue"],"sourcesContent":["<template>\n <div class=\"autosendPaused\">\n <svg\n fill=\"none\"\n height=\"16\"\n viewBox=\"0 0 16 16\"\n width=\"16\"\n xmlns=\"http://www.w3.org/2000/svg\">\n <rect\n height=\"14.25\"\n rx=\"7.125\"\n width=\"14.25\"\n x=\"0.875\"\n y=\"0.875\" />\n <rect\n height=\"14.25\"\n rx=\"7.125\"\n stroke=\"currentColor\"\n stroke-width=\"1.5\"\n width=\"14.25\"\n x=\"0.875\"\n y=\"0.875\" />\n <g clip-path=\"url(#clip0_74_585)\">\n <path\n d=\"M10.75 5.5V10.5C10.75 10.6326 10.6973 10.7598 10.6036 10.8536C10.5098 10.9473 10.3826 11 10.25 11H9C8.86739 11 8.74021 10.9473 8.64645 10.8536C8.55268 10.7598 8.5 10.6326 8.5 10.5V5.5C8.5 5.36739 8.55268 5.24021 8.64645 5.14645C8.74021 5.05268 8.86739 5 9 5H10.25C10.3826 5 10.5098 5.05268 10.6036 5.14645C10.6973 5.24021 10.75 5.36739 10.75 5.5ZM7 5H5.75C5.61739 5 5.49021 5.05268 5.39645 5.14645C5.30268 5.24021 5.25 5.36739 5.25 5.5V10.5C5.25 10.6326 5.30268 10.7598 5.39645 10.8536C5.49021 10.9473 5.61739 11 5.75 11H7C7.13261 11 7.25979 10.9473 7.35355 10.8536C7.44732 10.7598 7.5 10.6326 7.5 10.5V5.5C7.5 5.36739 7.44732 5.24021 7.35355 5.14645C7.25979 5.05268 7.13261 5 7 5Z\"\n fill=\"currentColor\" />\n </g>\n <defs>\n <clipPath id=\"clip0_74_585\">\n <rect\n height=\"8\"\n rx=\"4\"\n width=\"8\"\n x=\"4\"\n y=\"4\" />\n </clipPath>\n </defs>\n </svg>\n Accept Request to Continue\n </div>\n</template>\n\n<style scoped>\n.autosendPaused {\n display: flex;\n align-items: center;\n gap: 6px;\n color: var(--scalar-color-blue);\n font-weight: var(--scalar-semibold);\n min-height: 28px;\n font-size: var(--scalar-font-size-3);\n position: relative;\n}\n</style>\n"],"names":["_openBlock","_createElementBlock"],"mappings":";;;;AACO,MAAA,aAAA,EAAA,OAAM,iBAAgB;;AAA3B,SAAAA,UAAA,GAAAC,mBAsCM,OAtCN,YAsCM,CAAA,GAAA,OAAA,CAAA,MAAA,OAAA,CAAA,IAAA;AAAA;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContextItem.vue.d.ts","sourceRoot":"","sources":["../../src/components/ContextItem.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ContextItem.vue.d.ts","sourceRoot":"","sources":["../../src/components/ContextItem.vue"],"names":[],"mappings":"AAoEA,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"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./ContextItem.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const ContextItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const ContextItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b6e5aa96"]]);
|
|
5
5
|
export {
|
|
6
6
|
ContextItem as default
|
|
7
7
|
};
|
|
@@ -8,7 +8,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
8
8
|
return (_ctx, _cache) => {
|
|
9
9
|
return openBlock(), createElementBlock("div", {
|
|
10
10
|
class: normalizeClass(["contextItem", {
|
|
11
|
-
shimmer:
|
|
11
|
+
shimmer: __props.loading
|
|
12
12
|
}])
|
|
13
13
|
}, [
|
|
14
14
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
@@ -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 font-size: 10px;\n display: inline-block;\n color: var(--scalar-color-2);\n cursor: pointer;\n vertical-align: middle;\n padding: 1px 8px;\n border-radius: 12px;\n padding: 5px 10px;\n display: flex;\n align-items: center;\n background: color-mix(\n in srgb,\n var(--scalar-background-2),\n var(--scalar-background-1)\n );\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","_renderSlot"],"mappings":";;;;;;;;0BAKEA,mBAMM,OAAA;AAAA,QALJ,uBAAM,eAAa;AAAA,mBACM,QAAA;AAAA,QAAA;;QAGzBC,WAAQ,KAAA,QAAA,WAAA,CAAA,GAAA,QAAA,IAAA;AAAA,MAAA;;;;"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
error: Error;
|
|
3
|
+
};
|
|
4
|
+
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>;
|
|
5
|
+
export default _default;
|
|
6
|
+
//# sourceMappingURL=ErrorMessage.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ErrorMessage.vue.d.ts","sourceRoot":"","sources":["../../src/components/ErrorMessage.vue"],"names":[],"mappings":"AA4CA,KAAK,WAAW,GAAG;IAAE,KAAK,EAAE,KAAK,CAAA;CAAE,CAAC;;AA2DpC,wBAEG"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import _sfc_main from "./ErrorMessage.vue2.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const ErrorMessageMessage = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-72c04281"]]);
|
|
5
|
+
export {
|
|
6
|
+
ErrorMessageMessage as default
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=ErrorMessage.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ErrorMessage.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { defineComponent, computed, createElementBlock, openBlock, createVNode, createTextVNode, unref, toDisplayString } from "vue";
|
|
2
|
+
import { ScalarIconXCircle } from "@scalar/icons";
|
|
3
|
+
import { safeParseJson } from "../helpers.js";
|
|
4
|
+
const _hoisted_1 = { class: "error" };
|
|
5
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "ErrorMessage",
|
|
7
|
+
props: {
|
|
8
|
+
error: {}
|
|
9
|
+
},
|
|
10
|
+
setup(__props) {
|
|
11
|
+
const message = computed(() => {
|
|
12
|
+
const parsedError = safeParseJson(__props.error.message);
|
|
13
|
+
if (!parsedError) return __props.error.message;
|
|
14
|
+
if ("message" in parsedError) return parsedError.message;
|
|
15
|
+
return "Something went wrong. Please try again.";
|
|
16
|
+
});
|
|
17
|
+
return (_ctx, _cache) => {
|
|
18
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
19
|
+
createVNode(unref(ScalarIconXCircle)),
|
|
20
|
+
createTextVNode(" " + toDisplayString(message.value), 1)
|
|
21
|
+
]);
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
export {
|
|
26
|
+
_sfc_main as default
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=ErrorMessage.vue2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ErrorMessage.vue2.js","sources":["../../src/components/ErrorMessage.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed } from 'vue'\n\nimport { ScalarIconXCircle } from '@scalar/icons'\n\nimport { safeParseJson } from '@/helpers'\n\nconst { error } = defineProps<{ error: Error }>()\n\nconst message = computed(() => {\n const parsedError = safeParseJson(error.message)\n if (!parsedError) return error.message\n\n if ('message' in parsedError) return parsedError.message\n\n return 'Something went wrong. Please try again.'\n})\n</script>\n\n<template>\n <div class=\"error\"><ScalarIconXCircle /> {{ message }}</div>\n</template>\n\n<style scoped>\n.error {\n display: flex;\n align-items: center;\n gap: 10px;\n padding: 20px;\n border: 1px solid var(--scalar-color-red);\n border-radius: 16px;\n background: color-mix(in srgb, var(--scalar-color-red), #000000 65%);\n margin-bottom: 10px;\n font-weight: var(--scalar-semibold);\n}\n</style>\n"],"names":["_openBlock","_createElementBlock","_createVNode","_unref","_createTextVNode"],"mappings":";;;;;;;;;;AASA,UAAM,UAAU,SAAS,MAAM;AAC7B,YAAM,cAAc,cAAc,QAAA,MAAM,OAAO;AAC/C,UAAI,CAAC,YAAa,QAAO,QAAA,MAAM;AAE/B,UAAI,aAAa,YAAa,QAAO,YAAY;AAEjD,aAAO;AAAA,IACT,CAAC;;AAIC,aAAAA,UAAA,GAAAC,mBAA4D,OAA5D,YAA4D;AAAA,QAAzCC,YAAqBC,MAAA,iBAAA,CAAA;AAAA,QAAAC,gBAAA,sBAAI,QAAA,KAAO,GAAA,CAAA;AAAA,MAAA;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoadingMiniOpenAPIDoc.vue.d.ts","sourceRoot":"","sources":["../../src/components/LoadingMiniOpenAPIDoc.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"LoadingMiniOpenAPIDoc.vue.d.ts","sourceRoot":"","sources":["../../src/components/LoadingMiniOpenAPIDoc.vue"],"names":[],"mappings":";AAwGA,wBACG"}
|
|
@@ -0,0 +1,16 @@
|
|
|
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" }, null, -1),
|
|
9
|
+
createTextVNode(" Retrieving relevant information... ", -1)
|
|
10
|
+
])]);
|
|
11
|
+
}
|
|
12
|
+
const LoadingMiniOpenAPIDoc = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-653c66b3"]]);
|
|
13
|
+
export {
|
|
14
|
+
LoadingMiniOpenAPIDoc as default
|
|
15
|
+
};
|
|
16
|
+
//# 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\"></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.5px;\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: 6px;\n color: var(--scalar-color-2);\n font-weight: var(--scalar-semibold);\n font-size: var(--scalar-font-size-3);\n margin-bottom: 10px;\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,mBAGM,OAHN,YAGM,CAAA,GAAA,OAAA,CAAA,MAAA,OAAA,CAAA,IAAA;AAAA,IAFJC,mBAA4B,OAAA,EAAvB,OAAM,WAAU,GAAA,MAAA,EAAA;AAAA,oBAAO,wCAE9B,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=LoadingOpenAPISpecsSummary.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LoadingOpenAPISpecsSummary.vue.d.ts","sourceRoot":"","sources":["../../src/components/LoadingOpenAPISpecsSummary.vue"],"names":[],"mappings":";AAwGA,wBACG"}
|
|
@@ -0,0 +1,16 @@
|
|
|
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: "loadingApiSpecs" };
|
|
6
|
+
function _sfc_render(_ctx, _cache) {
|
|
7
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [..._cache[0] || (_cache[0] = [
|
|
8
|
+
createElementVNode("div", { class: "playIcon" }, null, -1),
|
|
9
|
+
createTextVNode(" Loading APIs... ", -1)
|
|
10
|
+
])]);
|
|
11
|
+
}
|
|
12
|
+
const LoadingOpenAPISpecsSummary = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-9d9724d2"]]);
|
|
13
|
+
export {
|
|
14
|
+
LoadingOpenAPISpecsSummary as default
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=LoadingOpenAPISpecsSummary.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LoadingOpenAPISpecsSummary.vue.js","sources":["../../src/components/LoadingOpenAPISpecsSummary.vue"],"sourcesContent":["<template>\n <div class=\"loadingApiSpecs\">\n <div class=\"playIcon\"></div>\n Loading APIs...\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.5px;\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.loadingApiSpecs {\n display: flex;\n align-items: center;\n gap: 6px;\n color: var(--scalar-color-2);\n font-weight: var(--scalar-semibold);\n font-size: var(--scalar-font-size-3);\n margin-bottom: 10px;\n}\n\n.loadingApiSpecs 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,kBAAiB;;AAA5B,SAAAA,UAAA,GAAAC,mBAGM,OAHN,YAGM,CAAA,GAAA,OAAA,CAAA,MAAA,OAAA,CAAA,IAAA;AAAA,IAFJC,mBAA4B,OAAA,EAAvB,OAAM,WAAU,GAAA,MAAA,EAAA;AAAA,oBAAO,qBAE9B,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=RequestApproved.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RequestApproved.vue.d.ts","sourceRoot":"","sources":["../../src/components/RequestApproved.vue"],"names":[],"mappings":";AAkIA,wBACG"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { createElementBlock, openBlock, createStaticVNode } 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: "requestApproved" };
|
|
6
|
+
function _sfc_render(_ctx, _cache) {
|
|
7
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [..._cache[0] || (_cache[0] = [
|
|
8
|
+
createStaticVNode('<svg fill="none" height="16" viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg" data-v-9a5eeb3f><rect height="14.25" rx="7.125" width="14.25" x="0.875" y="0.875" data-v-9a5eeb3f></rect><rect height="14.25" rx="7.125" stroke="var(--scalar-color-green)" stroke-width="1.75" width="14.25" x="0.875" y="0.875" data-v-9a5eeb3f></rect><g clip-path="url(#clip0_74_840)" data-v-9a5eeb3f><path d="M11.6037 6.841L7.59117 10.8535C7.49742 10.9472 7.37029 10.9998 7.23774 10.9998C7.10519 10.9998 6.97806 10.9472 6.8843 10.8535L4.64617 8.6035C4.55257 8.50975 4.5 8.38269 4.5 8.25022C4.5 8.11774 4.55257 7.99068 4.64617 7.89694L5.27117 7.27194C5.36488 7.17862 5.49174 7.12623 5.62399 7.12623C5.75623 7.12623 5.88309 7.17862 5.9768 7.27194L7.25024 8.50694L10.274 5.52037C10.3677 5.42696 10.4946 5.37451 10.627 5.37451C10.7593 5.37451 10.8862 5.42696 10.9799 5.52037L11.6034 6.131C11.6502 6.17746 11.6875 6.23274 11.7129 6.29366C11.7383 6.35458 11.7514 6.41993 11.7514 6.48593C11.7514 6.55194 11.7384 6.6173 11.713 6.67824C11.6877 6.73918 11.6505 6.7945 11.6037 6.841Z" fill="var(--scalar-color-green)" data-v-9a5eeb3f></path></g><defs data-v-9a5eeb3f><clipPath id="clip0_74_840" data-v-9a5eeb3f><rect height="8" rx="4" width="8" x="4" y="4" data-v-9a5eeb3f></rect></clipPath></defs></svg> Request Approved ', 2)
|
|
9
|
+
])]);
|
|
10
|
+
}
|
|
11
|
+
const RequestApproved = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-9a5eeb3f"]]);
|
|
12
|
+
export {
|
|
13
|
+
RequestApproved as default
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=RequestApproved.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RequestApproved.vue.js","sources":["../../src/components/RequestApproved.vue"],"sourcesContent":["<template>\n <div class=\"requestApproved\">\n <svg\n fill=\"none\"\n height=\"16\"\n viewBox=\"0 0 16 16\"\n width=\"16\"\n xmlns=\"http://www.w3.org/2000/svg\">\n <rect\n height=\"14.25\"\n rx=\"7.125\"\n width=\"14.25\"\n x=\"0.875\"\n y=\"0.875\" />\n <rect\n height=\"14.25\"\n rx=\"7.125\"\n stroke=\"var(--scalar-color-green)\"\n stroke-width=\"1.75\"\n width=\"14.25\"\n x=\"0.875\"\n y=\"0.875\" />\n <g clip-path=\"url(#clip0_74_840)\">\n <path\n d=\"M11.6037 6.841L7.59117 10.8535C7.49742 10.9472 7.37029 10.9998 7.23774 10.9998C7.10519 10.9998 6.97806 10.9472 6.8843 10.8535L4.64617 8.6035C4.55257 8.50975 4.5 8.38269 4.5 8.25022C4.5 8.11774 4.55257 7.99068 4.64617 7.89694L5.27117 7.27194C5.36488 7.17862 5.49174 7.12623 5.62399 7.12623C5.75623 7.12623 5.88309 7.17862 5.9768 7.27194L7.25024 8.50694L10.274 5.52037C10.3677 5.42696 10.4946 5.37451 10.627 5.37451C10.7593 5.37451 10.8862 5.42696 10.9799 5.52037L11.6034 6.131C11.6502 6.17746 11.6875 6.23274 11.7129 6.29366C11.7383 6.35458 11.7514 6.41993 11.7514 6.48593C11.7514 6.55194 11.7384 6.6173 11.713 6.67824C11.6877 6.73918 11.6505 6.7945 11.6037 6.841Z\"\n fill=\"var(--scalar-color-green)\" />\n </g>\n <defs>\n <clipPath id=\"clip0_74_840\">\n <rect\n height=\"8\"\n rx=\"4\"\n width=\"8\"\n x=\"4\"\n y=\"4\" />\n </clipPath>\n </defs>\n </svg>\n Request Approved\n </div>\n</template>\n\n<style scoped>\n.requestApproved {\n display: flex;\n align-items: center;\n gap: 6px;\n color: var(--scalar-color-green);\n font-weight: var(--scalar-semibold);\n min-height: 28px;\n font-size: var(--scalar-font-size-3);\n position: relative;\n}\n</style>\n"],"names":["_openBlock","_createElementBlock"],"mappings":";;;;AACO,MAAA,aAAA,EAAA,OAAM,kBAAiB;;AAA5B,SAAAA,UAAA,GAAAC,mBAsCM,OAtCN,YAsCM,CAAA,GAAA,OAAA,CAAA,MAAA,OAAA,CAAA,IAAA;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=RequestFailed.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RequestFailed.vue.d.ts","sourceRoot":"","sources":["../../src/components/RequestFailed.vue"],"names":[],"mappings":";AAsFA,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: "requestFailed" };
|
|
6
|
+
function _sfc_render(_ctx, _cache) {
|
|
7
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [..._cache[0] || (_cache[0] = [
|
|
8
|
+
createElementVNode("i", { class: "requestFailedIcon" }, [
|
|
9
|
+
createElementVNode("svg", {
|
|
10
|
+
fill: "currentColor",
|
|
11
|
+
height: "100%",
|
|
12
|
+
viewBox: "0 0 256 256",
|
|
13
|
+
width: "100%",
|
|
14
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
15
|
+
}, [
|
|
16
|
+
createElementVNode("path", { d: "M216,48V208a16,16,0,0,1-16,16H160a16,16,0,0,1-16-16V48a16,16,0,0,1,16-16h40A16,16,0,0,1,216,48ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Z" })
|
|
17
|
+
])
|
|
18
|
+
], -1),
|
|
19
|
+
createTextVNode(" Request Failed ", -1)
|
|
20
|
+
])]);
|
|
21
|
+
}
|
|
22
|
+
const RequestFailed = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-a86f2d82"]]);
|
|
23
|
+
export {
|
|
24
|
+
RequestFailed as default
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=RequestFailed.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RequestFailed.vue.js","sources":["../../src/components/RequestFailed.vue"],"sourcesContent":["<template>\n <div class=\"requestFailed\">\n <i class=\"requestFailedIcon\">\n <svg\n fill=\"currentColor\"\n height=\"100%\"\n viewBox=\"0 0 256 256\"\n width=\"100%\"\n xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M216,48V208a16,16,0,0,1-16,16H160a16,16,0,0,1-16-16V48a16,16,0,0,1,16-16h40A16,16,0,0,1,216,48ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Z\"></path>\n </svg>\n </i>\n Request Failed\n </div>\n</template>\n\n<style scoped>\n.requestFailed {\n display: flex;\n align-items: center;\n gap: 6px;\n color: var(--scalar-color-red);\n font-weight: var(--scalar-semibold);\n min-height: 28px;\n font-size: var(--scalar-font-size-3);\n position: relative;\n}\n.requestFailedIcon {\n box-shadow: inset 0 0 0 1.5px currentColor;\n padding: 4px;\n padding: 4px;\n width: 16px;\n height: 16px;\n border-radius: 50%;\n}\n</style>\n"],"names":["_openBlock","_createElementBlock","_createElementVNode"],"mappings":";;;;AACO,MAAA,aAAA,EAAA,OAAM,gBAAe;;AAA1B,SAAAA,UAAA,GAAAC,mBAaM,OAbN,YAaM,CAAA,GAAA,OAAA,CAAA,MAAA,OAAA,CAAA,IAAA;AAAA,IAZJC,mBAUI,KAAA,EAVD,OAAM,oBAAmB,GAAA;AAAA,MAC1BA,mBAQM,OAAA;AAAA,QAPJ,MAAK;AAAA,QACL,QAAO;AAAA,QACP,SAAQ;AAAA,QACR,OAAM;AAAA,QACN,OAAM;AAAA;QACNA,mBACyM,QAAA,EAAvM,GAAE,8LAA6L,CAAA;AAAA;;oBAEjM,oBAEN,EAAA;AAAA;;;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type DeepPartial } from 'ai';
|
|
2
|
+
import { type ExecuteRequestToolInput, type ExecuteRequestToolOutput } from '@scalar-org/entities/agent';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
request?: ExecuteRequestToolInput | DeepPartial<ExecuteRequestToolInput>;
|
|
5
|
+
response?: ExecuteRequestToolOutput;
|
|
6
|
+
state: 'requiresApproval' | 'sendingRequest' | 'requestSucceeded' | 'requestFailed' | 'approved' | 'rejected';
|
|
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=RequestPreview.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RequestPreview.vue.d.ts","sourceRoot":"","sources":["../../src/components/RequestPreview.vue"],"names":[],"mappings":"AAgRA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,IAAI,CAAA;AAKrC,OAAO,EACL,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC9B,MAAM,4BAA4B,CAAA;AAanC,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,EAAE,uBAAuB,GAAG,WAAW,CAAC,uBAAuB,CAAC,CAAA;IACxE,QAAQ,CAAC,EAAE,wBAAwB,CAAA;IACnC,KAAK,EACD,kBAAkB,GAClB,gBAAgB,GAChB,kBAAkB,GAClB,eAAe,GACf,UAAU,GACV,UAAU,CAAA;CACf,CAAC;;AAmYF,wBAEG"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import _sfc_main from "./RequestPreview.vue2.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
/* empty css */
|
|
4
|
+
import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const RequestPreview = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4495faad"]]);
|
|
6
|
+
export {
|
|
7
|
+
RequestPreview as default
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=RequestPreview.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RequestPreview.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { defineComponent, computed, ref, createElementBlock, openBlock, normalizeClass, createBlock, createCommentVNode, createElementVNode, createVNode, unref } from "vue";
|
|
2
|
+
import { ScalarCodeBlock } from "@scalar/components";
|
|
3
|
+
import { ScalarIconCaretDown, ScalarIconCaretRight } from "@scalar/icons";
|
|
4
|
+
import AutosendPaused from "./AutosendPaused.vue.js";
|
|
5
|
+
import RequestApproved from "./RequestApproved.vue.js";
|
|
6
|
+
import RequestFailed from "./RequestFailed.vue.js";
|
|
7
|
+
import RequestRejected from "./RequestRejected.vue.js";
|
|
8
|
+
import RequestSuccess from "./RequestSuccess.vue.js";
|
|
9
|
+
import { getMediaTypeConfig } from "./ResponseBody/helpers/media-types.js";
|
|
10
|
+
import { processResponseBody } from "./ResponseBody/helpers/process-response-body.js";
|
|
11
|
+
import _sfc_main$2 from "./ResponseBody/ResponseBody.vue.js";
|
|
12
|
+
import _sfc_main$1 from "./ResponseBody/ResponseBodyToggle.vue.js";
|
|
13
|
+
import SendingRequest from "./SendingRequest.vue.js";
|
|
14
|
+
const _hoisted_1 = {
|
|
15
|
+
key: 1,
|
|
16
|
+
class: "autosendContainer"
|
|
17
|
+
};
|
|
18
|
+
const _hoisted_2 = { class: "requestContent" };
|
|
19
|
+
const _hoisted_3 = { class: "requestContentInner" };
|
|
20
|
+
const _hoisted_4 = {
|
|
21
|
+
key: 0,
|
|
22
|
+
class: "code"
|
|
23
|
+
};
|
|
24
|
+
const _hoisted_5 = {
|
|
25
|
+
key: 1,
|
|
26
|
+
class: "code"
|
|
27
|
+
};
|
|
28
|
+
const _hoisted_6 = { class: "requestHeaderContainer" };
|
|
29
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
30
|
+
__name: "RequestPreview",
|
|
31
|
+
props: {
|
|
32
|
+
request: {},
|
|
33
|
+
response: {},
|
|
34
|
+
state: {}
|
|
35
|
+
},
|
|
36
|
+
setup(__props) {
|
|
37
|
+
const responseData = computed(() => {
|
|
38
|
+
if (__props.response?.structuredContent.success) {
|
|
39
|
+
return {
|
|
40
|
+
data: __props.response.structuredContent.data.responseBody,
|
|
41
|
+
headers: __props.response.structuredContent.data.headers
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
if (__props.response?.structuredContent.error?.code === "REQUEST_NOT_OK") {
|
|
45
|
+
return {
|
|
46
|
+
data: __props.response.structuredContent.error.detail.responseBody,
|
|
47
|
+
headers: __props.response.structuredContent.error.detail.headers
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
return void 0;
|
|
51
|
+
});
|
|
52
|
+
const showRequestToggle = ref(false);
|
|
53
|
+
const shouldShowRequest = computed(() => {
|
|
54
|
+
if (__props.state === "requestFailed" || __props.state === "requiresApproval") {
|
|
55
|
+
return true;
|
|
56
|
+
}
|
|
57
|
+
return showRequestToggle.value;
|
|
58
|
+
});
|
|
59
|
+
const responseBody = computed(
|
|
60
|
+
() => processResponseBody({
|
|
61
|
+
data: responseData.value?.data,
|
|
62
|
+
headers: responseData.value?.headers
|
|
63
|
+
})
|
|
64
|
+
);
|
|
65
|
+
const mediaConfig = computed(
|
|
66
|
+
() => getMediaTypeConfig(responseBody.value.mimeType?.essence ?? "")
|
|
67
|
+
);
|
|
68
|
+
const displayToggle = ref();
|
|
69
|
+
function toggleDisplay(mode) {
|
|
70
|
+
displayToggle.value = mode;
|
|
71
|
+
}
|
|
72
|
+
const displayMode = computed(() => {
|
|
73
|
+
if (displayToggle.value) return displayToggle.value;
|
|
74
|
+
if (mediaConfig.value?.raw && !mediaConfig.value.preview) return "raw";
|
|
75
|
+
if (mediaConfig.value?.preview) return "preview";
|
|
76
|
+
return "raw";
|
|
77
|
+
});
|
|
78
|
+
return (_ctx, _cache) => {
|
|
79
|
+
return openBlock(), createElementBlock("div", {
|
|
80
|
+
class: normalizeClass(["requestPreview", {
|
|
81
|
+
open: shouldShowRequest.value,
|
|
82
|
+
succeeded: __props.state === "requestSucceeded"
|
|
83
|
+
}])
|
|
84
|
+
}, [
|
|
85
|
+
__props.state === "approved" ? (openBlock(), createBlock(RequestApproved, { key: 0 })) : __props.state === "requiresApproval" ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
86
|
+
createVNode(AutosendPaused)
|
|
87
|
+
])) : __props.state === "sendingRequest" ? (openBlock(), createElementBlock("button", {
|
|
88
|
+
key: 2,
|
|
89
|
+
class: "toggleButton",
|
|
90
|
+
type: "button",
|
|
91
|
+
onClick: _cache[0] || (_cache[0] = ($event) => showRequestToggle.value = !showRequestToggle.value)
|
|
92
|
+
}, [
|
|
93
|
+
createVNode(SendingRequest),
|
|
94
|
+
shouldShowRequest.value ? (openBlock(), createBlock(unref(ScalarIconCaretDown), { key: 0 })) : (openBlock(), createBlock(unref(ScalarIconCaretRight), { key: 1 }))
|
|
95
|
+
])) : __props.state === "requestSucceeded" ? (openBlock(), createElementBlock("button", {
|
|
96
|
+
key: 3,
|
|
97
|
+
class: "toggleButton",
|
|
98
|
+
type: "button",
|
|
99
|
+
onClick: _cache[1] || (_cache[1] = ($event) => showRequestToggle.value = !showRequestToggle.value)
|
|
100
|
+
}, [
|
|
101
|
+
createVNode(RequestSuccess),
|
|
102
|
+
shouldShowRequest.value ? (openBlock(), createBlock(unref(ScalarIconCaretDown), { key: 0 })) : (openBlock(), createBlock(unref(ScalarIconCaretRight), { key: 1 }))
|
|
103
|
+
])) : __props.state === "rejected" ? (openBlock(), createElementBlock("button", {
|
|
104
|
+
key: 4,
|
|
105
|
+
class: "toggleButton",
|
|
106
|
+
type: "button",
|
|
107
|
+
onClick: _cache[2] || (_cache[2] = ($event) => showRequestToggle.value = !showRequestToggle.value)
|
|
108
|
+
}, [
|
|
109
|
+
createVNode(RequestRejected),
|
|
110
|
+
shouldShowRequest.value ? (openBlock(), createBlock(unref(ScalarIconCaretDown), { key: 0 })) : (openBlock(), createBlock(unref(ScalarIconCaretRight), { key: 1 }))
|
|
111
|
+
])) : __props.state === "requestFailed" ? (openBlock(), createBlock(RequestFailed, { key: 5 })) : createCommentVNode("", true),
|
|
112
|
+
createElementVNode("div", _hoisted_2, [
|
|
113
|
+
createElementVNode("div", _hoisted_3, [
|
|
114
|
+
__props.request ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
115
|
+
_cache[4] || (_cache[4] = createElementVNode("div", { class: "requestHeaderContainer" }, [
|
|
116
|
+
createElementVNode("h1", null, "Request")
|
|
117
|
+
], -1)),
|
|
118
|
+
createVNode(unref(ScalarCodeBlock), {
|
|
119
|
+
class: "codeBlock",
|
|
120
|
+
content: JSON.stringify(__props.request, null, 2),
|
|
121
|
+
lang: "json"
|
|
122
|
+
}, null, 8, ["content"])
|
|
123
|
+
])) : createCommentVNode("", true),
|
|
124
|
+
responseData.value ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
125
|
+
createElementVNode("div", _hoisted_6, [
|
|
126
|
+
_cache[5] || (_cache[5] = createElementVNode("h1", null, "Response", -1)),
|
|
127
|
+
mediaConfig.value?.raw && mediaConfig.value.preview ? (openBlock(), createBlock(_sfc_main$1, {
|
|
128
|
+
key: 0,
|
|
129
|
+
modelValue: displayMode.value,
|
|
130
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => displayMode.value = $event),
|
|
131
|
+
onToggle: toggleDisplay
|
|
132
|
+
}, null, 8, ["modelValue"])) : createCommentVNode("", true)
|
|
133
|
+
]),
|
|
134
|
+
createVNode(_sfc_main$2, {
|
|
135
|
+
data: responseData.value.data,
|
|
136
|
+
display: displayMode.value,
|
|
137
|
+
mediaConfig: mediaConfig.value,
|
|
138
|
+
responseBody: responseBody.value
|
|
139
|
+
}, null, 8, ["data", "display", "mediaConfig", "responseBody"])
|
|
140
|
+
])) : createCommentVNode("", true)
|
|
141
|
+
])
|
|
142
|
+
])
|
|
143
|
+
], 2);
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
});
|
|
147
|
+
export {
|
|
148
|
+
_sfc_main as default
|
|
149
|
+
};
|
|
150
|
+
//# sourceMappingURL=RequestPreview.vue2.js.map
|