@scalar/api-client 2.18.0 → 2.18.3
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 +85 -0
- package/dist/components/AddressBar/AddressBar.vue2.js +52 -52
- package/dist/components/AddressBar/AddressBarHistory.vue2.js +15 -15
- package/dist/components/AddressBar/httpStatusCodeColors.d.ts +0 -33
- package/dist/components/AddressBar/httpStatusCodeColors.d.ts.map +1 -1
- package/dist/components/AddressBar/httpStatusCodeColors.js +0 -1
- package/dist/components/CodeInput/CodeInput.vue2.js +112 -112
- package/dist/components/CommandPalette/CommandActionForm.vue.js +18 -18
- package/dist/components/CommandPalette/CommandPaletteImportCurl.vue2.js +25 -25
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +2 -2
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.js +2 -4
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +0 -1
- package/dist/components/CommandPalette/WatchModeToggle.vue.js +14 -14
- package/dist/components/DataTable/DataTable.vue.js +17 -17
- package/dist/components/DataTable/DataTableCell.vue.js +9 -9
- package/dist/components/DataTable/DataTableCheckbox.vue.js +17 -17
- package/dist/components/DataTable/DataTableInput.vue2.js +48 -48
- package/dist/components/DataTable/DataTableInputSelect.vue.js +35 -35
- package/dist/components/DataTable/DataTableText.vue.js +10 -10
- package/dist/components/Form/Form.vue.js +32 -32
- package/dist/components/Form/LabelInput.vue2.js +15 -15
- package/dist/components/HelpfulLink.vue.js +7 -7
- package/dist/components/HttpMethod/HttpMethod.vue2.js +22 -22
- package/dist/components/IconSelector.vue.js +16 -16
- package/dist/components/ImportCollection/ImportCollectionModal.vue.js +50 -50
- package/dist/components/ImportCollection/ImportNowButton.vue.js +23 -23
- package/dist/components/ImportCollection/PrefetchError.vue.js +8 -8
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts +0 -7
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts.map +1 -1
- package/dist/components/ScalarAsciiArt.vue2.js +16 -16
- package/dist/components/SectionFilter.vue2.js +21 -21
- package/dist/components/SectionFilterButton.vue.js +7 -7
- package/dist/components/Server/ServerDropdown.vue.js +32 -32
- package/dist/components/Server/ServerDropdownItem.vue2.js +39 -39
- package/dist/components/Server/ServerSelector.vue.js +27 -27
- package/dist/components/Server/ServerVariablesForm.vue.js +26 -26
- package/dist/components/Server/ServerVariablesSelect.vue.js +21 -21
- package/dist/components/Server/ServerVariablesTextbox.vue.js +10 -10
- package/dist/components/Server/types.d.ts +2 -1
- package/dist/components/Server/types.d.ts.map +1 -1
- package/dist/components/SideNav/SideNavLink.vue.js +18 -18
- package/dist/components/SideNav/SideNavRouterLink.vue.js +13 -13
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.js +11 -11
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +16 -16
- package/dist/components/Sidebar/Sidebar.vue2.js +28 -28
- package/dist/components/Sidebar/SidebarButton.vue.js +12 -12
- package/dist/components/Sidebar/SidebarListElement.vue2.js +34 -34
- package/dist/components/Sidebar/SidebarListElementActions.vue.js +33 -33
- package/dist/components/TopNav/TopNavItem.vue2.js +41 -41
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +43 -43
- package/dist/data/httpHeaders.d.ts +2 -1
- package/dist/data/httpHeaders.d.ts.map +1 -1
- package/dist/hooks/useClientConfig.js +1 -1
- package/dist/hooks/useLayout.js +1 -1
- package/dist/hooks/useSidebar.js +1 -1
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/plugins/hooks/usePluginManager.d.ts +1 -1
- package/dist/plugins/hooks/usePluginManager.d.ts.map +1 -1
- package/dist/plugins/hooks/usePluginManager.js +5 -5
- package/dist/plugins/index.d.ts +1 -1
- package/dist/plugins/index.d.ts.map +1 -1
- package/dist/plugins/index.js +5 -5
- package/dist/plugins/plugin-manager.d.ts +0 -2
- package/dist/plugins/plugin-manager.d.ts.map +1 -1
- package/dist/routes.d.ts +0 -10
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +0 -1
- package/dist/store/active-entities.js +1 -1
- package/dist/store/security-schemes.d.ts.map +1 -1
- package/dist/store/store.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.js +44 -44
- package/dist/v2/blocks/operation-block/components/Header.vue2.js +20 -20
- package/dist/v2/blocks/operation-block/helpers/build-request-body.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/build-request-body.js +14 -14
- package/dist/v2/blocks/operation-block/helpers/get-delimiter.js +0 -2
- package/dist/v2/blocks/operation-code-sample/components/HttpMethod.vue.js +12 -12
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue2.js +65 -65
- package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts +2 -1
- package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.js +6 -6
- package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.d.ts +4 -3
- package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.js +9 -7
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.js +40 -32
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.d.ts +1 -3
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.js +0 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue.js +2 -2
- package/dist/v2/blocks/request-block/RequestBlock.vue2.js +144 -149
- package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts +25 -45
- package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestBody.vue.js +2 -2
- package/dist/v2/blocks/request-block/components/RequestBody.vue2.js +90 -139
- package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.d.ts +22 -0
- package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.js +77 -0
- package/dist/v2/blocks/request-block/components/RequestBodyForm.vue2.js +4 -0
- package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts +4 -4
- package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestParams.vue.js +34 -34
- package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts +6 -6
- package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTable.vue.js +3 -3
- package/dist/v2/blocks/request-block/components/RequestTable.vue2.js +30 -32
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts +2 -2
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.js +64 -64
- package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue2.js +29 -29
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts +2 -2
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.js +12 -13
- package/dist/v2/blocks/request-block/helpers/get-form-body-rows.d.ts +8 -0
- package/dist/v2/blocks/request-block/helpers/get-form-body-rows.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/helpers/get-form-body-rows.js +9 -0
- package/dist/v2/blocks/request-block/helpers/get-request-body-example.d.ts +3 -1
- package/dist/v2/blocks/request-block/helpers/get-request-body-example.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/helpers/get-request-body-example.js +9 -8
- package/dist/v2/blocks/response-block/ResponseBlock.vue2.js +67 -67
- package/dist/v2/blocks/response-block/components/Headers.vue.js +35 -35
- package/dist/v2/blocks/response-block/components/ResponseBody.vue2.js +24 -24
- package/dist/v2/blocks/response-block/components/ResponseBodyDownload.vue.js +10 -10
- package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue2.js +24 -24
- package/dist/v2/blocks/response-block/components/ResponseBodyToggle.vue.js +10 -10
- package/dist/v2/blocks/response-block/components/ResponseCookies.vue.js +11 -11
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue2.js +14 -14
- package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue2.js +11 -11
- package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue.js +33 -33
- package/dist/v2/blocks/response-block/helpers/media-types.d.ts +3 -6
- package/dist/v2/blocks/response-block/helpers/media-types.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/helpers/media-types.js +0 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +72 -72
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue2.js +9 -9
- package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.d.ts +0 -33
- package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.js +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +83 -82
- package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.js +10 -10
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +121 -121
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue2.js +13 -13
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +33 -33
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +26 -26
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.js +26 -26
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +2 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +130 -122
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts +0 -21
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js +1 -3
- package/dist/v2/components/code-input/CodeInput.vue2.js +93 -93
- package/dist/v2/components/data-table/DataTable.vue.js +17 -17
- package/dist/v2/components/data-table/DataTableCell.vue.js +9 -9
- package/dist/v2/components/data-table/DataTableCheckbox.vue.js +17 -17
- package/dist/v2/components/data-table/DataTableInput.vue2.js +48 -48
- package/dist/v2/components/data-table/DataTableInputSelect.vue.js +35 -35
- package/dist/v2/components/data-table/DataTableText.vue.js +10 -10
- package/dist/v2/components/forms/ConfirmationForm.vue.js +13 -13
- package/dist/v2/components/layout/CollapsibleSection.vue.js +42 -42
- package/dist/v2/components/modals/DeleteModal.vue.js +13 -13
- package/dist/v2/components/resize/Resize.vue2.js +11 -11
- package/dist/v2/components/server/ServerDropdown.vue.js +30 -30
- package/dist/v2/components/server/ServerDropdownItem.vue2.js +27 -27
- package/dist/v2/components/sidebar/Sidebar.vue.js +32 -32
- package/dist/v2/components/sidebar/SidebarMenu.vue.js +20 -20
- package/dist/v2/features/app/App.vue.js +25 -25
- package/dist/v2/features/app/app-events.d.ts.map +1 -1
- package/dist/v2/features/app/app-events.js +55 -61
- package/dist/v2/features/app/components/AppSidebar.vue2.js +97 -97
- package/dist/v2/features/app/components/CreateWorkspaceModal.vue.js +20 -20
- package/dist/v2/features/app/components/DesktopTab.vue2.js +59 -59
- package/dist/v2/features/app/components/DesktopTabs.vue.js +22 -22
- package/dist/v2/features/app/components/SidebarItemMenu.vue.js +6 -6
- package/dist/v2/features/app/components/WebTopNav.vue.js +9 -9
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts +2 -5
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -1
- package/dist/v2/features/app/helpers/create-api-client-app.js +1 -2
- package/dist/v2/features/app/helpers/routes.d.ts +5 -1
- package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
- package/dist/v2/features/collection/DocumentCollection.vue.js +31 -31
- package/dist/v2/features/collection/WorkspaceCollection.vue.js +17 -17
- package/dist/v2/features/collection/components/Authentication.vue2.js +18 -18
- package/dist/v2/features/collection/components/Cookies.vue.js +10 -10
- package/dist/v2/features/collection/components/Environment.vue.js +10 -10
- package/dist/v2/features/collection/components/Form.vue.js +21 -21
- package/dist/v2/features/collection/components/Overview.vue2.js +25 -25
- package/dist/v2/features/collection/components/Servers.vue.js +37 -37
- package/dist/v2/features/collection/components/Settings.vue.js +22 -22
- package/dist/v2/features/collection/components/Tabs.vue.js +18 -18
- package/dist/v2/features/command-palette/components/CommandActionForm.vue.js +20 -20
- package/dist/v2/features/command-palette/components/CommandActionInput.vue.js +17 -17
- package/dist/v2/features/command-palette/components/TheCommandPalette.vue2.js +68 -68
- package/dist/v2/features/command-palette/components/WatchModeToggle.vue.js +11 -11
- package/dist/v2/features/command-palette/helpers/get-openapi-document-details.d.ts +2 -1
- package/dist/v2/features/command-palette/helpers/get-openapi-document-details.d.ts.map +1 -1
- package/dist/v2/features/command-palette/helpers/get-postman-document-details.d.ts +2 -1
- package/dist/v2/features/command-palette/helpers/get-postman-document-details.d.ts.map +1 -1
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts +3 -3
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts.map +1 -1
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.js +0 -1
- package/dist/v2/features/command-palette/types.d.ts +11 -10
- package/dist/v2/features/command-palette/types.d.ts.map +1 -1
- package/dist/v2/features/environments/EnvironmentsList.vue.js +36 -36
- package/dist/v2/features/environments/components/Environment.vue.js +16 -16
- package/dist/v2/features/environments/components/EnvironmentColors.vue.js +37 -37
- package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.js +19 -19
- package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.js +14 -14
- package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.js +24 -24
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue2.js +58 -58
- package/dist/v2/features/global-cookies/components/CookiesTable.vue2.js +23 -23
- package/dist/v2/features/modal/Modal.vue.d.ts +1 -1
- package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
- package/dist/v2/features/modal/Modal.vue.js +1 -1
- package/dist/v2/features/modal/Modal.vue2.js +57 -56
- package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts +5 -4
- package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts.map +1 -1
- package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.d.ts.map +1 -1
- package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.js +17 -21
- package/dist/v2/features/operation/Operation.vue.d.ts +5 -1
- package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
- package/dist/v2/features/operation/Operation.vue.js +41 -39
- package/dist/v2/features/search/components/SearchButton.vue.js +40 -40
- package/dist/v2/features/search/components/SearchModal.vue2.js +43 -43
- package/dist/v2/features/search/components/SearchResult.vue.js +34 -34
- package/dist/v2/features/search/types.d.ts +5 -4
- package/dist/v2/features/search/types.d.ts.map +1 -1
- package/dist/v2/features/settings/CollectionSettings.vue.js +51 -51
- package/dist/v2/features/settings/DocumentSettings.vue.js +25 -25
- package/dist/v2/features/settings/components/Appearance.vue.js +27 -27
- package/dist/v2/helpers/handle-hotkeys.d.ts +1 -12
- package/dist/v2/helpers/handle-hotkeys.d.ts.map +1 -1
- package/dist/v2/helpers/handle-hotkeys.js +0 -2
- package/dist/v2/helpers/plugins.d.ts +2 -2
- package/dist/v2/helpers/plugins.d.ts.map +1 -1
- package/dist/views/Collection/CollectionNavigation.vue.js +13 -13
- package/dist/views/Collection/components/EnvironmentForm.vue2.js +114 -114
- package/dist/views/Collection/components/MarkdownInput.vue2.js +31 -31
- package/dist/views/Cookies/CookieModal.vue2.js +26 -26
- package/dist/views/Environment/EnvironmentColorModal.vue.js +10 -10
- package/dist/views/Environment/EnvironmentColors.vue.js +56 -56
- package/dist/views/Environment/EnvironmentModal.vue.js +26 -26
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +24 -24
- package/dist/views/Request/Request.vue2.js +55 -55
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +17 -17
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +102 -102
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +27 -27
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +91 -91
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +36 -36
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +101 -101
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +154 -154
- package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +35 -35
- package/dist/views/Request/RequestSection/RequestParams.vue.js +81 -81
- package/dist/views/Request/RequestSection/RequestPathParams.vue.js +47 -47
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +90 -90
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +111 -111
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +29 -29
- package/dist/views/Request/RequestSection/index.d.ts +1 -1
- package/dist/views/Request/RequestSection/index.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/index.js +4 -4
- package/dist/views/Request/RequestSidebarItem.vue2.js +149 -149
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +79 -79
- package/dist/views/Request/RequestSubpageHeader.vue2.js +30 -30
- package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +29 -29
- package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +37 -37
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +10 -10
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +24 -24
- package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.js +10 -10
- package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +16 -16
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +21 -21
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +30 -30
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +37 -37
- package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +61 -61
- package/package.json +24 -24
- package/dist/components/ImportCollection/OpenAppButton.vue.d.ts +0 -6
- package/dist/components/ImportCollection/OpenAppButton.vue.d.ts.map +0 -1
- package/dist/components/ImportCollection/OperationBadge.vue.d.ts +0 -8
- package/dist/components/ImportCollection/OperationBadge.vue.d.ts.map +0 -1
- package/dist/components/ScreenReader.vue.d.ts +0 -20
- package/dist/components/ScreenReader.vue.d.ts.map +0 -1
- package/dist/components/SideNav/WorkspaceProfileIcon.vue.d.ts +0 -9
- package/dist/components/SideNav/WorkspaceProfileIcon.vue.d.ts.map +0 -1
- package/dist/views/Components/RequestBodies/RequestBodies.vue.d.ts +0 -3
- package/dist/views/Components/RequestBodies/RequestBodies.vue.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/types/post-response.d.ts +0 -7
- package/dist/views/Request/RequestSection/types/post-response.d.ts.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { cva as
|
|
3
|
-
import { getHttpMethodInfo as
|
|
4
|
-
const H = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as S, computed as l, createBlock as g, createElementBlock as y, openBlock as m, unref as a, withCtx as C, createElementVNode as s, normalizeClass as n, toDisplayString as f } from "vue";
|
|
2
|
+
import { cva as q, ScalarListbox as k, cx as p } from "@scalar/components";
|
|
3
|
+
import { getHttpMethodInfo as b, REQUEST_METHODS as w } from "@scalar/helpers/http/http-info";
|
|
4
|
+
const H = /* @__PURE__ */ S({
|
|
5
5
|
__name: "HttpMethod",
|
|
6
6
|
props: {
|
|
7
7
|
isSquare: { type: Boolean, default: !1 },
|
|
@@ -9,15 +9,15 @@ const H = /* @__PURE__ */ g({
|
|
|
9
9
|
isEditable: { type: Boolean, default: !1 }
|
|
10
10
|
},
|
|
11
11
|
emits: ["change"],
|
|
12
|
-
setup(
|
|
13
|
-
const
|
|
12
|
+
setup(t, { emit: h }) {
|
|
13
|
+
const i = t, v = h, o = l(() => b(i.method)), r = Object.entries(w).map(([e]) => ({
|
|
14
14
|
id: e,
|
|
15
15
|
label: e.toUpperCase(),
|
|
16
|
-
color:
|
|
17
|
-
})),
|
|
18
|
-
get: () =>
|
|
16
|
+
color: b(e).colorClass
|
|
17
|
+
})), d = l({
|
|
18
|
+
get: () => r.find(({ id: e }) => e === i.method),
|
|
19
19
|
set: (e) => e?.id && v("change", e.id)
|
|
20
|
-
}),
|
|
20
|
+
}), c = q({
|
|
21
21
|
base: "text-center font-code text-3xs justify-center items-center flex",
|
|
22
22
|
variants: {
|
|
23
23
|
isSquare: {
|
|
@@ -29,32 +29,32 @@ const H = /* @__PURE__ */ g({
|
|
|
29
29
|
false: "cursor-auto"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
}), E =
|
|
33
|
-
return (e, u) =>
|
|
32
|
+
}), E = l(() => o.value.short);
|
|
33
|
+
return (e, u) => t.isEditable ? (m(), g(a(k), {
|
|
34
34
|
key: 0,
|
|
35
|
-
modelValue:
|
|
36
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
35
|
+
modelValue: d.value,
|
|
36
|
+
"onUpdate:modelValue": u[0] || (u[0] = (x) => d.value = x),
|
|
37
37
|
class: "font-code scalar-client mt-1 text-sm",
|
|
38
|
-
options:
|
|
38
|
+
options: a(r)
|
|
39
39
|
}, {
|
|
40
|
-
default:
|
|
40
|
+
default: C(() => [
|
|
41
41
|
s("div", {
|
|
42
|
-
class:
|
|
42
|
+
class: n(["h-full", { "pointer-events-none": !t.isEditable }])
|
|
43
43
|
}, [
|
|
44
44
|
s("button", {
|
|
45
|
-
class:
|
|
45
|
+
class: n(["relative h-full", a(p)(a(c)({ isSquare: t.isSquare, isEditable: t.isEditable }), o.value.colorClass)]),
|
|
46
46
|
type: "button"
|
|
47
47
|
}, [
|
|
48
|
-
s("span", null,
|
|
48
|
+
s("span", null, f(E.value), 1)
|
|
49
49
|
], 2)
|
|
50
50
|
], 2)
|
|
51
51
|
]),
|
|
52
52
|
_: 1
|
|
53
|
-
}, 8, ["modelValue", "options"])) : (
|
|
53
|
+
}, 8, ["modelValue", "options"])) : (m(), y("div", {
|
|
54
54
|
key: 1,
|
|
55
|
-
class:
|
|
55
|
+
class: n(["relative gap-1 whitespace-nowrap", a(p)(a(c)({ isSquare: t.isSquare, isEditable: t.isEditable }), o.value.colorClass)]),
|
|
56
56
|
type: "button"
|
|
57
|
-
},
|
|
57
|
+
}, f(o.value.short), 3));
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
60
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as g, computed as V, createBlock as
|
|
2
|
-
import { RadioGroup as S, RadioGroupLabel as
|
|
1
|
+
import { defineComponent as g, computed as V, createBlock as u, openBlock as s, unref as e, withCtx as o, renderSlot as d, createVNode as a, createElementVNode as m, createTextVNode as p, createElementBlock as k, Fragment as y, renderList as w, toDisplayString as _ } from "vue";
|
|
2
|
+
import { RadioGroup as S, RadioGroupLabel as i, RadioGroupOption as C } from "@headlessui/vue";
|
|
3
3
|
import { ScalarPopover as I } from "@scalar/components";
|
|
4
4
|
import { libraryIcons as h, LibraryIcon as B } from "@scalar/icons/library";
|
|
5
5
|
const G = { class: "flex text-sm" }, L = { class: "bg-b-1 custom-scroll grid w-dvw max-w-[420px] auto-rows-[32px] grid-cols-[repeat(auto-fill,minmax(32px,1fr))] content-between justify-between rounded border p-1" }, $ = /* @__PURE__ */ g({
|
|
@@ -9,35 +9,35 @@ const G = { class: "flex text-sm" }, L = { class: "bg-b-1 custom-scroll grid w-d
|
|
|
9
9
|
placement: {}
|
|
10
10
|
},
|
|
11
11
|
emits: ["update:modelValue"],
|
|
12
|
-
setup(
|
|
13
|
-
const b =
|
|
12
|
+
setup(c, { emit: f }) {
|
|
13
|
+
const b = c, x = f, n = V({
|
|
14
14
|
get: () => b.modelValue,
|
|
15
15
|
set: (l) => x("update:modelValue", l)
|
|
16
16
|
});
|
|
17
|
-
return (l, r) => (s(),
|
|
17
|
+
return (l, r) => (s(), u(e(I), {
|
|
18
18
|
class: "bg-b-2 rounded",
|
|
19
19
|
focus: "",
|
|
20
|
-
placement:
|
|
20
|
+
placement: c.placement ?? "bottom"
|
|
21
21
|
}, {
|
|
22
22
|
popover: o(({ close: v }) => [
|
|
23
23
|
a(e(S), {
|
|
24
|
-
modelValue:
|
|
25
|
-
"onUpdate:modelValue": r[0] || (r[0] = (t) =>
|
|
24
|
+
modelValue: n.value,
|
|
25
|
+
"onUpdate:modelValue": r[0] || (r[0] = (t) => n.value = t),
|
|
26
26
|
class: "flex flex-col"
|
|
27
27
|
}, {
|
|
28
28
|
default: o(() => [
|
|
29
|
-
|
|
30
|
-
a(e(
|
|
29
|
+
m("div", G, [
|
|
30
|
+
a(e(i), { class: "text-c-2 px-1 py-1" }, {
|
|
31
31
|
default: o(() => [
|
|
32
|
-
|
|
32
|
+
d(l.$slots, "title", {}, () => [
|
|
33
33
|
r[1] || (r[1] = p("Select an icon", -1))
|
|
34
34
|
])
|
|
35
35
|
]),
|
|
36
36
|
_: 3
|
|
37
37
|
})
|
|
38
38
|
]),
|
|
39
|
-
|
|
40
|
-
(s(!0), k(y, null,
|
|
39
|
+
m("ul", L, [
|
|
40
|
+
(s(!0), k(y, null, w(e(h), (t) => (s(), u(e(C), {
|
|
41
41
|
key: t.src,
|
|
42
42
|
as: "li",
|
|
43
43
|
class: "text-c-3 hover:text-c-2 hover:bg-b-2 ui-checked:bg-b-3 ui-active:bg-b-2 flex cursor-pointer items-center justify-center rounded p-2",
|
|
@@ -45,9 +45,9 @@ const G = { class: "flex text-sm" }, L = { class: "bg-b-1 custom-scroll grid w-d
|
|
|
45
45
|
onClick: v
|
|
46
46
|
}, {
|
|
47
47
|
default: o(() => [
|
|
48
|
-
a(e(
|
|
48
|
+
a(e(i), { class: "sr-only" }, {
|
|
49
49
|
default: o(() => [
|
|
50
|
-
p(
|
|
50
|
+
p(_(t.src.replaceAll("-", " ")) + " Icon ", 1)
|
|
51
51
|
]),
|
|
52
52
|
_: 2
|
|
53
53
|
}, 1024),
|
|
@@ -64,7 +64,7 @@ const G = { class: "flex text-sm" }, L = { class: "bg-b-1 custom-scroll grid w-d
|
|
|
64
64
|
}, 1032, ["modelValue"])
|
|
65
65
|
]),
|
|
66
66
|
default: o(() => [
|
|
67
|
-
|
|
67
|
+
d(l.$slots, "default")
|
|
68
68
|
]),
|
|
69
69
|
_: 3
|
|
70
70
|
}, 8, ["placement"]));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as F, ref as R, computed as c, watch as
|
|
1
|
+
import { defineComponent as F, ref as R, computed as c, watch as g, onMounted as q, onUnmounted as B, createBlock as H, openBlock as l, unref as i, withCtx as W, createElementBlock as a, createCommentVNode as u, createElementVNode as e, normalizeClass as K, Fragment as _, createVNode as d, toDisplayString as G, createTextVNode as I } from "vue";
|
|
2
2
|
import { useModal as J, ScalarModal as Q, ScalarIcon as X } from "@scalar/components";
|
|
3
3
|
import { isLocalUrl as Y } from "@scalar/oas-utils/helpers";
|
|
4
4
|
import { normalize as Z } from "@scalar/openapi-parser";
|
|
@@ -10,9 +10,9 @@ import { useUrlPrefetcher as re } from "./hooks/useUrlPrefetcher.js";
|
|
|
10
10
|
import ie from "./ImportNowButton.vue.js";
|
|
11
11
|
import le from "./IntegrationLogo.vue.js";
|
|
12
12
|
import ce from "./PrefetchError.vue.js";
|
|
13
|
-
import { getOpenApiVersion as
|
|
14
|
-
import { isDocument as
|
|
15
|
-
import { isUrl as
|
|
13
|
+
import { getOpenApiVersion as L } from "./utils/get-openapi-version.js";
|
|
14
|
+
import { isDocument as M } from "./utils/is-document.js";
|
|
15
|
+
import { isUrl as T } from "./utils/is-url.js";
|
|
16
16
|
import ae from "./WorkspaceSelector.vue.js";
|
|
17
17
|
import { useActiveEntities as de } from "../../store/active-entities.js";
|
|
18
18
|
import { useWorkspace as me } from "../../store/store.js";
|
|
@@ -36,85 +36,85 @@ const ue = ["innerHTML"], fe = { class: "relative flex h-screen flex-col justify
|
|
|
36
36
|
eventType: {}
|
|
37
37
|
},
|
|
38
38
|
emits: ["importFinished"],
|
|
39
|
-
setup(
|
|
40
|
-
const
|
|
39
|
+
setup(p, { emit: U }) {
|
|
40
|
+
const o = p, A = U, { activeWorkspace: f } = de(), { workspaceMutators: C, events: P } = me(), { prefetchResult: n, prefetchUrl: b, resetPrefetchResult: V } = re(), r = J(), v = R(!0);
|
|
41
41
|
P.hotKeys.on(() => r.hide());
|
|
42
42
|
const j = c(() => {
|
|
43
43
|
try {
|
|
44
44
|
return Z(
|
|
45
|
-
n.content ||
|
|
45
|
+
n.content || o.source || ""
|
|
46
46
|
);
|
|
47
47
|
} catch {
|
|
48
48
|
return;
|
|
49
49
|
}
|
|
50
|
-
}), D = c(() => j.value?.info?.title),
|
|
51
|
-
() =>
|
|
52
|
-
), { darkLightMode: S } = oe(), { currentRoute: z } = se(),
|
|
50
|
+
}), D = c(() => j.value?.info?.title), w = c(
|
|
51
|
+
() => L(n.content || o.source || "")
|
|
52
|
+
), { darkLightMode: S } = oe(), { currentRoute: z } = se(), h = c(() => {
|
|
53
53
|
try {
|
|
54
|
-
const
|
|
54
|
+
const s = z.value.query, t = S.value === "dark" ? s.dark_logo : s.light_logo;
|
|
55
55
|
if (t)
|
|
56
56
|
return decodeURIComponent(t);
|
|
57
57
|
} catch {
|
|
58
58
|
}
|
|
59
59
|
return null;
|
|
60
60
|
});
|
|
61
|
-
|
|
62
|
-
() =>
|
|
63
|
-
async (
|
|
64
|
-
if (V(),
|
|
65
|
-
if (
|
|
66
|
-
const { error: m } = await
|
|
67
|
-
|
|
61
|
+
g(
|
|
62
|
+
() => o.source,
|
|
63
|
+
async (s) => {
|
|
64
|
+
if (V(), T(s)) {
|
|
65
|
+
if (o.eventType && ["paste", "drop"].includes(o.eventType)) {
|
|
66
|
+
const { error: m } = await b(
|
|
67
|
+
s,
|
|
68
68
|
f.value?.proxyUrl
|
|
69
69
|
);
|
|
70
70
|
m ? r.hide() : r.show();
|
|
71
71
|
return;
|
|
72
72
|
}
|
|
73
|
-
|
|
73
|
+
b(s, f.value?.proxyUrl), r.show();
|
|
74
74
|
return;
|
|
75
75
|
}
|
|
76
|
-
|
|
76
|
+
s && M(s) && L(s) ? r.show() : r.hide();
|
|
77
77
|
}
|
|
78
78
|
);
|
|
79
|
-
const N = c(() => !!
|
|
79
|
+
const N = c(() => !!o.source && T(o.source)), O = c(() => !!o.source && M(o.source)), x = c(() => n.url && Y(n.url)), y = (s) => {
|
|
80
80
|
document.body.classList.remove("has-no-import-url"), (N.value || O.value) && r.open ? document.body.classList.add("has-import-url") : document.body.classList.remove("has-import-url");
|
|
81
81
|
}, $ = () => {
|
|
82
82
|
document.body.classList.remove("has-import-url"), document.body.classList.add("has-no-import-url");
|
|
83
83
|
};
|
|
84
|
-
|
|
84
|
+
g(
|
|
85
85
|
() => r.open,
|
|
86
|
-
(
|
|
87
|
-
|
|
86
|
+
(s) => {
|
|
87
|
+
s ? y() : $();
|
|
88
88
|
}
|
|
89
|
-
),
|
|
90
|
-
() =>
|
|
89
|
+
), g(
|
|
90
|
+
() => o.source,
|
|
91
91
|
() => {
|
|
92
|
-
|
|
92
|
+
y();
|
|
93
93
|
}
|
|
94
94
|
), q(() => {
|
|
95
|
-
|
|
95
|
+
y();
|
|
96
96
|
}), B(() => {
|
|
97
97
|
document.body.classList.remove("has-import-url"), document.body.classList.remove("has-no-import-url");
|
|
98
98
|
});
|
|
99
|
-
const
|
|
100
|
-
() => f.value &&
|
|
99
|
+
const k = c(
|
|
100
|
+
() => f.value && x.value && o.integration && `<style>${ee(o.integration)}</style>`
|
|
101
101
|
);
|
|
102
102
|
function E() {
|
|
103
|
-
const
|
|
104
|
-
|
|
103
|
+
const s = (m) => te.includes(m), t = o.integration && s(o.integration) ? o.integration : "default";
|
|
104
|
+
x.value && C.edit(
|
|
105
105
|
f.value?.uid,
|
|
106
106
|
"themeId",
|
|
107
107
|
t
|
|
108
108
|
), A("importFinished");
|
|
109
109
|
}
|
|
110
|
-
return (
|
|
110
|
+
return (s, t) => (l(), H(i(Q), {
|
|
111
111
|
size: "full",
|
|
112
112
|
state: i(r)
|
|
113
113
|
}, {
|
|
114
114
|
default: W(() => [
|
|
115
|
-
|
|
115
|
+
k.value ? (l(), a("div", {
|
|
116
116
|
key: 0,
|
|
117
|
-
innerHTML:
|
|
117
|
+
innerHTML: k.value
|
|
118
118
|
}, null, 8, ue)) : u("", !0),
|
|
119
119
|
e("div", fe, [
|
|
120
120
|
t[6] || (t[6] = e("div", { class: "section-flare" }, [
|
|
@@ -130,44 +130,44 @@ const ue = ["innerHTML"], fe = { class: "relative flex h-screen flex-col justify
|
|
|
130
130
|
e("div", {
|
|
131
131
|
class: K(["m-auto flex w-full max-w-[380px] flex-col items-center rounded-xl border px-8 py-8 transition-opacity", { "opacity-0": i(n).state === "loading" }])
|
|
132
132
|
}, [
|
|
133
|
-
i(n).error && i(n).state === "idle" && !
|
|
133
|
+
i(n).error && i(n).state === "idle" && !w.value ? (l(), a(_, { key: 0 }, [
|
|
134
134
|
t[1] || (t[1] = e("div", { class: "text-md mb-2 line-clamp-1 text-center font-bold" }, " No OpenAPI document found ", -1)),
|
|
135
135
|
d(ce, {
|
|
136
|
-
url: i(n)?.input ||
|
|
136
|
+
url: i(n)?.input || o.source
|
|
137
137
|
}, null, 8, ["url"])
|
|
138
|
-
], 64)) : (l(), a(
|
|
139
|
-
|
|
138
|
+
], 64)) : (l(), a(_, { key: 1 }, [
|
|
139
|
+
x.value ? (l(), a("div", pe, [
|
|
140
140
|
e("div", ve, [
|
|
141
|
-
d(le, { integration:
|
|
141
|
+
d(le, { integration: p.integration }, null, 8, ["integration"])
|
|
142
142
|
])
|
|
143
|
-
])) :
|
|
143
|
+
])) : h.value ? (l(), a("img", {
|
|
144
144
|
key: 1,
|
|
145
145
|
alt: "Logo",
|
|
146
146
|
class: "mb-2 w-full object-contain",
|
|
147
|
-
src:
|
|
147
|
+
src: h.value
|
|
148
148
|
}, null, 8, he)) : u("", !0),
|
|
149
|
-
|
|
149
|
+
h.value ? u("", !0) : (l(), a("div", xe, G(D.value || "Untitled Collection"), 1)),
|
|
150
150
|
t[4] || (t[4] = e("div", { class: "text-c-1 text-center text-sm font-medium text-balance" }, " Import the OpenAPI document to instantly send API requests. No signup required. ", -1)),
|
|
151
|
-
|
|
151
|
+
w.value ? (l(), a(_, { key: 3 }, [
|
|
152
152
|
e("div", ye, [
|
|
153
153
|
d(ie, {
|
|
154
|
-
source: i(n)?.url ?? i(n)?.content ??
|
|
154
|
+
source: i(n)?.url ?? i(n)?.content ?? p.source,
|
|
155
155
|
variant: "button",
|
|
156
|
-
watchMode:
|
|
156
|
+
watchMode: v.value,
|
|
157
157
|
onImportFinished: E
|
|
158
158
|
}, null, 8, ["source", "watchMode"])
|
|
159
159
|
]),
|
|
160
160
|
e("div", ge, [
|
|
161
161
|
e("div", _e, [
|
|
162
|
-
t[2] || (t[2] =
|
|
162
|
+
t[2] || (t[2] = I(" Import to: ", -1)),
|
|
163
163
|
d(ae)
|
|
164
164
|
])
|
|
165
165
|
]),
|
|
166
166
|
i(n)?.url ? (l(), a("div", be, [
|
|
167
167
|
e("div", we, [
|
|
168
168
|
d(ne, {
|
|
169
|
-
modelValue:
|
|
170
|
-
"onUpdate:modelValue": t[0] || (t[0] = (m) =>
|
|
169
|
+
modelValue: v.value,
|
|
170
|
+
"onUpdate:modelValue": t[0] || (t[0] = (m) => v.value = m),
|
|
171
171
|
disableToolTip: !0
|
|
172
172
|
}, null, 8, ["modelValue"])
|
|
173
173
|
]),
|
|
@@ -193,7 +193,7 @@ const ue = ["innerHTML"], fe = { class: "relative flex h-screen flex-col justify
|
|
|
193
193
|
target: "_blank"
|
|
194
194
|
}, " Download Desktop App "),
|
|
195
195
|
e("br"),
|
|
196
|
-
|
|
196
|
+
I(" free · open-source · offline first ")
|
|
197
197
|
], -1))
|
|
198
198
|
])
|
|
199
199
|
])
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as C, createElementBlock as h, createCommentVNode as y, openBlock as
|
|
2
|
-
import { ScalarButton as
|
|
3
|
-
import { useToasts as
|
|
4
|
-
import { useRouter as
|
|
5
|
-
import { useActiveEntities as
|
|
1
|
+
import { defineComponent as C, createElementBlock as h, createCommentVNode as y, openBlock as r, Fragment as v, createBlock as u, unref as a, withCtx as m, createTextVNode as c } from "vue";
|
|
2
|
+
import { ScalarButton as l } from "@scalar/components";
|
|
3
|
+
import { useToasts as x } from "@scalar/use-toasts";
|
|
4
|
+
import { useRouter as b } from "vue-router";
|
|
5
|
+
import { useActiveEntities as g } from "../../store/active-entities.js";
|
|
6
6
|
import { importCollection as B } from "./utils/import-collection.js";
|
|
7
7
|
import { useWorkspace as I } from "../../store/store.js";
|
|
8
8
|
const R = /* @__PURE__ */ C({
|
|
@@ -13,46 +13,46 @@ const R = /* @__PURE__ */ C({
|
|
|
13
13
|
watchMode: { type: Boolean, default: !0 }
|
|
14
14
|
},
|
|
15
15
|
emits: ["importFinished"],
|
|
16
|
-
setup(
|
|
17
|
-
const f =
|
|
16
|
+
setup(o, { emit: p }) {
|
|
17
|
+
const f = p, d = b(), k = I(), { activeWorkspace: n } = g(), { toast: s } = x();
|
|
18
18
|
function i() {
|
|
19
19
|
B({
|
|
20
20
|
store: k,
|
|
21
21
|
workspace: n.value,
|
|
22
|
-
source:
|
|
23
|
-
watchMode:
|
|
24
|
-
onSuccess(
|
|
25
|
-
|
|
22
|
+
source: o.source,
|
|
23
|
+
watchMode: o.watchMode,
|
|
24
|
+
onSuccess(t) {
|
|
25
|
+
t && (w(t), s("Import successful", "info"), f("importFinished"));
|
|
26
26
|
},
|
|
27
|
-
onError(
|
|
28
|
-
console.error("[importCollection]",
|
|
29
|
-
const
|
|
30
|
-
s(`Import failed: ${
|
|
27
|
+
onError(t) {
|
|
28
|
+
console.error("[importCollection]", t);
|
|
29
|
+
const e = t?.message || "Unknown error";
|
|
30
|
+
s(`Import failed: ${e}`, "error");
|
|
31
31
|
}
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
|
-
function w(
|
|
35
|
-
|
|
34
|
+
function w(t) {
|
|
35
|
+
t && d.push({
|
|
36
36
|
name: "request",
|
|
37
37
|
params: {
|
|
38
38
|
workspace: n.value?.uid,
|
|
39
|
-
request:
|
|
39
|
+
request: t?.requests[0]
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
|
-
return (
|
|
44
|
-
|
|
43
|
+
return (t, e) => o.source ? (r(), h(v, { key: 0 }, [
|
|
44
|
+
o.variant === "button" ? (r(), u(a(l), {
|
|
45
45
|
key: 0,
|
|
46
46
|
class: "mt-3 h-fit w-full rounded-lg px-6 py-2.5 font-bold",
|
|
47
47
|
size: "md",
|
|
48
48
|
type: "button",
|
|
49
49
|
onClick: i
|
|
50
50
|
}, {
|
|
51
|
-
default: m(() => [...
|
|
51
|
+
default: m(() => [...e[0] || (e[0] = [
|
|
52
52
|
c(" Import Collection ", -1)
|
|
53
53
|
])]),
|
|
54
54
|
_: 1
|
|
55
|
-
})) : (
|
|
55
|
+
})) : (r(), u(a(l), {
|
|
56
56
|
key: 1,
|
|
57
57
|
class: "h-fit rounded-lg px-6 py-2.5 text-[21px] font-bold",
|
|
58
58
|
size: "md",
|
|
@@ -60,7 +60,7 @@ const R = /* @__PURE__ */ C({
|
|
|
60
60
|
variant: "ghost",
|
|
61
61
|
onClick: i
|
|
62
62
|
}, {
|
|
63
|
-
default: m(() => [...
|
|
63
|
+
default: m(() => [...e[1] || (e[1] = [
|
|
64
64
|
c(" Try it in the browser ", -1)
|
|
65
65
|
])]),
|
|
66
66
|
_: 1
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { defineComponent as l, createElementBlock as n, openBlock as o, createTextVNode as r, unref as d } from "vue";
|
|
2
|
-
import { isUrl as
|
|
3
|
-
const
|
|
2
|
+
import { isUrl as a } from "../../libs/isUrl.js";
|
|
3
|
+
const u = { class: "w-full text-center text-sm font-medium break-words" }, m = ["href"], s = {
|
|
4
4
|
key: 1,
|
|
5
5
|
textContent: "OpenAPI document manually"
|
|
6
|
-
},
|
|
6
|
+
}, p = /* @__PURE__ */ l({
|
|
7
7
|
__name: "PrefetchError",
|
|
8
8
|
props: {
|
|
9
9
|
url: {}
|
|
10
10
|
},
|
|
11
|
-
setup(
|
|
12
|
-
return (
|
|
11
|
+
setup(t) {
|
|
12
|
+
return (f, e) => (o(), n("div", u, [
|
|
13
13
|
e[0] || (e[0] = r(" We couldn't find an OpenAPI document at the provided URL. Please download and import the ", -1)),
|
|
14
|
-
t.url && d(
|
|
14
|
+
t.url && d(a)(t.url) ? (o(), n("a", {
|
|
15
15
|
key: 0,
|
|
16
16
|
href: t.url,
|
|
17
17
|
rel: "noopener nofollow",
|
|
18
18
|
target: "_blank",
|
|
19
19
|
textContent: "OpenAPI document manually"
|
|
20
|
-
}, null, 8,
|
|
20
|
+
}, null, 8, m)) : (o(), n("span", s)),
|
|
21
21
|
e[1] || (e[1] = r(". ", -1))
|
|
22
22
|
]));
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
25
|
export {
|
|
26
|
-
|
|
26
|
+
p as default
|
|
27
27
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUrlPrefetcher.d.ts","sourceRoot":"","sources":["../../../../src/components/ImportCollection/hooks/useUrlPrefetcher.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useUrlPrefetcher.d.ts","sourceRoot":"","sources":["../../../../src/components/ImportCollection/hooks/useUrlPrefetcher.ts"],"names":[],"mappings":"AAcA;;GAEG;AACH,wBAAgB,gBAAgB;;eAVvB,MAAM,GAAG,SAAS;iBAChB,MAAM,GAAG,IAAI;eACf,MAAM,GAAG,IAAI;aACf,MAAM,GAAG,IAAI;eACX,MAAM,GAAG,IAAI;;yBAsH4B,MAAM,GAAG,IAAI,aAAa,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBjF"}
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { defineComponent as d, computed as g, createElementBlock as a, openBlock as i, normalizeClass as h, Fragment as f, renderList as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as d, computed as g, createElementBlock as a, openBlock as i, normalizeClass as h, Fragment as f, renderList as x, normalizeStyle as c, createElementVNode as y, toDisplayString as v } from "vue";
|
|
2
|
+
const m = 500, l = 100, k = /* @__PURE__ */ d({
|
|
3
3
|
__name: "ScalarAsciiArt",
|
|
4
4
|
props: {
|
|
5
5
|
art: {},
|
|
6
6
|
animate: { type: Boolean }
|
|
7
7
|
},
|
|
8
|
-
setup(
|
|
9
|
-
const p =
|
|
10
|
-
`)), u = (t,
|
|
11
|
-
animationDuration: `${t *
|
|
8
|
+
setup(o) {
|
|
9
|
+
const p = o, e = g(() => p.art.split(`
|
|
10
|
+
`)), u = (t, s) => ({
|
|
11
|
+
animationDuration: `${t * l}ms, ${m}ms`,
|
|
12
12
|
animationTimingFunction: `steps(${t}), step-end`,
|
|
13
|
-
animationDelay: `${
|
|
14
|
-
animationIterationCount: `1, ${((e.value?.length ?? 0) + (e.value?.[e.value?.length - 1]?.length ?? 0) + 5) *
|
|
13
|
+
animationDelay: `${s * l}ms, 0ms`,
|
|
14
|
+
animationIterationCount: `1, ${((e.value?.length ?? 0) + (e.value?.[e.value?.length - 1]?.length ?? 0) + 5) * l / m}`
|
|
15
15
|
});
|
|
16
|
-
return (t,
|
|
16
|
+
return (t, s) => (i(), a("div", {
|
|
17
17
|
"aria-hidden": "true",
|
|
18
|
-
class: h(["ascii-art font-code flex flex-col items-start text-[6px] leading-[7px]", { "ascii-art-animate":
|
|
18
|
+
class: h(["ascii-art font-code flex flex-col items-start text-[6px] leading-[7px]", { "ascii-art-animate": o.animate }]),
|
|
19
19
|
role: "presentation",
|
|
20
20
|
inert: ""
|
|
21
21
|
}, [
|
|
22
|
-
(i(!0), a(f, null,
|
|
23
|
-
key:
|
|
22
|
+
(i(!0), a(f, null, x(e.value, (n, r) => (i(), a("span", {
|
|
23
|
+
key: r,
|
|
24
24
|
class: "inline-block",
|
|
25
|
-
style:
|
|
25
|
+
style: c({ width: `calc(${n.length + 1}ch)` })
|
|
26
26
|
}, [
|
|
27
|
-
|
|
27
|
+
y("span", {
|
|
28
28
|
class: "inline-block whitespace-pre overflow-hidden",
|
|
29
|
-
style:
|
|
30
|
-
},
|
|
29
|
+
style: c(u(n.length, r))
|
|
30
|
+
}, v(n), 5)
|
|
31
31
|
], 4))), 128))
|
|
32
32
|
], 2));
|
|
33
33
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as x, mergeModels as
|
|
1
|
+
import { defineComponent as x, mergeModels as h, useModel as g, ref as p, createElementBlock as u, openBlock as r, withKeys as f, createElementVNode as i, Fragment as b, renderList as k, createBlock as y, withCtx as V, createTextVNode as w, toDisplayString as m, createVNode as S, unref as q, nextTick as B } from "vue";
|
|
2
2
|
import { ScalarIcon as C } from "@scalar/components";
|
|
3
3
|
import I from "./SectionFilterButton.vue.js";
|
|
4
|
-
const
|
|
4
|
+
const $ = { class: "request-section-content request-section-content-filter fade-request-section-content text-c-3 pointer-events-auto relative hidden w-full justify-end gap-[1.5px] rounded py-1.75 text-xs xl:flex" }, F = { class: "filter-button context-bar-group-hover:text-c-1 absolute -right-[30px] flex items-center" }, M = { class: "context-bar-group-hover:hidden mr-1.5" }, L = /* @__PURE__ */ x({
|
|
5
5
|
__name: "SectionFilter",
|
|
6
|
-
props: /* @__PURE__ */
|
|
6
|
+
props: /* @__PURE__ */ h({
|
|
7
7
|
filters: { default: () => [] },
|
|
8
8
|
filterIds: {}
|
|
9
9
|
}, {
|
|
@@ -11,44 +11,44 @@ const _ = { class: "request-section-content request-section-content-filter fade-
|
|
|
11
11
|
modelModifiers: {}
|
|
12
12
|
}),
|
|
13
13
|
emits: ["update:modelValue"],
|
|
14
|
-
setup(
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
if (
|
|
19
|
-
const d =
|
|
14
|
+
setup(t) {
|
|
15
|
+
const o = g(t, "modelValue"), l = p(), c = (a) => {
|
|
16
|
+
const n = a === "prev" ? -1 : 1, e = o.value ? t.filters.indexOf(o.value) : 0, s = t.filters.length, v = (e + n + s) % s;
|
|
17
|
+
o.value = t.filters[v], B(() => {
|
|
18
|
+
if (l.value) {
|
|
19
|
+
const d = l.value.querySelector(
|
|
20
20
|
'button[aria-selected="true"]'
|
|
21
21
|
);
|
|
22
22
|
d && d.focus();
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
25
|
};
|
|
26
|
-
return (
|
|
26
|
+
return (a, n) => (r(), u("div", {
|
|
27
27
|
ref_key: "tablist",
|
|
28
|
-
ref:
|
|
28
|
+
ref: l,
|
|
29
29
|
class: "filter-hover context-bar-group ml-auto hidden lg:flex",
|
|
30
30
|
role: "tablist",
|
|
31
31
|
onKeydown: [
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
n[0] || (n[0] = f((e) => c("prev"), ["left"])),
|
|
33
|
+
n[1] || (n[1] = f((e) => c("next"), ["right"]))
|
|
34
34
|
]
|
|
35
35
|
}, [
|
|
36
|
-
|
|
37
|
-
(
|
|
36
|
+
i("div", $, [
|
|
37
|
+
(r(!0), u(b, null, k(t.filters, (e) => (r(), y(I, {
|
|
38
38
|
key: e,
|
|
39
39
|
class: "filter-hover-item",
|
|
40
|
-
controls:
|
|
40
|
+
controls: t.filterIds?.[e],
|
|
41
41
|
role: "tab",
|
|
42
|
-
selected:
|
|
43
|
-
onClick: (
|
|
42
|
+
selected: o.value === e,
|
|
43
|
+
onClick: (s) => o.value = e
|
|
44
44
|
}, {
|
|
45
45
|
default: V(() => [
|
|
46
46
|
w(m(e), 1)
|
|
47
47
|
]),
|
|
48
48
|
_: 2
|
|
49
49
|
}, 1032, ["controls", "selected", "onClick"]))), 128)),
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
i("div", F, [
|
|
51
|
+
i("span", M, m(o.value), 1),
|
|
52
52
|
S(q(C), {
|
|
53
53
|
icon: "FilterList",
|
|
54
54
|
size: "md",
|
|
@@ -60,5 +60,5 @@ const _ = { class: "request-section-content request-section-content-filter fade-
|
|
|
60
60
|
}
|
|
61
61
|
});
|
|
62
62
|
export {
|
|
63
|
-
|
|
63
|
+
L as default
|
|
64
64
|
};
|