@scalar/api-client 2.2.51 → 2.2.53
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 +66 -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 +30 -30
- package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBarHistory.vue.js +2 -2
- package/dist/components/AddressBar/AddressBarHistory.vue2.js +22 -22
- package/dist/components/CodeInput/CodeInput.vue.d.ts +3 -1
- 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 +38 -38
- package/dist/components/CommandPalette/CommandActionForm.vue.js +2 -2
- package/dist/components/CommandPalette/CommandActionInput.vue.js +1 -1
- package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteExample.vue.js +13 -13
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +143 -114
- package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteServer.vue.js +59 -51
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.js +2 -2
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +85 -82
- package/dist/components/CommandPalette/WatchModeToggle.vue.js +2 -2
- 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/DataTableCell.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableCell.vue.js +11 -11
- package/dist/components/DataTable/DataTableCheckbox.vue.js +3 -3
- package/dist/components/DataTable/DataTableInput.vue.d.ts +175 -6
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInput.vue.js +3 -3
- package/dist/components/DataTable/DataTableInput.vue2.js +57 -48
- package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInputSelect.vue.js +1 -1
- package/dist/components/DataTable/DataTableText.vue.js +1 -1
- package/dist/components/EmptyState.vue.js +1 -1
- package/dist/components/EmptyState.vue2.js +4 -4
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +13 -13
- package/dist/components/Form/Form.vue.d.ts.map +1 -1
- package/dist/components/Form/Form.vue.js +56 -36
- package/dist/components/Form/LabelInput.vue.d.ts +14 -0
- package/dist/components/Form/LabelInput.vue.d.ts.map +1 -0
- package/dist/components/Form/LabelInput.vue.js +7 -0
- package/dist/components/Form/LabelInput.vue2.js +42 -0
- package/dist/components/HelpfulLink.vue.js +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +1 -1
- 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 +1 -1
- package/dist/components/IconSelector.vue.js +3 -3
- package/dist/components/ImportCollection/DropEventListener.vue.js +3 -3
- package/dist/components/ImportCollection/ImportNowButton.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/ImportNowButton.vue.js +8 -8
- package/dist/components/ImportCollection/IntegrationLogo.vue.js +1 -1
- package/dist/components/ImportCollection/OpenAppButton.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/PrefetchError.vue.js +1 -1
- package/dist/components/ImportCollection/WorkspaceSelector.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/WorkspaceSelector.vue.js +15 -15
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts.map +1 -1
- package/dist/components/ImportCurl/ImportCurlModal.vue.d.ts +2 -2
- package/dist/components/ImportCurl/ImportCurlModal.vue.d.ts.map +1 -1
- package/dist/components/ImportCurl/ImportCurlModal.vue.js +1 -1
- package/dist/components/ImportCurl/ImportCurlModal.vue2.js +13 -13
- package/dist/components/ScalarAsciiArt.vue.js +3 -3
- package/dist/components/Search/useSearch.d.ts.map +1 -1
- package/dist/components/Search/useSearch.js +5 -13
- package/dist/components/Server/ServerDropdown.vue.d.ts +0 -1
- package/dist/components/Server/ServerDropdown.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerDropdown.vue.js +40 -57
- package/dist/components/Server/ServerDropdownItem.vue.d.ts +0 -1
- package/dist/components/Server/ServerDropdownItem.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerDropdownItem.vue.js +1 -1
- package/dist/components/Server/ServerDropdownItem.vue2.js +19 -20
- package/dist/components/Server/ServerSelector.vue.d.ts +12 -0
- package/dist/components/Server/ServerSelector.vue.d.ts.map +1 -0
- package/dist/components/Server/ServerSelector.vue.js +85 -0
- package/dist/components/Server/ServerSelector.vue2.js +4 -0
- package/dist/components/Server/ServerVariablesForm.vue.d.ts +1 -1
- package/dist/components/Server/ServerVariablesForm.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerVariablesForm.vue.js +1 -1
- package/dist/components/Server/ServerVariablesSelect.vue.js +1 -1
- package/dist/components/Server/ServerVariablesTextbox.vue.js +1 -1
- package/dist/components/Server/index.d.ts +1 -0
- package/dist/components/Server/index.d.ts.map +1 -1
- package/dist/components/Server/index.js +6 -4
- package/dist/components/Server/types.d.ts.map +1 -1
- package/dist/components/SideNav/DownloadAppButton.vue.d.ts.map +1 -1
- package/dist/components/SideNav/DownloadAppButton.vue.js +2 -2
- package/dist/components/SideNav/DownloadAppButton.vue2.js +6 -6
- package/dist/components/SideNav/SideHelp.vue.js +12 -12
- package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNav.vue.js +73 -58
- package/dist/components/SideNav/SideNavLink.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNavLink.vue.js +3 -3
- package/dist/components/SideNav/SideNavRouterLink.vue.d.ts +2 -2
- package/dist/components/SideNav/SideNavRouterLink.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNavRouterLink.vue.js +17 -28
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.js +1 -1
- package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.js +12 -12
- package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.js +4 -4
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +2 -2
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +3 -3
- package/dist/components/Sidebar/Sidebar.vue.d.ts +1 -4
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +1 -1
- package/dist/components/Sidebar/Sidebar.vue2.js +34 -34
- package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarButton.vue.js +6 -6
- package/dist/components/Sidebar/SidebarListElement.vue.d.ts +2 -2
- package/dist/components/Sidebar/SidebarListElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarListElement.vue.js +2 -2
- package/dist/components/Sidebar/SidebarListElement.vue2.js +36 -46
- package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarListElementActions.vue.js +7 -7
- package/dist/components/Sidebar/SidebarToggle.vue.d.ts +1 -8
- package/dist/components/Sidebar/SidebarToggle.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarToggle.vue.js +20 -21
- package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNav.vue.js +104 -85
- package/dist/components/TopNav/TopNavItem.vue.d.ts +2 -2
- 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 +1 -1
- package/dist/components/ViewLayout/ViewLayout.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayout.vue.js +16 -10
- package/dist/components/ViewLayout/ViewLayout.vue2.js +4 -0
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +29 -29
- package/dist/components/ViewLayout/ViewLayoutContent.vue.js +1 -1
- package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutSection.vue.js +20 -13
- package/dist/components/ViewLayout/ViewLayoutSection.vue2.js +4 -0
- package/dist/constants.d.ts +16 -12
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +35 -6
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +5 -7
- package/dist/hooks/useFileDialog.d.ts +1 -1
- package/dist/hooks/useFileDialog.d.ts.map +1 -1
- package/dist/hooks/useFileDialog.js +1 -6
- package/dist/hooks/useResponseBody.d.ts.map +1 -1
- package/dist/hooks/useResponseBody.js +3 -9
- package/dist/hooks/useSidebar.d.ts +19 -2
- package/dist/hooks/useSidebar.d.ts.map +1 -1
- package/dist/hooks/useSidebar.js +25 -9
- package/dist/hooks/useSidebar.test.d.ts +2 -0
- package/dist/hooks/useSidebar.test.d.ts.map +1 -0
- package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
- package/dist/layouts/App/ApiClientApp.vue.js +41 -35
- package/dist/layouts/App/MainLayout.vue.js +4 -4
- package/dist/layouts/App/create-api-client-app.d.ts +207 -255
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue.js +2 -2
- package/dist/layouts/Modal/ApiClientModal.vue2.js +8 -8
- package/dist/layouts/Modal/create-api-client-modal.d.ts +414 -510
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Web/ApiClientWeb.vue.d.ts.map +1 -1
- package/dist/layouts/Web/ApiClientWeb.vue.js +39 -33
- package/dist/layouts/Web/create-api-client-web.d.ts +207 -255
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +200 -248
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +79 -63
- package/dist/libs/errors.d.ts.map +1 -1
- package/dist/libs/extractAttachmentFilename.d.ts.map +1 -1
- package/dist/libs/extractAttachmentFilename.js +1 -3
- package/dist/libs/find-request.d.ts.map +1 -1
- package/dist/libs/getOpenApiDocumentDetails.d.ts.map +1 -1
- package/dist/libs/importers/curl.d.ts.map +1 -1
- package/dist/libs/importers/curl.js +2 -12
- package/dist/libs/isUrl.d.ts.map +1 -1
- package/dist/libs/local-storage.d.ts.map +1 -1
- package/dist/libs/local-storage.js +1 -9
- package/dist/libs/normalize-headers.d.ts.map +1 -1
- package/dist/libs/normalize-headers.js +2 -6
- package/dist/libs/parse-curl.d.ts.map +1 -1
- package/dist/libs/parse-curl.js +1 -5
- package/dist/libs/postman.d.ts.map +1 -1
- package/dist/libs/send-request/create-fetch-body.d.ts +1 -1
- package/dist/libs/send-request/create-fetch-body.d.ts.map +1 -1
- package/dist/libs/send-request/create-fetch-body.js +1 -2
- package/dist/libs/send-request/create-fetch-headers.d.ts.map +1 -1
- package/dist/libs/send-request/create-fetch-query-params.d.ts.map +1 -1
- package/dist/libs/send-request/create-request-operation.d.ts.map +1 -1
- package/dist/libs/send-request/create-request-operation.js +6 -12
- package/dist/libs/send-request/create-request-operation.test.d.ts +0 -3
- package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
- package/dist/libs/string-template.d.ts.map +1 -1
- package/dist/libs/string-template.js +1 -4
- package/dist/router.d.ts.map +1 -1
- package/dist/routes.d.ts +62 -14
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +93 -75
- package/dist/store/active-entities.d.ts +32 -32
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/active-entities.js +37 -35
- package/dist/store/collections.d.ts +164 -164
- package/dist/store/collections.d.ts.map +1 -1
- package/dist/store/cookies.d.ts +4 -4
- package/dist/store/cookies.d.ts.map +1 -1
- package/dist/store/cookies.js +1 -5
- package/dist/store/environment.d.ts +4 -4
- package/dist/store/request-example.d.ts +2 -2
- package/dist/store/requests.d.ts +4 -4
- package/dist/store/requests.d.ts.map +1 -1
- package/dist/store/security-schemes.d.ts +8 -8
- package/dist/store/store-context.d.ts.map +1 -1
- package/dist/store/store.d.ts +200 -248
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/tags.d.ts.map +1 -1
- package/dist/store/workspace.d.ts +4 -4
- package/dist/style.css +1 -1
- package/dist/tailwind/desktop-variants.d.ts.map +1 -1
- package/dist/types/vue.d.ts.map +1 -1
- package/dist/views/Collection/Collection.vue.d.ts.map +1 -1
- package/dist/views/Collection/Collection.vue.js +4 -0
- package/dist/views/Collection/Collection.vue2.js +50 -0
- package/dist/views/Collection/CollectionAuthentication.vue.d.ts +3 -0
- package/dist/views/Collection/CollectionAuthentication.vue.d.ts.map +1 -0
- package/dist/views/Collection/CollectionAuthentication.vue.js +4 -0
- package/dist/views/Collection/CollectionAuthentication.vue2.js +16 -0
- package/dist/views/Collection/CollectionCookies.vue.d.ts +3 -0
- package/dist/views/Collection/CollectionCookies.vue.d.ts.map +1 -0
- package/dist/views/Collection/CollectionCookies.vue.js +4 -0
- package/dist/views/Collection/CollectionCookies.vue2.js +16 -0
- package/dist/views/Collection/CollectionEnvironment.vue.d.ts +3 -0
- package/dist/views/Collection/CollectionEnvironment.vue.d.ts.map +1 -0
- package/dist/views/Collection/CollectionEnvironment.vue.js +4 -0
- package/dist/views/Collection/CollectionEnvironment.vue2.js +16 -0
- package/dist/views/{Servers/Servers.vue.d.ts → Collection/CollectionInfoForm.vue.d.ts} +1 -1
- package/dist/views/Collection/CollectionInfoForm.vue.d.ts.map +1 -0
- package/dist/views/Collection/CollectionInfoForm.vue.js +7 -0
- package/dist/views/Collection/CollectionInfoForm.vue2.js +70 -0
- package/dist/views/Collection/CollectionNavigation.vue.d.ts +6 -0
- package/dist/views/Collection/CollectionNavigation.vue.d.ts.map +1 -0
- package/dist/views/Collection/CollectionNavigation.vue.js +142 -0
- package/dist/views/Collection/CollectionNavigation.vue2.js +4 -0
- package/dist/views/Collection/CollectionOverview.vue.d.ts +3 -0
- package/dist/views/Collection/CollectionOverview.vue.d.ts.map +1 -0
- package/dist/views/Collection/CollectionOverview.vue.js +4 -0
- package/dist/views/Collection/CollectionOverview.vue2.js +37 -0
- package/dist/views/Collection/CollectionScripts.vue.d.ts +3 -0
- package/dist/views/Collection/CollectionScripts.vue.d.ts.map +1 -0
- package/dist/views/Collection/CollectionScripts.vue.js +4 -0
- package/dist/views/Collection/CollectionScripts.vue2.js +16 -0
- package/dist/views/Collection/CollectionServerForm.vue.d.ts +10 -0
- package/dist/views/Collection/CollectionServerForm.vue.d.ts.map +1 -0
- package/dist/views/Collection/CollectionServerForm.vue.js +74 -0
- package/dist/views/Collection/CollectionServerForm.vue2.js +4 -0
- package/dist/views/{Servers/ServerForm.vue.d.ts → Collection/CollectionServers.vue.d.ts} +1 -1
- package/dist/views/Collection/CollectionServers.vue.d.ts.map +1 -0
- package/dist/views/Collection/CollectionServers.vue.js +4 -0
- package/dist/views/Collection/CollectionServers.vue2.js +124 -0
- package/dist/views/Collection/CollectionSettings.vue.d.ts +3 -0
- package/dist/views/Collection/CollectionSettings.vue.d.ts.map +1 -0
- package/dist/views/Collection/CollectionSettings.vue.js +7 -0
- package/dist/views/Collection/CollectionSettings.vue2.js +124 -0
- package/dist/views/Collection/CollectionSync.vue.d.ts +3 -0
- package/dist/views/Collection/CollectionSync.vue.d.ts.map +1 -0
- package/dist/views/Collection/CollectionSync.vue.js +4 -0
- package/dist/views/Collection/CollectionSync.vue2.js +16 -0
- package/dist/views/Collection/components/MarkdownInput.vue.d.ts +16 -0
- package/dist/views/Collection/components/MarkdownInput.vue.d.ts.map +1 -0
- package/dist/views/Collection/components/MarkdownInput.vue.js +7 -0
- package/dist/views/Collection/components/MarkdownInput.vue2.js +95 -0
- package/dist/views/Components/CodeSnippet/CodeSnippet.vue.d.ts.map +1 -1
- package/dist/views/Components/CodeSnippet/CodeSnippet.vue.js +7 -7
- package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.d.ts.map +1 -1
- package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.js +1 -3
- package/dist/views/Components/CodeSnippet/helpers/get-har-request.d.ts.map +1 -1
- package/dist/views/Components/CodeSnippet/helpers/get-har-request.js +1 -5
- package/dist/views/Components/CodeSnippet/helpers/get-snippet.d.ts.map +1 -1
- package/dist/views/Components/CodeSnippet/helpers/get-snippet.js +1 -5
- package/dist/views/Cookies/CookieForm.vue.d.ts.map +1 -1
- package/dist/views/Cookies/CookieForm.vue.js +18 -23
- package/dist/views/Cookies/CookieModal.vue.d.ts.map +1 -1
- package/dist/views/Cookies/CookieModal.vue.js +1 -1
- package/dist/views/Cookies/CookieModal.vue2.js +7 -7
- package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +96 -78
- package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
- package/dist/views/Environment/Environment.vue2.js +125 -112
- package/dist/views/Environment/EnvironmentColorModal.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentColorModal.vue.js +5 -5
- package/dist/views/Environment/EnvironmentColors.vue.js +8 -8
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +16 -16
- package/dist/views/Request/Request.vue.d.ts.map +1 -1
- package/dist/views/Request/Request.vue.js +1 -1
- package/dist/views/Request/Request.vue2.js +114 -171
- package/dist/views/Request/RequestRoot.vue.d.ts +13 -0
- package/dist/views/Request/RequestRoot.vue.d.ts.map +1 -0
- package/dist/views/Request/RequestRoot.vue.js +7 -0
- package/dist/views/Request/RequestRoot.vue2.js +78 -0
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +9 -9
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +5 -5
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +104 -89
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts +5 -5
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.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 +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +59 -65
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.js +3 -3
- package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +22 -23
- 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 +14 -14
- 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 +6 -6
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +38 -38
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +2 -2
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +34 -33
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +5 -5
- package/dist/views/Request/RequestSection/helpers/filter-security-requirements.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/helpers/filter-security-requirements.js +2 -6
- package/dist/views/Request/RequestSidebar.vue.d.ts +3 -10
- package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebar.vue.js +1 -1
- package/dist/views/Request/RequestSidebar.vue2.js +186 -188
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
- package/dist/views/Request/RequestSidebarItem.vue2.js +290 -173
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue.js +4 -4
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +13 -13
- package/dist/views/Request/RequestSubpageHeader.vue.d.ts +1 -4
- package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSubpageHeader.vue.js +1 -1
- package/dist/views/Request/RequestSubpageHeader.vue2.js +51 -51
- package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBody.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +12 -12
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +8 -8
- package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +1 -1
- 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 +20 -20
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +25 -26
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.js +3 -3
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +7 -7
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +7 -7
- package/dist/views/Request/hooks/useOpenApiWatcher.d.ts.map +1 -1
- package/dist/views/Request/hooks/useOpenApiWatcher.js +12 -37
- package/dist/views/Request/libs/request.d.ts +4 -0
- package/dist/views/Request/libs/request.d.ts.map +1 -1
- package/dist/views/Request/libs/request.js +2 -1
- package/dist/views/Request/libs/watch-mode.d.ts.map +1 -1
- package/dist/views/Request/libs/watch-mode.js +63 -63
- package/dist/views/Request/types/sidebar-item.d.ts +1 -1
- package/dist/views/Request/types/sidebar-item.d.ts.map +1 -1
- package/dist/views/Settings/Settings.vue.d.ts.map +1 -1
- package/dist/views/Settings/Settings.vue2.js +8 -8
- package/dist/views/Settings/components/SettingsAppearance.vue.js +6 -6
- package/dist/vitest.setup.d.ts +16 -0
- package/dist/vitest.setup.d.ts.map +1 -0
- package/package.json +16 -21
- package/dist/views/Servers/ServerForm.vue.d.ts.map +0 -1
- package/dist/views/Servers/ServerForm.vue.js +0 -39
- package/dist/views/Servers/ServerForm.vue2.js +0 -4
- package/dist/views/Servers/Servers.vue.d.ts.map +0 -1
- package/dist/views/Servers/Servers.vue.js +0 -4
- package/dist/views/Servers/Servers.vue2.js +0 -168
- package/dist/views/Servers/index.d.ts +0 -2
- package/dist/views/Servers/index.d.ts.map +0 -1
- package/dist/views/Servers/index.js +0 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,71 @@
|
|
|
1
1
|
# @scalar/api-client
|
|
2
2
|
|
|
3
|
+
## 2.2.53
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [4db5161]
|
|
8
|
+
- @scalar/oas-utils@0.2.109
|
|
9
|
+
- @scalar/types@0.0.36
|
|
10
|
+
- @scalar/import@0.2.29
|
|
11
|
+
- @scalar/postman-to-openapi@0.1.32
|
|
12
|
+
- @scalar/openapi-parser@0.10.9
|
|
13
|
+
- @scalar/themes@0.9.70
|
|
14
|
+
- @scalar/components@0.13.27
|
|
15
|
+
- @scalar/use-codemirror@0.11.72
|
|
16
|
+
- @scalar/use-hooks@0.1.24
|
|
17
|
+
|
|
18
|
+
## 2.2.52
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- 7833331: fix: updates address bar background style
|
|
23
|
+
- f61e986: fix(components): set the submenu z-index above the menu
|
|
24
|
+
- 8173889: feat: moved sidebar state into factory function, initialize at app instantiation
|
|
25
|
+
- 8d9a2c0: feat: adds request required empty parameter error
|
|
26
|
+
- 8d9a2c0: feat: adds request parameter value validation alert
|
|
27
|
+
- 2be8986: fix: request history
|
|
28
|
+
- 7017639: fix: updates overall border style
|
|
29
|
+
- 143d2a9: fix: updates file upload row content and logic
|
|
30
|
+
- e52ecd2: feat: rely less on localStorage
|
|
31
|
+
- c10bbf5: chore: code style
|
|
32
|
+
- eed78eb: fix: updates command palette routing
|
|
33
|
+
- 875ee2c: fix(api-reference): use listbox for server selector
|
|
34
|
+
- 4a0e6b7: fix: sets whitespace to disabled address bar path
|
|
35
|
+
- 5a46f1c: feat: collection page
|
|
36
|
+
- a89510b: fix: updates response section border layout
|
|
37
|
+
- 48f24c9: fix: when importing a collection we navigate to the collection page
|
|
38
|
+
- Updated dependencies [f61e986]
|
|
39
|
+
- Updated dependencies [c9a8fd8]
|
|
40
|
+
- Updated dependencies [8d9a2c0]
|
|
41
|
+
- Updated dependencies [9fc97da]
|
|
42
|
+
- Updated dependencies [946a5df]
|
|
43
|
+
- Updated dependencies [12088f1]
|
|
44
|
+
- Updated dependencies [c10bbf5]
|
|
45
|
+
- Updated dependencies [0d58572]
|
|
46
|
+
- Updated dependencies [bd70ab6]
|
|
47
|
+
- Updated dependencies [cf14cbb]
|
|
48
|
+
- Updated dependencies [7dc4415]
|
|
49
|
+
- Updated dependencies [9251b22]
|
|
50
|
+
- Updated dependencies [e55bfd2]
|
|
51
|
+
- Updated dependencies [8d9a2c0]
|
|
52
|
+
- @scalar/components@0.13.26
|
|
53
|
+
- @scalar/themes@0.9.69
|
|
54
|
+
- @scalar/oas-utils@0.2.108
|
|
55
|
+
- @scalar/types@0.0.35
|
|
56
|
+
- @scalar/openapi-parser@0.10.9
|
|
57
|
+
- @scalar/openapi-types@0.1.9
|
|
58
|
+
- @scalar/draggable@0.1.11
|
|
59
|
+
- @scalar/snippetz@0.2.15
|
|
60
|
+
- @scalar/use-codemirror@0.11.71
|
|
61
|
+
- @scalar/use-hooks@0.1.23
|
|
62
|
+
- @scalar/import@0.2.28
|
|
63
|
+
- @scalar/postman-to-openapi@0.1.31
|
|
64
|
+
- @scalar/icons@0.1.3
|
|
65
|
+
- @scalar/object-utils@1.1.13
|
|
66
|
+
- @scalar/use-toasts@0.7.9
|
|
67
|
+
- @scalar/use-tooltip@1.0.6
|
|
68
|
+
|
|
3
69
|
## 2.2.51
|
|
4
70
|
|
|
5
71
|
### Patch Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddressBar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBar.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AddressBar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBar.vue"],"names":[],"mappings":"AAqVA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EAET,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAQrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAO1D,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,UAAU,CAAA;IACtB,SAAS,EAAE,SAAS,CAAA;IACpB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;;;;;AAgaJ,wBAQG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./AddressBar.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const s = /* @__PURE__ */ r(o, [["__scopeId", "data-v-c8bfbadd"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
s as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as S, useId as V, ref as i, watch as z, openBlock as b, createElementBlock as I, unref as
|
|
1
|
+
import { defineComponent as S, useId as V, ref as i, watch as z, openBlock as b, createElementBlock as I, unref as r, createElementVNode as l, normalizeClass as L, normalizeStyle as U, createVNode as d, createBlock as M, createCommentVNode as A, withCtx as H } from "vue";
|
|
2
2
|
import { ScalarButton as N, ScalarIcon as T } from "@scalar/components";
|
|
3
3
|
import { REQUEST_METHODS as $ } from "@scalar/oas-utils/helpers";
|
|
4
4
|
import O from "../CodeInput/CodeInput.vue.js";
|
|
@@ -7,7 +7,7 @@ import D from "./AddressBarHistory.vue.js";
|
|
|
7
7
|
import K from "../Server/ServerDropdown.vue.js";
|
|
8
8
|
import { useWorkspace as Q } from "../../store/store.js";
|
|
9
9
|
import { useLayout as W } from "../../hooks/useLayout.js";
|
|
10
|
-
const j = ["id"], F = { class: "m-auto flex flex-row items-center" }, G = { class: "
|
|
10
|
+
const j = ["id"], F = { class: "m-auto flex flex-row items-center" }, G = { class: "address-bar-bg-states text-xxs p-0.75 group relative order-last flex w-full max-w-[calc(100dvw-24px)] flex-1 flex-row items-stretch rounded-lg lg:order-none lg:min-w-[580px] lg:max-w-[580px] xl:min-w-[720px] xl:max-w-[720px]" }, J = { class: "pointer-events-none absolute left-0 top-0 block h-full w-full overflow-hidden rounded-lg border" }, X = { class: "z-context-plus flex gap-1" }, Y = { class: "scroll-timeline-x scroll-timeline-x-hidden z-context-plus relative flex w-full bg-blend-normal" }, Z = {
|
|
11
11
|
"aria-hidden": "true",
|
|
12
12
|
class: "inline-flex items-center gap-1"
|
|
13
13
|
}, ie = /* @__PURE__ */ S({
|
|
@@ -31,18 +31,18 @@ const j = ["id"], F = { class: "m-auto flex flex-row items-center" }, G = { clas
|
|
|
31
31
|
e && x(e);
|
|
32
32
|
}
|
|
33
33
|
);
|
|
34
|
-
const
|
|
34
|
+
const o = i(100), h = i(0), a = i(!1), s = i();
|
|
35
35
|
function w() {
|
|
36
|
-
|
|
36
|
+
a.value ? o.value -= (o.value - 15) / 60 : o.value -= h.value / 20, o.value <= 0 && (clearInterval(s.value), s.value = void 0, o.value = 100, a.value = !1);
|
|
37
37
|
}
|
|
38
38
|
function k() {
|
|
39
|
-
s.value || (
|
|
39
|
+
s.value || (a.value = !0, s.value = setInterval(w, 20));
|
|
40
40
|
}
|
|
41
41
|
function C() {
|
|
42
|
-
h.value =
|
|
42
|
+
h.value = o.value, a.value = !1;
|
|
43
43
|
}
|
|
44
44
|
function y() {
|
|
45
|
-
clearInterval(s.value), s.value = void 0,
|
|
45
|
+
clearInterval(s.value), s.value = void 0, o.value = 100, a.value = !1;
|
|
46
46
|
}
|
|
47
47
|
f.requestStatus.on((e) => {
|
|
48
48
|
e === "start" && k(), e === "stop" && C(), e === "abort" && y();
|
|
@@ -55,7 +55,7 @@ const j = ["id"], F = { class: "m-auto flex flex-row items-center" }, G = { clas
|
|
|
55
55
|
return $[e].backgroundColor;
|
|
56
56
|
}
|
|
57
57
|
function m() {
|
|
58
|
-
|
|
58
|
+
a.value || (a.value = !0, f.executeRequest.emit({ requestUid: n.operation.uid }));
|
|
59
59
|
}
|
|
60
60
|
f.hotKeys.on((e) => {
|
|
61
61
|
var t;
|
|
@@ -67,43 +67,43 @@ const j = ["id"], F = { class: "m-auto flex flex-row items-center" }, G = { clas
|
|
|
67
67
|
return (e, t) => {
|
|
68
68
|
var g;
|
|
69
69
|
return b(), I("div", {
|
|
70
|
-
id:
|
|
70
|
+
id: r(u),
|
|
71
71
|
class: "scalar-address-bar order-last h-[--scalar-address-bar-height] w-full [--scalar-address-bar-height:32px] lg:order-none lg:w-auto"
|
|
72
72
|
}, [
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
class: L(["bg-mix-transparent bg-mix-amount-90
|
|
78
|
-
style: U({ transform: `translate3d(-${
|
|
73
|
+
l("div", F, [
|
|
74
|
+
l("div", G, [
|
|
75
|
+
l("div", J, [
|
|
76
|
+
l("div", {
|
|
77
|
+
class: L(["bg-mix-transparent bg-mix-amount-90 absolute left-0 top-0 z-[1002] h-full w-full", q()]),
|
|
78
|
+
style: U({ transform: `translate3d(-${o.value}%,0,0)` })
|
|
79
79
|
}, null, 6)
|
|
80
80
|
]),
|
|
81
|
-
|
|
81
|
+
l("div", X, [
|
|
82
82
|
d(P, {
|
|
83
|
-
isEditable:
|
|
83
|
+
isEditable: r(p) !== "modal",
|
|
84
84
|
isSquare: "",
|
|
85
85
|
method: e.operation.method,
|
|
86
86
|
teleport: "",
|
|
87
87
|
onChange: B
|
|
88
88
|
}, null, 8, ["isEditable", "method"])
|
|
89
89
|
]),
|
|
90
|
-
|
|
91
|
-
e.collection.servers.length ? (b(), M(
|
|
90
|
+
l("div", Y, [
|
|
91
|
+
e.collection.servers.length ? (b(), M(r(K), {
|
|
92
92
|
key: 0,
|
|
93
93
|
collection: e.collection,
|
|
94
94
|
layout: "client",
|
|
95
95
|
operation: e.operation,
|
|
96
96
|
server: e.server,
|
|
97
|
-
target:
|
|
97
|
+
target: r(u)
|
|
98
98
|
}, null, 8, ["collection", "operation", "server", "target"])) : A("", !0),
|
|
99
|
-
t[1] || (t[1] =
|
|
99
|
+
t[1] || (t[1] = l("div", { class: "fade-left" }, null, -1)),
|
|
100
100
|
d(O, {
|
|
101
101
|
ref_key: "addressBarRef",
|
|
102
102
|
ref: v,
|
|
103
103
|
"aria-label": "Path",
|
|
104
104
|
class: "min-w-fit outline-none",
|
|
105
105
|
disableCloseBrackets: "",
|
|
106
|
-
disabled:
|
|
106
|
+
disabled: r(p) === "modal",
|
|
107
107
|
disableEnter: "",
|
|
108
108
|
disableTabIndent: "",
|
|
109
109
|
emitOnBlur: !1,
|
|
@@ -118,27 +118,27 @@ const j = ["id"], F = { class: "m-auto flex flex-row items-center" }, G = { clas
|
|
|
118
118
|
onSubmit: m,
|
|
119
119
|
"onUpdate:modelValue": R
|
|
120
120
|
}, null, 8, ["disabled", "envVariables", "environment", "modelValue", "placeholder", "workspace"]),
|
|
121
|
-
t[2] || (t[2] =
|
|
121
|
+
t[2] || (t[2] = l("div", { class: "fade-right" }, null, -1))
|
|
122
122
|
]),
|
|
123
123
|
d(D, {
|
|
124
124
|
operation: e.operation,
|
|
125
|
-
target:
|
|
125
|
+
target: r(u)
|
|
126
126
|
}, null, 8, ["operation", "target"]),
|
|
127
|
-
d(
|
|
127
|
+
d(r(N), {
|
|
128
128
|
class: "z-context-plus relative h-auto shrink-0 overflow-hidden py-1 pl-2 pr-2.5 font-bold",
|
|
129
|
-
disabled:
|
|
129
|
+
disabled: a.value,
|
|
130
130
|
onClick: m
|
|
131
131
|
}, {
|
|
132
132
|
default: H(() => [
|
|
133
|
-
|
|
134
|
-
d(
|
|
133
|
+
l("span", Z, [
|
|
134
|
+
d(r(T), {
|
|
135
135
|
class: "relative shrink-0 fill-current",
|
|
136
136
|
icon: "Play",
|
|
137
137
|
size: "xs"
|
|
138
138
|
}),
|
|
139
|
-
t[3] || (t[3] =
|
|
139
|
+
t[3] || (t[3] = l("span", { class: "text-xxs hidden lg:flex" }, "Send", -1))
|
|
140
140
|
]),
|
|
141
|
-
t[4] || (t[4] =
|
|
141
|
+
t[4] || (t[4] = l("span", { class: "sr-only" }, " Send Request ", -1))
|
|
142
142
|
]),
|
|
143
143
|
_: 1
|
|
144
144
|
}, 8, ["disabled"])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddressBarHistory.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBarHistory.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AddressBarHistory.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBarHistory.vue"],"names":[],"mappings":"AA6JA,OAAO,KAAK,EAAE,SAAS,EAAgB,MAAM,iCAAiC,CAAA;AAc9E,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,SAAS,CAAA;IACpB,qEAAqE;IACrE,MAAM,EAAE,MAAM,CAAA;CACf,CAAC;;AAmQF,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./AddressBarHistory.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-113be377"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { defineComponent as y, ref as S, computed as _, openBlock as n, createBlock as i, unref as e, withCtx as r, createVNode as u, createSlots as B, createElementVNode as a, createCommentVNode as k, normalizeStyle as H, createElementBlock as V, Fragment as w, renderList as z, toDisplayString as d, normalizeClass as L } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { Listbox as U, ListboxButton as E, ListboxOptions as F, ListboxOption as I } from "@headlessui/vue";
|
|
3
|
+
import { ScalarFloating as M, ScalarIcon as N, ScalarFloatingBackdrop as R } from "@scalar/components";
|
|
4
|
+
import { httpStatusCodes as O } from "@scalar/oas-utils/helpers";
|
|
5
|
+
import { useRouter as W } from "vue-router";
|
|
6
|
+
import { formatMs as A } from "../../libs/formatters.js";
|
|
3
7
|
import { PathId as v } from "../../routes.js";
|
|
4
|
-
import { Listbox as E, ListboxButton as F, ListboxOptions as I, ListboxOption as M } from "@headlessui/vue";
|
|
5
|
-
import { ScalarFloating as N, ScalarIcon as R, ScalarFloatingBackdrop as O } from "@scalar/components";
|
|
6
|
-
import { httpStatusCodes as W } from "@scalar/oas-utils/helpers";
|
|
7
|
-
import { useRouter as A } from "vue-router";
|
|
8
8
|
import D from "../HttpMethod/HttpMethod.vue.js";
|
|
9
9
|
import { getStatusCodeColor as P } from "./httpStatusCodeColors.js";
|
|
10
10
|
import { useWorkspace as $ } from "../../store/store.js";
|
|
11
|
-
const j = { class: "min-w-0" }, G = { class: "min-w-0 truncate
|
|
11
|
+
const j = { class: "min-w-0" }, G = { class: "text-c-1 min-w-0 truncate" }, se = /* @__PURE__ */ y({
|
|
12
12
|
__name: "AddressBarHistory",
|
|
13
13
|
props: {
|
|
14
14
|
operation: {},
|
|
15
15
|
target: {}
|
|
16
16
|
},
|
|
17
17
|
setup(p) {
|
|
18
|
-
const { requestHistory: f, requestExampleMutators:
|
|
18
|
+
const { requestHistory: f, requestExampleMutators: q } = $(), x = W(), g = S(f[0] ?? null), h = _(
|
|
19
19
|
() => f.filter((o) => o.request.requestUid === p.operation.uid).slice().reverse()
|
|
20
20
|
);
|
|
21
|
-
function
|
|
21
|
+
function b(o) {
|
|
22
22
|
const s = x.currentRoute.value.params.workspace;
|
|
23
23
|
p.operation.uid !== o.request.requestUid && x.push({
|
|
24
24
|
name: "request",
|
|
@@ -26,14 +26,14 @@ const j = { class: "min-w-0" }, G = { class: "min-w-0 truncate text-c-1" }, se =
|
|
|
26
26
|
[v.Workspace]: s,
|
|
27
27
|
[v.Request]: o.request.requestUid
|
|
28
28
|
}
|
|
29
|
-
}),
|
|
29
|
+
}), q.set({ ...o.request });
|
|
30
30
|
}
|
|
31
|
-
return (o, s) => (n(), i(e(
|
|
31
|
+
return (o, s) => (n(), i(e(U), {
|
|
32
32
|
modelValue: g.value,
|
|
33
33
|
"onUpdate:modelValue": s[0] || (s[0] = (m) => g.value = m)
|
|
34
34
|
}, {
|
|
35
35
|
default: r(({ open: m }) => [
|
|
36
|
-
u(e(
|
|
36
|
+
u(e(M), {
|
|
37
37
|
offset: 0,
|
|
38
38
|
resize: "",
|
|
39
39
|
target: o.target
|
|
@@ -41,12 +41,12 @@ const j = { class: "min-w-0" }, G = { class: "min-w-0 truncate text-c-1" }, se =
|
|
|
41
41
|
default: r(() => {
|
|
42
42
|
var l;
|
|
43
43
|
return [
|
|
44
|
-
(l = h.value) != null && l.length ? (n(), i(e(
|
|
44
|
+
(l = h.value) != null && l.length ? (n(), i(e(E), {
|
|
45
45
|
key: 0,
|
|
46
|
-
class: "
|
|
46
|
+
class: "address-bar-history-button z-context-plus text-c-3 focus:text-c-1 mr-1 rounded-lg p-1.5"
|
|
47
47
|
}, {
|
|
48
48
|
default: r(() => [
|
|
49
|
-
u(e(
|
|
49
|
+
u(e(N), {
|
|
50
50
|
icon: "History",
|
|
51
51
|
size: "sm",
|
|
52
52
|
thickness: "2.25"
|
|
@@ -62,16 +62,16 @@ const j = { class: "min-w-0" }, G = { class: "min-w-0 truncate text-c-1" }, se =
|
|
|
62
62
|
m ? {
|
|
63
63
|
name: "floating",
|
|
64
64
|
fn: r(({ width: l }) => [
|
|
65
|
-
u(e(
|
|
66
|
-
class: "
|
|
65
|
+
u(e(F), {
|
|
66
|
+
class: "custom-scroll p-0.75 grid max-h-[inherit] grid-cols-[44px,1fr,repeat(3,auto)] items-center border-t",
|
|
67
67
|
style: H({ width: l })
|
|
68
68
|
}, {
|
|
69
69
|
default: r(() => [
|
|
70
|
-
(n(!0), V(w, null, z(h.value, (t, C) => (n(), i(e(
|
|
70
|
+
(n(!0), V(w, null, z(h.value, (t, C) => (n(), i(e(I), {
|
|
71
71
|
key: t.timestamp,
|
|
72
|
-
class: "
|
|
72
|
+
class: "font-code *:ui-active:bg-b-2 text-c-2 contents text-sm font-medium *:flex *:h-8 *:cursor-pointer *:items-center *:rounded-none *:px-1.5 first:*:rounded-l last:*:rounded-r",
|
|
73
73
|
value: C,
|
|
74
|
-
onClick: (c) =>
|
|
74
|
+
onClick: (c) => b(t)
|
|
75
75
|
}, {
|
|
76
76
|
default: r(() => {
|
|
77
77
|
var c;
|
|
@@ -84,11 +84,11 @@ const j = { class: "min-w-0" }, G = { class: "min-w-0 truncate text-c-1" }, se =
|
|
|
84
84
|
a("div", j, [
|
|
85
85
|
a("div", G, d(t.response.path), 1)
|
|
86
86
|
]),
|
|
87
|
-
a("div", null, d(e(
|
|
87
|
+
a("div", null, d(e(A)(t.response.duration)), 1),
|
|
88
88
|
a("div", {
|
|
89
89
|
class: L([e(P)(t.response.status).color])
|
|
90
90
|
}, d(t.response.status), 3),
|
|
91
|
-
a("div", null, d((c = e(
|
|
91
|
+
a("div", null, d((c = e(O)[t.response.status]) == null ? void 0 : c.name), 1)
|
|
92
92
|
];
|
|
93
93
|
}),
|
|
94
94
|
_: 2
|
|
@@ -96,7 +96,7 @@ const j = { class: "min-w-0" }, G = { class: "min-w-0 truncate text-c-1" }, se =
|
|
|
96
96
|
]),
|
|
97
97
|
_: 2
|
|
98
98
|
}, 1032, ["style"]),
|
|
99
|
-
u(e(
|
|
99
|
+
u(e(R), { class: "-top-[--scalar-address-bar-height] rounded-lg" })
|
|
100
100
|
]),
|
|
101
101
|
key: "0"
|
|
102
102
|
} : void 0
|
|
@@ -34,6 +34,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
34
34
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
35
35
|
submit: (v: string) => any;
|
|
36
36
|
"update:modelValue": (v: string) => any;
|
|
37
|
+
blur: (v: string) => any;
|
|
37
38
|
curl: (v: string) => any;
|
|
38
39
|
}, string, import("vue").PublicProps, Readonly<{
|
|
39
40
|
colorPicker?: boolean;
|
|
@@ -65,12 +66,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
65
66
|
}> & Readonly<{
|
|
66
67
|
onSubmit?: (v: string) => any;
|
|
67
68
|
"onUpdate:modelValue"?: (v: string) => any;
|
|
69
|
+
onBlur?: (v: string) => any;
|
|
68
70
|
onCurl?: (v: string) => any;
|
|
69
71
|
}>, {
|
|
70
72
|
disabled: boolean;
|
|
71
|
-
emitOnBlur: boolean;
|
|
72
73
|
nullable: boolean;
|
|
73
74
|
colorPicker: boolean;
|
|
75
|
+
emitOnBlur: boolean;
|
|
74
76
|
disableTabIndent: boolean;
|
|
75
77
|
disableEnter: boolean;
|
|
76
78
|
disableCloseBrackets: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodeInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CodeInput/CodeInput.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CodeInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CodeInput/CodeInput.vue"],"names":[],"mappings":"AAkfA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AAEzE,OAAO,EAIL,KAAK,kBAAkB,EAExB,MAAM,wBAAwB,CAAA;AAM/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;;kBAYxC,OAAO;eACV,OAAO;gBACN,MAAM,GAAG,MAAM;YACnB,OAAO;iBACF,OAAO;kBACN,OAAO;WACd,OAAO;uBACK,OAAO;eACf,kBAAkB;wBACT,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;wBACnB,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;kBACzB,MAAM;eACT,OAAO;mBACH,OAAO;2BACC,OAAO;WACvB,MAAM,EAAE;eACJ,MAAM,EAAE;WACZ,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS;eACzB,OAAO;oBACF,OAAO;iBACV,OAAO;iBACP,OAAO;cACV,MAAM,GAAG,MAAM;iBACZ,WAAW;kBACV,WAAW,EAAE;eAChB,SAAS;;;;;;;;;kBAzBN,OAAO;eACV,OAAO;gBACN,MAAM,GAAG,MAAM;YACnB,OAAO;iBACF,OAAO;kBACN,OAAO;WACd,OAAO;uBACK,OAAO;eACf,kBAAkB;wBACT,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;wBACnB,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;kBACzB,MAAM;eACT,OAAO;mBACH,OAAO;2BACC,OAAO;WACvB,MAAM,EAAE;eACJ,MAAM,EAAE;WACZ,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS;eACzB,OAAO;oBACF,OAAO;iBACV,OAAO;iBACP,OAAO;cACV,MAAM,GAAG,MAAM;iBACZ,WAAW;kBACV,WAAW,EAAE;eAChB,SAAS;;;;;;;cAxBT,OAAO;cAiBP,OAAO;iBAlBJ,OAAO;gBAIR,OAAO;sBAGD,OAAO;kBAMX,OAAO;0BACC,OAAO;mBAKd,OAAO;gBAEV,OAAO;;qBA4dM,GAAG;kBACN,GAAG;;AArf9B,wBAgjBC;AAeD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -2,7 +2,7 @@ import o from "./CodeInput.vue2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const
|
|
5
|
+
const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-18f34311"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
_ as default
|
|
8
8
|
};
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { defineComponent as j, useAttrs as H, ref as d, toRef as r, watch as J, computed as $, openBlock as n, createElementBlock as i, Fragment as Q, normalizeClass as W, unref as u, createElementVNode as
|
|
1
|
+
import { defineComponent as j, useAttrs as H, ref as d, toRef as r, watch as J, computed as $, openBlock as n, createElementBlock as i, Fragment as Q, normalizeClass as W, unref as u, createElementVNode as w, toDisplayString as G, createBlock as f, mergeProps as X, withKeys as h, withModifiers as q, createVNode as Y, createCommentVNode as c, renderSlot as R } from "vue";
|
|
2
2
|
import { ScalarIcon as Z } from "@scalar/components";
|
|
3
3
|
import { prettyPrintJson as _ } from "@scalar/oas-utils/helpers";
|
|
4
4
|
import { useCodeMirror as ee, useDropdown as oe, colorPicker as le } from "@scalar/use-codemirror";
|
|
5
5
|
import { useClipboard as te } from "@scalar/use-hooks/useClipboard";
|
|
6
6
|
import { nanoid as ne } from "nanoid";
|
|
7
7
|
import ae from "../../views/Environment/EnvironmentVariableDropdown.vue.js";
|
|
8
|
-
import
|
|
9
|
-
import { pillPlugin as re, backspaceCommand as
|
|
10
|
-
import { useLayout as
|
|
11
|
-
const de = ["id"],
|
|
8
|
+
import V from "../DataTable/DataTableInputSelect.vue.js";
|
|
9
|
+
import { pillPlugin as re, backspaceCommand as se } from "./codeVariableWidget.js";
|
|
10
|
+
import { useLayout as ue } from "../../hooks/useLayout.js";
|
|
11
|
+
const de = { class: "whitespace-nowrap" }, ie = ["id"], pe = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "scalar-code-copy z-context"
|
|
14
|
-
},
|
|
14
|
+
}, me = {
|
|
15
15
|
key: 5,
|
|
16
16
|
class: "centered-y text-orange absolute right-7 text-xs"
|
|
17
|
-
}, me = {
|
|
18
|
-
key: 6,
|
|
19
|
-
class: "required centered-y text-xxs text-c-3 bg-b-1 pointer-events-none absolute right-0 pr-2 pt-px opacity-100 shadow-[-8px_0_4px_var(--scalar-background-1)] transition-opacity duration-150 group-[.alert]:bg-transparent group-[.alert]:shadow-none peer-has-[.cm-focused]:opacity-0"
|
|
20
17
|
}, fe = {
|
|
18
|
+
key: 6,
|
|
19
|
+
class: "required centered-y text-xxs text-c-3 group-[.error]:text-red bg-b-1 pointer-events-none absolute right-0 pr-2 pt-px opacity-100 shadow-[-8px_0_4px_var(--scalar-background-1)] transition-opacity duration-150 group-[.alert]:bg-transparent group-[.error]:bg-transparent group-[.alert]:shadow-none group-[.error]:shadow-none peer-has-[.cm-focused]:opacity-0"
|
|
20
|
+
}, ce = {
|
|
21
21
|
inheritAttrs: !1
|
|
22
|
-
},
|
|
23
|
-
...
|
|
22
|
+
}, Se = /* @__PURE__ */ j({
|
|
23
|
+
...ce,
|
|
24
24
|
__name: "CodeInput",
|
|
25
25
|
props: {
|
|
26
26
|
colorPicker: { type: Boolean, default: !1 },
|
|
@@ -50,10 +50,10 @@ const de = ["id"], ie = {
|
|
|
50
50
|
envVariables: {},
|
|
51
51
|
workspace: {}
|
|
52
52
|
},
|
|
53
|
-
emits: ["submit", "update:modelValue", "curl"],
|
|
53
|
+
emits: ["submit", "update:modelValue", "curl", "blur"],
|
|
54
54
|
setup(A, { expose: E, emit: M }) {
|
|
55
|
-
var
|
|
56
|
-
const o = A, s = M, C = H(), N = C.id || `id-${ne()}`, B = d(!1), y = d(!1), k = d(""), S = d({ left: 0, top: 0 }), m = d(null), { layout: b } =
|
|
55
|
+
var P;
|
|
56
|
+
const o = A, s = M, C = H(), N = C.id || `id-${ne()}`, B = d(!1), y = d(!1), k = d(""), S = d({ left: 0, top: 0 }), m = d(null), { layout: b } = ue(), { copyToClipboard: O } = te();
|
|
57
57
|
function T(e) {
|
|
58
58
|
var l;
|
|
59
59
|
return e === o.modelValue ? null : o.importCurl && e.trim().toLowerCase().startsWith("curl") ? (s("curl", e), (l = a.value) == null || l.dispatch({
|
|
@@ -64,11 +64,11 @@ const de = ["id"], ie = {
|
|
|
64
64
|
}
|
|
65
65
|
}), null) : o.handleFieldChange ? o.handleFieldChange(e) : s("update:modelValue", e);
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function x(e) {
|
|
68
68
|
return o.handleFieldSubmit ? o.handleFieldSubmit(e) : s("submit", e);
|
|
69
69
|
}
|
|
70
70
|
function I(e) {
|
|
71
|
-
B.value = !1, o.emitOnBlur && o.modelValue &&
|
|
71
|
+
B.value = !1, o.emitOnBlur && o.modelValue && x(e), s("blur", e);
|
|
72
72
|
}
|
|
73
73
|
const v = [];
|
|
74
74
|
o.colorPicker && v.push(le), v.push(
|
|
@@ -78,9 +78,9 @@ const de = ["id"], ie = {
|
|
|
78
78
|
workspace: o.workspace,
|
|
79
79
|
isReadOnly: b === "modal"
|
|
80
80
|
}),
|
|
81
|
-
|
|
81
|
+
se
|
|
82
82
|
);
|
|
83
|
-
const
|
|
83
|
+
const D = d(null), { codeMirror: a } = ee({
|
|
84
84
|
content: r(
|
|
85
85
|
() => o.modelValue !== void 0 ? String(o.modelValue) : ""
|
|
86
86
|
),
|
|
@@ -89,7 +89,7 @@ const de = ["id"], ie = {
|
|
|
89
89
|
},
|
|
90
90
|
onFocus: () => B.value = !0,
|
|
91
91
|
onBlur: (e) => I(e),
|
|
92
|
-
codeMirrorRef:
|
|
92
|
+
codeMirrorRef: D,
|
|
93
93
|
disableTabIndent: r(() => o.disableTabIndent),
|
|
94
94
|
disableEnter: r(() => o.disableEnter),
|
|
95
95
|
disableCloseBrackets: r(() => o.disableCloseBrackets),
|
|
@@ -99,7 +99,7 @@ const de = ["id"], ie = {
|
|
|
99
99
|
extensions: v,
|
|
100
100
|
placeholder: r(() => o.placeholder)
|
|
101
101
|
});
|
|
102
|
-
(
|
|
102
|
+
(P = a.value) == null || P.focus(), J(a, () => {
|
|
103
103
|
a.value && Object.prototype.hasOwnProperty.call(C, "autofocus") && a.value.focus();
|
|
104
104
|
});
|
|
105
105
|
const { handleDropdownSelect: K, updateDropdownVisibility: z } = oe({
|
|
@@ -117,9 +117,9 @@ const de = ["id"], ie = {
|
|
|
117
117
|
(e = a.value) == null || e.focus();
|
|
118
118
|
}
|
|
119
119
|
});
|
|
120
|
-
const
|
|
120
|
+
const g = (e, l) => {
|
|
121
121
|
var p, t, F;
|
|
122
|
-
y.value ? e === "down" ? (l.preventDefault(), (p = m.value) == null || p.handleArrowKey("down")) : e === "up" ? (l.preventDefault(), (t = m.value) == null || t.handleArrowKey("up")) : e === "enter" && (l.preventDefault(), (F = m.value) == null || F.handleSelect()) : e === "enter" && l.target instanceof HTMLDivElement &&
|
|
122
|
+
y.value ? e === "down" ? (l.preventDefault(), (p = m.value) == null || p.handleArrowKey("down")) : e === "up" ? (l.preventDefault(), (t = m.value) == null || t.handleArrowKey("up")) : e === "enter" && (l.preventDefault(), (F = m.value) == null || F.handleSelect()) : e === "enter" && l.target instanceof HTMLDivElement && x(l.target.textContent ?? "");
|
|
123
123
|
}, U = $(() => Array.isArray(o.type) ? (
|
|
124
124
|
// Find the first type, that’s not 'null'
|
|
125
125
|
o.type.find((e) => e !== "null") ?? "string"
|
|
@@ -134,21 +134,21 @@ const de = ["id"], ie = {
|
|
|
134
134
|
key: 0,
|
|
135
135
|
class: W(["text-c-2 flex cursor-default items-center justify-center", u(b) === "modal" ? "font-code pl-1 pr-2 text-sm" : "px-2"])
|
|
136
136
|
}, [
|
|
137
|
-
|
|
138
|
-
], 2)) : o.enum && o.enum.length ? (n(), f(
|
|
137
|
+
w("span", de, G(e.modelValue), 1)
|
|
138
|
+
], 2)) : o.enum && o.enum.length ? (n(), f(V, {
|
|
139
139
|
key: 1,
|
|
140
140
|
default: o.default,
|
|
141
141
|
modelValue: e.modelValue,
|
|
142
142
|
type: U.value,
|
|
143
143
|
value: o.enum,
|
|
144
144
|
"onUpdate:modelValue": l[0] || (l[0] = (t) => s("update:modelValue", t))
|
|
145
|
-
}, null, 8, ["default", "modelValue", "type", "value"])) : e.type === "boolean" || (p = e.type) != null && p.includes("boolean") ? (n(), f(
|
|
145
|
+
}, null, 8, ["default", "modelValue", "type", "value"])) : e.type === "boolean" || (p = e.type) != null && p.includes("boolean") ? (n(), f(V, {
|
|
146
146
|
key: 2,
|
|
147
147
|
default: o.default,
|
|
148
148
|
modelValue: e.modelValue,
|
|
149
149
|
value: L.value,
|
|
150
150
|
"onUpdate:modelValue": l[1] || (l[1] = (t) => s("update:modelValue", t))
|
|
151
|
-
}, null, 8, ["default", "modelValue", "value"])) : o.examples && o.examples.length ? (n(), f(
|
|
151
|
+
}, null, 8, ["default", "modelValue", "value"])) : o.examples && o.examples.length ? (n(), f(V, {
|
|
152
152
|
key: 3,
|
|
153
153
|
default: o.default,
|
|
154
154
|
modelValue: o.modelValue,
|
|
@@ -159,35 +159,35 @@ const de = ["id"], ie = {
|
|
|
159
159
|
id: u(N)
|
|
160
160
|
}, e.$attrs, {
|
|
161
161
|
ref_key: "codeMirrorRef",
|
|
162
|
-
ref:
|
|
163
|
-
class: ["group-[.alert]:outline-orange font-code peer relative w-full overflow-hidden whitespace-nowrap text-xs leading-[1.44] -outline-offset-1 has-[:focus-visible]:rounded-[4px] has-[:focus-visible]:outline", {
|
|
162
|
+
ref: D,
|
|
163
|
+
class: ["group-[.alert]:outline-orange group-[.error]:outline-red font-code peer relative w-full overflow-hidden whitespace-nowrap text-xs leading-[1.44] -outline-offset-1 has-[:focus-visible]:rounded-[4px] has-[:focus-visible]:outline", {
|
|
164
164
|
"flow-code-input--error": e.error
|
|
165
165
|
}],
|
|
166
166
|
onKeydown: [
|
|
167
|
-
l[4] || (l[4] =
|
|
168
|
-
l[5] || (l[5] =
|
|
169
|
-
l[6] || (l[6] =
|
|
167
|
+
l[4] || (l[4] = h(q((t) => g("down", t), ["stop"]), ["down"])),
|
|
168
|
+
l[5] || (l[5] = h((t) => g("enter", t), ["enter"])),
|
|
169
|
+
l[6] || (l[6] = h(q((t) => g("up", t), ["stop"]), ["up"]))
|
|
170
170
|
]
|
|
171
171
|
}), [
|
|
172
|
-
e.isCopyable ? (n(), i("div",
|
|
173
|
-
|
|
172
|
+
e.isCopyable ? (n(), i("div", pe, [
|
|
173
|
+
w("button", {
|
|
174
174
|
class: "copy-button",
|
|
175
175
|
type: "button",
|
|
176
176
|
onClick: l[3] || (l[3] = (t) => u(O)(u(_)(e.modelValue)))
|
|
177
177
|
}, [
|
|
178
|
-
l[7] || (l[7] =
|
|
178
|
+
l[7] || (l[7] = w("span", { class: "sr-only" }, "Copy content", -1)),
|
|
179
179
|
Y(u(Z), {
|
|
180
180
|
icon: "Clipboard",
|
|
181
181
|
size: "md"
|
|
182
182
|
})
|
|
183
183
|
])
|
|
184
184
|
])) : c("", !0)
|
|
185
|
-
], 16,
|
|
186
|
-
e.$slots.warning ? (n(), i("div",
|
|
185
|
+
], 16, ie)),
|
|
186
|
+
e.$slots.warning ? (n(), i("div", me, [
|
|
187
187
|
R(e.$slots, "warning", {}, void 0, !0)
|
|
188
188
|
])) : c("", !0),
|
|
189
189
|
R(e.$slots, "icon", {}, void 0, !0),
|
|
190
|
-
e.required ? (n(), i("div",
|
|
190
|
+
e.required ? (n(), i("div", fe, " Required ")) : c("", !0),
|
|
191
191
|
y.value && e.withVariables && u(b) !== "modal" && e.environment ? (n(), f(ae, {
|
|
192
192
|
key: 7,
|
|
193
193
|
ref_key: "dropdownRef",
|
|
@@ -203,5 +203,5 @@ const de = ["id"], ie = {
|
|
|
203
203
|
}
|
|
204
204
|
});
|
|
205
205
|
export {
|
|
206
|
-
|
|
206
|
+
Se as default
|
|
207
207
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as n, openBlock as i, createElementBlock as d, withKeys as a, withModifiers as l, createElementVNode as o, renderSlot as s, createVNode as r, unref as m, withCtx as f, createTextVNode as p } from "vue";
|
|
2
2
|
import { ScalarButton as u } from "@scalar/components";
|
|
3
|
-
const b = { class: "
|
|
3
|
+
const b = { class: "relative flex min-h-20 flex-col rounded" }, x = { class: "flex gap-2" }, c = { class: "flex max-h-8 flex-1" }, h = /* @__PURE__ */ n({
|
|
4
4
|
__name: "CommandActionForm",
|
|
5
5
|
props: {
|
|
6
6
|
loading: {},
|
|
@@ -22,7 +22,7 @@ const b = { class: "flex flex-col rounded min-h-20 relative" }, x = { class: "fl
|
|
|
22
22
|
s(e.$slots, "options")
|
|
23
23
|
]),
|
|
24
24
|
r(m(u), {
|
|
25
|
-
class: "max-h-8
|
|
25
|
+
class: "max-h-8 p-0 px-3 text-xs",
|
|
26
26
|
disabled: e.disabled,
|
|
27
27
|
loading: e.loading,
|
|
28
28
|
type: "submit"
|
|
@@ -34,7 +34,7 @@ const E = ["placeholder"], b = /* @__PURE__ */ f({
|
|
|
34
34
|
ref_key: "input",
|
|
35
35
|
ref: a,
|
|
36
36
|
"onUpdate:modelValue": t[0] || (t[0] = (o) => l.value = o),
|
|
37
|
-
class: "
|
|
37
|
+
class: "min-h-8 w-full flex-1 resize-none border-none py-1.5 pl-8 text-sm outline-none",
|
|
38
38
|
placeholder: n.placeholder ?? "",
|
|
39
39
|
wrap: "hard"
|
|
40
40
|
}, e.$attrs, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommandPaletteExample.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandPaletteExample.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CommandPaletteExample.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandPaletteExample.vue"],"names":[],"mappings":"AAuJA,KAAK,WAAW,GAAG;IACjB,oCAAoC;IACpC,QAAQ,CAAC,EAAE;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,CAAA;CAC/B,CAAC;;;;;;;;AA4RF,wBAOG"}
|