@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,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as $, createElementBlock as
|
|
2
|
-
import { cva as M, ScalarButton as
|
|
1
|
+
import { defineComponent as $, createElementBlock as p, openBlock as a, createVNode as n, withCtx as l, createElementVNode as s, createBlock as u, createCommentVNode as f, unref as t, normalizeClass as c, createTextVNode as i, toDisplayString as g, Fragment as U, renderList as w, normalizeStyle as h } from "vue";
|
|
2
|
+
import { cva as M, ScalarButton as x, cx as y, ScalarIcon as k } from "@scalar/components";
|
|
3
3
|
import { themeLabels as P } from "@scalar/themes";
|
|
4
4
|
import B from "../../../components/ImportCollection/IntegrationLogo.vue.js";
|
|
5
5
|
import L from "./components/Appearance.vue.js";
|
|
6
6
|
import b from "./components/Section.vue.js";
|
|
7
7
|
import { getThemeColors as C } from "./helpers/get-theme-colors.js";
|
|
8
|
-
const N = { class: "flex flex-col gap-4" }, R = { class: "flex flex-col gap-2" }, V = { class: "bg-c-accent text-b-1 flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] border-transparent p-1" }, A = { class: "flex flex-col gap-2" }, E = { class: "grid grid-cols-2 gap-2" }, F = { class: "flex items-center gap-2" }, O = { class: "flex items-center gap-1" }, D = { class: "grid grid-cols-2 gap-2" }, W = { class: "flex items-center gap-2" },
|
|
8
|
+
const N = { class: "flex flex-col gap-4" }, R = { class: "flex flex-col gap-2" }, V = { class: "bg-c-accent text-b-1 flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] border-transparent p-1" }, A = { class: "flex flex-col gap-2" }, E = { class: "grid grid-cols-2 gap-2" }, F = { class: "flex items-center gap-2" }, O = { class: "flex items-center gap-1" }, D = { class: "grid grid-cols-2 gap-2" }, W = { class: "flex items-center gap-2" }, q = { class: "flex items-center gap-1" }, G = { class: "size-7 rounded-xl" }, v = "https://proxy.scalar.com", _ = /* @__PURE__ */ $({
|
|
9
9
|
__name: "CollectionSettings",
|
|
10
10
|
props: {
|
|
11
11
|
activeProxyUrl: {},
|
|
@@ -14,7 +14,7 @@ const N = { class: "flex flex-col gap-4" }, R = { class: "flex flex-col gap-2" }
|
|
|
14
14
|
colorMode: {}
|
|
15
15
|
},
|
|
16
16
|
emits: ["update:proxyUrl", "update:themeId", "update:colorMode"],
|
|
17
|
-
setup(
|
|
17
|
+
setup(o, { emit: T }) {
|
|
18
18
|
const d = T, S = [
|
|
19
19
|
"default",
|
|
20
20
|
"alternate",
|
|
@@ -22,7 +22,7 @@ const N = { class: "flex flex-col gap-4" }, R = { class: "flex flex-col gap-2" }
|
|
|
22
22
|
"solarized",
|
|
23
23
|
"saturn",
|
|
24
24
|
"kepler"
|
|
25
|
-
], z = ["elysiajs", "fastify"],
|
|
25
|
+
], z = ["elysiajs", "fastify"], m = M({
|
|
26
26
|
base: "w-full shadow-none text-c-1 justify-start pl-2 gap-2 border",
|
|
27
27
|
variants: {
|
|
28
28
|
active: {
|
|
@@ -31,7 +31,7 @@ const N = { class: "flex flex-col gap-4" }, R = { class: "flex flex-col gap-2" }
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
});
|
|
34
|
-
return (
|
|
34
|
+
return (H, e) => (a(), p("div", N, [
|
|
35
35
|
n(b, null, {
|
|
36
36
|
title: l(() => [...e[4] || (e[4] = [
|
|
37
37
|
i(" CORS Proxy ", -1)
|
|
@@ -53,15 +53,15 @@ const N = { class: "flex flex-col gap-4" }, R = { class: "flex flex-col gap-2" }
|
|
|
53
53
|
])]),
|
|
54
54
|
default: l(() => [
|
|
55
55
|
s("div", R, [
|
|
56
|
-
n(
|
|
56
|
+
n(t(x), {
|
|
57
57
|
class: c(
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
t(y)(
|
|
59
|
+
t(m)({
|
|
60
60
|
active: o.activeProxyUrl === v
|
|
61
61
|
})
|
|
62
62
|
)
|
|
63
63
|
),
|
|
64
|
-
onClick: e[0] || (e[0] = (
|
|
64
|
+
onClick: e[0] || (e[0] = (r) => d("update:proxyUrl", v))
|
|
65
65
|
}, {
|
|
66
66
|
default: l(() => [
|
|
67
67
|
s("div", {
|
|
@@ -69,44 +69,44 @@ const N = { class: "flex flex-col gap-4" }, R = { class: "flex flex-col gap-2" }
|
|
|
69
69
|
"bg-c-accent text-b-1 border-transparent": o.activeProxyUrl === v
|
|
70
70
|
}])
|
|
71
71
|
}, [
|
|
72
|
-
o.activeProxyUrl === v ? (a(), u(
|
|
72
|
+
o.activeProxyUrl === v ? (a(), u(t(k), {
|
|
73
73
|
key: 0,
|
|
74
74
|
icon: "Checkmark",
|
|
75
75
|
size: "xs",
|
|
76
76
|
thickness: "3.5"
|
|
77
|
-
})) :
|
|
77
|
+
})) : f("", !0)
|
|
78
78
|
], 2),
|
|
79
79
|
e[6] || (e[6] = i(" Use proxy.scalar.com (default) ", -1))
|
|
80
80
|
]),
|
|
81
81
|
_: 1
|
|
82
82
|
}, 8, ["class"]),
|
|
83
|
-
o.customProxyUrl && o.customProxyUrl !== v ? (a(), u(
|
|
83
|
+
o.customProxyUrl && o.customProxyUrl !== v ? (a(), u(t(x), {
|
|
84
84
|
key: 0,
|
|
85
85
|
class: c(
|
|
86
|
-
|
|
87
|
-
|
|
86
|
+
t(y)(
|
|
87
|
+
t(m)({
|
|
88
88
|
active: o.activeProxyUrl === o.customProxyUrl
|
|
89
89
|
})
|
|
90
90
|
)
|
|
91
91
|
),
|
|
92
|
-
onClick: e[1] || (e[1] = (
|
|
92
|
+
onClick: e[1] || (e[1] = (r) => d("update:proxyUrl", o.customProxyUrl))
|
|
93
93
|
}, {
|
|
94
94
|
default: l(() => [
|
|
95
95
|
s("div", V, [
|
|
96
|
-
o.customProxyUrl === o.activeProxyUrl ? (a(), u(
|
|
96
|
+
o.customProxyUrl === o.activeProxyUrl ? (a(), u(t(k), {
|
|
97
97
|
key: 0,
|
|
98
98
|
icon: "Checkmark",
|
|
99
99
|
size: "xs",
|
|
100
100
|
thickness: "3.5"
|
|
101
|
-
})) :
|
|
101
|
+
})) : f("", !0)
|
|
102
102
|
]),
|
|
103
103
|
i(" Use custom proxy (" + g(o.customProxyUrl) + ") ", 1)
|
|
104
104
|
]),
|
|
105
105
|
_: 1
|
|
106
|
-
}, 8, ["class"])) :
|
|
107
|
-
n(
|
|
108
|
-
class: c(
|
|
109
|
-
onClick: e[2] || (e[2] = (
|
|
106
|
+
}, 8, ["class"])) : f("", !0),
|
|
107
|
+
n(t(x), {
|
|
108
|
+
class: c(t(y)(t(m)({ active: !o.activeProxyUrl }))),
|
|
109
|
+
onClick: e[2] || (e[2] = (r) => d("update:proxyUrl", null))
|
|
110
110
|
}, {
|
|
111
111
|
default: l(() => [
|
|
112
112
|
s("div", {
|
|
@@ -115,7 +115,7 @@ const N = { class: "flex flex-col gap-4" }, R = { class: "flex flex-col gap-2" }
|
|
|
115
115
|
!o.activeProxyUrl && "bg-c-accent text-b-1 border-transparent"
|
|
116
116
|
])
|
|
117
117
|
}, [
|
|
118
|
-
o.activeProxyUrl ?
|
|
118
|
+
o.activeProxyUrl ? f("", !0) : (a(), u(t(k), {
|
|
119
119
|
key: 0,
|
|
120
120
|
icon: "Checkmark",
|
|
121
121
|
size: "xs",
|
|
@@ -140,50 +140,50 @@ const N = { class: "flex flex-col gap-4" }, R = { class: "flex flex-col gap-2" }
|
|
|
140
140
|
default: l(() => [
|
|
141
141
|
s("div", A, [
|
|
142
142
|
s("div", E, [
|
|
143
|
-
(a(),
|
|
144
|
-
key:
|
|
143
|
+
(a(), p(U, null, w(S, (r) => n(t(x), {
|
|
144
|
+
key: r,
|
|
145
145
|
class: c(
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
active: o.activeThemeId ===
|
|
146
|
+
t(y)(
|
|
147
|
+
t(m)({
|
|
148
|
+
active: o.activeThemeId === r
|
|
149
149
|
})
|
|
150
150
|
)
|
|
151
151
|
),
|
|
152
|
-
onClick: (j) => d("update:themeId",
|
|
152
|
+
onClick: (j) => d("update:themeId", r)
|
|
153
153
|
}, {
|
|
154
154
|
default: l(() => [
|
|
155
155
|
s("div", F, [
|
|
156
156
|
s("div", {
|
|
157
157
|
class: c(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1", {
|
|
158
|
-
"bg-c-accent text-b-1 border-transparent": o.activeThemeId ===
|
|
158
|
+
"bg-c-accent text-b-1 border-transparent": o.activeThemeId === r
|
|
159
159
|
}])
|
|
160
160
|
}, [
|
|
161
|
-
o.activeThemeId ===
|
|
161
|
+
o.activeThemeId === r ? (a(), u(t(k), {
|
|
162
162
|
key: 0,
|
|
163
163
|
icon: "Checkmark",
|
|
164
164
|
size: "xs",
|
|
165
165
|
thickness: "3.5"
|
|
166
|
-
})) :
|
|
166
|
+
})) : f("", !0)
|
|
167
167
|
], 2),
|
|
168
|
-
i(" " + g(
|
|
168
|
+
i(" " + g(t(P)[r]), 1)
|
|
169
169
|
]),
|
|
170
170
|
s("div", O, [
|
|
171
171
|
s("span", {
|
|
172
172
|
class: "border-c-3 -mr-3 inline-block h-5 w-5 rounded-full",
|
|
173
173
|
style: h({
|
|
174
|
-
backgroundColor:
|
|
174
|
+
backgroundColor: t(C)(r).light
|
|
175
175
|
})
|
|
176
176
|
}, null, 4),
|
|
177
177
|
s("span", {
|
|
178
178
|
class: "border-c-3 -mr-3 inline-block h-5 w-5 rounded-full",
|
|
179
179
|
style: h({
|
|
180
|
-
backgroundColor:
|
|
180
|
+
backgroundColor: t(C)(r).dark
|
|
181
181
|
})
|
|
182
182
|
}, null, 4),
|
|
183
183
|
s("span", {
|
|
184
184
|
class: "border-c-3 inline-block h-5 w-5 rounded-full",
|
|
185
185
|
style: h({
|
|
186
|
-
backgroundColor:
|
|
186
|
+
backgroundColor: t(C)(r).accent
|
|
187
187
|
})
|
|
188
188
|
}, null, 4)
|
|
189
189
|
])
|
|
@@ -204,36 +204,36 @@ const N = { class: "flex flex-col gap-4" }, R = { class: "flex flex-col gap-2" }
|
|
|
204
204
|
])]),
|
|
205
205
|
default: l(() => [
|
|
206
206
|
s("div", D, [
|
|
207
|
-
(a(),
|
|
208
|
-
key:
|
|
207
|
+
(a(), p(U, null, w(z, (r) => n(t(x), {
|
|
208
|
+
key: r,
|
|
209
209
|
class: c(
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
active: o.activeThemeId ===
|
|
210
|
+
t(y)(
|
|
211
|
+
t(m)({
|
|
212
|
+
active: o.activeThemeId === r
|
|
213
213
|
})
|
|
214
214
|
)
|
|
215
215
|
),
|
|
216
|
-
onClick: (j) => d("update:themeId",
|
|
216
|
+
onClick: (j) => d("update:themeId", r)
|
|
217
217
|
}, {
|
|
218
218
|
default: l(() => [
|
|
219
219
|
s("div", W, [
|
|
220
220
|
s("div", {
|
|
221
221
|
class: c(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1", {
|
|
222
|
-
"bg-c-accent text-b-1 border-transparent": o.activeThemeId ===
|
|
222
|
+
"bg-c-accent text-b-1 border-transparent": o.activeThemeId === r
|
|
223
223
|
}])
|
|
224
224
|
}, [
|
|
225
|
-
o.activeThemeId ===
|
|
225
|
+
o.activeThemeId === r ? (a(), u(t(k), {
|
|
226
226
|
key: 0,
|
|
227
227
|
icon: "Checkmark",
|
|
228
228
|
size: "xs",
|
|
229
229
|
thickness: "3.5"
|
|
230
|
-
})) :
|
|
230
|
+
})) : f("", !0)
|
|
231
231
|
], 2),
|
|
232
|
-
i(" " + g(
|
|
232
|
+
i(" " + g(t(P)[r]), 1)
|
|
233
233
|
]),
|
|
234
|
-
s("div",
|
|
235
|
-
s("div",
|
|
236
|
-
n(B, { integration:
|
|
234
|
+
s("div", q, [
|
|
235
|
+
s("div", G, [
|
|
236
|
+
n(B, { integration: r }, null, 8, ["integration"])
|
|
237
237
|
])
|
|
238
238
|
])
|
|
239
239
|
]),
|
|
@@ -253,7 +253,7 @@ const N = { class: "flex flex-col gap-4" }, R = { class: "flex flex-col gap-2" }
|
|
|
253
253
|
default: l(() => [
|
|
254
254
|
n(L, {
|
|
255
255
|
colorMode: o.colorMode,
|
|
256
|
-
"onUpdate:colorMode": e[3] || (e[3] = (
|
|
256
|
+
"onUpdate:colorMode": e[3] || (e[3] = (r) => d("update:colorMode", r))
|
|
257
257
|
}, null, 8, ["colorMode"])
|
|
258
258
|
]),
|
|
259
259
|
_: 1
|
|
@@ -262,5 +262,5 @@ const N = { class: "flex flex-col gap-4" }, R = { class: "flex flex-col gap-2" }
|
|
|
262
262
|
}
|
|
263
263
|
});
|
|
264
264
|
export {
|
|
265
|
-
|
|
265
|
+
_ as default
|
|
266
266
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useModal as
|
|
3
|
-
import
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as p, createElementBlock as d, openBlock as a, Fragment as i, createElementVNode as e, createVNode as n, unref as o, createTextVNode as u, toDisplayString as h, withCtx as m } from "vue";
|
|
2
|
+
import { useModal as v, ScalarToggle as w, ScalarIcon as f, ScalarButton as D, ScalarModal as y } from "@scalar/components";
|
|
3
|
+
import k from "../../../components/Sidebar/Actions/DeleteSidebarListElement.vue.js";
|
|
4
|
+
const M = { class: "flex flex-col gap-12" }, U = { class: "flex flex-col gap-2" }, C = { class: "bg-b-2 rounded-lg border text-sm" }, N = { class: "bg-b-1 flex items-center justify-between gap-4 rounded-t-lg p-3" }, S = { class: "text-c-1 flex items-center overflow-x-auto border-t py-1.5 whitespace-nowrap" }, B = { class: "flex items-center" }, V = ["href"], T = { class: "flex flex-col gap-4" }, z = { class: "flex items-center justify-between rounded-lg border p-3 text-sm" }, O = /* @__PURE__ */ p({
|
|
5
5
|
__name: "DocumentSettings",
|
|
6
6
|
props: {
|
|
7
7
|
documentUrl: {},
|
|
@@ -10,33 +10,33 @@ const U = { class: "flex flex-col gap-12" }, C = { class: "flex flex-col gap-2"
|
|
|
10
10
|
isDraftDocument: { type: Boolean, default: !1 }
|
|
11
11
|
},
|
|
12
12
|
emits: ["delete:document", "update:watchMode"],
|
|
13
|
-
setup(
|
|
14
|
-
const r =
|
|
15
|
-
|
|
16
|
-
},
|
|
13
|
+
setup(l, { emit: x }) {
|
|
14
|
+
const r = x, s = v(), g = () => {
|
|
15
|
+
l.isDraftDocument || s.show();
|
|
16
|
+
}, b = () => {
|
|
17
17
|
r("delete:document"), s.hide();
|
|
18
18
|
};
|
|
19
|
-
return (
|
|
20
|
-
e("div",
|
|
21
|
-
e("div",
|
|
19
|
+
return (A, t) => (a(), d(i, null, [
|
|
20
|
+
e("div", M, [
|
|
21
|
+
e("div", U, [
|
|
22
22
|
t[5] || (t[5] = e("div", { class: "flex h-8 items-center" }, [
|
|
23
23
|
e("h3", { class: "font-bold" }, "Features")
|
|
24
24
|
], -1)),
|
|
25
|
-
e("div",
|
|
26
|
-
e("div",
|
|
25
|
+
e("div", C, [
|
|
26
|
+
e("div", N, [
|
|
27
27
|
t[2] || (t[2] = e("div", null, [
|
|
28
28
|
e("h4", null, "Watch Mode"),
|
|
29
29
|
e("p", { class: "text-c-2 mt-1" }, " When enabled, the OpenAPI document will be polled for changes. The collection will be updated automatically. ")
|
|
30
30
|
], -1)),
|
|
31
|
-
n(o(
|
|
31
|
+
n(o(w), {
|
|
32
32
|
class: "w-4",
|
|
33
33
|
disabled: !l.documentUrl,
|
|
34
34
|
modelValue: l.watchMode ?? !1,
|
|
35
35
|
"onUpdate:modelValue": t[0] || (t[0] = (c) => r("update:watchMode", c))
|
|
36
36
|
}, null, 8, ["disabled", "modelValue"])
|
|
37
37
|
]),
|
|
38
|
-
e("div",
|
|
39
|
-
e("div",
|
|
38
|
+
e("div", S, [
|
|
39
|
+
e("div", B, [
|
|
40
40
|
l.documentUrl ? (a(), d(i, { key: 0 }, [
|
|
41
41
|
t[3] || (t[3] = e("span", { class: "bg-b-2 sticky left-0 pr-2 pl-3" }, "Source", -1)),
|
|
42
42
|
e("a", {
|
|
@@ -44,12 +44,12 @@ const U = { class: "flex flex-col gap-12" }, C = { class: "flex flex-col gap-2"
|
|
|
44
44
|
href: l.documentUrl,
|
|
45
45
|
target: "_blank"
|
|
46
46
|
}, [
|
|
47
|
-
u(
|
|
47
|
+
u(h(l.documentUrl) + " ", 1),
|
|
48
48
|
n(o(f), {
|
|
49
49
|
class: "ml-1 hidden w-2.5 group-hover:inline",
|
|
50
50
|
icon: "ExternalLink"
|
|
51
51
|
})
|
|
52
|
-
], 8,
|
|
52
|
+
], 8, V)
|
|
53
53
|
], 64)) : (a(), d(i, { key: 1 }, [
|
|
54
54
|
n(o(f), {
|
|
55
55
|
class: "text-c-2 mr-2 ml-3 w-4",
|
|
@@ -62,18 +62,18 @@ const U = { class: "flex flex-col gap-12" }, C = { class: "flex flex-col gap-2"
|
|
|
62
62
|
])
|
|
63
63
|
])
|
|
64
64
|
]),
|
|
65
|
-
e("div",
|
|
65
|
+
e("div", T, [
|
|
66
66
|
t[8] || (t[8] = e("h3", { class: "font-bold" }, "Danger Zone", -1)),
|
|
67
|
-
e("div",
|
|
67
|
+
e("div", z, [
|
|
68
68
|
t[7] || (t[7] = e("div", null, [
|
|
69
69
|
e("h4", null, "Delete Collection"),
|
|
70
70
|
e("p", { class: "text-c-2 mt-1" }, " Be careful, my friend. Once deleted, there is no way to recover the collection. ")
|
|
71
71
|
], -1)),
|
|
72
|
-
n(o(
|
|
72
|
+
n(o(D), {
|
|
73
73
|
disabled: l.isDraftDocument,
|
|
74
74
|
size: "sm",
|
|
75
75
|
variant: "danger",
|
|
76
|
-
onClick:
|
|
76
|
+
onClick: g
|
|
77
77
|
}, {
|
|
78
78
|
default: m(() => [...t[6] || (t[6] = [
|
|
79
79
|
u(" Delete Collection ", -1)
|
|
@@ -83,17 +83,17 @@ const U = { class: "flex flex-col gap-12" }, C = { class: "flex flex-col gap-2"
|
|
|
83
83
|
])
|
|
84
84
|
])
|
|
85
85
|
]),
|
|
86
|
-
n(o(
|
|
86
|
+
n(o(y), {
|
|
87
87
|
size: "xxs",
|
|
88
88
|
state: o(s),
|
|
89
89
|
title: `Delete ${l.title}`
|
|
90
90
|
}, {
|
|
91
91
|
default: m(() => [
|
|
92
|
-
n(
|
|
92
|
+
n(k, {
|
|
93
93
|
variableName: l.title ?? "",
|
|
94
94
|
warningMessage: "This action cannot be undone.",
|
|
95
95
|
onClose: t[1] || (t[1] = (c) => o(s).hide()),
|
|
96
|
-
onDelete:
|
|
96
|
+
onDelete: b
|
|
97
97
|
}, null, 8, ["variableName"])
|
|
98
98
|
]),
|
|
99
99
|
_: 1
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as M, createElementBlock as v, openBlock as
|
|
2
|
-
import { cva as g, ScalarButton as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as M, createElementBlock as v, openBlock as l, createVNode as c, unref as t, normalizeClass as r, withCtx as n, createElementVNode as d, createTextVNode as i, createBlock as u, createCommentVNode as m } from "vue";
|
|
2
|
+
import { cva as g, ScalarButton as f, cx as k, ScalarIcon as b } from "@scalar/components";
|
|
3
|
+
const p = { class: "flex flex-col gap-2" }, j = /* @__PURE__ */ M({
|
|
4
4
|
__name: "Appearance",
|
|
5
5
|
props: {
|
|
6
6
|
colorMode: {}
|
|
7
7
|
},
|
|
8
8
|
emits: ["update:colorMode"],
|
|
9
|
-
setup(
|
|
10
|
-
const
|
|
9
|
+
setup(o, { emit: y }) {
|
|
10
|
+
const s = y, a = g({
|
|
11
11
|
base: "w-full shadow-none text-c-1 justify-start pl-2 gap-2 border",
|
|
12
12
|
variants: {
|
|
13
13
|
active: {
|
|
@@ -16,65 +16,65 @@ const x = { class: "flex flex-col gap-2" }, j = /* @__PURE__ */ M({
|
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
|
-
return (
|
|
20
|
-
|
|
21
|
-
class: r(t(
|
|
22
|
-
onClick: e[0] || (e[0] = (
|
|
19
|
+
return (C, e) => (l(), v("div", p, [
|
|
20
|
+
c(t(f), {
|
|
21
|
+
class: r(t(k)(t(a)({ active: o.colorMode === "system" }))),
|
|
22
|
+
onClick: e[0] || (e[0] = (x) => s("update:colorMode", "system"))
|
|
23
23
|
}, {
|
|
24
|
-
default:
|
|
25
|
-
|
|
24
|
+
default: n(() => [
|
|
25
|
+
d("div", {
|
|
26
26
|
class: r(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1", {
|
|
27
27
|
"bg-c-accent text-b-1 border-transparent": o.colorMode === "system"
|
|
28
28
|
}])
|
|
29
29
|
}, [
|
|
30
|
-
o.colorMode === "system" ? (
|
|
30
|
+
o.colorMode === "system" ? (l(), u(t(b), {
|
|
31
31
|
key: 0,
|
|
32
32
|
icon: "Checkmark",
|
|
33
33
|
size: "xs",
|
|
34
34
|
thickness: "3.5"
|
|
35
|
-
})) :
|
|
35
|
+
})) : m("", !0)
|
|
36
36
|
], 2),
|
|
37
37
|
e[3] || (e[3] = i(" System Preference (default) ", -1))
|
|
38
38
|
]),
|
|
39
39
|
_: 1
|
|
40
40
|
}, 8, ["class"]),
|
|
41
|
-
|
|
42
|
-
class: r(t(
|
|
43
|
-
onClick: e[1] || (e[1] = (
|
|
41
|
+
c(t(f), {
|
|
42
|
+
class: r(t(k)(t(a)({ active: o.colorMode === "light" }))),
|
|
43
|
+
onClick: e[1] || (e[1] = (x) => s("update:colorMode", "light"))
|
|
44
44
|
}, {
|
|
45
|
-
default:
|
|
46
|
-
|
|
45
|
+
default: n(() => [
|
|
46
|
+
d("div", {
|
|
47
47
|
class: r(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1", {
|
|
48
48
|
"bg-c-accent text-b-1 border-transparent": o.colorMode === "light"
|
|
49
49
|
}])
|
|
50
50
|
}, [
|
|
51
|
-
o.colorMode === "light" ? (
|
|
51
|
+
o.colorMode === "light" ? (l(), u(t(b), {
|
|
52
52
|
key: 0,
|
|
53
53
|
icon: "Checkmark",
|
|
54
54
|
size: "xs",
|
|
55
55
|
thickness: "3.5"
|
|
56
|
-
})) :
|
|
56
|
+
})) : m("", !0)
|
|
57
57
|
], 2),
|
|
58
58
|
e[4] || (e[4] = i(" Light Mode Always ", -1))
|
|
59
59
|
]),
|
|
60
60
|
_: 1
|
|
61
61
|
}, 8, ["class"]),
|
|
62
|
-
|
|
63
|
-
class: r(t(
|
|
64
|
-
onClick: e[2] || (e[2] = (
|
|
62
|
+
c(t(f), {
|
|
63
|
+
class: r(t(k)(t(a)({ active: o.colorMode === "dark" }))),
|
|
64
|
+
onClick: e[2] || (e[2] = (x) => s("update:colorMode", "dark"))
|
|
65
65
|
}, {
|
|
66
|
-
default:
|
|
67
|
-
|
|
66
|
+
default: n(() => [
|
|
67
|
+
d("div", {
|
|
68
68
|
class: r(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1", {
|
|
69
69
|
"bg-c-accent text-b-1 border-transparent": o.colorMode === "dark"
|
|
70
70
|
}])
|
|
71
71
|
}, [
|
|
72
|
-
o.colorMode === "dark" ? (
|
|
72
|
+
o.colorMode === "dark" ? (l(), u(t(b), {
|
|
73
73
|
key: 0,
|
|
74
74
|
icon: "Checkmark",
|
|
75
75
|
size: "xs",
|
|
76
76
|
thickness: "3.5"
|
|
77
|
-
})) :
|
|
77
|
+
})) : m("", !0)
|
|
78
78
|
], 2),
|
|
79
79
|
e[5] || (e[5] = i(" Dark Mode Always ", -1))
|
|
80
80
|
]),
|
|
@@ -1,15 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
2
2
|
import type { ClientLayout } from '../../v2/types/layout';
|
|
3
|
-
type HotKeyModifiers = ('altKey' | 'ctrlKey' | 'shiftKey' | 'metaKey' | 'default')[];
|
|
4
|
-
/** Hotkey configuration */
|
|
5
|
-
export type HotKeyConfig = Record<string | number, {
|
|
6
|
-
event: keyof ApiReferenceEvents;
|
|
7
|
-
modifiers: HotKeyModifiers;
|
|
8
|
-
}>;
|
|
9
|
-
/** Default hotkeys available in most contexts */
|
|
10
|
-
export declare const DEFAULT_HOTKEYS: HotKeyConfig;
|
|
11
|
-
/** Hotkey map by layout, we can allow the user to override this later */
|
|
12
|
-
export declare const HOTKEYS: Record<ClientLayout, HotKeyConfig>;
|
|
13
3
|
/**
|
|
14
4
|
* Handles global keyboard shortcuts.
|
|
15
5
|
* Checks modifier keys and input context before emitting events.
|
|
@@ -19,5 +9,4 @@ export declare const HOTKEYS: Record<ClientLayout, HotKeyConfig>;
|
|
|
19
9
|
* @param layout - client layout
|
|
20
10
|
*/
|
|
21
11
|
export declare const handleHotkeys: (event: KeyboardEvent, eventBus: WorkspaceEventBus, layout: ClientLayout) => void;
|
|
22
|
-
export {};
|
|
23
12
|
//# sourceMappingURL=handle-hotkeys.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handle-hotkeys.d.ts","sourceRoot":"","sources":["../../../src/v2/helpers/handle-hotkeys.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"handle-hotkeys.d.ts","sourceRoot":"","sources":["../../../src/v2/helpers/handle-hotkeys.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAsB,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAE3F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AA6ErD;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,GAAI,OAAO,aAAa,EAAE,UAAU,iBAAiB,EAAE,QAAQ,YAAY,KAAG,IA6BvG,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { OperationObject } from '@scalar/workspace-store/schemas/v3.1/strict/operation';
|
|
2
2
|
import type { Component } from 'vue';
|
|
3
3
|
/** A type representing the hooks that a client plugin can define */
|
|
4
|
-
|
|
4
|
+
type ClientPluginHooks = {
|
|
5
5
|
beforeRequest: (payload: {
|
|
6
6
|
request: Request;
|
|
7
7
|
}) => {
|
|
@@ -16,7 +16,7 @@ export type ClientPluginHooks = {
|
|
|
16
16
|
}) => void | Promise<void>;
|
|
17
17
|
};
|
|
18
18
|
/** A type representing the components that a client plugin can define */
|
|
19
|
-
|
|
19
|
+
type ClientPluginComponents = {
|
|
20
20
|
request: Component;
|
|
21
21
|
response: Component;
|
|
22
22
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../src/v2/helpers/plugins.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uDAAuD,CAAA;AAC5F,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AAEpC,oEAAoE;AACpE,
|
|
1
|
+
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../src/v2/helpers/plugins.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uDAAuD,CAAA;AAC5F,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AAEpC,oEAAoE;AACpE,KAAK,iBAAiB,GAAG;IACvB,aAAa,EAAE,CAAC,OAAO,EAAE;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,KAAK;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC,CAAA;IACtG,gBAAgB,EAAE,CAAC,OAAO,EAAE;QAC1B,QAAQ,EAAE,QAAQ,CAAA;QAClB,OAAO,EAAE,OAAO,CAAA;QAChB,SAAS,EAAE,eAAe,CAAA;KAC3B,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CAC3B,CAAA;AAED,yEAAyE;AACzE,KAAK,sBAAsB,GAAG;IAC5B,OAAO,EAAE,SAAS,CAAA;IAClB,QAAQ,EAAE,SAAS,CAAA;CACpB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,CAAC,EAAE,OAAO,CAAC,iBAAiB,CAAC,CAAA;IAClC,UAAU,CAAC,EAAE,OAAO,CAAC,sBAAsB,CAAC,CAAA;CAC7C,CAAA;AAED;;;;GAIG;AACH,KAAK,cAAc,GAAG;KACnB,CAAC,IAAI,MAAM,iBAAiB,GAAG,UAAU,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACpE,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,WAAW,GAAU,CAAC,SAAS,MAAM,cAAc,EAC9D,SAAS,cAAc,CAAC,CAAC,CAAC,EAC1B,UAAU,CAAC,EACX,SAAS,YAAY,EAAE,KACtB,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,CAY3B,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as x, computed as v, createElementBlock as
|
|
2
|
-
import { LibraryIcon as
|
|
3
|
-
import { useRouter as
|
|
1
|
+
import { defineComponent as x, computed as v, createElementBlock as a, openBlock as o, createVNode as m, createElementVNode as i, normalizeClass as s, createCommentVNode as h, unref as t, toDisplayString as d, Fragment as y, renderList as w, createBlock as b, withCtx as k } from "vue";
|
|
2
|
+
import { LibraryIcon as g } from "@scalar/icons/library";
|
|
3
|
+
import { useRouter as C, RouterLink as _ } from "vue-router";
|
|
4
4
|
import { PathId as n } from "../../routes.js";
|
|
5
5
|
import N from "./CollectionInfoForm.vue.js";
|
|
6
6
|
import { useActiveEntities as S } from "../../store/active-entities.js";
|
|
@@ -12,8 +12,8 @@ const B = { class: "bg-b-1 sticky -top-[104px] z-10 mx-auto w-full" }, E = {
|
|
|
12
12
|
props: {
|
|
13
13
|
isSticky: { type: Boolean }
|
|
14
14
|
},
|
|
15
|
-
setup(
|
|
16
|
-
const { currentRoute: c } =
|
|
15
|
+
setup(r) {
|
|
16
|
+
const { currentRoute: c } = C(), { activeCollection: e } = S(), u = v(() => [
|
|
17
17
|
{
|
|
18
18
|
displayName: "Overview",
|
|
19
19
|
// icon: 'Collection',
|
|
@@ -89,16 +89,16 @@ const B = { class: "bg-b-1 sticky -top-[104px] z-10 mx-auto w-full" }, E = {
|
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
]);
|
|
92
|
-
return (
|
|
92
|
+
return (I, L) => (o(), a("div", B, [
|
|
93
93
|
m(N),
|
|
94
94
|
i("div", {
|
|
95
|
-
class:
|
|
95
|
+
class: s([
|
|
96
96
|
"items-center text-sm font-medium",
|
|
97
97
|
r.isSticky ? "h-fit border-b md:grid md:grid-cols-[1fr_720px_1fr] md:px-4" : "flex md:mx-auto md:max-w-[720px]"
|
|
98
98
|
])
|
|
99
99
|
}, [
|
|
100
|
-
r.isSticky ? (o(),
|
|
101
|
-
m(t(
|
|
100
|
+
r.isSticky ? (o(), a("div", E, [
|
|
101
|
+
m(t(g), {
|
|
102
102
|
class: "text-c-2 hidden size-3.5 md:block",
|
|
103
103
|
src: t(e)?.["x-scalar-icon"] || "interface-content-folder",
|
|
104
104
|
"stroke-width": "2"
|
|
@@ -106,20 +106,20 @@ const B = { class: "bg-b-1 sticky -top-[104px] z-10 mx-auto w-full" }, E = {
|
|
|
106
106
|
i("span", z, d(t(e)?.info?.title), 1)
|
|
107
107
|
])) : h("", !0),
|
|
108
108
|
i("div", {
|
|
109
|
-
class:
|
|
109
|
+
class: s(["flex w-full max-w-[720px] gap-2 pl-1.5 md:ml-1.5 md:pl-0", !r.isSticky && "border-b"])
|
|
110
110
|
}, [
|
|
111
|
-
(o(!0),
|
|
111
|
+
(o(!0), a(y, null, w(u.value, ({ to: l, displayName: p }, f) => (o(), b(t(_), {
|
|
112
112
|
key: f,
|
|
113
113
|
class: "-ml-2 flex h-10 cursor-pointer items-center px-2 text-center text-sm font-medium whitespace-nowrap no-underline -outline-offset-1 has-[:focus-visible]:outline",
|
|
114
114
|
to: l
|
|
115
115
|
}, {
|
|
116
116
|
default: k(() => [
|
|
117
117
|
i("span", {
|
|
118
|
-
class:
|
|
118
|
+
class: s([
|
|
119
119
|
"flex-center h-full w-full border-b",
|
|
120
120
|
typeof l.name == "string" && typeof t(c).name == "string" && t(c).name?.startsWith(l.name) ? "text-c-1 border-c-1" : "text-c-2 hover:text-c-1 border-transparent"
|
|
121
121
|
])
|
|
122
|
-
}, d(
|
|
122
|
+
}, d(p), 3)
|
|
123
123
|
]),
|
|
124
124
|
_: 2
|
|
125
125
|
}, 1032, ["to"]))), 128))
|