@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,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as y, mergeModels as
|
|
2
|
-
import { ScalarIconButton as
|
|
3
|
-
import { ScalarIconMagnifyingGlass as
|
|
4
|
-
import { ScalarSidebar as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
const
|
|
1
|
+
import { defineComponent as y, mergeModels as f, useSlots as g, ref as x, useModel as B, createBlock as d, openBlock as a, unref as r, withCtx as s, createVNode as W, createSlots as $, renderSlot as n, normalizeProps as b, guardReactiveProps as p, createElementVNode as k, createCommentVNode as m, createElementBlock as D } from "vue";
|
|
2
|
+
import { ScalarIconButton as C } from "@scalar/components";
|
|
3
|
+
import { ScalarIconMagnifyingGlass as E } from "@scalar/icons";
|
|
4
|
+
import { ScalarSidebar as I } from "@scalar/sidebar";
|
|
5
|
+
import h from "./SidebarMenu.vue.js";
|
|
6
|
+
import M from "../resize/Resize.vue.js";
|
|
7
|
+
import V from "../../features/search/components/SearchButton.vue.js";
|
|
8
|
+
const z = { class: "bg-sidebar-b-1 z-1 flex flex-col gap-1.5 px-3 pb-1.5" }, N = { class: "flex items-center justify-between" }, R = { key: 1 }, H = /* @__PURE__ */ y({
|
|
9
9
|
__name: "Sidebar",
|
|
10
|
-
props: /* @__PURE__ */
|
|
10
|
+
props: /* @__PURE__ */ f({
|
|
11
11
|
sidebarState: {},
|
|
12
12
|
layout: {},
|
|
13
13
|
activeWorkspace: {},
|
|
@@ -22,16 +22,16 @@ const N = { class: "bg-sidebar-b-1 z-1 flex flex-col gap-1.5 px-3 pb-1.5" }, R =
|
|
|
22
22
|
},
|
|
23
23
|
sidebarWidthModifiers: {}
|
|
24
24
|
}),
|
|
25
|
-
emits: /* @__PURE__ */
|
|
26
|
-
setup(
|
|
27
|
-
const i = v, w = g(),
|
|
28
|
-
return (
|
|
29
|
-
width:
|
|
30
|
-
"onUpdate:width": o[5] || (o[5] = (t) =>
|
|
25
|
+
emits: /* @__PURE__ */ f(["selectItem", "select:workspace", "create:workspace", "reorder"], ["update:sidebarWidth"]),
|
|
26
|
+
setup(e, { emit: v }) {
|
|
27
|
+
const i = v, w = g(), c = x(!1), u = B(e, "sidebarWidth");
|
|
28
|
+
return (l, o) => (a(), d(r(M), {
|
|
29
|
+
width: u.value,
|
|
30
|
+
"onUpdate:width": o[5] || (o[5] = (t) => u.value = t),
|
|
31
31
|
class: "flex flex-col"
|
|
32
32
|
}, {
|
|
33
33
|
default: s(() => [
|
|
34
|
-
|
|
34
|
+
W(r(I), {
|
|
35
35
|
class: "flex w-auto flex-1 pt-2",
|
|
36
36
|
indent: 15,
|
|
37
37
|
isDraggable: e.layout !== "modal",
|
|
@@ -42,46 +42,46 @@ const N = { class: "bg-sidebar-b-1 z-1 flex flex-col gap-1.5 px-3 pb-1.5" }, R =
|
|
|
42
42
|
layout: "client",
|
|
43
43
|
onReorder: o[3] || (o[3] = (t, S) => i("reorder", t, S)),
|
|
44
44
|
onSelectItem: o[4] || (o[4] = (t) => i("selectItem", t))
|
|
45
|
-
},
|
|
45
|
+
}, $({
|
|
46
46
|
header: s(() => [
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
e.layout === "desktop" ? (
|
|
47
|
+
k("div", z, [
|
|
48
|
+
k("div", N, [
|
|
49
|
+
e.layout === "desktop" ? (a(), d(h, {
|
|
50
50
|
key: 0,
|
|
51
51
|
activeWorkspace: e.activeWorkspace,
|
|
52
52
|
workspaces: e.workspaces,
|
|
53
53
|
"onCreate:workspace": o[0] || (o[0] = (t) => i("create:workspace")),
|
|
54
54
|
"onSelect:workspace": o[1] || (o[1] = (t) => i("select:workspace", t))
|
|
55
|
-
}, null, 8, ["activeWorkspace", "workspaces"])) : e.layout === "modal" ? (
|
|
56
|
-
e.layout !== "web" ? (
|
|
55
|
+
}, null, 8, ["activeWorkspace", "workspaces"])) : e.layout === "modal" ? (a(), D("div", R)) : m("", !0),
|
|
56
|
+
e.layout !== "web" ? (a(), d(r(C), {
|
|
57
57
|
key: 2,
|
|
58
|
-
icon:
|
|
58
|
+
icon: r(E),
|
|
59
59
|
label: "Search",
|
|
60
|
-
onClick: o[2] || (o[2] = (t) =>
|
|
61
|
-
}, null, 8, ["icon"])) :
|
|
60
|
+
onClick: o[2] || (o[2] = (t) => c.value = !c.value)
|
|
61
|
+
}, null, 8, ["icon"])) : m("", !0)
|
|
62
62
|
]),
|
|
63
|
-
|
|
63
|
+
c.value || e.layout === "web" ? (a(), d(r(V), {
|
|
64
64
|
key: 0,
|
|
65
65
|
documents: e.documents,
|
|
66
66
|
eventBus: e.eventBus
|
|
67
|
-
}, null, 8, ["documents", "eventBus"])) :
|
|
67
|
+
}, null, 8, ["documents", "eventBus"])) : m("", !0)
|
|
68
68
|
])
|
|
69
69
|
]),
|
|
70
70
|
decorator: s((t) => [
|
|
71
|
-
|
|
71
|
+
n(l.$slots, "decorator", b(p(t)))
|
|
72
72
|
]),
|
|
73
73
|
before: s(() => [
|
|
74
|
-
|
|
74
|
+
n(l.$slots, "workspaceButton")
|
|
75
75
|
]),
|
|
76
76
|
footer: s(() => [
|
|
77
|
-
|
|
77
|
+
n(l.$slots, "footer")
|
|
78
78
|
]),
|
|
79
79
|
_: 2
|
|
80
80
|
}, [
|
|
81
81
|
w.empty ? {
|
|
82
82
|
name: "empty",
|
|
83
83
|
fn: s((t) => [
|
|
84
|
-
|
|
84
|
+
n(l.$slots, "empty", b(p(t)))
|
|
85
85
|
]),
|
|
86
86
|
key: "0"
|
|
87
87
|
} : void 0
|
|
@@ -92,5 +92,5 @@ const N = { class: "bg-sidebar-b-1 z-1 flex flex-col gap-1.5 px-3 pb-1.5" }, R =
|
|
|
92
92
|
}
|
|
93
93
|
});
|
|
94
94
|
export {
|
|
95
|
-
|
|
95
|
+
H as default
|
|
96
96
|
};
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as p, createBlock as u, openBlock as k, unref as o, withCtx as t, createVNode as r, createTextVNode as i } from "vue";
|
|
2
2
|
import { ScalarMenu as m, ScalarMenuSection as d, ScalarMenuWorkspacePicker as S, ScalarMenuLink as f, ScalarMenuResources as w, ScalarMenuSupport as M } from "@scalar/components";
|
|
3
3
|
import { ScalarIconGear as C } from "@scalar/icons";
|
|
4
4
|
import { RouterLink as V } from "vue-router";
|
|
5
|
-
const L = /* @__PURE__ */
|
|
5
|
+
const L = /* @__PURE__ */ p({
|
|
6
6
|
__name: "SidebarMenu",
|
|
7
7
|
props: {
|
|
8
8
|
activeWorkspace: {},
|
|
9
9
|
workspaces: {}
|
|
10
10
|
},
|
|
11
11
|
emits: ["create:workspace", "select:workspace"],
|
|
12
|
-
setup(
|
|
13
|
-
const
|
|
14
|
-
return (
|
|
15
|
-
products:
|
|
16
|
-
sections:
|
|
17
|
-
|
|
18
|
-
title:
|
|
12
|
+
setup(a, { emit: l }) {
|
|
13
|
+
const n = l;
|
|
14
|
+
return (x, e) => (k(), u(o(m), null, {
|
|
15
|
+
products: t(() => [...e[2] || (e[2] = [])]),
|
|
16
|
+
sections: t(({ close: c }) => [
|
|
17
|
+
r(o(d), null, {
|
|
18
|
+
title: t(() => [...e[3] || (e[3] = [
|
|
19
19
|
i("Team", -1)
|
|
20
20
|
])]),
|
|
21
|
-
default:
|
|
22
|
-
|
|
23
|
-
modelValue:
|
|
24
|
-
workspaceOptions:
|
|
25
|
-
onCreateWorkspace: e[0] || (e[0] = (s) =>
|
|
26
|
-
"onUpdate:modelValue": e[1] || (e[1] = (s) =>
|
|
21
|
+
default: t(() => [
|
|
22
|
+
r(o(S), {
|
|
23
|
+
modelValue: a.activeWorkspace.id,
|
|
24
|
+
workspaceOptions: a.workspaces,
|
|
25
|
+
onCreateWorkspace: e[0] || (e[0] = (s) => n("create:workspace")),
|
|
26
|
+
"onUpdate:modelValue": e[1] || (e[1] = (s) => n("select:workspace", s))
|
|
27
27
|
}, null, 8, ["modelValue", "workspaceOptions"]),
|
|
28
|
-
|
|
28
|
+
r(o(f), {
|
|
29
29
|
is: o(V),
|
|
30
30
|
icon: o(C),
|
|
31
31
|
to: "/settings",
|
|
32
|
-
onClick:
|
|
32
|
+
onClick: c
|
|
33
33
|
}, {
|
|
34
|
-
default:
|
|
34
|
+
default: t(() => [...e[4] || (e[4] = [
|
|
35
35
|
i(" Settings ", -1)
|
|
36
36
|
])]),
|
|
37
37
|
_: 1
|
|
@@ -39,8 +39,8 @@ const L = /* @__PURE__ */ c({
|
|
|
39
39
|
]),
|
|
40
40
|
_: 2
|
|
41
41
|
}, 1024),
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
r(o(w)),
|
|
43
|
+
r(o(M))
|
|
44
44
|
]),
|
|
45
45
|
_: 1
|
|
46
46
|
}));
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as k, computed as u, createElementBlock as w, createBlock as
|
|
1
|
+
import { defineComponent as k, computed as u, createElementBlock as w, createBlock as c, unref as t, openBlock as n, Fragment as S, createElementVNode as p, createVNode as o, withCtx as f, normalizeProps as b, guardReactiveProps as h } from "vue";
|
|
2
2
|
import { useModal as W, ScalarTeleportRoot as T } from "@scalar/components";
|
|
3
3
|
import { getThemeStyles as y } from "@scalar/themes";
|
|
4
4
|
import { ScalarToasts as B } from "@scalar/use-toasts";
|
|
5
|
-
import { extensions as
|
|
6
|
-
import { RouterView as
|
|
5
|
+
import { extensions as g } from "@scalar/workspace-store/schemas/extensions";
|
|
6
|
+
import { RouterView as x } from "vue-router";
|
|
7
7
|
import C from "./components/CreateWorkspaceModal.vue.js";
|
|
8
8
|
import E from "./components/SplashScreen.vue.js";
|
|
9
|
-
import { useDocumentWatcher as
|
|
10
|
-
import
|
|
9
|
+
import { useDocumentWatcher as _ } from "./hooks/use-document-watcher.js";
|
|
10
|
+
import O from "../command-palette/components/TheCommandPalette.vue.js";
|
|
11
11
|
import { useColorMode as I } from "../../hooks/use-color-mode.js";
|
|
12
12
|
import { useGlobalHotKeys as U } from "../../hooks/use-global-hot-keys.js";
|
|
13
13
|
import { useAppState as M } from "./app-state.js";
|
|
@@ -21,55 +21,55 @@ const L = ["innerHTML"], $ = { class: "flex min-h-0 flex-1" }, H = { class: "bg-
|
|
|
21
21
|
layout: {},
|
|
22
22
|
plugins: { default: () => [] }
|
|
23
23
|
},
|
|
24
|
-
setup(
|
|
24
|
+
setup(s) {
|
|
25
25
|
const e = M();
|
|
26
|
-
typeof window < "u" && (window.dataDumpWorkspace = () => e.store.value, window.dumpAppState = () => e), I({ workspaceStore: e.store }), U(e.eventBus,
|
|
27
|
-
documentName: () => e.store.value?.workspace[
|
|
26
|
+
typeof window < "u" && (window.dataDumpWorkspace = () => e.store.value, window.dumpAppState = () => e), I({ workspaceStore: e.store }), U(e.eventBus, s.layout), _({
|
|
27
|
+
documentName: () => e.store.value?.workspace[g.workspace.activeDocument],
|
|
28
28
|
store: e.store,
|
|
29
29
|
initialTimeout: 5e3
|
|
30
30
|
});
|
|
31
31
|
const m = u(() => {
|
|
32
32
|
if (e.store.value === null)
|
|
33
33
|
return "";
|
|
34
|
-
const
|
|
35
|
-
return
|
|
34
|
+
const l = e.store.value.workspace["x-scalar-theme"];
|
|
35
|
+
return l ? `<style>${y(l)}</style>` : "";
|
|
36
36
|
}), d = () => e.router.value?.push({
|
|
37
37
|
name: "workspace.environment",
|
|
38
38
|
params: {
|
|
39
39
|
workspaceSlug: e.activeEntities.workspaceSlug.value
|
|
40
40
|
}
|
|
41
|
-
}),
|
|
41
|
+
}), i = W(), v = u(() => ({
|
|
42
42
|
documentSlug: e.activeEntities.documentSlug.value ?? "",
|
|
43
43
|
document: e.store.value?.workspace.activeDocument ?? null,
|
|
44
44
|
environment: e.environment.value,
|
|
45
45
|
eventBus: e.eventBus,
|
|
46
46
|
exampleName: e.activeEntities.exampleName.value,
|
|
47
|
-
layout:
|
|
47
|
+
layout: s.layout,
|
|
48
48
|
method: e.activeEntities.method.value,
|
|
49
49
|
path: e.activeEntities.path.value,
|
|
50
50
|
workspaceStore: e.store.value,
|
|
51
51
|
activeWorkspace: e.workspace.activeWorkspace.value,
|
|
52
|
-
plugins:
|
|
52
|
+
plugins: s.plugins,
|
|
53
53
|
securitySchemes: e.document.value?.components?.securitySchemes ?? {}
|
|
54
54
|
}));
|
|
55
|
-
return (
|
|
56
|
-
|
|
55
|
+
return (l, a) => t(e).store.value !== null && t(e).workspace.activeWorkspace.value !== null && !t(e).loading.value ? (n(), w(S, { key: 0 }, [
|
|
56
|
+
p("div", { innerHTML: m.value }, null, 8, L),
|
|
57
57
|
o(t(T), null, {
|
|
58
58
|
default: f(() => [
|
|
59
59
|
o(t(B)),
|
|
60
|
-
s.layout === "desktop" ? (n(),
|
|
60
|
+
s.layout === "desktop" ? (n(), c(D, {
|
|
61
61
|
key: 0,
|
|
62
62
|
activeTabIndex: t(e).tabs.activeTabIndex.value,
|
|
63
63
|
eventBus: t(e).eventBus,
|
|
64
64
|
tabs: t(e).tabs.state.value
|
|
65
|
-
}, null, 8, ["activeTabIndex", "eventBus", "tabs"])) : (n(),
|
|
65
|
+
}, null, 8, ["activeTabIndex", "eventBus", "tabs"])) : (n(), c(N, {
|
|
66
66
|
key: 1,
|
|
67
67
|
activeWorkspace: t(e).workspace.activeWorkspace.value,
|
|
68
68
|
workspaces: t(e).workspace.workspaceList.value,
|
|
69
|
-
"onCreate:workspace": a[0] || (a[0] = (r) => t(
|
|
69
|
+
"onCreate:workspace": a[0] || (a[0] = (r) => t(i).show()),
|
|
70
70
|
"onSelect:workspace": t(e).workspace.setId
|
|
71
71
|
}, null, 8, ["activeWorkspace", "workspaces", "onSelect:workspace"])),
|
|
72
|
-
|
|
72
|
+
p("main", $, [
|
|
73
73
|
o(A, {
|
|
74
74
|
isSidebarOpen: t(e).sidebar.isOpen.value,
|
|
75
75
|
"onUpdate:isSidebarOpen": a[1] || (a[1] = (r) => t(e).sidebar.isOpen.value = r),
|
|
@@ -82,28 +82,28 @@ const L = ["innerHTML"], $ = { class: "flex min-h-0 flex-1" }, H = { class: "bg-
|
|
|
82
82
|
store: t(e).store.value,
|
|
83
83
|
workspaces: t(e).workspace.workspaceList.value,
|
|
84
84
|
"onClick:workspace": d,
|
|
85
|
-
"onCreate:workspace": a[2] || (a[2] = (r) => t(
|
|
85
|
+
"onCreate:workspace": a[2] || (a[2] = (r) => t(i).show()),
|
|
86
86
|
"onSelect:workspace": t(e).workspace.setId,
|
|
87
87
|
onSelectItem: t(e).sidebar.handleSelectItem,
|
|
88
88
|
"onUpdate:sidebarWidth": t(e).sidebar.handleSidebarWidthUpdate
|
|
89
89
|
}, null, 8, ["isSidebarOpen", "activeWorkspace", "eventBus", "isWorkspaceOpen", "layout", "sidebarState", "sidebarWidth", "store", "workspaces", "onSelect:workspace", "onSelectItem", "onUpdate:sidebarWidth"]),
|
|
90
90
|
o(C, {
|
|
91
|
-
state: t(
|
|
91
|
+
state: t(i),
|
|
92
92
|
"onCreate:workspace": a[3] || (a[3] = (r) => t(e).workspace.create(r))
|
|
93
93
|
}, null, 8, ["state"]),
|
|
94
|
-
o(
|
|
94
|
+
o(O, {
|
|
95
95
|
eventBus: t(e).eventBus,
|
|
96
96
|
paletteState: t(e).commandPalette,
|
|
97
97
|
workspaceStore: t(e).store.value
|
|
98
98
|
}, null, 8, ["eventBus", "paletteState", "workspaceStore"]),
|
|
99
|
-
|
|
100
|
-
o(t(
|
|
99
|
+
p("div", H, [
|
|
100
|
+
o(t(x), b(h(v.value)), null, 16)
|
|
101
101
|
])
|
|
102
102
|
])
|
|
103
103
|
]),
|
|
104
104
|
_: 1
|
|
105
105
|
})
|
|
106
|
-
], 64)) : (n(),
|
|
106
|
+
], 64)) : (n(), c(E, { key: 1 }));
|
|
107
107
|
}
|
|
108
108
|
});
|
|
109
109
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-events.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/app/app-events.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAwC,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAE7G,OAAO,EACL,KAAK,oBAAoB,
|
|
1
|
+
{"version":3,"file":"app-events.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/app/app-events.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAwC,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAE7G,OAAO,EACL,KAAK,oBAAoB,EA8C1B,MAAM,kCAAkC,CAAA;AACzC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAA;AAClF,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,UAAU,EAAY,MAAM,KAAK,CAAA;AACjE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AAExC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oDAAoD,CAAA;AAErF,wBAAgB,0BAA0B,CAAC,EACzC,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,cAAc,EACd,oBAAoB,EACpB,mBAAmB,EACnB,sBAAsB,EACtB,oBAAoB,EACpB,YAAY,EACZ,eAAe,GAChB,EAAE;IACD,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,QAAQ,EAAE,MAAM,cAAc,GAAG,IAAI,CAAA;IACrC,8BAA8B;IAC9B,QAAQ,EAAE,WAAW,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAA;IAC/C,MAAM,EAAE,UAAU,CAAC,MAAM,GAAG,IAAI,CAAC,CAAA;IACjC,oBAAoB,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;IACzC,cAAc,EAAE,CAAC,YAAY,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IAC/C,mBAAmB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IACzC,sBAAsB,EAAE,CAAC,CAAC,EAAE,oBAAoB,KAAK,IAAI,CAAA;IACzD,oBAAoB,EAAE,WAAW,CAAA;IACjC,YAAY,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IACxC,eAAe,EAAE,MAAM,IAAI,CAAA;CAC5B,QAmSA"}
|
|
@@ -1,86 +1,86 @@
|
|
|
1
|
-
import { mergeObjects as
|
|
2
|
-
import { updateActiveProxy as b, updateColorMode as
|
|
3
|
-
import { computed as
|
|
4
|
-
function
|
|
1
|
+
import { mergeObjects as f } from "@scalar/workspace-store/helpers/merge-object";
|
|
2
|
+
import { updateActiveProxy as b, updateColorMode as x, updateTheme as y, updateSelectedClient as N, updateDocumentIcon as O, toggleSecurity as R, updateWatchMode as P, createEmptyDocument as q, deleteDocument as E, upsertEnvironment as M, upsertEnvironmentVariable as T, upsertCookie as I, deleteCookie as V, deleteSecurityScheme as D, updateSelectedAuthTab as U, updateSecurityScheme as j, updateSelectedScopes as z, updateSelectedSecuritySchemes as A, addServer as F, updateServer as H, deleteServer as K, updateServerVariables as L, updateSelectedServer as W, createOperation as G, updateOperationPathMethod as J, updateOperationSummary as Q, deleteOperation as X, deleteOperationExample as Y, addOperationParameter as Z, updateOperationParameter as _, deleteOperationParameter as $, deleteAllOperationParameters as C, updateOperationRequestBodyContentType as S, updateOperationRequestBodyExample as g, updateOperationRequestBodyFormValue as B, createTag as ee, deleteTag as ae, addTab as oe, closeTab as te, closeOtherTabs as le, focusTab as re, focusLastTab as ne, navigatePreviousTab as ce, navigateNextTab as pe, updateTabs as ie } from "@scalar/workspace-store/mutators";
|
|
3
|
+
import { computed as me } from "vue";
|
|
4
|
+
function he({
|
|
5
5
|
eventBus: a,
|
|
6
6
|
getStore: t,
|
|
7
7
|
document: o,
|
|
8
|
-
router:
|
|
8
|
+
router: c,
|
|
9
9
|
rebuildSidebar: i,
|
|
10
|
-
navigateToCurrentTab:
|
|
11
|
-
onSelectSidebarItem:
|
|
10
|
+
navigateToCurrentTab: r,
|
|
11
|
+
onSelectSidebarItem: v,
|
|
12
12
|
onAfterExampleCreation: u,
|
|
13
|
-
onOpenCommandPalette:
|
|
14
|
-
onCopyTabUrl:
|
|
15
|
-
onToggleSidebar:
|
|
13
|
+
onOpenCommandPalette: s,
|
|
14
|
+
onCopyTabUrl: w,
|
|
15
|
+
onToggleSidebar: k
|
|
16
16
|
}) {
|
|
17
|
-
const
|
|
17
|
+
const p = me(() => c.value?.currentRoute?.value), d = ({
|
|
18
18
|
documentName: e,
|
|
19
|
-
path:
|
|
19
|
+
path: l,
|
|
20
20
|
method: n,
|
|
21
21
|
exampleName: h
|
|
22
|
-
}) => !(e !== void 0 && e !==
|
|
22
|
+
}) => !(e !== void 0 && e !== p.value?.params.documentSlug || l !== void 0 && encodeURIComponent(l) !== p.value?.params.pathEncoded || n !== void 0 && n !== p.value?.params.method || h !== void 0 && h !== p.value?.params.exampleName), m = (e, l) => {
|
|
23
23
|
const n = t();
|
|
24
|
-
return n ?
|
|
24
|
+
return n ? l === "document" ? e : n.workspace : null;
|
|
25
25
|
};
|
|
26
|
-
a.on("scroll-to:nav-item", ({ id: e }) =>
|
|
27
|
-
E(t(), e),
|
|
26
|
+
a.on("scroll-to:nav-item", ({ id: e }) => v(e)), a.on("workspace:update:active-proxy", (e) => b(t()?.workspace ?? null, e)), a.on("workspace:update:color-mode", (e) => x(t()?.workspace ?? null, e)), a.on("workspace:update:theme", (e) => y(t()?.workspace ?? null, e)), a.on("workspace:update:selected-client", (e) => N(t()?.workspace, e)), a.on("document:update:icon", (e) => O(o.value, e)), a.on("document:update:info", (e) => o.value && f(o.value.info, e)), a.on("document:toggle:security", () => R(o.value)), a.on("document:update:watch-mode", (e) => P(o.value, e)), a.on("document:create:empty-document", (e) => q(t(), e)), a.on("document:delete:document", async (e) => {
|
|
27
|
+
E(t(), e), p?.value?.params.documentSlug === e.name && await c.value?.push({
|
|
28
28
|
name: "workspace.environment"
|
|
29
29
|
});
|
|
30
30
|
}), a.on("environment:upsert:environment", (e) => {
|
|
31
|
-
const
|
|
32
|
-
|
|
31
|
+
const l = t();
|
|
32
|
+
l && M(o.value, l.workspace, e);
|
|
33
33
|
}), a.on(
|
|
34
34
|
"environment:delete:environment",
|
|
35
|
-
({ environmentName: e, collectionType:
|
|
35
|
+
({ environmentName: e, collectionType: l }) => delete m(o.value, l)?.["x-scalar-environments"]?.[e]
|
|
36
36
|
), a.on("environment:upsert:environment-variable", (e) => {
|
|
37
|
-
const
|
|
38
|
-
T(
|
|
37
|
+
const l = m(o.value, e.collectionType);
|
|
38
|
+
T(l, e);
|
|
39
39
|
}), a.on(
|
|
40
40
|
"environment:delete:environment-variable",
|
|
41
|
-
({ environmentName: e, index:
|
|
42
|
-
|
|
41
|
+
({ environmentName: e, index: l, collectionType: n }) => m(o.value, n)?.["x-scalar-environments"]?.[e]?.variables?.splice(
|
|
42
|
+
l,
|
|
43
43
|
1
|
|
44
44
|
)
|
|
45
45
|
), a.on("cookie:upsert:cookie", (e) => {
|
|
46
|
-
const
|
|
47
|
-
I(
|
|
46
|
+
const l = m(o.value, e.collectionType);
|
|
47
|
+
I(l, e);
|
|
48
48
|
}), a.on("cookie:delete:cookie", (e) => {
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
}), a.on("auth:delete:security-scheme", (e) =>
|
|
49
|
+
const l = m(o.value, e.collectionType);
|
|
50
|
+
V(l, e);
|
|
51
|
+
}), a.on("auth:delete:security-scheme", (e) => D(o.value, e)), a.on("auth:update:active-index", (e) => U(o.value, e)), a.on("auth:update:security-scheme", (e) => j(o.value, e)), a.on("auth:update:selected-scopes", (e) => z(o.value, e)), a.on(
|
|
52
52
|
"auth:update:selected-security-schemes",
|
|
53
|
-
async (e) => await
|
|
54
|
-
), a.on("server:add:server", () =>
|
|
53
|
+
async (e) => await A(o.value, e)
|
|
54
|
+
), a.on("server:add:server", () => F(o.value)), a.on("server:update:server", (e) => H(o.value, e)), a.on("server:delete:server", (e) => K(o.value, e)), a.on("server:update:variables", (e) => L(o.value, e)), a.on("server:update:selected", (e) => W(o.value, e)), a.on("operation:create:operation", (e) => G(t(), e)), a.on(
|
|
55
55
|
"operation:update:pathMethod",
|
|
56
|
-
(e) => J(o.value, t(), e, async (
|
|
57
|
-
|
|
56
|
+
(e) => J(o.value, t(), e, async (l) => {
|
|
57
|
+
l === "success" && (await c.value?.replace({
|
|
58
58
|
name: "example",
|
|
59
59
|
params: {
|
|
60
60
|
method: e.payload.method,
|
|
61
61
|
pathEncoded: encodeURIComponent(e.payload.path),
|
|
62
|
-
exampleName:
|
|
62
|
+
exampleName: p.value?.params.exampleName
|
|
63
63
|
}
|
|
64
|
-
}), i(o.value?.["x-scalar-navigation"]?.name)), e.callback(
|
|
64
|
+
}), i(o.value?.["x-scalar-navigation"]?.name)), e.callback(l);
|
|
65
65
|
})
|
|
66
66
|
), a.on("operation:update:summary", (e) => Q(o.value, e)), a.on("operation:delete:operation", async (e) => {
|
|
67
|
-
X(t(), e), i(e.documentName),
|
|
67
|
+
X(t(), e), i(e.documentName), d({
|
|
68
68
|
documentName: e.documentName,
|
|
69
69
|
path: e.meta.path,
|
|
70
70
|
method: e.meta.method
|
|
71
|
-
}) && await
|
|
71
|
+
}) && await c.value?.replace({
|
|
72
72
|
name: "document.overview",
|
|
73
73
|
params: {
|
|
74
74
|
documentSlug: e.documentName
|
|
75
75
|
}
|
|
76
76
|
});
|
|
77
77
|
}), a.on("operation:delete:example", async (e) => {
|
|
78
|
-
Y(t(), e), i(e.documentName),
|
|
78
|
+
Y(t(), e), i(e.documentName), d({
|
|
79
79
|
documentName: e.documentName,
|
|
80
80
|
path: e.meta.path,
|
|
81
81
|
method: e.meta.method,
|
|
82
82
|
exampleName: e.meta.exampleKey
|
|
83
|
-
}) && await
|
|
83
|
+
}) && await c.value?.replace({
|
|
84
84
|
name: "example",
|
|
85
85
|
params: {
|
|
86
86
|
pathEncoded: encodeURIComponent(e.meta.path),
|
|
@@ -98,39 +98,33 @@ function ve({
|
|
|
98
98
|
(e) => S(o.value, e)
|
|
99
99
|
), a.on("operation:update:requestBody:value", (e) => {
|
|
100
100
|
g(o.value, e), u(e.meta);
|
|
101
|
-
}), a.on("operation:
|
|
101
|
+
}), a.on("operation:update:requestBody:formValue", (e) => {
|
|
102
102
|
B(o.value, e), u(e.meta);
|
|
103
|
-
}), a.on(
|
|
104
|
-
|
|
105
|
-
(e) => ee(o.value, e)
|
|
106
|
-
), a.on(
|
|
107
|
-
"operation:delete:requestBody:formRow",
|
|
108
|
-
(e) => ae(o.value, e)
|
|
109
|
-
), a.on("tag:create:tag", (e) => {
|
|
110
|
-
oe(t(), e), i(e.documentName);
|
|
103
|
+
}), a.on("tag:create:tag", (e) => {
|
|
104
|
+
ee(t(), e), i(e.documentName);
|
|
111
105
|
}), a.on("tag:delete:tag", (e) => {
|
|
112
|
-
|
|
113
|
-
}), a.on("ui:toggle:sidebar",
|
|
106
|
+
ae(t(), e), i(e.documentName);
|
|
107
|
+
}), a.on("ui:toggle:sidebar", k), a.on(
|
|
114
108
|
"ui:open:command-palette",
|
|
115
109
|
(e) => {
|
|
116
|
-
e ?
|
|
110
|
+
e ? s(e.action, e.payload) : s();
|
|
117
111
|
}
|
|
118
|
-
), a.on("ui:route:page", ({ name: e }) =>
|
|
119
|
-
|
|
112
|
+
), a.on("ui:route:page", ({ name: e }) => c.value?.push({ name: e })), a.on("tabs:add:tab", async (e) => {
|
|
113
|
+
oe(t()?.workspace ?? null, e), await r();
|
|
120
114
|
}), a.on("tabs:close:tab", async (e) => {
|
|
121
|
-
|
|
122
|
-
}), a.on("tabs:close:other-tabs", (e) =>
|
|
123
|
-
|
|
115
|
+
te(t()?.workspace ?? null, e), await r();
|
|
116
|
+
}), a.on("tabs:close:other-tabs", (e) => le(t()?.workspace ?? null, e)), a.on("tabs:focus:tab", async (e) => {
|
|
117
|
+
re(t()?.workspace ?? null, e), await r();
|
|
124
118
|
}), a.on("tabs:focus:tab-last", async (e) => {
|
|
125
|
-
|
|
119
|
+
ne(t()?.workspace ?? null, e), await r();
|
|
126
120
|
}), a.on("tabs:navigate:previous", async (e) => {
|
|
127
|
-
|
|
121
|
+
ce(t()?.workspace ?? null, e), await r();
|
|
128
122
|
}), a.on("tabs:navigate:next", async (e) => {
|
|
129
|
-
|
|
123
|
+
pe(t()?.workspace ?? null, e), await r();
|
|
130
124
|
}), a.on("tabs:update:tabs", async (e) => {
|
|
131
|
-
|
|
132
|
-
}), a.on("tabs:copy:url", (e) =>
|
|
125
|
+
ie(t()?.workspace ?? null, e), await r();
|
|
126
|
+
}), a.on("tabs:copy:url", (e) => w(e.index));
|
|
133
127
|
}
|
|
134
128
|
export {
|
|
135
|
-
|
|
129
|
+
he as initializeAppEventHandlers
|
|
136
130
|
};
|