@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,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as W, useAttrs as j, ref as
|
|
1
|
+
import { defineComponent as W, useAttrs as j, ref as d, computed as p, toRef as s, watch as H, createElementBlock as i, openBlock as a, Fragment as Q, createBlock as b, createCommentVNode as f, normalizeClass as G, unref as w, createElementVNode as V, toDisplayString as J, mergeProps as X, withKeys as y, withModifiers as q, createTextVNode as x, renderSlot as R } from "vue";
|
|
2
2
|
import { useCodeMirror as Y, useDropdown as Z, colorPicker as _ } from "@scalar/use-codemirror";
|
|
3
3
|
import { nanoid as ee } from "nanoid";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { pillPlugin as
|
|
4
|
+
import te from "../../views/Environment/EnvironmentVariableDropdown.vue.js";
|
|
5
|
+
import B from "../DataTable/DataTableInputSelect.vue.js";
|
|
6
|
+
import { pillPlugin as oe, backspaceCommand as le } from "./codeVariableWidget.js";
|
|
7
7
|
import { useLayout as ne } from "../../hooks/useLayout.js";
|
|
8
8
|
const ae = { class: "whitespace-nowrap" }, re = ["id"], se = {
|
|
9
9
|
key: 0,
|
|
@@ -52,155 +52,155 @@ const ae = { class: "whitespace-nowrap" }, re = ["id"], se = {
|
|
|
52
52
|
lineWrapping: { type: Boolean, default: !1 }
|
|
53
53
|
},
|
|
54
54
|
emits: ["submit", "update:modelValue", "curl", "blur"],
|
|
55
|
-
setup(
|
|
56
|
-
const
|
|
57
|
-
function
|
|
58
|
-
return
|
|
55
|
+
setup(l, { expose: A, emit: I }) {
|
|
56
|
+
const e = l, u = I, k = j(), M = k.id || `id-${ee()}`, C = d(!1), g = d(!1), S = d(""), D = d({ left: 0, top: 0 }), m = d(null), { layout: v } = ne();
|
|
57
|
+
function P(t) {
|
|
58
|
+
return t === e.modelValue ? null : e.importCurl && t.trim().toLowerCase().startsWith("curl") ? (u("curl", t), r.value?.dispatch({
|
|
59
59
|
changes: {
|
|
60
60
|
from: 0,
|
|
61
|
-
to:
|
|
62
|
-
insert: String(
|
|
61
|
+
to: r.value.state.doc.length,
|
|
62
|
+
insert: String(e.modelValue)
|
|
63
63
|
}
|
|
64
|
-
}), null) :
|
|
64
|
+
}), null) : e.handleFieldChange ? e.handleFieldChange(t) : u("update:modelValue", t);
|
|
65
65
|
}
|
|
66
|
-
function
|
|
67
|
-
return
|
|
66
|
+
function h(t) {
|
|
67
|
+
return e.handleFieldSubmit ? e.handleFieldSubmit(t) : u("submit", t);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
|
|
69
|
+
function E(t) {
|
|
70
|
+
C.value = !1, e.emitOnBlur && e.modelValue && h(t), u("blur", t);
|
|
71
71
|
}
|
|
72
|
-
const
|
|
73
|
-
|
|
74
|
-
const N =
|
|
75
|
-
() =>
|
|
76
|
-
environment:
|
|
77
|
-
envVariables:
|
|
78
|
-
isReadOnly:
|
|
72
|
+
const F = [...e.extensions];
|
|
73
|
+
e.colorPicker && F.push(_);
|
|
74
|
+
const N = p(
|
|
75
|
+
() => oe({
|
|
76
|
+
environment: e.environment,
|
|
77
|
+
envVariables: e.envVariables,
|
|
78
|
+
isReadOnly: v === "modal"
|
|
79
79
|
})
|
|
80
|
-
), O =
|
|
81
|
-
...
|
|
80
|
+
), O = p(() => [
|
|
81
|
+
...F,
|
|
82
82
|
N.value,
|
|
83
|
-
|
|
84
|
-
]),
|
|
85
|
-
content:
|
|
86
|
-
() =>
|
|
83
|
+
le
|
|
84
|
+
]), T = d(null), { codeMirror: r } = Y({
|
|
85
|
+
content: s(
|
|
86
|
+
() => e.modelValue !== void 0 ? String(e.modelValue) : ""
|
|
87
87
|
),
|
|
88
|
-
onChange: (
|
|
89
|
-
|
|
88
|
+
onChange: (t) => {
|
|
89
|
+
P(t), z();
|
|
90
90
|
},
|
|
91
|
-
onFocus: () =>
|
|
92
|
-
onBlur: (
|
|
93
|
-
codeMirrorRef:
|
|
94
|
-
disableTabIndent:
|
|
95
|
-
disableEnter:
|
|
96
|
-
disableCloseBrackets:
|
|
97
|
-
lineNumbers:
|
|
98
|
-
language:
|
|
99
|
-
lint:
|
|
91
|
+
onFocus: () => C.value = !0,
|
|
92
|
+
onBlur: (t) => E(t),
|
|
93
|
+
codeMirrorRef: T,
|
|
94
|
+
disableTabIndent: s(() => e.disableTabIndent),
|
|
95
|
+
disableEnter: s(() => e.disableEnter),
|
|
96
|
+
disableCloseBrackets: s(() => e.disableCloseBrackets),
|
|
97
|
+
lineNumbers: s(() => e.lineNumbers),
|
|
98
|
+
language: s(() => e.language),
|
|
99
|
+
lint: s(() => e.lint),
|
|
100
100
|
extensions: O,
|
|
101
|
-
placeholder:
|
|
101
|
+
placeholder: s(() => e.placeholder)
|
|
102
102
|
});
|
|
103
|
-
|
|
104
|
-
|
|
103
|
+
r.value?.focus(), H(r, () => {
|
|
104
|
+
r.value && Object.hasOwn(k, "autofocus") && r.value.focus();
|
|
105
105
|
});
|
|
106
106
|
const { handleDropdownSelect: K, updateDropdownVisibility: z } = Z({
|
|
107
|
-
codeMirror:
|
|
108
|
-
query:
|
|
109
|
-
showDropdown:
|
|
110
|
-
dropdownPosition:
|
|
111
|
-
}),
|
|
112
|
-
() =>
|
|
113
|
-
),
|
|
114
|
-
|
|
115
|
-
}, L =
|
|
107
|
+
codeMirror: r,
|
|
108
|
+
query: S,
|
|
109
|
+
showDropdown: g,
|
|
110
|
+
dropdownPosition: D
|
|
111
|
+
}), $ = p(
|
|
112
|
+
() => e.nullable ? ["true", "false", "null"] : ["true", "false"]
|
|
113
|
+
), c = (t, o) => {
|
|
114
|
+
g.value ? t === "down" ? (o.preventDefault(), m.value?.handleArrowKey("down")) : t === "up" ? (o.preventDefault(), m.value?.handleArrowKey("up")) : t === "enter" && (o.preventDefault(), m.value?.handleSelect()) : t === "escape" ? e.disableTabIndent || o.stopPropagation() : t === "enter" && o.target instanceof HTMLDivElement && h(o.target.textContent ?? "");
|
|
115
|
+
}, L = p(() => Array.isArray(e.type) ? (
|
|
116
116
|
// Find the first type, that's not 'null'
|
|
117
|
-
|
|
117
|
+
e.type.find((t) => t !== "null") ?? "string"
|
|
118
118
|
) : (
|
|
119
119
|
// If it's not an array, just return the type
|
|
120
|
-
|
|
121
|
-
)), U =
|
|
122
|
-
() =>
|
|
120
|
+
e.type
|
|
121
|
+
)), U = p(
|
|
122
|
+
() => g.value && e.withVariables && v !== "modal" && e.environment
|
|
123
123
|
);
|
|
124
124
|
return A({
|
|
125
125
|
/** Expose focus method */
|
|
126
126
|
focus: () => {
|
|
127
|
-
|
|
127
|
+
r.value?.focus();
|
|
128
128
|
},
|
|
129
129
|
// Expose these methods for testing
|
|
130
|
-
handleChange:
|
|
131
|
-
handleSubmit:
|
|
132
|
-
handleBlur:
|
|
133
|
-
booleanOptions:
|
|
134
|
-
codeMirror:
|
|
135
|
-
modelValue:
|
|
136
|
-
}), (
|
|
137
|
-
|
|
130
|
+
handleChange: P,
|
|
131
|
+
handleSubmit: h,
|
|
132
|
+
handleBlur: E,
|
|
133
|
+
booleanOptions: $,
|
|
134
|
+
codeMirror: r,
|
|
135
|
+
modelValue: e.modelValue
|
|
136
|
+
}), (t, o) => (a(), i(Q, null, [
|
|
137
|
+
l.disabled ? (a(), i("div", {
|
|
138
138
|
key: 0,
|
|
139
|
-
class: G(["text-c-2 flex cursor-default items-center justify-center",
|
|
139
|
+
class: G(["text-c-2 flex cursor-default items-center justify-center", w(v) === "modal" ? "font-code pr-2 pl-1 text-base" : "px-2"]),
|
|
140
140
|
"data-testid": "code-input-disabled"
|
|
141
141
|
}, [
|
|
142
|
-
|
|
143
|
-
], 2)) :
|
|
142
|
+
V("span", ae, J(l.modelValue), 1)
|
|
143
|
+
], 2)) : e.enum && e.enum.length ? (a(), b(B, {
|
|
144
144
|
key: 1,
|
|
145
|
-
default:
|
|
146
|
-
modelValue:
|
|
145
|
+
default: e.default,
|
|
146
|
+
modelValue: l.modelValue,
|
|
147
147
|
type: L.value,
|
|
148
|
-
value:
|
|
149
|
-
"onUpdate:modelValue":
|
|
150
|
-
}, null, 8, ["default", "modelValue", "type", "value"])) :
|
|
148
|
+
value: e.enum,
|
|
149
|
+
"onUpdate:modelValue": o[0] || (o[0] = (n) => u("update:modelValue", n))
|
|
150
|
+
}, null, 8, ["default", "modelValue", "type", "value"])) : l.type === "boolean" || l.type?.includes("boolean") ? (a(), b(B, {
|
|
151
151
|
key: 2,
|
|
152
|
-
default:
|
|
153
|
-
modelValue:
|
|
154
|
-
value:
|
|
155
|
-
"onUpdate:modelValue":
|
|
156
|
-
}, null, 8, ["default", "modelValue", "value"])) :
|
|
152
|
+
default: e.default,
|
|
153
|
+
modelValue: l.modelValue,
|
|
154
|
+
value: $.value,
|
|
155
|
+
"onUpdate:modelValue": o[1] || (o[1] = (n) => u("update:modelValue", n))
|
|
156
|
+
}, null, 8, ["default", "modelValue", "value"])) : e.examples && e.examples.length ? (a(), b(B, {
|
|
157
157
|
key: 3,
|
|
158
|
-
default:
|
|
159
|
-
modelValue:
|
|
160
|
-
value:
|
|
161
|
-
"onUpdate:modelValue":
|
|
162
|
-
}, null, 8, ["default", "modelValue", "value"])) : (
|
|
158
|
+
default: e.default,
|
|
159
|
+
modelValue: e.modelValue,
|
|
160
|
+
value: e.examples,
|
|
161
|
+
"onUpdate:modelValue": o[2] || (o[2] = (n) => u("update:modelValue", n))
|
|
162
|
+
}, null, 8, ["default", "modelValue", "value"])) : (a(), i("div", X({
|
|
163
163
|
key: 4,
|
|
164
|
-
id:
|
|
165
|
-
},
|
|
164
|
+
id: w(M)
|
|
165
|
+
}, t.$attrs, {
|
|
166
166
|
ref_key: "codeMirrorRef",
|
|
167
|
-
ref:
|
|
167
|
+
ref: T,
|
|
168
168
|
class: ["group/input group-[.alert]:outline-orange group-[.error]:outline-red font-code peer relative w-full overflow-hidden text-xs leading-[1.44] whitespace-nowrap -outline-offset-1 has-[:focus-visible]:rounded-[4px] has-[:focus-visible]:outline", {
|
|
169
|
-
"line-wrapping has-[:focus-visible]:bg-b-1 has-[:focus-visible]:absolute has-[:focus-visible]:z-1":
|
|
170
|
-
"flow-code-input--error":
|
|
169
|
+
"line-wrapping has-[:focus-visible]:bg-b-1 has-[:focus-visible]:absolute has-[:focus-visible]:z-1": l.lineWrapping,
|
|
170
|
+
"flow-code-input--error": l.error
|
|
171
171
|
}],
|
|
172
172
|
onKeydown: [
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
173
|
+
o[3] || (o[3] = y(q((n) => c("down", n), ["stop"]), ["down"])),
|
|
174
|
+
o[4] || (o[4] = y((n) => c("enter", n), ["enter"])),
|
|
175
|
+
o[5] || (o[5] = y((n) => c("escape", n), ["escape"])),
|
|
176
|
+
o[6] || (o[6] = y(q((n) => c("up", n), ["stop"]), ["up"]))
|
|
177
177
|
]
|
|
178
178
|
}), [
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
179
|
+
l.disableTabIndent ? f("", !0) : (a(), i("div", se, [...o[7] || (o[7] = [
|
|
180
|
+
x(" Press ", -1),
|
|
181
|
+
V("kbd", { class: "-mx-0.25 rounded border px-0.5 font-mono" }, "Esc", -1),
|
|
182
|
+
x(" then ", -1),
|
|
183
|
+
V("kbd", { class: "-mx-0.25 rounded border px-0.5 font-mono" }, "Tab", -1),
|
|
184
|
+
x(" to exit ", -1)
|
|
185
185
|
])]))
|
|
186
186
|
], 16, re)),
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
])) :
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
])) :
|
|
193
|
-
|
|
194
|
-
U.value ? (
|
|
187
|
+
t.$slots.warning ? (a(), i("div", ue, [
|
|
188
|
+
R(t.$slots, "warning", {}, void 0, !0)
|
|
189
|
+
])) : f("", !0),
|
|
190
|
+
t.$slots.icon ? (a(), i("div", ie, [
|
|
191
|
+
R(t.$slots, "icon", {}, void 0, !0)
|
|
192
|
+
])) : f("", !0),
|
|
193
|
+
l.required ? (a(), i("div", de, " Required ")) : f("", !0),
|
|
194
|
+
U.value ? (a(), b(te, {
|
|
195
195
|
key: 8,
|
|
196
196
|
ref_key: "dropdownRef",
|
|
197
|
-
ref:
|
|
198
|
-
dropdownPosition:
|
|
199
|
-
envVariables:
|
|
200
|
-
environment:
|
|
201
|
-
query:
|
|
202
|
-
onSelect:
|
|
203
|
-
}, null, 8, ["dropdownPosition", "envVariables", "environment", "query", "onSelect"])) :
|
|
197
|
+
ref: m,
|
|
198
|
+
dropdownPosition: D.value,
|
|
199
|
+
envVariables: l.envVariables,
|
|
200
|
+
environment: l.environment,
|
|
201
|
+
query: S.value,
|
|
202
|
+
onSelect: w(K)
|
|
203
|
+
}, null, 8, ["dropdownPosition", "envVariables", "environment", "query", "onSelect"])) : f("", !0)
|
|
204
204
|
], 64));
|
|
205
205
|
}
|
|
206
206
|
});
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useBindCx as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as n, createElementBlock as r, openBlock as m, withModifiers as d, withKeys as f, createElementVNode as l, normalizeProps as u, guardReactiveProps as p, unref as a, renderSlot as s, createVNode as x, withCtx as b, createTextVNode as c } from "vue";
|
|
2
|
+
import { useBindCx as v, ScalarButton as w } from "@scalar/components";
|
|
3
|
+
const B = { class: "flex gap-2" }, C = { class: "flex max-h-8 flex-1" }, h = /* @__PURE__ */ n({
|
|
4
4
|
__name: "CommandActionForm",
|
|
5
5
|
props: {
|
|
6
6
|
loader: {},
|
|
7
7
|
disabled: { type: Boolean, default: !1 }
|
|
8
8
|
},
|
|
9
9
|
emits: ["submit", "cancel", "back"],
|
|
10
|
-
setup(
|
|
11
|
-
const { cx:
|
|
12
|
-
return (
|
|
10
|
+
setup(o) {
|
|
11
|
+
const { cx: i } = v();
|
|
12
|
+
return (t, e) => (m(), r("form", {
|
|
13
13
|
class: "flex w-full flex-col gap-3",
|
|
14
|
-
onKeydown:
|
|
14
|
+
onKeydown: e[0] || (e[0] = f(d(() => {
|
|
15
15
|
}, ["stop"]), ["enter"])),
|
|
16
|
-
onSubmit:
|
|
16
|
+
onSubmit: e[1] || (e[1] = d(($) => !o.disabled && t.$emit("submit"), ["prevent", "stop"]))
|
|
17
17
|
}, [
|
|
18
|
-
|
|
19
|
-
s(
|
|
18
|
+
l("div", u(p(a(i)("relative flex min-h-20 flex-col rounded"))), [
|
|
19
|
+
s(t.$slots, "default")
|
|
20
20
|
], 16),
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
s(
|
|
21
|
+
l("div", B, [
|
|
22
|
+
l("div", C, [
|
|
23
|
+
s(t.$slots, "options")
|
|
24
24
|
]),
|
|
25
|
-
|
|
25
|
+
x(a(w), {
|
|
26
26
|
class: "max-h-8 px-3 text-xs",
|
|
27
|
-
disabled:
|
|
28
|
-
loader:
|
|
27
|
+
disabled: o.disabled,
|
|
28
|
+
loader: o.loader,
|
|
29
29
|
type: "submit"
|
|
30
30
|
}, {
|
|
31
31
|
default: b(() => [
|
|
32
|
-
s(
|
|
33
|
-
|
|
32
|
+
s(t.$slots, "submit", {}, () => [
|
|
33
|
+
e[2] || (e[2] = c("Continue", -1))
|
|
34
34
|
])
|
|
35
35
|
]),
|
|
36
36
|
_: 3
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as I, ref as
|
|
1
|
+
import { defineComponent as I, ref as x, computed as B, useTemplateRef as O, createElementBlock as V, openBlock as W, Fragment as L, createElementVNode as r, createVNode as o, withCtx as i, toDisplayString as m, unref as c, normalizeClass as M } from "vue";
|
|
2
2
|
import { ScalarListbox as P, ScalarButton as j, ScalarIcon as z } from "@scalar/components";
|
|
3
3
|
import { REGEX as F } from "@scalar/oas-utils/helpers";
|
|
4
4
|
import { emitCustomEvent as N } from "@scalar/workspace-store/events";
|
|
5
5
|
import { useRouter as T } from "vue-router";
|
|
6
6
|
import $ from "./CommandActionForm.vue.js";
|
|
7
7
|
import A from "../HttpMethod/HttpMethod.vue.js";
|
|
8
|
-
import { PathId as
|
|
8
|
+
import { PathId as f } from "../../routes.js";
|
|
9
9
|
import { useActiveEntities as G } from "../../store/active-entities.js";
|
|
10
10
|
import { useWorkspace as H } from "../../store/store.js";
|
|
11
11
|
const X = { class: "flex h-9 flex-row items-center gap-2 rounded border p-[3px] text-sm" }, J = { class: "flex h-full" }, K = { class: "scroll-timeline-x whitespace-nowrap" }, Q = { class: "flex" }, ie = /* @__PURE__ */ I({
|
|
@@ -14,35 +14,35 @@ const X = { class: "flex h-9 flex-row items-center gap-2 rounded border p-[3px]
|
|
|
14
14
|
metaData: {}
|
|
15
15
|
},
|
|
16
16
|
emits: ["close", "back"],
|
|
17
|
-
setup(e, { emit:
|
|
18
|
-
const w =
|
|
19
|
-
() =>
|
|
20
|
-
id:
|
|
21
|
-
label:
|
|
17
|
+
setup(e, { emit: D }) {
|
|
18
|
+
const w = D, b = H(), { activeWorkspaceCollections: p, activeCollection: S, activeWorkspace: v } = G(), { requestMutators: k, serverMutators: q, servers: R } = b, d = x(""), U = T(), n = B(
|
|
19
|
+
() => p.value.map((a) => ({
|
|
20
|
+
id: a.uid,
|
|
21
|
+
label: a.info?.title ?? "Unititled Collection"
|
|
22
22
|
}))
|
|
23
|
-
), l =
|
|
23
|
+
), l = x(
|
|
24
24
|
e.metaData.collectionUid ? n.value.find(
|
|
25
|
-
(
|
|
25
|
+
(a) => a.id === e.metaData.collectionUid
|
|
26
26
|
) : n.value.find(
|
|
27
|
-
(
|
|
27
|
+
(a) => a.id === S.value?.uid
|
|
28
28
|
)
|
|
29
29
|
);
|
|
30
|
-
function g({ collectionUid:
|
|
30
|
+
function g({ collectionUid: a }) {
|
|
31
31
|
if (!e.metaData.parsedCurl)
|
|
32
32
|
return;
|
|
33
|
-
const
|
|
34
|
-
(u) => u.uid ===
|
|
33
|
+
const t = p.value.find(
|
|
34
|
+
(u) => u.uid === a
|
|
35
35
|
);
|
|
36
|
-
if (!
|
|
36
|
+
if (!t)
|
|
37
37
|
return;
|
|
38
|
-
const s =
|
|
38
|
+
const s = t?.info?.title === "Drafts";
|
|
39
39
|
if (!s && e.metaData.parsedCurl.servers) {
|
|
40
40
|
const u = Object.values(R).find(
|
|
41
41
|
(y) => y.url === e.metaData.parsedCurl?.servers?.[0]
|
|
42
42
|
);
|
|
43
43
|
u ? d.value = u.uid : (d.value = q.add(
|
|
44
44
|
{ url: e.metaData.parsedCurl.servers[0] ?? "/" },
|
|
45
|
-
|
|
45
|
+
t.uid
|
|
46
46
|
).uid, N(E.value?.$el, "scalar-add-server", {
|
|
47
47
|
server: { url: e.metaData.parsedCurl.servers[0] ?? "/" },
|
|
48
48
|
options: {
|
|
@@ -59,14 +59,14 @@ const X = { class: "flex h-9 flex-row items-center gap-2 rounded border p-[3px]
|
|
|
59
59
|
selectedServerUid: s ? void 0 : d.value,
|
|
60
60
|
requestBody: e.metaData.parsedCurl?.requestBody
|
|
61
61
|
},
|
|
62
|
-
|
|
62
|
+
t.uid
|
|
63
63
|
);
|
|
64
64
|
h && v.value?.uid && U.push({
|
|
65
65
|
name: "request",
|
|
66
66
|
params: {
|
|
67
|
-
[
|
|
68
|
-
[
|
|
69
|
-
[
|
|
67
|
+
[f.Workspace]: v.value.uid,
|
|
68
|
+
[f.Collection]: t.uid,
|
|
69
|
+
[f.Request]: h.uid
|
|
70
70
|
}
|
|
71
71
|
}), w("close");
|
|
72
72
|
}
|
|
@@ -75,8 +75,8 @@ const X = { class: "flex h-9 flex-row items-center gap-2 rounded border p-[3px]
|
|
|
75
75
|
collectionUid: l.value?.id ?? ""
|
|
76
76
|
});
|
|
77
77
|
}, E = O("wrapper-ref");
|
|
78
|
-
return (
|
|
79
|
-
|
|
78
|
+
return (a, t) => (W(), V(L, null, [
|
|
79
|
+
t[1] || (t[1] = r("div", { class: "text-c-2 flex-center py-1.5 text-sm" }, "Import cURL", -1)),
|
|
80
80
|
o($, {
|
|
81
81
|
ref: "wrapper-ref",
|
|
82
82
|
class: "mt-1.5 min-h-fit",
|
|
@@ -86,7 +86,7 @@ const X = { class: "flex h-9 flex-row items-center gap-2 rounded border p-[3px]
|
|
|
86
86
|
r("div", Q, [
|
|
87
87
|
o(c(P), {
|
|
88
88
|
modelValue: l.value,
|
|
89
|
-
"onUpdate:modelValue":
|
|
89
|
+
"onUpdate:modelValue": t[0] || (t[0] = (s) => l.value = s),
|
|
90
90
|
options: n.value
|
|
91
91
|
}, {
|
|
92
92
|
default: i(() => [
|
|
@@ -120,10 +120,10 @@ const X = { class: "flex h-9 flex-row items-center gap-2 rounded border p-[3px]
|
|
|
120
120
|
o(A, {
|
|
121
121
|
isEditable: !1,
|
|
122
122
|
isSquare: "",
|
|
123
|
-
method:
|
|
123
|
+
method: e.metaData.parsedCurl?.method || "get"
|
|
124
124
|
}, null, 8, ["method"])
|
|
125
125
|
]),
|
|
126
|
-
r("span", K, m(
|
|
126
|
+
r("span", K, m(e.metaData.parsedCurl?.servers?.[0] || "") + m(e.metaData.parsedCurl?.path || ""), 1)
|
|
127
127
|
])
|
|
128
128
|
]),
|
|
129
129
|
_: 1
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
7
7
|
export default _default;
|
|
8
|
-
|
|
8
|
+
declare const PaletteComponents: {
|
|
9
9
|
readonly 'Import from OpenAPI/Swagger/Postman/cURL': import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
10
10
|
close: () => any;
|
|
11
11
|
back: (e: KeyboardEvent) => any;
|
|
@@ -206,7 +206,7 @@ export declare const PaletteComponents: {
|
|
|
206
206
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
207
207
|
};
|
|
208
208
|
/** Infer the types from the commands */
|
|
209
|
-
|
|
209
|
+
type CommandNames = keyof typeof PaletteComponents;
|
|
210
210
|
export type CommandPaletteEvent = {
|
|
211
211
|
/** The command name which matches with the command palette */
|
|
212
212
|
commandName?: CommandNames;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TheCommandPalette.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/TheCommandPalette.vue"],"names":[],"mappings":"AAqfA;;;;GAIG;;AACH,wBA8lBI;AAEJ,
|
|
1
|
+
{"version":3,"file":"TheCommandPalette.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/TheCommandPalette.vue"],"names":[],"mappings":"AAqfA;;;;GAIG;;AACH,wBA8lBI;AAEJ,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;mBA7nBvB,CA3TI;qBA2TJ,CA3T2B;;;;;;;mBA2T3B,CA3TI;qBA2TJ,CA3T2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAi8BjB,CAAA;AAEV,yCAAyC;AACzC,KAAK,YAAY,GAAG,MAAM,OAAO,iBAAiB,CAAA;AAElD,MAAM,MAAM,mBAAmB,GAAG;IAChC,8DAA8D;IAC9D,WAAW,CAAC,EAAE,YAAY,CAAA;IAC1B,iEAAiE;IACjE,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAC/B,CACA"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import o from "./TheCommandPalette.vue2.js";
|
|
2
|
-
import { PaletteComponents as s } from "./TheCommandPalette.vue2.js";
|
|
3
2
|
/* empty css */
|
|
4
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const
|
|
4
|
+
const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-dd90fe74"]]);
|
|
6
5
|
export {
|
|
7
|
-
|
|
8
|
-
a as default
|
|
6
|
+
r as default
|
|
9
7
|
};
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as r, computed as i, createElementBlock as p, openBlock as f, normalizeClass as d, createElementVNode as V, createVNode as n, createTextVNode as g, unref as s } from "vue";
|
|
2
2
|
import { ScalarIcon as x, ScalarToggle as b } from "@scalar/components";
|
|
3
|
-
const N = /* @__PURE__ */
|
|
3
|
+
const N = /* @__PURE__ */ r({
|
|
4
4
|
__name: "WatchModeToggle",
|
|
5
5
|
props: {
|
|
6
6
|
modelValue: { type: Boolean },
|
|
7
7
|
disabled: { type: Boolean, default: !1 }
|
|
8
8
|
},
|
|
9
9
|
emits: ["update:modelValue"],
|
|
10
|
-
setup(
|
|
11
|
-
const
|
|
12
|
-
get: () =>
|
|
13
|
-
set: (
|
|
10
|
+
setup(t, { emit: m }) {
|
|
11
|
+
const u = t, l = m, o = i({
|
|
12
|
+
get: () => u.modelValue,
|
|
13
|
+
set: (a) => l("update:modelValue", a)
|
|
14
14
|
});
|
|
15
|
-
return (
|
|
16
|
-
class:
|
|
15
|
+
return (a, e) => (f(), p("label", {
|
|
16
|
+
class: d(["text-c-2 flex items-center gap-2 rounded p-3 py-1.5 text-sm select-none", t.disabled ? "cursor-default" : "cursor-pointer"]),
|
|
17
17
|
for: "watch-toggle"
|
|
18
18
|
}, [
|
|
19
19
|
V("span", {
|
|
20
|
-
class:
|
|
20
|
+
class: d(["text-c-1 flex items-center gap-1 text-xs font-medium", { "text-c-3": !o.value }])
|
|
21
21
|
}, [
|
|
22
|
-
|
|
22
|
+
n(s(x), {
|
|
23
23
|
icon: "Watch",
|
|
24
24
|
size: "sm"
|
|
25
25
|
}),
|
|
26
|
-
|
|
26
|
+
e[1] || (e[1] = g(" Watch Mode ", -1))
|
|
27
27
|
], 2),
|
|
28
|
-
|
|
28
|
+
n(s(b), {
|
|
29
29
|
id: "watch-toggle",
|
|
30
|
-
disabled: !!
|
|
30
|
+
disabled: !!t.disabled,
|
|
31
31
|
modelValue: o.value,
|
|
32
|
-
"onUpdate:modelValue":
|
|
32
|
+
"onUpdate:modelValue": e[0] || (e[0] = (c) => l("update:modelValue", c))
|
|
33
33
|
}, null, 8, ["disabled", "modelValue"])
|
|
34
34
|
], 2));
|
|
35
35
|
}
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { defineComponent as r, createElementBlock as
|
|
2
|
-
import { useBindCx as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as r, createElementBlock as t, openBlock as l, normalizeProps as c, guardReactiveProps as i, unref as m, createElementVNode as u, normalizeStyle as d, normalizeClass as p, createCommentVNode as f, renderSlot as a } from "vue";
|
|
2
|
+
import { useBindCx as b } from "@scalar/components";
|
|
3
|
+
const y = ["role"], v = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "sr-only"
|
|
6
|
-
},
|
|
6
|
+
}, h = /* @__PURE__ */ r({
|
|
7
7
|
__name: "DataTable",
|
|
8
8
|
props: {
|
|
9
9
|
columns: {},
|
|
10
10
|
scroll: { type: Boolean },
|
|
11
11
|
presentational: { type: Boolean }
|
|
12
12
|
},
|
|
13
|
-
setup(
|
|
14
|
-
const { cx:
|
|
15
|
-
return (
|
|
16
|
-
m(
|
|
13
|
+
setup(e) {
|
|
14
|
+
const { cx: n } = b();
|
|
15
|
+
return (o, w) => (l(), t("div", c(i(
|
|
16
|
+
m(n)(
|
|
17
17
|
e.scroll ? "overflow-x-auto custom-scroll" : "overflow-visible",
|
|
18
18
|
"scalar-data-table"
|
|
19
19
|
)
|
|
20
20
|
)), [
|
|
21
|
-
|
|
22
|
-
class:
|
|
21
|
+
u("table", {
|
|
22
|
+
class: p(["mb-0 grid min-h-8 auto-rows-auto", { "w-max min-w-full": e.scroll }]),
|
|
23
23
|
role: e.presentational ? "presentation" : "table",
|
|
24
|
-
style:
|
|
24
|
+
style: d({
|
|
25
25
|
gridTemplateColumns: e.columns.map((s) => s || "1fr").join(" ")
|
|
26
26
|
})
|
|
27
27
|
}, [
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
])) :
|
|
31
|
-
|
|
32
|
-
], 14,
|
|
28
|
+
o.$slots.caption ? (l(), t("caption", v, [
|
|
29
|
+
a(o.$slots, "caption")
|
|
30
|
+
])) : f("", !0),
|
|
31
|
+
a(o.$slots, "default")
|
|
32
|
+
], 14, y)
|
|
33
33
|
], 16));
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
36
|
export {
|
|
37
|
-
|
|
37
|
+
h as default
|
|
38
38
|
};
|