@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,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as S, ref as C, watch as E, nextTick as b, createBlock as i, openBlock as a, unref as n, withCtx as m, createCommentVNode as l, createElementVNode as r, createVNode as u, createTextVNode as c } from "vue";
|
|
2
2
|
import { ScalarDropdown as M, ScalarDropdownItem as s, ScalarIcon as y, ScalarDropdownDivider as T } from "@scalar/components";
|
|
3
|
-
import { getParentEntry as
|
|
3
|
+
import { getParentEntry as I } from "@scalar/workspace-store/navigation";
|
|
4
4
|
const z = { class: "flex items-center gap-2" }, N = { class: "flex items-center gap-2" }, V = { class: "flex items-center gap-2" }, $ = { class: "text-red flex items-center gap-2" }, W = /* @__PURE__ */ S({
|
|
5
5
|
__name: "SidebarItemMenu",
|
|
6
6
|
props: {
|
|
@@ -10,8 +10,8 @@ const z = { class: "flex items-center gap-2" }, N = { class: "flex items-center
|
|
|
10
10
|
target: {}
|
|
11
11
|
},
|
|
12
12
|
emits: ["closeMenu", "showDeleteModal"],
|
|
13
|
-
setup(e, { emit:
|
|
14
|
-
const g =
|
|
13
|
+
setup(e, { emit: p }) {
|
|
14
|
+
const g = p, f = C(!1);
|
|
15
15
|
E(f, async (d, t) => {
|
|
16
16
|
!d && t && (await b(), g("closeMenu"));
|
|
17
17
|
});
|
|
@@ -26,7 +26,7 @@ const z = { class: "flex items-center gap-2" }, N = { class: "flex items-center
|
|
|
26
26
|
e.eventBus.emit("ui:open:command-palette", {
|
|
27
27
|
action: "create-request",
|
|
28
28
|
payload: {
|
|
29
|
-
documentId:
|
|
29
|
+
documentId: I("document", d)?.id,
|
|
30
30
|
tagId: e.item.name
|
|
31
31
|
}
|
|
32
32
|
});
|
|
@@ -44,7 +44,7 @@ const z = { class: "flex items-center gap-2" }, N = { class: "flex items-center
|
|
|
44
44
|
e.eventBus.emit("ui:open:command-palette", {
|
|
45
45
|
action: "add-example",
|
|
46
46
|
payload: {
|
|
47
|
-
documentId:
|
|
47
|
+
documentId: I("document", d)?.id,
|
|
48
48
|
operationId: e.item.id
|
|
49
49
|
}
|
|
50
50
|
});
|
|
@@ -54,7 +54,7 @@ const z = { class: "flex items-center gap-2" }, N = { class: "flex items-center
|
|
|
54
54
|
open: f.value,
|
|
55
55
|
"onUpdate:open": t[4] || (t[4] = (o) => f.value = o),
|
|
56
56
|
placement: "bottom-end",
|
|
57
|
-
target:
|
|
57
|
+
target: e.target,
|
|
58
58
|
teleport: ""
|
|
59
59
|
}, {
|
|
60
60
|
items: m(() => [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as c, createElementBlock as p, openBlock as n, createVNode as s, unref as i } from "vue";
|
|
2
2
|
import k from "./DownloadAppButton.vue.js";
|
|
3
3
|
import m from "../../../components/sidebar/SidebarMenu.vue.js";
|
|
4
|
-
const l = { class: "flex h-12 items-center justify-between border-b p-2" }, w = {}, v = /* @__PURE__ */
|
|
4
|
+
const l = { class: "flex h-12 items-center justify-between border-b p-2" }, w = {}, v = /* @__PURE__ */ c({
|
|
5
5
|
...w,
|
|
6
6
|
__name: "WebTopNav",
|
|
7
7
|
props: {
|
|
@@ -9,14 +9,14 @@ const l = { class: "flex h-12 items-center justify-between border-b p-2" }, w =
|
|
|
9
9
|
workspaces: {}
|
|
10
10
|
},
|
|
11
11
|
emits: ["create:workspace", "select:workspace"],
|
|
12
|
-
setup(
|
|
13
|
-
const
|
|
14
|
-
return (
|
|
12
|
+
setup(o, { emit: a }) {
|
|
13
|
+
const t = a;
|
|
14
|
+
return (f, e) => (n(), p("nav", l, [
|
|
15
15
|
s(i(m), {
|
|
16
|
-
activeWorkspace:
|
|
17
|
-
workspaces:
|
|
18
|
-
"onCreate:workspace": e[0] || (e[0] = (r) =>
|
|
19
|
-
"onSelect:workspace": e[1] || (e[1] = (r) =>
|
|
16
|
+
activeWorkspace: o.activeWorkspace,
|
|
17
|
+
workspaces: o.workspaces,
|
|
18
|
+
"onCreate:workspace": e[0] || (e[0] = (r) => t("create:workspace")),
|
|
19
|
+
"onSelect:workspace": e[1] || (e[1] = (r) => t("select:workspace", r))
|
|
20
20
|
}, null, 8, ["activeWorkspace", "workspaces"]),
|
|
21
21
|
s(k)
|
|
22
22
|
]));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ClientPlugin } from '../../../../v2/helpers/plugins.js';
|
|
2
2
|
import type { ClientLayout } from '../../../../v2/types/layout';
|
|
3
|
-
|
|
3
|
+
type CreateApiClientOptions = {
|
|
4
4
|
/**
|
|
5
5
|
* The layout of the client, limited to web or desktop in app
|
|
6
6
|
* @see {@link ClientLayout}
|
|
@@ -13,10 +13,6 @@ export type CreateApiClientOptions = {
|
|
|
13
13
|
*/
|
|
14
14
|
plugins?: ClientPlugin[];
|
|
15
15
|
};
|
|
16
|
-
/**
|
|
17
|
-
* Creates the appropriate router with the appropriate routes based on the layout
|
|
18
|
-
*/
|
|
19
|
-
export declare const createAppRouter: (layout: CreateApiClientOptions["layout"]) => import("vue-router").Router;
|
|
20
16
|
/**
|
|
21
17
|
* Create the API Client with router and passes in the workspace store as a prop
|
|
22
18
|
*/
|
|
@@ -82,4 +78,5 @@ export declare const createApiClientApp: (el: HTMLElement | null, { layout, plug
|
|
|
82
78
|
document: import("vue").ComputedRef<import("@scalar/workspace-store/schemas").WorkspaceDocument | null>;
|
|
83
79
|
};
|
|
84
80
|
} | undefined;
|
|
81
|
+
export {};
|
|
85
82
|
//# sourceMappingURL=create-api-client-app.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-api-client-app.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/app/helpers/create-api-client-app.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,
|
|
1
|
+
{"version":3,"file":"create-api-client-app.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/app/helpers/create-api-client-app.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,KAAK,sBAAsB,GAAG;IAC5B;;;;;OAKG;IACH,MAAM,EAAE,OAAO,CAAC,YAAY,EAAE,OAAO,CAAC,CAAA;IACtC;;OAEG;IACH,OAAO,CAAC,EAAE,YAAY,EAAE,CAAA;CACzB,CAAA;AAeD;;GAEG;AACH,eAAO,MAAM,kBAAkB,GAAI,IAAI,WAAW,GAAG,IAAI,EAAE,qBAAiC,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA4By2K,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;aAD39K,CAAA"}
|
|
@@ -41,7 +41,11 @@ export declare const ROUTES: ({
|
|
|
41
41
|
children: ({
|
|
42
42
|
name: string;
|
|
43
43
|
path: string;
|
|
44
|
-
component: import("vue").DefineComponent<RouteProps
|
|
44
|
+
component: import("vue").DefineComponent<RouteProps & {
|
|
45
|
+
hideClientButton?: boolean;
|
|
46
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<RouteProps & {
|
|
47
|
+
hideClientButton?: boolean;
|
|
48
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
45
49
|
children?: undefined;
|
|
46
50
|
} | {
|
|
47
51
|
name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/app/helpers/routes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAA;AAGlF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kEAAkE,CAAA;AAU7G,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAExD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,kDAAkD;AAClD,MAAM,MAAM,UAAU,GAAG;IACvB,YAAY,EAAE,MAAM,CAAA;IACpB,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAClC,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,MAAM,EAAE,YAAY,CAAA;IACpB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,UAAU,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,EAAE,kBAAkB,CAAA;IAC/B,eAAe,EAAE,qBAAqB,CAAA;IACtC,cAAc,EAAE,cAAc,CAAA;IAC9B,eAAe,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;IAC9C,OAAO,EAAE,YAAY,EAAE,CAAA;CAGxB,CAAA;AAED,oCAAoC;AACpC,MAAM,MAAM,eAAe,GAAG,UAAU,GACtC,CACI;IACE,cAAc,EAAE,UAAU,CAAA;IAC1B,QAAQ,EAAE,iBAAiB,CAAA;CAC5B,GACD;IACE,cAAc,EAAE,WAAW,CAAA;IAC3B,QAAQ,EAAE,IAAI,CAAA;CACf,CACJ,CAAA;AAEH,MAAM,MAAM,0BAA0B,GAAG,eAAe,GAAG,cAAc,GAAG,aAAa,GAAG,QAAQ,GAAG,aAAa,CAAA;AAEpH,kFAAkF;AAClF,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/app/helpers/routes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAA;AAGlF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kEAAkE,CAAA;AAU7G,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAExD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,kDAAkD;AAClD,MAAM,MAAM,UAAU,GAAG;IACvB,YAAY,EAAE,MAAM,CAAA;IACpB,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAClC,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,MAAM,EAAE,YAAY,CAAA;IACpB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,UAAU,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,EAAE,kBAAkB,CAAA;IAC/B,eAAe,EAAE,qBAAqB,CAAA;IACtC,cAAc,EAAE,cAAc,CAAA;IAC9B,eAAe,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;IAC9C,OAAO,EAAE,YAAY,EAAE,CAAA;CAGxB,CAAA;AAED,oCAAoC;AACpC,MAAM,MAAM,eAAe,GAAG,UAAU,GACtC,CACI;IACE,cAAc,EAAE,UAAU,CAAA;IAC1B,QAAQ,EAAE,iBAAiB,CAAA;CAC5B,GACD;IACE,cAAc,EAAE,WAAW,CAAA;IAC3B,QAAQ,EAAE,IAAI,CAAA;CACf,CACJ,CAAA;AAEH,MAAM,MAAM,0BAA0B,GAAG,eAAe,GAAG,cAAc,GAAG,aAAa,GAAG,QAAQ,GAAG,aAAa,CAAA;AAEpH,kFAAkF;AAClF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAZK,UAAU;8BAChB,iBAAiB;;oCAGX,WAAW;8BACjB,IAAI;;oCALE,UAAU;8BAChB,iBAAiB;;oCAGX,WAAW;8BACjB,IAAI;;;;;;;;;;;;;;;gCALE,UAAU;0BAChB,iBAAiB;;gCAGX,WAAW;0BACjB,IAAI;;gCALE,UAAU;0BAChB,iBAAiB;;gCAGX,WAAW;0BACjB,IAAI;;;;;;;;;IA0GM,CAAA"}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineComponent as f, computed as d, createElementBlock as
|
|
1
|
+
import { defineComponent as f, computed as d, createElementBlock as c, openBlock as s, createElementVNode as e, createVNode as o, withCtx as r, unref as m, createBlock as p, resolveDynamicComponent as x, mergeProps as v } from "vue";
|
|
2
2
|
import { ScalarButton as h } from "@scalar/components";
|
|
3
|
-
import { LibraryIcon as
|
|
4
|
-
import { RouterView as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
const
|
|
3
|
+
import { LibraryIcon as _ } from "@scalar/icons/library";
|
|
4
|
+
import { RouterView as b } from "vue-router";
|
|
5
|
+
import y from "../../../components/IconSelector.vue.js";
|
|
6
|
+
import w from "./components/LabelInput.vue.js";
|
|
7
|
+
import g from "./components/Tabs.vue.js";
|
|
8
|
+
const k = { class: "custom-scroll h-full" }, V = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "w-full md:mx-auto md:max-w-[720px]"
|
|
11
|
-
},
|
|
11
|
+
}, B = ["aria-label"], C = { class: "flex flex-row items-center gap-2" }, D = { class: "group relative ml-1.25" }, N = { class: "px-1.5 py-8" }, S = {
|
|
12
12
|
key: 1,
|
|
13
13
|
class: "flex w-full flex-1 items-center justify-center"
|
|
14
|
-
},
|
|
14
|
+
}, I = {
|
|
15
15
|
name: "DocumentCollection"
|
|
16
16
|
}, P = /* @__PURE__ */ f({
|
|
17
|
-
...
|
|
17
|
+
...I,
|
|
18
18
|
props: {
|
|
19
19
|
documentSlug: {},
|
|
20
20
|
document: {},
|
|
@@ -29,29 +29,29 @@ const V = { class: "custom-scroll h-full" }, B = {
|
|
|
29
29
|
activeWorkspace: {},
|
|
30
30
|
plugins: {}
|
|
31
31
|
},
|
|
32
|
-
setup(
|
|
33
|
-
const
|
|
34
|
-
() =>
|
|
32
|
+
setup(n) {
|
|
33
|
+
const a = n, u = d(() => a.document?.info?.title || "Untitled Document"), i = d(
|
|
34
|
+
() => a.document?.["x-scalar-icon"] || "interface-content-folder"
|
|
35
35
|
);
|
|
36
|
-
return (
|
|
37
|
-
|
|
36
|
+
return (U, t) => (s(), c("div", k, [
|
|
37
|
+
n.document ? (s(), c("div", V, [
|
|
38
38
|
e("div", {
|
|
39
39
|
"aria-label": `title: ${u.value}`,
|
|
40
40
|
class: "mx-auto flex h-fit w-full flex-col gap-2 pt-6 pb-3 md:mx-auto md:max-w-[720px]"
|
|
41
41
|
}, [
|
|
42
|
-
e("div",
|
|
43
|
-
o(
|
|
42
|
+
e("div", C, [
|
|
43
|
+
o(y, {
|
|
44
44
|
modelValue: i.value,
|
|
45
45
|
placement: "bottom-start",
|
|
46
|
-
"onUpdate:modelValue": t[0] || (t[0] = (l) =>
|
|
46
|
+
"onUpdate:modelValue": t[0] || (t[0] = (l) => n.eventBus.emit("document:update:icon", l))
|
|
47
47
|
}, {
|
|
48
|
-
default:
|
|
48
|
+
default: r(() => [
|
|
49
49
|
o(m(h), {
|
|
50
50
|
class: "hover:bg-b-2 aspect-square h-7 w-7 cursor-pointer rounded border border-transparent p-0 hover:border-inherit",
|
|
51
51
|
variant: "ghost"
|
|
52
52
|
}, {
|
|
53
|
-
default:
|
|
54
|
-
o(m(
|
|
53
|
+
default: r(() => [
|
|
54
|
+
o(m(_), {
|
|
55
55
|
class: "text-c-2 size-5",
|
|
56
56
|
src: i.value,
|
|
57
57
|
"stroke-width": "2"
|
|
@@ -63,25 +63,25 @@ const V = { class: "custom-scroll h-full" }, B = {
|
|
|
63
63
|
_: 1
|
|
64
64
|
}, 8, ["modelValue"])
|
|
65
65
|
]),
|
|
66
|
-
e("div",
|
|
67
|
-
o(
|
|
66
|
+
e("div", D, [
|
|
67
|
+
o(w, {
|
|
68
68
|
class: "text-xl font-bold",
|
|
69
69
|
inputId: "documentName",
|
|
70
70
|
modelValue: u.value,
|
|
71
|
-
"onUpdate:modelValue": t[1] || (t[1] = (l) =>
|
|
71
|
+
"onUpdate:modelValue": t[1] || (t[1] = (l) => n.eventBus.emit("document:update:info", { title: l }))
|
|
72
72
|
}, null, 8, ["modelValue"])
|
|
73
73
|
])
|
|
74
|
-
], 8,
|
|
75
|
-
o(
|
|
76
|
-
e("div",
|
|
77
|
-
o(m(
|
|
78
|
-
default:
|
|
79
|
-
(
|
|
74
|
+
], 8, B),
|
|
75
|
+
o(g, { type: "document" }),
|
|
76
|
+
e("div", N, [
|
|
77
|
+
o(m(b), null, {
|
|
78
|
+
default: r(({ Component: l }) => [
|
|
79
|
+
(s(), p(x(l), v(a, { collectionType: "document" }), null, 16))
|
|
80
80
|
]),
|
|
81
81
|
_: 1
|
|
82
82
|
})
|
|
83
83
|
])
|
|
84
|
-
])) : (
|
|
84
|
+
])) : (s(), c("div", S, [...t[2] || (t[2] = [
|
|
85
85
|
e("div", { class: "flex h-full flex-col items-center justify-center" }, [
|
|
86
86
|
e("h1", { class: "text-2xl font-bold" }, "Document not found"),
|
|
87
87
|
e("p", { class: "text-gray-500" }, " The document you are looking for does not exist. ")
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as a, createElementBlock as l, openBlock as r, createElementVNode as e, createVNode as o, unref as c, toDisplayString as i, mergeProps as n } from "vue";
|
|
2
2
|
import { ScalarIconGlobe as m } from "@scalar/icons";
|
|
3
|
-
import { RouterView as
|
|
4
|
-
import
|
|
5
|
-
const
|
|
6
|
-
...
|
|
3
|
+
import { RouterView as p } from "vue-router";
|
|
4
|
+
import d from "./components/Tabs.vue.js";
|
|
5
|
+
const u = { class: "custom-scroll h-full" }, _ = { class: "w-full md:mx-auto md:max-w-[720px]" }, f = ["aria-label"], x = { class: "group relative ml-1.25" }, h = { class: "text-c-1 flex h-8 items-center" }, v = { class: "px-1.5 py-8" }, k = {}, B = /* @__PURE__ */ a({
|
|
6
|
+
...k,
|
|
7
7
|
__name: "WorkspaceCollection",
|
|
8
8
|
props: {
|
|
9
9
|
documentSlug: {},
|
|
@@ -19,22 +19,22 @@ const _ = { class: "custom-scroll h-full" }, f = { class: "w-full md:mx-auto md:
|
|
|
19
19
|
activeWorkspace: {},
|
|
20
20
|
plugins: {}
|
|
21
21
|
},
|
|
22
|
-
setup(
|
|
23
|
-
const
|
|
24
|
-
return (
|
|
25
|
-
e("div",
|
|
22
|
+
setup(t) {
|
|
23
|
+
const s = t;
|
|
24
|
+
return (w, b) => (r(), l("div", u, [
|
|
25
|
+
e("div", _, [
|
|
26
26
|
e("div", {
|
|
27
|
-
"aria-label": `title: ${
|
|
27
|
+
"aria-label": `title: ${t.activeWorkspace.label}`,
|
|
28
28
|
class: "mx-auto flex h-fit w-full flex-col gap-2 pt-6 pb-3 md:mx-auto md:max-w-[720px]"
|
|
29
29
|
}, [
|
|
30
|
-
|
|
31
|
-
e("div",
|
|
32
|
-
e("span",
|
|
30
|
+
o(c(m), { class: "text-c-2 size-6" }),
|
|
31
|
+
e("div", x, [
|
|
32
|
+
e("span", h, i(t.activeWorkspace.label), 1)
|
|
33
33
|
])
|
|
34
|
-
], 8,
|
|
35
|
-
|
|
36
|
-
e("div",
|
|
37
|
-
|
|
34
|
+
], 8, f),
|
|
35
|
+
o(d, { type: "workspace" }),
|
|
36
|
+
e("div", v, [
|
|
37
|
+
o(c(p), n(s, { collectionType: "workspace" }), null, 16)
|
|
38
38
|
])
|
|
39
39
|
])
|
|
40
40
|
]));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as u, computed as
|
|
2
|
-
import { ScalarToggle as
|
|
3
|
-
import
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as u, computed as s, createElementBlock as m, openBlock as d, createElementVNode as n, createVNode as c, unref as i, normalizeClass as a } from "vue";
|
|
2
|
+
import { ScalarToggle as v } from "@scalar/components";
|
|
3
|
+
import y from "../../../blocks/scalar-auth-selector-block/components/AuthSelector.vue.js";
|
|
4
|
+
const f = { class: "flex flex-col gap-4" }, p = { class: "flex flex-col gap-2" }, h = { class: "flex h-8 items-center justify-between" }, b = /* @__PURE__ */ u({
|
|
5
5
|
__name: "Authentication",
|
|
6
6
|
props: {
|
|
7
7
|
documentSlug: {},
|
|
@@ -18,33 +18,33 @@ const y = { class: "flex flex-col gap-4" }, f = { class: "flex flex-col gap-2" }
|
|
|
18
18
|
plugins: {},
|
|
19
19
|
collectionType: {}
|
|
20
20
|
},
|
|
21
|
-
setup(
|
|
22
|
-
const
|
|
23
|
-
() =>
|
|
24
|
-
),
|
|
25
|
-
() =>
|
|
26
|
-
({ url:
|
|
21
|
+
setup(e) {
|
|
22
|
+
const l = s(
|
|
23
|
+
() => e.document?.["x-scalar-set-operation-security"] ?? !1
|
|
24
|
+
), r = s(
|
|
25
|
+
() => e.document?.servers?.find(
|
|
26
|
+
({ url: o }) => o === e.document?.["x-scalar-selected-server"]
|
|
27
27
|
) ?? null
|
|
28
28
|
);
|
|
29
|
-
return (
|
|
30
|
-
n("div",
|
|
29
|
+
return (o, t) => (d(), m("div", f, [
|
|
30
|
+
n("div", p, [
|
|
31
31
|
n("div", h, [
|
|
32
32
|
t[1] || (t[1] = n("h3", { class: "font-bold" }, "Authentication", -1)),
|
|
33
|
-
|
|
33
|
+
c(i(v), {
|
|
34
34
|
class: "w-4",
|
|
35
|
-
modelValue:
|
|
35
|
+
modelValue: l.value,
|
|
36
36
|
"onUpdate:modelValue": t[0] || (t[0] = () => e.eventBus.emit("document:toggle:security"))
|
|
37
37
|
}, null, 8, ["modelValue"])
|
|
38
38
|
]),
|
|
39
39
|
t[2] || (t[2] = n("p", { class: "pr-6 text-sm" }, " If enabled, all selected authentication will apply to all operations in this document. You can override this by disabling the toggle and authentication will then be applied at the operation level. ", -1))
|
|
40
40
|
]),
|
|
41
41
|
n("div", {
|
|
42
|
-
class: a(!
|
|
42
|
+
class: a(!l.value && "cursor-not-allowed")
|
|
43
43
|
}, [
|
|
44
|
-
|
|
44
|
+
c(i(y), {
|
|
45
45
|
class: a([
|
|
46
46
|
"scalar-collection-auth !border-none",
|
|
47
|
-
!
|
|
47
|
+
!l.value && "pointer-events-none opacity-50 mix-blend-luminosity"
|
|
48
48
|
]),
|
|
49
49
|
environment: e.environment,
|
|
50
50
|
eventBus: e.eventBus,
|
|
@@ -54,7 +54,7 @@ const y = { class: "flex flex-col gap-4" }, f = { class: "flex flex-col gap-2" }
|
|
|
54
54
|
securityRequirements: e.document?.security ?? [],
|
|
55
55
|
securitySchemes: e.securitySchemes,
|
|
56
56
|
selectedSecurity: e.document?.["x-scalar-selected-security"],
|
|
57
|
-
server:
|
|
57
|
+
server: r.value,
|
|
58
58
|
title: "Authentication"
|
|
59
59
|
}, null, 8, ["class", "environment", "eventBus", "proxyUrl", "securityRequirements", "securitySchemes", "selectedSecurity", "server"])
|
|
60
60
|
], 2)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as s, computed as c, createElementBlock as n, openBlock as l, createStaticVNode as a, createVNode as i, unref as r } from "vue";
|
|
2
|
+
import u from "../../global-cookies/components/CookiesTable.vue.js";
|
|
3
|
+
const d = { class: "flex flex-col gap-4" }, f = /* @__PURE__ */ s({
|
|
4
4
|
__name: "Cookies",
|
|
5
5
|
props: {
|
|
6
6
|
documentSlug: {},
|
|
@@ -18,13 +18,13 @@ const p = { class: "flex flex-col gap-4" }, f = /* @__PURE__ */ c({
|
|
|
18
18
|
collectionType: {}
|
|
19
19
|
},
|
|
20
20
|
setup(e) {
|
|
21
|
-
const
|
|
22
|
-
return (
|
|
23
|
-
|
|
24
|
-
r(u
|
|
25
|
-
cookies:
|
|
26
|
-
eventBus:
|
|
27
|
-
collectionType:
|
|
21
|
+
const t = c(() => (e.collectionType === "document" ? e.document["x-scalar-cookies"] : e.workspaceStore.workspace["x-scalar-cookies"]) ?? []);
|
|
22
|
+
return (m, o) => (l(), n("div", d, [
|
|
23
|
+
o[0] || (o[0] = a('<div class="flex items-start justify-between gap-2"><div class="flex flex-col gap-2"><div class="flex h-8 items-center"><h3 class="font-bold">Cookies</h3></div><p class="text-c-2 mb-4 text-sm"> Manage your collection's cookies here.<br>Cookies allow you to store and send key-value data with your API requests—often used for things like session tokens, authentication, and saving user preferences.<br></p></div></div>', 1)),
|
|
24
|
+
i(r(u), {
|
|
25
|
+
cookies: t.value,
|
|
26
|
+
eventBus: e.eventBus,
|
|
27
|
+
collectionType: e.collectionType
|
|
28
28
|
}, null, 8, ["cookies", "eventBus", "collectionType"])
|
|
29
29
|
]));
|
|
30
30
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as o, computed as c, createElementBlock as s, openBlock as l, createStaticVNode as a, createVNode as i, unref as r } from "vue";
|
|
2
|
+
import m from "../../environments/EnvironmentsList.vue.js";
|
|
3
|
+
const v = { class: "flex flex-col gap-4" }, f = /* @__PURE__ */ o({
|
|
4
4
|
__name: "Environment",
|
|
5
5
|
props: {
|
|
6
6
|
documentSlug: {},
|
|
@@ -18,15 +18,15 @@ const d = { class: "flex flex-col gap-4" }, f = /* @__PURE__ */ s({
|
|
|
18
18
|
collectionType: {}
|
|
19
19
|
},
|
|
20
20
|
setup(e) {
|
|
21
|
-
const
|
|
21
|
+
const n = c(
|
|
22
22
|
() => (e.collectionType === "document" ? e.document["x-scalar-environments"] : e.workspaceStore.workspace["x-scalar-environments"]) ?? {}
|
|
23
23
|
);
|
|
24
|
-
return (
|
|
25
|
-
|
|
26
|
-
r(m
|
|
27
|
-
collectionType:
|
|
28
|
-
environments:
|
|
29
|
-
eventBus:
|
|
24
|
+
return (d, t) => (l(), s("div", v, [
|
|
25
|
+
t[0] || (t[0] = a('<div class="flex items-start justify-between gap-2"><div class="flex flex-col gap-2"><div class="flex h-8 items-center"><h3 class="font-bold">Environment Variables</h3></div><p class="text-c-2 mb-4 text-sm"> Set environment variables at your collection level. Use <code class="font-code text-c-2"> {{ variable }} </code> to add / search among the selected environment's variables in your request inputs. </p></div></div>', 1)),
|
|
26
|
+
i(r(m), {
|
|
27
|
+
collectionType: e.collectionType,
|
|
28
|
+
environments: n.value,
|
|
29
|
+
eventBus: e.eventBus
|
|
30
30
|
}, null, 8, ["collectionType", "environments", "eventBus"])
|
|
31
31
|
]));
|
|
32
32
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarIcon as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { defineComponent as p, useId as y, createBlock as o, openBlock as n, createSlots as c, withCtx as t, createElementVNode as a, createCommentVNode as h, createElementBlock as s, Fragment as b, renderList as g, createVNode as m, unref as r, toDisplayString as u, renderSlot as v } from "vue";
|
|
2
|
+
import { ScalarIcon as V } from "@scalar/components";
|
|
3
|
+
import x from "../../../../components/ViewLayout/ViewLayoutSection.vue.js";
|
|
4
|
+
import _ from "../../../components/data-table/DataTable.vue.js";
|
|
5
5
|
import S from "../../../components/data-table/DataTableInput.vue.js";
|
|
6
6
|
import U from "../../../components/data-table/DataTableRow.vue.js";
|
|
7
|
-
const $ = { key: 0 }, w = { class: "flex flex-1 flex-col gap-1.5" }, B = ["for"], C = { class: "centered-y bg-b-2 flex-center absolute right-1 z-1 rounded px-1 py-0.5" },
|
|
7
|
+
const $ = { key: 0 }, w = { class: "flex flex-1 flex-col gap-1.5" }, B = ["for"], C = { class: "centered-y bg-b-2 flex-center absolute right-1 z-1 rounded px-1 py-0.5" }, j = /* @__PURE__ */ p({
|
|
8
8
|
__name: "Form",
|
|
9
9
|
props: {
|
|
10
10
|
title: {},
|
|
@@ -13,38 +13,38 @@ const $ = { key: 0 }, w = { class: "flex flex-1 flex-col gap-1.5" }, B = ["for"]
|
|
|
13
13
|
onUpdate: { type: Function },
|
|
14
14
|
environment: {}
|
|
15
15
|
},
|
|
16
|
-
setup(
|
|
17
|
-
const d =
|
|
18
|
-
return (
|
|
16
|
+
setup(e) {
|
|
17
|
+
const d = y();
|
|
18
|
+
return (i, D) => (n(), o(x, { class: "last:rounded-b-lg" }, c({
|
|
19
19
|
default: t(() => [
|
|
20
20
|
a("div", w, [
|
|
21
|
-
Object.keys(e.data).length > 0 ? (
|
|
21
|
+
Object.keys(e.data).length > 0 ? (n(), o(_, {
|
|
22
22
|
key: 0,
|
|
23
23
|
class: "rounded-b-lg",
|
|
24
24
|
columns: [""]
|
|
25
25
|
}, {
|
|
26
26
|
default: t(() => [
|
|
27
|
-
(
|
|
27
|
+
(n(!0), s(b, null, g(e.options, (l, f) => (n(), o(U, { key: f }, {
|
|
28
28
|
default: t(() => [
|
|
29
29
|
m(S, {
|
|
30
30
|
id: r(d),
|
|
31
31
|
class: "pr-9",
|
|
32
32
|
environment: e.environment,
|
|
33
33
|
lineWrapping: "",
|
|
34
|
-
modelValue: e.data[
|
|
35
|
-
placeholder:
|
|
36
|
-
"onUpdate:modelValue": (
|
|
37
|
-
},
|
|
34
|
+
modelValue: e.data[l.key] ?? "",
|
|
35
|
+
placeholder: l.placeholder,
|
|
36
|
+
"onUpdate:modelValue": (k) => e.onUpdate(l.key, k)
|
|
37
|
+
}, c({
|
|
38
38
|
default: t(() => [
|
|
39
|
-
a("label", { for: r(d) },
|
|
39
|
+
a("label", { for: r(d) }, u(l.label), 9, B)
|
|
40
40
|
]),
|
|
41
41
|
_: 2
|
|
42
42
|
}, [
|
|
43
|
-
|
|
43
|
+
l.key === "description" ? {
|
|
44
44
|
name: "icon",
|
|
45
45
|
fn: t(() => [
|
|
46
46
|
a("div", C, [
|
|
47
|
-
m(r(
|
|
47
|
+
m(r(V), {
|
|
48
48
|
icon: "Markdown",
|
|
49
49
|
size: "lg"
|
|
50
50
|
})
|
|
@@ -58,15 +58,15 @@ const $ = { key: 0 }, w = { class: "flex flex-1 flex-col gap-1.5" }, B = ["for"]
|
|
|
58
58
|
}, 1024))), 128))
|
|
59
59
|
]),
|
|
60
60
|
_: 1
|
|
61
|
-
})) :
|
|
61
|
+
})) : h("", !0)
|
|
62
62
|
])
|
|
63
63
|
]),
|
|
64
64
|
_: 2
|
|
65
65
|
}, [
|
|
66
|
-
e.title ||
|
|
66
|
+
e.title || i.$slots.title ? {
|
|
67
67
|
name: "title",
|
|
68
68
|
fn: t(() => [
|
|
69
|
-
e.title ? (
|
|
69
|
+
e.title ? (n(), s("span", $, u(e.title), 1)) : v(i.$slots, "title", { key: 1 })
|
|
70
70
|
]),
|
|
71
71
|
key: "0"
|
|
72
72
|
} : void 0
|
|
@@ -74,5 +74,5 @@ const $ = { key: 0 }, w = { class: "flex flex-1 flex-col gap-1.5" }, B = ["for"]
|
|
|
74
74
|
}
|
|
75
75
|
});
|
|
76
76
|
export {
|
|
77
|
-
|
|
77
|
+
j as default
|
|
78
78
|
};
|