@scalar/api-client 2.0.63 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +63 -0
- package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBar.vue.js +2 -2
- package/dist/components/AddressBar/AddressBar.vue2.js +64 -62
- package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBarHistory.vue.js +77 -69
- package/dist/components/AddressBar/AddressBarServer.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBarServer.vue.js +121 -0
- package/dist/components/AddressBar/AddressBarServer.vue2.js +4 -0
- package/dist/components/AddressBar/AddressBarServerItem.vue.d.ts +22 -0
- package/dist/components/AddressBar/AddressBarServerItem.vue.d.ts.map +1 -0
- package/dist/components/AddressBar/AddressBarServerItem.vue.js +57 -0
- package/dist/components/AddressBar/AddressBarServerItem.vue2.js +4 -0
- package/dist/components/CodeInput/CodeInput.vue.d.ts +1 -6
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.js +2 -2
- package/dist/components/CodeInput/CodeInput.vue2.js +87 -82
- package/dist/components/CodeInput/codeVariableWidget.d.ts +4 -4
- package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -1
- package/dist/components/CodeInput/codeVariableWidget.js +70 -63
- package/dist/components/CommandPalette/CommandActionForm.vue.d.ts +33 -0
- package/dist/components/CommandPalette/CommandActionForm.vue.d.ts.map +1 -0
- package/dist/components/CommandPalette/CommandActionForm.vue.js +41 -0
- package/dist/components/CommandPalette/CommandActionForm.vue2.js +4 -0
- package/dist/components/CommandPalette/CommandActionInput.vue.d.ts +20 -0
- package/dist/components/CommandPalette/CommandActionInput.vue.d.ts.map +1 -0
- package/dist/components/CommandPalette/CommandActionInput.vue.js +42 -0
- package/dist/components/CommandPalette/CommandActionInput.vue2.js +4 -0
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +33 -56
- package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteExample.vue.js +88 -109
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +56 -73
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts +21 -2
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +122 -133
- package/dist/components/CommandPalette/{CommandPaletteFolder.vue.d.ts → CommandPaletteServer.vue.d.ts} +1 -1
- package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts.map +1 -0
- package/dist/components/CommandPalette/CommandPaletteServer.vue.js +92 -0
- package/dist/components/CommandPalette/CommandPaletteServer.vue2.js +4 -0
- package/dist/components/CommandPalette/CommandPaletteTag.vue.d.ts +7 -0
- package/dist/components/CommandPalette/CommandPaletteTag.vue.d.ts.map +1 -0
- package/dist/components/CommandPalette/CommandPaletteTag.vue.js +87 -0
- package/dist/components/CommandPalette/CommandPaletteTag.vue2.js +4 -0
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js +33 -49
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +22 -3
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.js +3 -3
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +107 -101
- package/dist/components/ContextBar.vue.d.ts.map +1 -1
- package/dist/components/ContextBar.vue.js +2 -2
- package/dist/components/ContextBar.vue2.js +2 -2
- package/dist/components/DataTable/DataTable.vue.js +1 -1
- package/dist/components/DataTable/DataTableInput.vue.d.ts +1 -1
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInput.vue.js +2 -2
- package/dist/components/DataTable/DataTableInput.vue2.js +13 -13
- package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInputSelect.vue.js +39 -40
- package/dist/components/DataTable/index.js +12 -12
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +7 -7
- package/dist/components/Form/Form.vue.js +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +2 -2
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.js +2 -2
- package/dist/components/HttpMethod/HttpMethod.vue2.js +30 -30
- package/dist/components/HttpMethod/helpers.d.ts +4 -0
- package/dist/components/HttpMethod/helpers.d.ts.map +1 -0
- package/dist/components/HttpMethod/helpers.js +5 -0
- package/dist/components/HttpMethod/index.d.ts +1 -0
- package/dist/components/HttpMethod/index.d.ts.map +1 -1
- package/dist/components/HttpMethod/index.js +4 -2
- package/dist/components/Search/SearchModal.vue.d.ts.map +1 -1
- package/dist/components/Search/SearchModal.vue.js +2 -2
- package/dist/components/Search/SearchModal.vue2.js +29 -27
- package/dist/components/Search/useSearch.js +35 -35
- package/dist/components/SideNav/SideNavLink.vue.js +6 -6
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.js +14 -17
- package/dist/components/Sidebar/Actions/RenameSidebarListElement.vue.d.ts +22 -0
- package/dist/components/Sidebar/Actions/RenameSidebarListElement.vue.d.ts.map +1 -0
- package/dist/components/Sidebar/Actions/RenameSidebarListElement.vue.js +29 -0
- package/dist/components/Sidebar/Actions/RenameSidebarListElement.vue2.js +4 -0
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +1 -1
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +38 -35
- package/dist/components/Sidebar/Sidebar.vue.d.ts +2 -1
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +5 -54
- package/dist/components/Sidebar/Sidebar.vue2.js +59 -0
- package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarButton.vue.js +11 -11
- package/dist/components/Sidebar/index.js +2 -3
- package/dist/components/SubpageHeader.vue.d.ts.map +1 -1
- package/dist/components/SubpageHeader.vue.js +3 -3
- package/dist/components/SubpageHeader.vue2.js +3 -3
- package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNav.vue.js +2 -2
- package/dist/components/TopNav/TopNav.vue2.js +23 -23
- package/dist/components/TopNav/TopNavItem.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNavItem.vue.js +2 -2
- package/dist/components/TopNav/TopNavItem.vue2.js +21 -21
- package/dist/components/ViewLayout/ViewLayout.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayout.vue.js +7 -7
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +5 -5
- package/dist/components/ViewLayout/ViewLayoutContent.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutContent.vue.js +4 -4
- package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutSection.vue.js +6 -6
- package/dist/components/index.js +4 -5
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
- package/dist/layouts/App/ApiClientApp.vue.js +39 -53
- package/dist/layouts/App/create-api-client-app.d.ts +2058 -1941
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/App/create-api-client-app.js +12 -12
- package/dist/layouts/Modal/ApiClientModal.vue.js +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue2.js +6 -6
- package/dist/layouts/Modal/create-api-client-modal.d.ts +4590 -4356
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.js +18 -23
- package/dist/libs/create-client.d.ts +2086 -1972
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +85 -76
- package/dist/libs/environment-parser.d.ts +9 -0
- package/dist/libs/environment-parser.d.ts.map +1 -0
- package/dist/libs/environment-parser.js +17 -0
- package/dist/libs/errors.d.ts +21 -0
- package/dist/libs/errors.d.ts.map +1 -0
- package/dist/libs/errors.js +14 -0
- package/dist/libs/event-busses/command-palette-bus.d.ts +1 -1
- package/dist/libs/event-busses/command-palette-bus.d.ts.map +1 -1
- package/dist/libs/event-busses/hot-keys-bus.d.ts +4 -4
- package/dist/libs/event-busses/hot-keys-bus.d.ts.map +1 -1
- package/dist/libs/event-busses/hot-keys-bus.js +17 -19
- package/dist/libs/index.d.ts +5 -2
- package/dist/libs/index.d.ts.map +1 -1
- package/dist/libs/index.js +31 -24
- package/dist/libs/local-storage.d.ts +3 -3
- package/dist/libs/local-storage.d.ts.map +1 -1
- package/dist/libs/local-storage.js +24 -12
- package/dist/libs/normalize-headers.d.ts +14 -0
- package/dist/libs/normalize-headers.d.ts.map +1 -0
- package/dist/libs/normalize-headers.js +32 -0
- package/dist/libs/send-request.d.ts +28 -0
- package/dist/libs/send-request.d.ts.map +1 -0
- package/dist/libs/send-request.js +186 -0
- package/dist/libs/string-template.d.ts +19 -0
- package/dist/libs/string-template.d.ts.map +1 -0
- package/dist/libs/string-template.js +30 -0
- package/dist/router.d.ts +5 -0
- package/dist/router.d.ts.map +1 -1
- package/dist/router.js +36 -27
- package/dist/store/collections.d.ts +705 -0
- package/dist/store/collections.d.ts.map +1 -0
- package/dist/store/collections.js +63 -0
- package/dist/store/cookies.d.ts +135 -0
- package/dist/store/cookies.d.ts.map +1 -0
- package/dist/store/cookies.js +29 -0
- package/dist/store/environment.d.ts +80 -0
- package/dist/store/environment.d.ts.map +1 -0
- package/dist/store/environment.js +39 -0
- package/dist/store/import-spec.d.ts +8 -0
- package/dist/store/import-spec.d.ts.map +1 -0
- package/dist/store/import-spec.js +45 -0
- package/dist/store/index.d.ts +1 -1
- package/dist/store/index.d.ts.map +1 -1
- package/dist/store/index.js +1 -1
- package/dist/store/request-example.d.ts +1111 -0
- package/dist/store/request-example.d.ts.map +1 -0
- package/dist/store/request-example.js +47 -0
- package/dist/store/requests.d.ts +371 -0
- package/dist/store/requests.d.ts.map +1 -0
- package/dist/store/requests.js +107 -0
- package/dist/store/router-params.d.ts +15 -0
- package/dist/store/router-params.d.ts.map +1 -0
- package/dist/store/router-params.js +21 -0
- package/dist/store/security-schemes.d.ts +616 -0
- package/dist/store/security-schemes.d.ts.map +1 -0
- package/dist/store/security-schemes.js +68 -0
- package/dist/store/servers.d.ts +99 -0
- package/dist/store/servers.d.ts.map +1 -0
- package/dist/store/servers.js +46 -0
- package/dist/store/store-context.d.ts +29 -0
- package/dist/store/store-context.d.ts.map +1 -0
- package/dist/store/store.d.ts +7504 -0
- package/dist/store/store.d.ts.map +1 -0
- package/dist/store/store.js +200 -0
- package/dist/store/tags.d.ts +169 -0
- package/dist/store/tags.d.ts.map +1 -0
- package/dist/store/tags.js +57 -0
- package/dist/store/workspace.d.ts +93 -7150
- package/dist/store/workspace.d.ts.map +1 -1
- package/dist/store/workspace.js +49 -543
- package/dist/style.css +1 -1
- package/dist/views/Cookies/CookieForm.vue.js +2 -2
- package/dist/views/Cookies/CookieRaw.vue.d.ts.map +1 -1
- package/dist/views/Cookies/CookieRaw.vue.js +10 -10
- package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +29 -32
- package/dist/views/Environment/Environment.vue2.js +31 -33
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts +11 -5
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +79 -59
- package/dist/views/Request/Request.vue.d.ts.map +1 -1
- package/dist/views/Request/Request.vue.js +2 -2
- package/dist/views/Request/Request.vue2.js +87 -319
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.d.ts +36 -0
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.d.ts.map +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +59 -0
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue2.js +4 -0
- package/dist/views/Request/{components → RequestSection/RequestAuth}/OAuth2.vue.d.ts +3 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +216 -0
- package/dist/views/Request/{components → RequestSection/RequestAuth}/OAuthScopesInput.vue.d.ts +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts.map +1 -0
- package/dist/views/Request/{components → RequestSection/RequestAuth}/OAuthScopesInput.vue.js +3 -3
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +7 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +183 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthModal.vue.d.ts +30 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthModal.vue.d.ts.map +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.d.ts +3 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.d.ts.map +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.js +140 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue2.js +4 -0
- package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.js +167 -186
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestParams.vue.js +49 -49
- package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestPathParams.vue.js +26 -22
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.js +103 -102
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +5 -5
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +1 -1
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebar.vue.d.ts +30 -0
- package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -0
- package/dist/views/Request/RequestSidebar.vue.js +7 -0
- package/dist/views/Request/RequestSidebar.vue2.js +179 -0
- package/dist/views/Request/RequestSidebarItem.vue.d.ts +6 -7
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.js +1 -1
- package/dist/views/Request/RequestSidebarItem.vue2.js +283 -254
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts +3 -5
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue.js +2 -2
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +9 -7
- package/dist/views/Request/RequestSubpageHeader.vue.d.ts +24 -0
- package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -0
- package/dist/views/Request/RequestSubpageHeader.vue.js +7 -0
- package/dist/views/Request/RequestSubpageHeader.vue2.js +48 -0
- package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBody.vue.js +21 -21
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.js +3 -3
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue2.js +17 -16
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +37 -30
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.d.ts +1 -1
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +2 -2
- package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +69 -90
- package/dist/views/Request/components/index.d.ts +0 -1
- package/dist/views/Request/components/index.d.ts.map +1 -1
- package/dist/views/Request/components/index.js +2 -4
- package/dist/views/Request/consts/new-auth-options.d.ts +11 -1
- package/dist/views/Request/consts/new-auth-options.d.ts.map +1 -1
- package/dist/views/Request/consts/new-auth-options.js +17 -7
- package/dist/views/Request/handle-drag.d.ts +8 -0
- package/dist/views/Request/handle-drag.d.ts.map +1 -0
- package/dist/views/Request/handle-drag.js +56 -0
- package/dist/views/Request/libs/auth.d.ts +35 -0
- package/dist/views/Request/libs/auth.d.ts.map +1 -0
- package/dist/views/Request/libs/auth.js +14 -0
- package/dist/views/Request/libs/index.d.ts +1 -0
- package/dist/views/Request/libs/index.d.ts.map +1 -1
- package/dist/views/Request/libs/index.js +7 -3
- package/dist/views/Request/libs/oauth2.d.ts +12 -3
- package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
- package/dist/views/Request/libs/oauth2.js +42 -27
- package/dist/views/Servers/ServerForm.vue.js +22 -22
- package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
- package/dist/views/Servers/Servers.vue2.js +18 -16
- package/package.json +11 -11
- package/dist/components/CodeInput/codeDropdownWidget.d.ts +0 -32
- package/dist/components/CodeInput/codeDropdownWidget.d.ts.map +0 -1
- package/dist/components/CodeInput/codeDropdownWidget.js +0 -121
- package/dist/components/CommandPalette/CommandPaletteFolder.vue.d.ts.map +0 -1
- package/dist/components/CommandPalette/CommandPaletteFolder.vue.js +0 -106
- package/dist/components/CommandPalette/CommandPaletteFolder.vue2.js +0 -4
- package/dist/components/Sidebar/Sidebar.vue3.js +0 -5
- package/dist/errors.d.ts +0 -5
- package/dist/errors.d.ts.map +0 -1
- package/dist/errors.js +0 -7
- package/dist/libs/normalizeHeaders.d.ts +0 -11
- package/dist/libs/normalizeHeaders.d.ts.map +0 -1
- package/dist/libs/normalizeHeaders.js +0 -25
- package/dist/libs/pathParams.d.ts +0 -10
- package/dist/libs/pathParams.d.ts.map +0 -1
- package/dist/libs/pathParams.js +0 -36
- package/dist/libs/sendRequest.d.ts +0 -14
- package/dist/libs/sendRequest.d.ts.map +0 -1
- package/dist/libs/sendRequest.js +0 -163
- package/dist/views/Request/RequestSection/RequestAuth.vue.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/RequestAuth.vue.js +0 -7
- package/dist/views/Request/RequestSection/RequestAuth.vue2.js +0 -351
- package/dist/views/Request/components/OAuth2.vue.d.ts.map +0 -1
- package/dist/views/Request/components/OAuth2.vue.js +0 -208
- package/dist/views/Request/components/OAuthScopesInput.vue.d.ts.map +0 -1
- /package/dist/views/Request/{components → RequestSection/RequestAuth}/OAuth2.vue2.js +0 -0
- /package/dist/views/Request/{components → RequestSection/RequestAuth}/OAuthScopesInput.vue2.js +0 -0
- /package/dist/views/Request/RequestSection/{RequestAuth.vue.d.ts → RequestAuth/RequestAuth.vue.d.ts} +0 -0
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import { defineComponent as A, watch as j, onMounted as G, onBeforeUnmount as J, withDirectives as Q, openBlock as a, createBlock as l, unref as e, normalizeClass as m, createSlots as X, withCtx as r, createElementVNode as c, createVNode as d, isRef as Y, withKeys as f, withModifiers as u, createElementBlock as k, Fragment as y, renderList as C, createTextVNode as D, toDisplayString as Z, createCommentVNode as _, vShow as ee } from "vue";
|
|
2
|
+
import te from "../../components/HttpMethod/HttpMethod.vue.js";
|
|
3
|
+
import { useSearch as oe } from "../../components/Search/useSearch.js";
|
|
4
|
+
import se from "../../components/Sidebar/SidebarButton.vue.js";
|
|
5
|
+
import { dragHandlerFactory as re } from "./handle-drag.js";
|
|
6
|
+
import { ScalarSearchInput as ae, ScalarSearchResultList as ie, ScalarSearchResultItem as ne, ScalarIcon as I } from "@scalar/components";
|
|
7
|
+
import le from "./RequestSidebarItem.vue.js";
|
|
8
|
+
import de from "../../components/Sidebar/Sidebar.vue.js";
|
|
9
|
+
import ue from "./components/WorkspaceDropdown.vue.js";
|
|
10
|
+
import { useSidebar as pe } from "../../hooks/useSidebar.js";
|
|
11
|
+
import { useWorkspace as me } from "../../store/store.js";
|
|
12
|
+
import { hotKeyBus as $ } from "../../libs/event-busses/hot-keys-bus.js";
|
|
13
|
+
import { commandPaletteBus as x } from "../../libs/event-busses/command-palette-bus.js";
|
|
14
|
+
const ce = { class: "search-button-fade sticky px-3 py-2.5 top-0 z-50" }, $e = /* @__PURE__ */ A({
|
|
15
|
+
__name: "RequestSidebar",
|
|
16
|
+
props: {
|
|
17
|
+
showSidebar: { type: Boolean },
|
|
18
|
+
isReadonly: { type: Boolean }
|
|
19
|
+
},
|
|
20
|
+
emits: ["update:showSidebar", "newTab"],
|
|
21
|
+
setup(B, { emit: V }) {
|
|
22
|
+
const F = B, h = V, b = me(), {
|
|
23
|
+
activeWorkspaceCollections: E,
|
|
24
|
+
activeRequest: q,
|
|
25
|
+
activeWorkspaceRequests: N,
|
|
26
|
+
findRequestParents: P
|
|
27
|
+
} = b, { handleDragEnd: T, isDroppable: z } = re(b), { collapsedSidebarFolders: K, setCollapsedSidebarFolder: U } = pe();
|
|
28
|
+
j(
|
|
29
|
+
q,
|
|
30
|
+
(s) => {
|
|
31
|
+
s && P(s).forEach(
|
|
32
|
+
(t) => U(t, !0)
|
|
33
|
+
);
|
|
34
|
+
},
|
|
35
|
+
{ immediate: !0 }
|
|
36
|
+
);
|
|
37
|
+
const {
|
|
38
|
+
searchText: p,
|
|
39
|
+
searchResultsWithPlaceholderResults: S,
|
|
40
|
+
selectedSearchResult: v,
|
|
41
|
+
onSearchResultClick: W,
|
|
42
|
+
fuseSearch: H,
|
|
43
|
+
searchInputRef: R,
|
|
44
|
+
searchResultRefs: M,
|
|
45
|
+
navigateSearchResults: w,
|
|
46
|
+
selectSearchResult: L
|
|
47
|
+
} = oe(), g = (s) => {
|
|
48
|
+
var t;
|
|
49
|
+
s.toggleSidebar && h("update:showSidebar", F.showSidebar), s.openCommandPalette && (s.openCommandPalette.preventDefault(), x.emit()), s.focusRequestSearch && ((t = R.value) == null || t.focus());
|
|
50
|
+
};
|
|
51
|
+
return G(() => {
|
|
52
|
+
$.on(g);
|
|
53
|
+
}), J(() => {
|
|
54
|
+
$.off(g);
|
|
55
|
+
}), (s, t) => Q((a(), l(e(de), {
|
|
56
|
+
class: m([s.showSidebar ? "sidebar-active-width" : ""]),
|
|
57
|
+
showSidebar: s.showSidebar,
|
|
58
|
+
"onUpdate:showSidebar": t[7] || (t[7] = (o) => s.$emit("update:showSidebar", o))
|
|
59
|
+
}, X({
|
|
60
|
+
content: r(() => [
|
|
61
|
+
c("div", ce, [
|
|
62
|
+
d(e(ae), {
|
|
63
|
+
ref_key: "searchInputRef",
|
|
64
|
+
ref: R,
|
|
65
|
+
modelValue: e(p),
|
|
66
|
+
"onUpdate:modelValue": t[0] || (t[0] = (o) => Y(p) ? p.value = o : null),
|
|
67
|
+
sidebar: "",
|
|
68
|
+
onInput: e(H),
|
|
69
|
+
onKeydown: [
|
|
70
|
+
t[1] || (t[1] = f(u((o) => e(w)("down"), ["stop"]), ["down"])),
|
|
71
|
+
t[2] || (t[2] = f(u((o) => e(L)(), ["stop"]), ["enter"])),
|
|
72
|
+
t[3] || (t[3] = f(u((o) => e(w)("up"), ["stop"]), ["up"]))
|
|
73
|
+
]
|
|
74
|
+
}, null, 8, ["modelValue", "onInput"])
|
|
75
|
+
]),
|
|
76
|
+
c("div", {
|
|
77
|
+
class: m(["custom-scroll flex flex-1 flex-col overflow-visible px-3 pb-3 pt-0", {
|
|
78
|
+
"pb-14": !s.isReadonly
|
|
79
|
+
}]),
|
|
80
|
+
onDragenter: t[5] || (t[5] = u(() => {
|
|
81
|
+
}, ["prevent"])),
|
|
82
|
+
onDragover: t[6] || (t[6] = u(() => {
|
|
83
|
+
}, ["prevent"]))
|
|
84
|
+
}, [
|
|
85
|
+
e(p) ? (a(), l(e(ie), {
|
|
86
|
+
key: 0,
|
|
87
|
+
class: "gap-px custom-scroll",
|
|
88
|
+
noResults: !e(S).length
|
|
89
|
+
}, {
|
|
90
|
+
default: r(() => [
|
|
91
|
+
(a(!0), k(y, null, C(e(S), (o, i) => (a(), l(e(ne), {
|
|
92
|
+
id: `#search-input-${o.item.id}`,
|
|
93
|
+
key: o.refIndex,
|
|
94
|
+
ref_for: !0,
|
|
95
|
+
ref: (n) => e(M)[i] = n,
|
|
96
|
+
active: e(v) === i,
|
|
97
|
+
class: "px-2",
|
|
98
|
+
onClick: (n) => e(W)(o),
|
|
99
|
+
onFocus: (n) => v.value = i
|
|
100
|
+
}, {
|
|
101
|
+
addon: r(() => [
|
|
102
|
+
d(te, {
|
|
103
|
+
class: "font-bold",
|
|
104
|
+
method: o.item.httpVerb ?? "get"
|
|
105
|
+
}, null, 8, ["method"])
|
|
106
|
+
]),
|
|
107
|
+
default: r(() => [
|
|
108
|
+
D(Z(o.item.title) + " ", 1)
|
|
109
|
+
]),
|
|
110
|
+
_: 2
|
|
111
|
+
}, 1032, ["id", "active", "onClick", "onFocus"]))), 128))
|
|
112
|
+
]),
|
|
113
|
+
_: 1
|
|
114
|
+
}, 8, ["noResults"])) : (a(!0), k(y, { key: 1 }, C(e(E), (o) => {
|
|
115
|
+
var i;
|
|
116
|
+
return a(), l(le, {
|
|
117
|
+
key: o.uid,
|
|
118
|
+
isDraggable: !s.isReadonly && ((i = o.info) == null ? void 0 : i.title) !== "Drafts",
|
|
119
|
+
isDroppable: e(z),
|
|
120
|
+
parentUids: [],
|
|
121
|
+
uid: o.uid,
|
|
122
|
+
onNewTab: t[4] || (t[4] = (n, O) => h("newTab", { name: n, uid: O })),
|
|
123
|
+
onOnDragEnd: e(T)
|
|
124
|
+
}, {
|
|
125
|
+
leftIcon: r(() => [
|
|
126
|
+
d(e(I), {
|
|
127
|
+
class: "text-sidebar-c-2 text-sm group-hover:hidden",
|
|
128
|
+
icon: "CodeFolder",
|
|
129
|
+
size: "sm",
|
|
130
|
+
thickness: "2"
|
|
131
|
+
}),
|
|
132
|
+
c("div", {
|
|
133
|
+
class: m({
|
|
134
|
+
"rotate-90": e(K)[o.uid]
|
|
135
|
+
})
|
|
136
|
+
}, [
|
|
137
|
+
d(e(I), {
|
|
138
|
+
class: "text-c-3 hidden text-sm group-hover:block",
|
|
139
|
+
icon: "ChevronRight",
|
|
140
|
+
size: "sm"
|
|
141
|
+
})
|
|
142
|
+
], 2)
|
|
143
|
+
]),
|
|
144
|
+
_: 2
|
|
145
|
+
}, 1032, ["isDraggable", "isDroppable", "uid", "onOnDragEnd"]);
|
|
146
|
+
}), 128))
|
|
147
|
+
], 34)
|
|
148
|
+
]),
|
|
149
|
+
button: r(() => [
|
|
150
|
+
s.isReadonly ? _("", !0) : (a(), l(se, {
|
|
151
|
+
key: 0,
|
|
152
|
+
class: m({
|
|
153
|
+
"empty-sidebar-item": e(N).length === 1
|
|
154
|
+
}),
|
|
155
|
+
click: e(x).emit
|
|
156
|
+
}, {
|
|
157
|
+
title: r(() => [
|
|
158
|
+
D("Add Item")
|
|
159
|
+
]),
|
|
160
|
+
_: 1
|
|
161
|
+
}, 8, ["class", "click"]))
|
|
162
|
+
]),
|
|
163
|
+
_: 2
|
|
164
|
+
}, [
|
|
165
|
+
s.isReadonly ? void 0 : {
|
|
166
|
+
name: "header",
|
|
167
|
+
fn: r(() => [
|
|
168
|
+
d(e(ue))
|
|
169
|
+
]),
|
|
170
|
+
key: "0"
|
|
171
|
+
}
|
|
172
|
+
]), 1032, ["class", "showSidebar"])), [
|
|
173
|
+
[ee, s.showSidebar]
|
|
174
|
+
]);
|
|
175
|
+
}
|
|
176
|
+
});
|
|
177
|
+
export {
|
|
178
|
+
$e as default
|
|
179
|
+
};
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { type DraggableProps, type DraggingItem, type HoveredItem } from '@scalar/draggable';
|
|
2
|
-
import type { Collection } from '@scalar/oas-utils/entities/workspace/collection';
|
|
3
|
-
import type { Folder } from '@scalar/oas-utils/entities/workspace/folder';
|
|
4
|
-
import type { Request, RequestExample } from '@scalar/oas-utils/entities/workspace/spec';
|
|
5
2
|
declare function __VLS_template(): Readonly<{
|
|
6
3
|
leftIcon(): void;
|
|
7
4
|
}> & {
|
|
@@ -20,9 +17,10 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
20
17
|
* @default false
|
|
21
18
|
*/
|
|
22
19
|
isDroppable?: DraggableProps["isDroppable"];
|
|
23
|
-
/** Both
|
|
20
|
+
/** Both indicate the level and provide a way to traverse upwards */
|
|
24
21
|
parentUids: string[];
|
|
25
|
-
|
|
22
|
+
/** uid of a Collection, Tag, Request or RequestExample */
|
|
23
|
+
uid: string;
|
|
26
24
|
}>, {
|
|
27
25
|
isDraggable: boolean;
|
|
28
26
|
isDroppable: boolean;
|
|
@@ -43,9 +41,10 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
43
41
|
* @default false
|
|
44
42
|
*/
|
|
45
43
|
isDroppable?: DraggableProps["isDroppable"];
|
|
46
|
-
/** Both
|
|
44
|
+
/** Both indicate the level and provide a way to traverse upwards */
|
|
47
45
|
parentUids: string[];
|
|
48
|
-
|
|
46
|
+
/** uid of a Collection, Tag, Request or RequestExample */
|
|
47
|
+
uid: string;
|
|
49
48
|
}>, {
|
|
50
49
|
isDraggable: boolean;
|
|
51
50
|
isDroppable: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestSidebarItem.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebarItem.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestSidebarItem.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebarItem.vue"],"names":[],"mappings":"AAggBA,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,WAAW,EACjB,MAAM,mBAAmB,CAAA;AA+Q1B,iBAAS,cAAc;gBAnOT,IAAI;;gBAAJ,IAAI;EAo7BjB;AACD,QAAA,MAAM,eAAe;IAj9BjB;;;;OAIG;kBACW,OAAO;IACrB;;;;OAIG;kBACW,cAAc,CAAC,aAAa,CAAC;IAC3C,oEAAoE;gBACxD,MAAM,EAAE;IACpB,0DAA0D;SACrD,MAAM;;;;;;;;;IAfX;;;;OAIG;kBACW,OAAO;IACrB;;;;OAIG;kBACW,cAAc,CAAC,aAAa,CAAC;IAC3C,oEAAoE;gBACxD,MAAM,EAAE;IACpB,0DAA0D;SACrD,MAAM;;;;;;;;;;iBAVG,OAAO;MAm9BvB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAC7C,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KAAC,CAAC,GACvC,CAAC,CAAC,CAAC,CAAC;CACP,CAAC;AAEN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AAExD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -2,7 +2,7 @@ import t from "./RequestSidebarItem.vue2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-
|
|
5
|
+
const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-1e316c86"]]);
|
|
6
6
|
export {
|
|
7
7
|
a as default
|
|
8
8
|
};
|