@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 h, computed as y, createBlock as s, openBlock as u, unref as a, withCtx as
|
|
1
|
+
import { defineComponent as h, computed as y, createBlock as s, openBlock as u, unref as a, withCtx as o, createVNode as r, createElementBlock as T, createTextVNode as v, Fragment as C, renderList as k, createCommentVNode as B } from "vue";
|
|
2
2
|
import { ScalarButton as w } from "@scalar/components";
|
|
3
|
-
import { ScalarIconTrash as
|
|
4
|
-
import
|
|
3
|
+
import { ScalarIconTrash as x } from "@scalar/icons";
|
|
4
|
+
import I from "../../../components/data-table/DataTable.vue.js";
|
|
5
5
|
import b from "../../../components/data-table/DataTableRow.vue.js";
|
|
6
6
|
import c from "../../../components/data-table/DataTableHeader.vue.js";
|
|
7
7
|
import d from "../../../components/data-table/DataTableCell.vue.js";
|
|
8
|
-
import
|
|
8
|
+
import V from "../../../components/code-input/CodeInput.vue.js";
|
|
9
9
|
const W = /* @__PURE__ */ h({
|
|
10
10
|
__name: "EnvironmentVariablesTable",
|
|
11
11
|
props: {
|
|
@@ -14,57 +14,57 @@ const W = /* @__PURE__ */ h({
|
|
|
14
14
|
eventBus: {},
|
|
15
15
|
collectionType: {}
|
|
16
16
|
},
|
|
17
|
-
setup(
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
name:
|
|
21
|
-
value: typeof
|
|
22
|
-
})),
|
|
23
|
-
return !
|
|
24
|
-
}), f = (
|
|
25
|
-
const
|
|
26
|
-
if (!(!
|
|
27
|
-
if (
|
|
28
|
-
|
|
29
|
-
environmentName:
|
|
30
|
-
variable: { name:
|
|
31
|
-
collectionType:
|
|
17
|
+
setup(e) {
|
|
18
|
+
const p = ["1fr", "1fr", "36px"], N = y(() => {
|
|
19
|
+
const i = e.environment.variables.map((t) => ({
|
|
20
|
+
name: t.name,
|
|
21
|
+
value: typeof t.value == "string" ? t.value : t.value.default
|
|
22
|
+
})), n = e.environment.variables.at(-1), l = n && (n.name !== "" || n.value !== "");
|
|
23
|
+
return !n || l ? [...i, { name: "", value: "" }] : i;
|
|
24
|
+
}), f = (i, n, l) => {
|
|
25
|
+
const t = l >= e.environment.variables.length;
|
|
26
|
+
if (!(!i && t)) {
|
|
27
|
+
if (l >= e.environment.variables.length) {
|
|
28
|
+
e.eventBus.emit("environment:upsert:environment-variable", {
|
|
29
|
+
environmentName: e.environmentName,
|
|
30
|
+
variable: { name: i, value: n },
|
|
31
|
+
collectionType: e.collectionType
|
|
32
32
|
});
|
|
33
33
|
return;
|
|
34
34
|
}
|
|
35
|
-
|
|
36
|
-
environmentName:
|
|
37
|
-
variable: { name:
|
|
38
|
-
index:
|
|
39
|
-
collectionType:
|
|
35
|
+
e.eventBus.emit("environment:upsert:environment-variable", {
|
|
36
|
+
environmentName: e.environmentName,
|
|
37
|
+
variable: { name: i, value: n },
|
|
38
|
+
index: l,
|
|
39
|
+
collectionType: e.collectionType
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
|
-
}, g = (
|
|
43
|
-
environmentName:
|
|
44
|
-
index:
|
|
45
|
-
collectionType:
|
|
42
|
+
}, g = (i) => e.eventBus.emit("environment:delete:environment-variable", {
|
|
43
|
+
environmentName: e.environmentName,
|
|
44
|
+
index: i,
|
|
45
|
+
collectionType: e.collectionType
|
|
46
46
|
});
|
|
47
|
-
return (
|
|
47
|
+
return (i, n) => (u(), s(a(I), {
|
|
48
48
|
class: "group/table data-table h-min flex-1 rounded",
|
|
49
|
-
columns:
|
|
49
|
+
columns: p
|
|
50
50
|
}, {
|
|
51
|
-
default:
|
|
52
|
-
|
|
53
|
-
default:
|
|
54
|
-
|
|
55
|
-
default:
|
|
51
|
+
default: o(() => [
|
|
52
|
+
r(a(b), { class: "sr-only !block" }, {
|
|
53
|
+
default: o(() => [
|
|
54
|
+
r(a(c), null, {
|
|
55
|
+
default: o(() => [...n[0] || (n[0] = [
|
|
56
56
|
v("Name", -1)
|
|
57
57
|
])]),
|
|
58
58
|
_: 1
|
|
59
59
|
}),
|
|
60
|
-
|
|
61
|
-
default:
|
|
60
|
+
r(a(c), null, {
|
|
61
|
+
default: o(() => [...n[1] || (n[1] = [
|
|
62
62
|
v("Value", -1)
|
|
63
63
|
])]),
|
|
64
64
|
_: 1
|
|
65
65
|
}),
|
|
66
|
-
|
|
67
|
-
default:
|
|
66
|
+
r(a(c), null, {
|
|
67
|
+
default: o(() => [...n[2] || (n[2] = [
|
|
68
68
|
v("Actions", -1)
|
|
69
69
|
])]),
|
|
70
70
|
_: 1
|
|
@@ -72,51 +72,51 @@ const W = /* @__PURE__ */ h({
|
|
|
72
72
|
]),
|
|
73
73
|
_: 1
|
|
74
74
|
}),
|
|
75
|
-
(u(!0), T(C, null, k(N.value, (
|
|
76
|
-
key:
|
|
75
|
+
(u(!0), T(C, null, k(N.value, (l, t) => (u(), s(a(b), {
|
|
76
|
+
key: t,
|
|
77
77
|
class: "group/row"
|
|
78
78
|
}, {
|
|
79
|
-
default:
|
|
80
|
-
|
|
81
|
-
default:
|
|
82
|
-
|
|
79
|
+
default: o(() => [
|
|
80
|
+
r(a(d), null, {
|
|
81
|
+
default: o(() => [
|
|
82
|
+
r(a(V), {
|
|
83
83
|
"aria-label": "Environment Variable Name",
|
|
84
84
|
disableCloseBrackets: "",
|
|
85
85
|
disableTabIndent: "",
|
|
86
86
|
environment: void 0,
|
|
87
87
|
lineWrapping: "",
|
|
88
|
-
modelValue:
|
|
88
|
+
modelValue: l.name,
|
|
89
89
|
placeholder: "Name",
|
|
90
|
-
"onUpdate:modelValue": (m) => f(m,
|
|
90
|
+
"onUpdate:modelValue": (m) => f(m, l.value, t)
|
|
91
91
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
92
92
|
]),
|
|
93
93
|
_: 2
|
|
94
94
|
}, 1024),
|
|
95
|
-
|
|
96
|
-
default:
|
|
97
|
-
|
|
95
|
+
r(a(d), null, {
|
|
96
|
+
default: o(() => [
|
|
97
|
+
r(a(V), {
|
|
98
98
|
"aria-label": "Environment Variable Value",
|
|
99
99
|
disableTabIndent: "",
|
|
100
100
|
environment: void 0,
|
|
101
101
|
lineWrapping: "",
|
|
102
|
-
modelValue:
|
|
102
|
+
modelValue: l.value,
|
|
103
103
|
placeholder: "Value",
|
|
104
|
-
"onUpdate:modelValue": (m) => f(
|
|
104
|
+
"onUpdate:modelValue": (m) => f(l.name, m, t)
|
|
105
105
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
106
106
|
]),
|
|
107
107
|
_: 2
|
|
108
108
|
}, 1024),
|
|
109
|
-
|
|
110
|
-
default:
|
|
111
|
-
|
|
109
|
+
r(a(d), { class: "flex items-center justify-center" }, {
|
|
110
|
+
default: o(() => [
|
|
111
|
+
t < e.environment.variables.length ? (u(), s(a(w), {
|
|
112
112
|
key: 0,
|
|
113
113
|
class: "text-c-2 hover:text-c-1 hover:bg-b-2 hidden h-fit rounded p-1 group-focus-within:flex group-hover/row:flex",
|
|
114
114
|
size: "sm",
|
|
115
115
|
variant: "ghost",
|
|
116
|
-
onClick: (m) => g(
|
|
116
|
+
onClick: (m) => g(t)
|
|
117
117
|
}, {
|
|
118
|
-
default:
|
|
119
|
-
|
|
118
|
+
default: o(() => [
|
|
119
|
+
r(a(x), { class: "size-3.5" })
|
|
120
120
|
]),
|
|
121
121
|
_: 1
|
|
122
122
|
}, 8, ["onClick"])) : B("", !0)
|
|
@@ -14,38 +14,38 @@ const M = /* @__PURE__ */ y({
|
|
|
14
14
|
eventBus: {},
|
|
15
15
|
collectionType: {}
|
|
16
16
|
},
|
|
17
|
-
setup(
|
|
17
|
+
setup(i) {
|
|
18
18
|
const v = ["32px", "1fr", "1fr", "1fr", "36px"], V = T(() => {
|
|
19
|
-
const d =
|
|
19
|
+
const d = i.cookies.map((t) => ({
|
|
20
20
|
name: t.name,
|
|
21
21
|
value: t.value,
|
|
22
22
|
domain: t.domain ?? "",
|
|
23
23
|
isDisabled: t.isDisabled ?? !1
|
|
24
|
-
})), l =
|
|
24
|
+
})), l = i.cookies.at(-1), e = l && (l.name !== "" || l.value !== "" || l.domain !== "");
|
|
25
25
|
return !l || e ? [
|
|
26
26
|
...d,
|
|
27
27
|
{ name: "", value: "", domain: "", isDisabled: !0 }
|
|
28
28
|
] : d;
|
|
29
|
-
}), r = (d, l, e, t,
|
|
30
|
-
const g =
|
|
29
|
+
}), r = (d, l, e, t, u) => {
|
|
30
|
+
const g = u >= i.cookies.length;
|
|
31
31
|
if (!(!d && g)) {
|
|
32
|
-
if (
|
|
33
|
-
|
|
32
|
+
if (u >= i.cookies.length) {
|
|
33
|
+
i.eventBus.emit("cookie:upsert:cookie", {
|
|
34
34
|
payload: { name: d, value: l, domain: e, isDisabled: !1 },
|
|
35
|
-
collectionType:
|
|
35
|
+
collectionType: i.collectionType
|
|
36
36
|
});
|
|
37
37
|
return;
|
|
38
38
|
}
|
|
39
|
-
|
|
39
|
+
i.eventBus.emit("cookie:upsert:cookie", {
|
|
40
40
|
payload: { name: d, value: l, domain: e, isDisabled: t },
|
|
41
|
-
collectionType:
|
|
42
|
-
index:
|
|
41
|
+
collectionType: i.collectionType,
|
|
42
|
+
index: u
|
|
43
43
|
});
|
|
44
44
|
}
|
|
45
|
-
}, C = (d) =>
|
|
46
|
-
cookieName:
|
|
45
|
+
}, C = (d) => i.eventBus.emit("cookie:delete:cookie", {
|
|
46
|
+
cookieName: i.cookies[d]?.name ?? "",
|
|
47
47
|
index: d,
|
|
48
|
-
collectionType:
|
|
48
|
+
collectionType: i.collectionType
|
|
49
49
|
});
|
|
50
50
|
return (d, l) => (c(), p(a($), {
|
|
51
51
|
class: "group/table data-table h-min flex-1 rounded border",
|
|
@@ -95,7 +95,7 @@ const M = /* @__PURE__ */ y({
|
|
|
95
95
|
o(a(R), {
|
|
96
96
|
class: "!border-r",
|
|
97
97
|
modelValue: !e.isDisabled,
|
|
98
|
-
"onUpdate:modelValue": (
|
|
98
|
+
"onUpdate:modelValue": (u) => r(e.name, e.value, e.domain, !u, t)
|
|
99
99
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
100
100
|
o(a(f), null, {
|
|
101
101
|
default: n(() => [
|
|
@@ -107,8 +107,8 @@ const M = /* @__PURE__ */ y({
|
|
|
107
107
|
lineWrapping: "",
|
|
108
108
|
modelValue: e.name,
|
|
109
109
|
placeholder: "Name",
|
|
110
|
-
"onUpdate:modelValue": (
|
|
111
|
-
|
|
110
|
+
"onUpdate:modelValue": (u) => r(
|
|
111
|
+
u,
|
|
112
112
|
e.value,
|
|
113
113
|
e.domain,
|
|
114
114
|
e.isDisabled,
|
|
@@ -127,9 +127,9 @@ const M = /* @__PURE__ */ y({
|
|
|
127
127
|
lineWrapping: "",
|
|
128
128
|
modelValue: e.value,
|
|
129
129
|
placeholder: "Value",
|
|
130
|
-
"onUpdate:modelValue": (
|
|
130
|
+
"onUpdate:modelValue": (u) => r(
|
|
131
131
|
e.name,
|
|
132
|
-
|
|
132
|
+
u,
|
|
133
133
|
e.domain,
|
|
134
134
|
e.isDisabled,
|
|
135
135
|
t
|
|
@@ -148,10 +148,10 @@ const M = /* @__PURE__ */ y({
|
|
|
148
148
|
lineWrapping: "",
|
|
149
149
|
modelValue: e.domain,
|
|
150
150
|
placeholder: "Domain",
|
|
151
|
-
"onUpdate:modelValue": (
|
|
151
|
+
"onUpdate:modelValue": (u) => r(
|
|
152
152
|
e.name,
|
|
153
153
|
e.value,
|
|
154
|
-
|
|
154
|
+
u,
|
|
155
155
|
e.isDisabled,
|
|
156
156
|
t
|
|
157
157
|
)
|
|
@@ -161,12 +161,12 @@ const M = /* @__PURE__ */ y({
|
|
|
161
161
|
}, 1024),
|
|
162
162
|
o(a(f), { class: "flex items-center justify-center" }, {
|
|
163
163
|
default: n(() => [
|
|
164
|
-
t <
|
|
164
|
+
t < i.cookies.length ? (c(), p(a(U), {
|
|
165
165
|
key: 0,
|
|
166
166
|
class: "text-c-2 hover:text-c-1 hover:bg-b-2 hidden h-fit rounded p-1 group-focus-within:flex group-hover/row:flex",
|
|
167
167
|
size: "sm",
|
|
168
168
|
variant: "ghost",
|
|
169
|
-
onClick: (
|
|
169
|
+
onClick: (u) => C(t)
|
|
170
170
|
}, {
|
|
171
171
|
default: n(() => [
|
|
172
172
|
o(a(I), { class: "size-3.5" })
|
|
@@ -27,7 +27,7 @@ export type ModalProps = {
|
|
|
27
27
|
/** Api client plugins to include in the modal */
|
|
28
28
|
plugins: ClientPlugin[];
|
|
29
29
|
/** Subset of the configuration options for the modal */
|
|
30
|
-
options: MaybeRefOrGetter<Pick<ApiReferenceConfigurationRaw, 'authentication'
|
|
30
|
+
options: MaybeRefOrGetter<Partial<Pick<ApiReferenceConfigurationRaw, 'authentication' | 'hideClientButton'>>>;
|
|
31
31
|
};
|
|
32
32
|
/**
|
|
33
33
|
* Scalar Api Client Modal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/modal/Modal.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Modal.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/modal/Modal.vue"],"names":[],"mappings":"AAwYA,OAAO,EAGL,KAAK,UAAU,EAEhB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AACnE,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAA;AAE/E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AAExE,OAAO,EASL,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACtB,MAAM,KAAK,CAAA;AAIZ,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,6CAA6C,CAAA;AAGxF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAOxD,MAAM,MAAM,UAAU,GAAG;IACvB,4DAA4D;IAC5D,cAAc,EAAE,cAAc,CAAA;IAC9B,qDAAqD;IACrD,QAAQ,EAAE,WAAW,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAA;IAC/C,iDAAiD;IACjD,IAAI,EAAE,WAAW,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;IACrC,4CAA4C;IAC5C,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,mDAAmD;IACnD,MAAM,EAAE,WAAW,CAAC,UAAU,GAAG,SAAS,CAAC,CAAA;IAC3C,yDAAyD;IACzD,WAAW,EAAE,WAAW,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;IAC5C,2CAA2C;IAC3C,UAAU,EAAE,UAAU,CAAA;IACtB,0DAA0D;IAC1D,YAAY,EAAE,qBAAqB,CAAA;IACnC,iDAAiD;IACjD,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,wDAAwD;IACxD,OAAO,EAAE,gBAAgB,CACvB,OAAO,CACL,IAAI,CAAC,4BAA4B,EAAE,gBAAgB,GAAG,kBAAkB,CAAC,CAC1E,CACF,CAAA;CACF,CAAA;AAED;;;;GAIG;;;;;AACH,wBAuWC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Modal.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-2d195805"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as I, ref as
|
|
1
|
+
import { defineComponent as I, ref as w, useId as N, watch as D, nextTick as E, onBeforeMount as F, onBeforeUnmount as U, computed as d, toValue as k, withDirectives as b, createElementBlock as u, openBlock as m, createElementVNode as s, unref as o, createVNode as l, withCtx as V, vShow as x } from "vue";
|
|
2
2
|
import { addScalarClassesToHeadless as A, ScalarTeleportRoot as $ } from "@scalar/components";
|
|
3
3
|
import { ScalarToasts as H } from "@scalar/use-toasts";
|
|
4
4
|
import { useFocusTrap as L } from "@vueuse/integrations/useFocusTrap";
|
|
@@ -16,7 +16,7 @@ const P = { class: "scalar scalar-app" }, J = { class: "scalar-container" }, Q =
|
|
|
16
16
|
}, Y = {
|
|
17
17
|
key: 1,
|
|
18
18
|
class: "flex h-full w-full items-center justify-center"
|
|
19
|
-
}, Z = {},
|
|
19
|
+
}, Z = {}, me = /* @__PURE__ */ I({
|
|
20
20
|
...Z,
|
|
21
21
|
__name: "Modal",
|
|
22
22
|
props: {
|
|
@@ -31,51 +31,51 @@ const P = { class: "scalar scalar-app" }, J = { class: "scalar-container" }, Q =
|
|
|
31
31
|
plugins: {},
|
|
32
32
|
options: {}
|
|
33
33
|
},
|
|
34
|
-
setup(
|
|
35
|
-
typeof window < "u" && (window.dataDumpWorkspace = () =>
|
|
36
|
-
const
|
|
34
|
+
setup(e, { expose: B }) {
|
|
35
|
+
typeof window < "u" && (window.dataDumpWorkspace = () => e.workspaceStore);
|
|
36
|
+
const r = {
|
|
37
37
|
label: "default",
|
|
38
38
|
id: "default"
|
|
39
|
-
},
|
|
39
|
+
}, n = w(!1);
|
|
40
40
|
q({
|
|
41
|
-
eventBus:
|
|
42
|
-
document:
|
|
43
|
-
workspaceStore:
|
|
44
|
-
isSidebarOpen:
|
|
45
|
-
sidebarState:
|
|
46
|
-
modalState:
|
|
47
|
-
}), R(
|
|
48
|
-
const
|
|
41
|
+
eventBus: e.eventBus,
|
|
42
|
+
document: e.document,
|
|
43
|
+
workspaceStore: e.workspaceStore,
|
|
44
|
+
isSidebarOpen: n,
|
|
45
|
+
sidebarState: e.sidebarState,
|
|
46
|
+
modalState: e.modalState
|
|
47
|
+
}), R(e.eventBus, "modal");
|
|
48
|
+
const f = w(null), v = N(), { activate: y, deactivate: p } = L(f, {
|
|
49
49
|
allowOutsideClick: !0,
|
|
50
|
-
fallbackFocus: `#${
|
|
51
|
-
}),
|
|
52
|
-
|
|
53
|
-
},
|
|
50
|
+
fallbackFocus: `#${v}`
|
|
51
|
+
}), S = () => {
|
|
52
|
+
p(), e.eventBus.emit("operation:cancel:request");
|
|
53
|
+
}, C = j(() => typeof window < "u" ? window.document.body : null);
|
|
54
54
|
D(
|
|
55
|
-
() =>
|
|
56
|
-
(
|
|
57
|
-
|
|
55
|
+
() => e.modalState.open,
|
|
56
|
+
(a) => {
|
|
57
|
+
C.value = a, a ? y({ checkCanFocusTrap: () => E() }) : S();
|
|
58
58
|
}
|
|
59
|
-
), F(() => A()), U(() =>
|
|
60
|
-
const
|
|
61
|
-
() =>
|
|
62
|
-
),
|
|
63
|
-
() => O(
|
|
64
|
-
), W =
|
|
59
|
+
), F(() => A()), U(() => S());
|
|
60
|
+
const g = 288, c = d(
|
|
61
|
+
() => e.workspaceStore?.workspace?.["x-scalar-sidebar-width"] ?? g
|
|
62
|
+
), T = (a) => e.workspaceStore?.update("x-scalar-sidebar-width", a), h = d(
|
|
63
|
+
() => O(e.workspaceStore, e.document.value)
|
|
64
|
+
), W = d(
|
|
65
65
|
() => M(
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
e.document.value?.components?.securitySchemes,
|
|
67
|
+
k(e.options)?.authentication?.securitySchemes
|
|
68
68
|
)
|
|
69
69
|
);
|
|
70
|
-
return
|
|
71
|
-
sidebarWidth:
|
|
72
|
-
environment:
|
|
73
|
-
}), (
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
id: o(
|
|
70
|
+
return B({
|
|
71
|
+
sidebarWidth: c,
|
|
72
|
+
environment: h
|
|
73
|
+
}), (a, t) => b((m(), u("div", P, [
|
|
74
|
+
s("div", J, [
|
|
75
|
+
s("div", {
|
|
76
|
+
id: o(v),
|
|
77
77
|
ref_key: "client",
|
|
78
|
-
ref:
|
|
78
|
+
ref: f,
|
|
79
79
|
"aria-label": "API Client",
|
|
80
80
|
"aria-modal": "true",
|
|
81
81
|
class: "scalar-app-layout scalar-client flex",
|
|
@@ -83,21 +83,21 @@ const P = { class: "scalar scalar-app" }, J = { class: "scalar-container" }, Q =
|
|
|
83
83
|
tabindex: "-1"
|
|
84
84
|
}, [
|
|
85
85
|
l(o($), null, {
|
|
86
|
-
default:
|
|
86
|
+
default: V(() => [
|
|
87
87
|
l(o(H)),
|
|
88
|
-
e.document.value && e.path?.value && e.method?.value ? (
|
|
88
|
+
e.document.value && e.path?.value && e.method?.value ? (m(), u("main", X, [
|
|
89
89
|
l(o(G), {
|
|
90
|
-
modelValue:
|
|
91
|
-
"onUpdate:modelValue":
|
|
90
|
+
modelValue: n.value,
|
|
91
|
+
"onUpdate:modelValue": t[0] || (t[0] = (i) => n.value = i),
|
|
92
92
|
class: "absolute top-2 left-3 z-[10001]"
|
|
93
93
|
}, null, 8, ["modelValue"]),
|
|
94
|
-
|
|
95
|
-
sidebarWidth:
|
|
94
|
+
b(l(o(K), {
|
|
95
|
+
sidebarWidth: c.value,
|
|
96
96
|
"onUpdate:sidebarWidth": [
|
|
97
|
-
|
|
98
|
-
|
|
97
|
+
t[1] || (t[1] = (i) => c.value = i),
|
|
98
|
+
T
|
|
99
99
|
],
|
|
100
|
-
activeWorkspace:
|
|
100
|
+
activeWorkspace: r,
|
|
101
101
|
class: "z-[10000] h-full max-md:absolute! max-md:w-full!",
|
|
102
102
|
documents: [e.document.value],
|
|
103
103
|
eventBus: e.eventBus,
|
|
@@ -107,40 +107,41 @@ const P = { class: "scalar scalar-app" }, J = { class: "scalar-container" }, Q =
|
|
|
107
107
|
workspaces: [],
|
|
108
108
|
onSelectItem: e.sidebarState.handleSelectItem
|
|
109
109
|
}, null, 8, ["sidebarWidth", "documents", "eventBus", "sidebarState", "onSelectItem"]), [
|
|
110
|
-
[
|
|
110
|
+
[x, n.value]
|
|
111
111
|
]),
|
|
112
112
|
l(z, {
|
|
113
|
-
activeWorkspace:
|
|
113
|
+
activeWorkspace: r,
|
|
114
114
|
class: "flex-1",
|
|
115
115
|
document: e.document.value,
|
|
116
116
|
documentSlug: e.document.value["x-scalar-navigation"]?.id ?? "",
|
|
117
|
-
environment:
|
|
117
|
+
environment: h.value,
|
|
118
118
|
eventBus: e.eventBus,
|
|
119
119
|
exampleName: e.exampleName?.value,
|
|
120
|
+
hideClientButton: k(e.options)?.hideClientButton ?? !1,
|
|
120
121
|
layout: "modal",
|
|
121
122
|
method: e.method?.value,
|
|
122
123
|
path: e.path?.value,
|
|
123
124
|
plugins: e.plugins,
|
|
124
125
|
securitySchemes: W.value,
|
|
125
126
|
workspaceStore: e.workspaceStore
|
|
126
|
-
}, null, 8, ["document", "documentSlug", "environment", "eventBus", "exampleName", "method", "path", "plugins", "securitySchemes", "workspaceStore"])
|
|
127
|
-
])) : (
|
|
128
|
-
|
|
127
|
+
}, null, 8, ["document", "documentSlug", "environment", "eventBus", "exampleName", "hideClientButton", "method", "path", "plugins", "securitySchemes", "workspaceStore"])
|
|
128
|
+
])) : (m(), u("div", Y, [...t[3] || (t[3] = [
|
|
129
|
+
s("span", { class: "text-c-3" }, "No document selected", -1)
|
|
129
130
|
])]))
|
|
130
131
|
]),
|
|
131
132
|
_: 1
|
|
132
133
|
})
|
|
133
134
|
], 8, Q),
|
|
134
|
-
|
|
135
|
+
s("div", {
|
|
135
136
|
class: "scalar-app-exit",
|
|
136
|
-
onClick:
|
|
137
|
+
onClick: t[2] || (t[2] = (i) => e.modalState.hide())
|
|
137
138
|
})
|
|
138
139
|
])
|
|
139
140
|
], 512)), [
|
|
140
|
-
[
|
|
141
|
+
[x, e.modalState.open]
|
|
141
142
|
]);
|
|
142
143
|
}
|
|
143
144
|
});
|
|
144
145
|
export {
|
|
145
|
-
|
|
146
|
+
me as default
|
|
146
147
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { type ModalState } from '@scalar/components';
|
|
2
|
-
import type { ApiReferenceConfigurationRaw } from '@scalar/types/api-reference';
|
|
3
2
|
import type { WorkspaceStore } from '@scalar/workspace-store/client';
|
|
4
3
|
import { type WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
5
|
-
import { type App
|
|
4
|
+
import { type App } from 'vue';
|
|
6
5
|
import { type RoutePayload } from '../../../../v2/features/modal/helpers/resolve-route-parameters.js';
|
|
6
|
+
import { type ModalProps } from '../../../../v2/features/modal/Modal.vue.js';
|
|
7
7
|
import type { ClientPlugin } from '../../../../v2/helpers/plugins.js';
|
|
8
|
-
|
|
8
|
+
type CreateApiClientModalOptions = {
|
|
9
9
|
/** Element to mount the client modal to. */
|
|
10
10
|
el: HTMLElement | null;
|
|
11
11
|
/**
|
|
@@ -20,7 +20,7 @@ export type CreateApiClientModalOptions = {
|
|
|
20
20
|
/** Api client plugins to include in the modal */
|
|
21
21
|
plugins?: ClientPlugin[];
|
|
22
22
|
/** Subset of the configuration options for the modal, if you want it to be reactive ensure its a ref */
|
|
23
|
-
options?:
|
|
23
|
+
options?: ModalProps['options'];
|
|
24
24
|
};
|
|
25
25
|
export type ApiClientModal = {
|
|
26
26
|
app: App;
|
|
@@ -36,4 +36,5 @@ export type ApiClientModal = {
|
|
|
36
36
|
* active entities directly through the returned `route` function.
|
|
37
37
|
*/
|
|
38
38
|
export declare const createApiClientModal: ({ el, eventBus, mountOnInitialize, plugins, workspaceStore, options, }: CreateApiClientModalOptions) => ApiClientModal;
|
|
39
|
+
export {};
|
|
39
40
|
//# sourceMappingURL=create-api-client-modal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-api-client-modal.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/modal/helpers/create-api-client-modal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAY,MAAM,oBAAoB,CAAA;AAC9D,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"create-api-client-modal.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/modal/helpers/create-api-client-modal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAY,MAAM,oBAAoB,CAAA;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,EAAE,KAAK,iBAAiB,EAA2B,MAAM,gCAAgC,CAAA;AAChG,OAAO,EAAE,KAAK,GAAG,EAAiC,MAAM,KAAK,CAAA;AAE7D,OAAO,EAEL,KAAK,YAAY,EAElB,MAAM,sDAAsD,CAAA;AAE7D,OAAc,EAAE,KAAK,UAAU,EAAE,MAAM,+BAA+B,CAAA;AACtE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAExD,KAAK,2BAA2B,GAAG;IACjC,4CAA4C;IAC5C,EAAE,EAAE,WAAW,GAAG,IAAI,CAAA;IACtB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,kFAAkF;IAClF,QAAQ,CAAC,EAAE,iBAAiB,CAAA;IAC5B,6DAA6D;IAC7D,cAAc,EAAE,cAAc,CAAA;IAC9B,iDAAiD;IACjD,OAAO,CAAC,EAAE,YAAY,EAAE,CAAA;IACxB,wGAAwG;IACxG,OAAO,CAAC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAA;CAChC,CAAA;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,GAAG,EAAE,GAAG,CAAA;IACR,IAAI,EAAE,CAAC,OAAO,CAAC,EAAE,YAAY,KAAK,IAAI,CAAA;IACtC,KAAK,EAAE,CAAC,UAAU,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CAAA;IAC/C,KAAK,EAAE,CAAC,OAAO,EAAE,YAAY,KAAK,IAAI,CAAA;IACtC,UAAU,EAAE,UAAU,CAAA;CACvB,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,GAAI,wEASlC,2BAA2B,KAAG,cAsFhC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-workspace-client-modal-events.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/modal/hooks/use-workspace-client-modal-events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;
|
|
1
|
+
{"version":3,"file":"use-workspace-client-modal-events.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/modal/hooks/use-workspace-client-modal-events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAqBvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAA;AAClF,OAAO,KAAK,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAE3C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAA;AAExF;;GAEG;AACH,eAAO,MAAM,6BAA6B,GAAI,kFAO3C;IACD,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,QAAQ,EAAE,WAAW,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAA;IAC/C,aAAa,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IAC3B,YAAY,EAAE,qBAAqB,CAAA;IACnC,UAAU,EAAE,UAAU,CAAA;IACtB,cAAc,EAAE,cAAc,CAAA;CAC/B,SAmFA,CAAA"}
|
|
@@ -1,31 +1,27 @@
|
|
|
1
|
-
import { deleteSecurityScheme as
|
|
2
|
-
const
|
|
1
|
+
import { deleteSecurityScheme as i, updateSelectedAuthTab as d, updateSecurityScheme as u, updateSelectedScopes as c, updateSelectedSecuritySchemes as h, addServer as n, updateServer as s, deleteServer as v, updateServerVariables as S, updateSelectedServer as m, addOperationParameter as y, updateOperationParameter as q, deleteOperationParameter as x, deleteAllOperationParameters as O, updateOperationRequestBodyContentType as f, updateOperationRequestBodyExample as w, updateOperationRequestBodyFormValue as g, updateSelectedClient as P } from "@scalar/workspace-store/mutators";
|
|
2
|
+
const C = ({
|
|
3
3
|
eventBus: a,
|
|
4
4
|
document: r,
|
|
5
|
-
isSidebarOpen:
|
|
5
|
+
isSidebarOpen: o,
|
|
6
6
|
sidebarState: t,
|
|
7
|
-
modalState:
|
|
7
|
+
modalState: l,
|
|
8
8
|
workspaceStore: p
|
|
9
9
|
}) => {
|
|
10
|
-
a.on("scroll-to:nav-item", ({ id: e }) => t.handleSelectItem(e)), a.on("auth:delete:security-scheme", (e) =>
|
|
10
|
+
a.on("scroll-to:nav-item", ({ id: e }) => t.handleSelectItem(e)), a.on("auth:delete:security-scheme", (e) => i(r.value, e)), a.on("auth:update:active-index", (e) => d(r.value, e)), a.on("auth:update:security-scheme", (e) => u(r.value, e)), a.on("auth:update:selected-scopes", (e) => c(r.value, e)), a.on(
|
|
11
11
|
"auth:update:selected-security-schemes",
|
|
12
12
|
async (e) => await h(r.value, e)
|
|
13
|
-
), a.on("server:add:server", () =>
|
|
13
|
+
), a.on("server:add:server", () => n(r.value)), a.on("server:update:server", (e) => s(r.value, e)), a.on("server:delete:server", (e) => v(r.value, e)), a.on("server:update:variables", (e) => S(r.value, e)), a.on("server:update:selected", (e) => m(r.value, e)), a.on("operation:add:parameter", (e) => y(r.value, e)), a.on("operation:update:parameter", (e) => q(r.value, e)), a.on("operation:delete:parameter", (e) => x(r.value, e)), a.on("operation:delete-all:parameters", (e) => O(r.value, e)), a.on(
|
|
14
14
|
"operation:update:requestBody:contentType",
|
|
15
|
-
(e) =>
|
|
16
|
-
), a.on(
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
x(r.value, e);
|
|
20
|
-
}), a.on(
|
|
21
|
-
"operation:update:requestBody:formRow",
|
|
22
|
-
(e) => g(r.value, e)
|
|
15
|
+
(e) => f(r.value, e)
|
|
16
|
+
), a.on(
|
|
17
|
+
"operation:update:requestBody:value",
|
|
18
|
+
(e) => w(r.value, e)
|
|
23
19
|
), a.on(
|
|
24
|
-
"operation:
|
|
25
|
-
(e) =>
|
|
26
|
-
), a.on("ui:toggle:sidebar", () =>
|
|
20
|
+
"operation:update:requestBody:formValue",
|
|
21
|
+
(e) => g(r.value, e)
|
|
22
|
+
), a.on("ui:toggle:sidebar", () => o.value = !o.value), a.on("ui:close:client-modal", () => l.hide()), a.on("ui:open:client-modal", (e) => {
|
|
27
23
|
if (!e) {
|
|
28
|
-
|
|
24
|
+
l.show();
|
|
29
25
|
return;
|
|
30
26
|
}
|
|
31
27
|
"id" in e && e.id ? t.handleSelectItem(e.id) : "method" in e && "path" in e && t.handleSelectItem(
|
|
@@ -35,9 +31,9 @@ const E = ({
|
|
|
35
31
|
method: e.method,
|
|
36
32
|
example: e.exampleName
|
|
37
33
|
})?.id ?? ""
|
|
38
|
-
),
|
|
39
|
-
}), a.on("workspace:update:selected-client", (e) =>
|
|
34
|
+
), l.show();
|
|
35
|
+
}), a.on("workspace:update:selected-client", (e) => P(p.workspace, e));
|
|
40
36
|
};
|
|
41
37
|
export {
|
|
42
|
-
|
|
38
|
+
C as useWorkspaceClientModalEvents
|
|
43
39
|
};
|
|
@@ -7,6 +7,10 @@ import type { RouteProps } from '../../../v2/features/app/helpers/routes.js';
|
|
|
7
7
|
* - Modify example request data
|
|
8
8
|
* - Send example request
|
|
9
9
|
*/
|
|
10
|
-
declare const _default: import("vue").DefineComponent<RouteProps
|
|
10
|
+
declare const _default: import("vue").DefineComponent<RouteProps & {
|
|
11
|
+
hideClientButton?: boolean;
|
|
12
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<RouteProps & {
|
|
13
|
+
hideClientButton?: boolean;
|
|
14
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
15
|
export default _default;
|
|
12
16
|
//# sourceMappingURL=Operation.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Operation.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/operation/Operation.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Operation.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/operation/Operation.vue"],"names":[],"mappings":"AAmLA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAA;AAMlE;;;;;;;GAOG;;uBAGoB,OAAO;;uBAAP,OAAO;;AAF9B,wBA8OC"}
|