@scalar/api-client 2.18.1 → 2.18.4
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 +80 -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/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 +4 -4
- 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/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.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-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.js +69 -69
- 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.js +29 -29
- 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.js +75 -75
- 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.d.ts +2 -0
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/v2/components/sidebar/Sidebar.vue.js +39 -34
- package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts +11 -1
- package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts.map +1 -1
- package/dist/v2/components/sidebar/SidebarMenu.vue.js +34 -35
- package/dist/v2/features/app/App.vue.d.ts +16 -2
- package/dist/v2/features/app/App.vue.d.ts.map +1 -1
- package/dist/v2/features/app/App.vue.js +50 -45
- 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/app-state.d.ts +2 -1
- package/dist/v2/features/app/app-state.d.ts.map +1 -1
- package/dist/v2/features/app/app-state.js +10 -10
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts +11 -1
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
- package/dist/v2/features/app/components/AppSidebar.vue.js +1 -1
- package/dist/v2/features/app/components/AppSidebar.vue2.js +113 -110
- 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 +3 -60
- 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 +8 -8
- package/dist/v2/features/app/index.d.ts +5 -1
- package/dist/v2/features/app/index.d.ts.map +1 -1
- package/dist/v2/features/app/index.js +8 -2
- 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.vue2.js +56 -56
- package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts +2 -1
- 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.js +34 -34
- 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,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as v, computed as d, createElementBlock as
|
|
1
|
+
import { defineComponent as v, computed as d, createElementBlock as l, openBlock as n, createElementVNode as h, Fragment as T, renderList as p, createBlock as C, createVNode as k, unref as g } from "vue";
|
|
2
2
|
import { ScalarIcon as f } from "@scalar/components";
|
|
3
3
|
import B from "./DesktopTab.vue.js";
|
|
4
4
|
const y = { class: "mac:pl-[72px] t-app__top-nav flex h-10 items-center gap-2 px-2" }, U = /* @__PURE__ */ v({
|
|
@@ -8,29 +8,29 @@ const y = { class: "mac:pl-[72px] t-app__top-nav flex h-10 items-center gap-2 px
|
|
|
8
8
|
activeTabIndex: {},
|
|
9
9
|
eventBus: {}
|
|
10
10
|
},
|
|
11
|
-
setup(
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
},
|
|
15
|
-
|
|
16
|
-
},
|
|
17
|
-
|
|
18
|
-
}, i = (
|
|
19
|
-
|
|
20
|
-
}, u = (
|
|
21
|
-
|
|
11
|
+
setup(e) {
|
|
12
|
+
const o = d(() => e.tabs.length === 1), s = () => {
|
|
13
|
+
e.eventBus.emit("tabs:add:tab", void 0);
|
|
14
|
+
}, b = (t) => {
|
|
15
|
+
e.eventBus.emit("tabs:focus:tab", { index: t });
|
|
16
|
+
}, r = (t) => {
|
|
17
|
+
e.eventBus.emit("tabs:close:tab", { index: t });
|
|
18
|
+
}, i = (t) => {
|
|
19
|
+
e.eventBus.emit("tabs:close:other-tabs", { index: t });
|
|
20
|
+
}, u = (t) => {
|
|
21
|
+
e.eventBus.emit("tabs:copy:url", { index: t });
|
|
22
22
|
};
|
|
23
|
-
return (
|
|
24
|
-
(
|
|
25
|
-
key:
|
|
26
|
-
active:
|
|
27
|
-
hotkey: !
|
|
28
|
-
isSingleTab:
|
|
23
|
+
return (t, S) => (n(), l("nav", y, [
|
|
24
|
+
(n(!0), l(T, null, p(e.tabs, (m, a) => (n(), C(B, {
|
|
25
|
+
key: a,
|
|
26
|
+
active: a === e.activeTabIndex,
|
|
27
|
+
hotkey: !o.value && a < 9 ? String(a + 1) : void 0,
|
|
28
|
+
isSingleTab: o.value,
|
|
29
29
|
tab: m,
|
|
30
|
-
onClick: (
|
|
31
|
-
onClose: (
|
|
32
|
-
onCloseOtherTabs: (
|
|
33
|
-
onCopyUrl: () => u(
|
|
30
|
+
onClick: (c) => b(a),
|
|
31
|
+
onClose: (c) => r(a),
|
|
32
|
+
onCloseOtherTabs: (c) => i(a),
|
|
33
|
+
onCopyUrl: () => u(a),
|
|
34
34
|
onNewTab: s
|
|
35
35
|
}, null, 8, ["active", "hotkey", "isSingleTab", "tab", "onClick", "onClose", "onCloseOtherTabs", "onCopyUrl"]))), 128)),
|
|
36
36
|
h("button", {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as S, ref as C, watch as E, nextTick as b, createBlock as i, openBlock as a, unref as n, withCtx as m, createCommentVNode as l, createElementVNode as r, createVNode as u, createTextVNode as c } from "vue";
|
|
2
2
|
import { ScalarDropdown as M, ScalarDropdownItem as s, ScalarIcon as y, ScalarDropdownDivider as T } from "@scalar/components";
|
|
3
|
-
import { getParentEntry as
|
|
3
|
+
import { getParentEntry as I } from "@scalar/workspace-store/navigation";
|
|
4
4
|
const z = { class: "flex items-center gap-2" }, N = { class: "flex items-center gap-2" }, V = { class: "flex items-center gap-2" }, $ = { class: "text-red flex items-center gap-2" }, W = /* @__PURE__ */ S({
|
|
5
5
|
__name: "SidebarItemMenu",
|
|
6
6
|
props: {
|
|
@@ -10,8 +10,8 @@ const z = { class: "flex items-center gap-2" }, N = { class: "flex items-center
|
|
|
10
10
|
target: {}
|
|
11
11
|
},
|
|
12
12
|
emits: ["closeMenu", "showDeleteModal"],
|
|
13
|
-
setup(e, { emit:
|
|
14
|
-
const g =
|
|
13
|
+
setup(e, { emit: p }) {
|
|
14
|
+
const g = p, f = C(!1);
|
|
15
15
|
E(f, async (d, t) => {
|
|
16
16
|
!d && t && (await b(), g("closeMenu"));
|
|
17
17
|
});
|
|
@@ -26,7 +26,7 @@ const z = { class: "flex items-center gap-2" }, N = { class: "flex items-center
|
|
|
26
26
|
e.eventBus.emit("ui:open:command-palette", {
|
|
27
27
|
action: "create-request",
|
|
28
28
|
payload: {
|
|
29
|
-
documentId:
|
|
29
|
+
documentId: I("document", d)?.id,
|
|
30
30
|
tagId: e.item.name
|
|
31
31
|
}
|
|
32
32
|
});
|
|
@@ -44,7 +44,7 @@ const z = { class: "flex items-center gap-2" }, N = { class: "flex items-center
|
|
|
44
44
|
e.eventBus.emit("ui:open:command-palette", {
|
|
45
45
|
action: "add-example",
|
|
46
46
|
payload: {
|
|
47
|
-
documentId:
|
|
47
|
+
documentId: I("document", d)?.id,
|
|
48
48
|
operationId: e.item.id
|
|
49
49
|
}
|
|
50
50
|
});
|
|
@@ -54,7 +54,7 @@ const z = { class: "flex items-center gap-2" }, N = { class: "flex items-center
|
|
|
54
54
|
open: f.value,
|
|
55
55
|
"onUpdate:open": t[4] || (t[4] = (o) => f.value = o),
|
|
56
56
|
placement: "bottom-end",
|
|
57
|
-
target:
|
|
57
|
+
target: e.target,
|
|
58
58
|
teleport: ""
|
|
59
59
|
}, {
|
|
60
60
|
items: m(() => [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as c, createElementBlock as p, openBlock as n, createVNode as s, unref as i } from "vue";
|
|
2
2
|
import k from "./DownloadAppButton.vue.js";
|
|
3
3
|
import m from "../../../components/sidebar/SidebarMenu.vue.js";
|
|
4
|
-
const l = { class: "flex h-12 items-center justify-between border-b p-2" }, w = {}, v = /* @__PURE__ */
|
|
4
|
+
const l = { class: "flex h-12 items-center justify-between border-b p-2" }, w = {}, v = /* @__PURE__ */ c({
|
|
5
5
|
...w,
|
|
6
6
|
__name: "WebTopNav",
|
|
7
7
|
props: {
|
|
@@ -9,14 +9,14 @@ const l = { class: "flex h-12 items-center justify-between border-b p-2" }, w =
|
|
|
9
9
|
workspaces: {}
|
|
10
10
|
},
|
|
11
11
|
emits: ["create:workspace", "select:workspace"],
|
|
12
|
-
setup(
|
|
13
|
-
const
|
|
14
|
-
return (
|
|
12
|
+
setup(o, { emit: a }) {
|
|
13
|
+
const t = a;
|
|
14
|
+
return (f, e) => (n(), p("nav", l, [
|
|
15
15
|
s(i(m), {
|
|
16
|
-
activeWorkspace:
|
|
17
|
-
workspaces:
|
|
18
|
-
"onCreate:workspace": e[0] || (e[0] = (r) =>
|
|
19
|
-
"onSelect:workspace": e[1] || (e[1] = (r) =>
|
|
16
|
+
activeWorkspace: o.activeWorkspace,
|
|
17
|
+
workspaces: o.workspaces,
|
|
18
|
+
"onCreate:workspace": e[0] || (e[0] = (r) => t("create:workspace")),
|
|
19
|
+
"onSelect:workspace": e[1] || (e[1] = (r) => t("select:workspace", r))
|
|
20
20
|
}, null, 8, ["activeWorkspace", "workspaces"]),
|
|
21
21
|
s(k)
|
|
22
22
|
]));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ClientPlugin } from '../../../../v2/helpers/plugins.js';
|
|
2
2
|
import type { ClientLayout } from '../../../../v2/types/layout';
|
|
3
|
-
|
|
3
|
+
type CreateApiClientOptions = {
|
|
4
4
|
/**
|
|
5
5
|
* The layout of the client, limited to web or desktop in app
|
|
6
6
|
* @see {@link ClientLayout}
|
|
@@ -22,64 +22,7 @@ export declare const createAppRouter: (layout: CreateApiClientOptions["layout"])
|
|
|
22
22
|
*/
|
|
23
23
|
export declare const createApiClientApp: (el: HTMLElement | null, { layout, plugins }: CreateApiClientOptions) => {
|
|
24
24
|
app: import("vue").App<Element>;
|
|
25
|
-
state:
|
|
26
|
-
store: import("vue").ShallowRef<import("@scalar/workspace-store/client").WorkspaceStore | null>;
|
|
27
|
-
sidebar: {
|
|
28
|
-
state: {
|
|
29
|
-
items: import("vue").ComputedRef<import("@scalar/workspace-store/schemas/navigation").TraversedEntry[]>;
|
|
30
|
-
index: import("vue").ComputedRef<Map<string, import("@scalar/workspace-store/schemas/navigation").TraversedEntry & {
|
|
31
|
-
parent?: import("@scalar/workspace-store/schemas/navigation").TraversedEntry | undefined;
|
|
32
|
-
}>>;
|
|
33
|
-
selectedItems: import("vue").Ref<Record<string, boolean>, Record<string, boolean>>;
|
|
34
|
-
expandedItems: import("vue").Ref<Record<string, boolean>, Record<string, boolean>>;
|
|
35
|
-
selectedItem: import("vue").Ref<string | null, string | null>;
|
|
36
|
-
setSelected: (id: string | null) => void;
|
|
37
|
-
setExpanded: (id: string, value: boolean) => void;
|
|
38
|
-
isExpanded: (id: string) => boolean;
|
|
39
|
-
isSelected: (id: string) => boolean;
|
|
40
|
-
getEntryById: (id: string) => (import("@scalar/workspace-store/schemas/navigation").TraversedEntry & {
|
|
41
|
-
parent?: import("@scalar/workspace-store/schemas/navigation").TraversedEntry | undefined;
|
|
42
|
-
}) | undefined;
|
|
43
|
-
reset: () => void;
|
|
44
|
-
};
|
|
45
|
-
width: import("vue").ComputedRef<number>;
|
|
46
|
-
isOpen: import("vue").Ref<boolean>;
|
|
47
|
-
handleSelectItem: (id: string) => Promise<void | import("vue-router").NavigationFailure | undefined> | undefined;
|
|
48
|
-
handleSidebarWidthUpdate: (width: number) => void | undefined;
|
|
49
|
-
getEntryByLocation: import("../../../../v2/features/app/app-state.js").GetEntryByLocation;
|
|
50
|
-
};
|
|
51
|
-
tabs: {
|
|
52
|
-
state: import("vue").Ref<import("@scalar/workspace-store/schemas/extensions/workspace/x-scalar-tabs").Tab[]>;
|
|
53
|
-
activeTabIndex: import("vue").Ref<number>;
|
|
54
|
-
copyTabUrl: (index: number) => Promise<void>;
|
|
55
|
-
};
|
|
56
|
-
workspace: {
|
|
57
|
-
create: ({ id, name, }: {
|
|
58
|
-
id?: string;
|
|
59
|
-
name: string;
|
|
60
|
-
}) => Promise<{
|
|
61
|
-
id: string;
|
|
62
|
-
name: string;
|
|
63
|
-
} | undefined>;
|
|
64
|
-
workspaceList: import("vue").Ref<import("@scalar/components").ScalarListboxOption[]>;
|
|
65
|
-
activeWorkspace: import("vue").ShallowRef<import("@scalar/components").ScalarListboxOption | null>;
|
|
66
|
-
setId: (id?: string) => Promise<void>;
|
|
67
|
-
isOpen: import("vue").ComputedRef<boolean>;
|
|
68
|
-
};
|
|
69
|
-
commandPalette: import("../../command-palette/hooks/use-command-palette-state.js").UseCommandPaletteStateReturn;
|
|
70
|
-
eventBus: import("@scalar/workspace-store/events").WorkspaceEventBus;
|
|
71
|
-
router: import("vue").ShallowRef<import("vue-router").Router | null>;
|
|
72
|
-
currentRoute: import("vue").Ref<import("vue-router").RouteLocationNormalizedGeneric | null>;
|
|
73
|
-
loading: import("vue").Ref<boolean>;
|
|
74
|
-
activeEntities: {
|
|
75
|
-
workspaceSlug: import("vue").Ref<string | undefined>;
|
|
76
|
-
documentSlug: import("vue").Ref<string | undefined>;
|
|
77
|
-
path: import("vue").Ref<string | undefined>;
|
|
78
|
-
method: import("vue").Ref<import("@scalar/helpers/http/http-methods").HttpMethod | undefined>;
|
|
79
|
-
exampleName: import("vue").Ref<string | undefined>;
|
|
80
|
-
};
|
|
81
|
-
environment: import("vue").ComputedRef<import("@scalar/workspace-store/schemas/extensions/document/x-scalar-environments").XScalarEnvironment>;
|
|
82
|
-
document: import("vue").ComputedRef<import("@scalar/workspace-store/schemas").WorkspaceDocument | null>;
|
|
83
|
-
};
|
|
25
|
+
state: import("../../../../v2/features/app/app-state.js").AppState;
|
|
84
26
|
} | undefined;
|
|
27
|
+
export {};
|
|
85
28
|
//# sourceMappingURL=create-api-client-app.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-api-client-app.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/app/helpers/create-api-client-app.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,
|
|
1
|
+
{"version":3,"file":"create-api-client-app.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/app/helpers/create-api-client-app.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,KAAK,sBAAsB,GAAG;IAC5B;;;;;OAKG;IACH,MAAM,EAAE,OAAO,CAAC,YAAY,EAAE,OAAO,CAAC,CAAA;IACtC;;OAEG;IACH,OAAO,CAAC,EAAE,YAAY,EAAE,CAAA;CACzB,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,eAAe,GAAI,QAAQ,sBAAsB,CAAC,QAAQ,CAAC,gCAQvE,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,kBAAkB,GAAI,IAAI,WAAW,GAAG,IAAI,EAAE,qBAAiC,sBAAsB;;;aAyBjH,CAAA"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { createApp as c } from "vue";
|
|
2
|
-
import { createRouter as
|
|
2
|
+
import { createRouter as p, createWebHistory as n, createWebHashHistory as m } from "vue-router";
|
|
3
3
|
import u from "../App.vue.js";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import { useAppState as l } from "../app-state.js";
|
|
6
|
-
import { ROUTES as
|
|
7
|
-
const f = (
|
|
8
|
-
const
|
|
9
|
-
if (
|
|
6
|
+
import { ROUTES as i } from "./routes.js";
|
|
7
|
+
const f = (t) => t === "web" ? p({ history: n(), routes: i }) : p({ history: m(), routes: i }), g = (t, { layout: r = "desktop", plugins: s }) => {
|
|
8
|
+
const o = f(r), a = l(o), e = c(u, { layout: r, plugins: s, getAppState: () => a });
|
|
9
|
+
if (e.use(o), !t) {
|
|
10
10
|
console.error(
|
|
11
11
|
"[@scalar/api-client-modal] Could not create the API client.",
|
|
12
12
|
"Invalid HTML element provided.",
|
|
@@ -14,12 +14,12 @@ const f = (e) => e === "web" ? i({ history: n(), routes: p }) : i({ history: m()
|
|
|
14
14
|
);
|
|
15
15
|
return;
|
|
16
16
|
}
|
|
17
|
-
return
|
|
18
|
-
app:
|
|
17
|
+
return e.mount(t), {
|
|
18
|
+
app: e,
|
|
19
19
|
state: a
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
22
|
export {
|
|
23
|
-
|
|
23
|
+
g as createApiClientApp,
|
|
24
24
|
f as createAppRouter
|
|
25
25
|
};
|
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { type AppState, useAppState } from '../../../v2/features/app/app-state.js';
|
|
2
|
+
export type { ClientPlugin } from '../../../v2/helpers/plugins.js';
|
|
3
|
+
export type { ClientLayout } from '../../../v2/types/layout';
|
|
4
|
+
export { default as ClientApp } from './App.vue.js';
|
|
5
|
+
export { createApiClientApp, createAppRouter } from './helpers/create-api-client-app.js';
|
|
2
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/app/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/app/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,QAAQ,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AACxE,YAAY,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACxD,YAAY,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,WAAW,CAAA;AAChD,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAA"}
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useAppState as r } from "./app-state.js";
|
|
2
|
+
import { default as a } from "./App.vue.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
import { createApiClientApp as f, createAppRouter as i } from "./helpers/create-api-client-app.js";
|
|
2
5
|
export {
|
|
3
|
-
|
|
6
|
+
a as ClientApp,
|
|
7
|
+
f as createApiClientApp,
|
|
8
|
+
i as createAppRouter,
|
|
9
|
+
r as useAppState
|
|
4
10
|
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineComponent as f, computed as d, createElementBlock as
|
|
1
|
+
import { defineComponent as f, computed as d, createElementBlock as c, openBlock as s, createElementVNode as e, createVNode as o, withCtx as r, unref as m, createBlock as p, resolveDynamicComponent as x, mergeProps as v } from "vue";
|
|
2
2
|
import { ScalarButton as h } from "@scalar/components";
|
|
3
|
-
import { LibraryIcon as
|
|
4
|
-
import { RouterView as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
const
|
|
3
|
+
import { LibraryIcon as _ } from "@scalar/icons/library";
|
|
4
|
+
import { RouterView as b } from "vue-router";
|
|
5
|
+
import y from "../../../components/IconSelector.vue.js";
|
|
6
|
+
import w from "./components/LabelInput.vue.js";
|
|
7
|
+
import g from "./components/Tabs.vue.js";
|
|
8
|
+
const k = { class: "custom-scroll h-full" }, V = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "w-full md:mx-auto md:max-w-[720px]"
|
|
11
|
-
},
|
|
11
|
+
}, B = ["aria-label"], C = { class: "flex flex-row items-center gap-2" }, D = { class: "group relative ml-1.25" }, N = { class: "px-1.5 py-8" }, S = {
|
|
12
12
|
key: 1,
|
|
13
13
|
class: "flex w-full flex-1 items-center justify-center"
|
|
14
|
-
},
|
|
14
|
+
}, I = {
|
|
15
15
|
name: "DocumentCollection"
|
|
16
16
|
}, P = /* @__PURE__ */ f({
|
|
17
|
-
...
|
|
17
|
+
...I,
|
|
18
18
|
props: {
|
|
19
19
|
documentSlug: {},
|
|
20
20
|
document: {},
|
|
@@ -29,29 +29,29 @@ const V = { class: "custom-scroll h-full" }, B = {
|
|
|
29
29
|
activeWorkspace: {},
|
|
30
30
|
plugins: {}
|
|
31
31
|
},
|
|
32
|
-
setup(
|
|
33
|
-
const
|
|
34
|
-
() =>
|
|
32
|
+
setup(n) {
|
|
33
|
+
const a = n, u = d(() => a.document?.info?.title || "Untitled Document"), i = d(
|
|
34
|
+
() => a.document?.["x-scalar-icon"] || "interface-content-folder"
|
|
35
35
|
);
|
|
36
|
-
return (
|
|
37
|
-
|
|
36
|
+
return (U, t) => (s(), c("div", k, [
|
|
37
|
+
n.document ? (s(), c("div", V, [
|
|
38
38
|
e("div", {
|
|
39
39
|
"aria-label": `title: ${u.value}`,
|
|
40
40
|
class: "mx-auto flex h-fit w-full flex-col gap-2 pt-6 pb-3 md:mx-auto md:max-w-[720px]"
|
|
41
41
|
}, [
|
|
42
|
-
e("div",
|
|
43
|
-
o(
|
|
42
|
+
e("div", C, [
|
|
43
|
+
o(y, {
|
|
44
44
|
modelValue: i.value,
|
|
45
45
|
placement: "bottom-start",
|
|
46
|
-
"onUpdate:modelValue": t[0] || (t[0] = (l) =>
|
|
46
|
+
"onUpdate:modelValue": t[0] || (t[0] = (l) => n.eventBus.emit("document:update:icon", l))
|
|
47
47
|
}, {
|
|
48
|
-
default:
|
|
48
|
+
default: r(() => [
|
|
49
49
|
o(m(h), {
|
|
50
50
|
class: "hover:bg-b-2 aspect-square h-7 w-7 cursor-pointer rounded border border-transparent p-0 hover:border-inherit",
|
|
51
51
|
variant: "ghost"
|
|
52
52
|
}, {
|
|
53
|
-
default:
|
|
54
|
-
o(m(
|
|
53
|
+
default: r(() => [
|
|
54
|
+
o(m(_), {
|
|
55
55
|
class: "text-c-2 size-5",
|
|
56
56
|
src: i.value,
|
|
57
57
|
"stroke-width": "2"
|
|
@@ -63,25 +63,25 @@ const V = { class: "custom-scroll h-full" }, B = {
|
|
|
63
63
|
_: 1
|
|
64
64
|
}, 8, ["modelValue"])
|
|
65
65
|
]),
|
|
66
|
-
e("div",
|
|
67
|
-
o(
|
|
66
|
+
e("div", D, [
|
|
67
|
+
o(w, {
|
|
68
68
|
class: "text-xl font-bold",
|
|
69
69
|
inputId: "documentName",
|
|
70
70
|
modelValue: u.value,
|
|
71
|
-
"onUpdate:modelValue": t[1] || (t[1] = (l) =>
|
|
71
|
+
"onUpdate:modelValue": t[1] || (t[1] = (l) => n.eventBus.emit("document:update:info", { title: l }))
|
|
72
72
|
}, null, 8, ["modelValue"])
|
|
73
73
|
])
|
|
74
|
-
], 8,
|
|
75
|
-
o(
|
|
76
|
-
e("div",
|
|
77
|
-
o(m(
|
|
78
|
-
default:
|
|
79
|
-
(
|
|
74
|
+
], 8, B),
|
|
75
|
+
o(g, { type: "document" }),
|
|
76
|
+
e("div", N, [
|
|
77
|
+
o(m(b), null, {
|
|
78
|
+
default: r(({ Component: l }) => [
|
|
79
|
+
(s(), p(x(l), v(a, { collectionType: "document" }), null, 16))
|
|
80
80
|
]),
|
|
81
81
|
_: 1
|
|
82
82
|
})
|
|
83
83
|
])
|
|
84
|
-
])) : (
|
|
84
|
+
])) : (s(), c("div", S, [...t[2] || (t[2] = [
|
|
85
85
|
e("div", { class: "flex h-full flex-col items-center justify-center" }, [
|
|
86
86
|
e("h1", { class: "text-2xl font-bold" }, "Document not found"),
|
|
87
87
|
e("p", { class: "text-gray-500" }, " The document you are looking for does not exist. ")
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as a, createElementBlock as l, openBlock as r, createElementVNode as e, createVNode as o, unref as c, toDisplayString as i, mergeProps as n } from "vue";
|
|
2
2
|
import { ScalarIconGlobe as m } from "@scalar/icons";
|
|
3
|
-
import { RouterView as
|
|
4
|
-
import
|
|
5
|
-
const
|
|
6
|
-
...
|
|
3
|
+
import { RouterView as p } from "vue-router";
|
|
4
|
+
import d from "./components/Tabs.vue.js";
|
|
5
|
+
const u = { class: "custom-scroll h-full" }, _ = { class: "w-full md:mx-auto md:max-w-[720px]" }, f = ["aria-label"], x = { class: "group relative ml-1.25" }, h = { class: "text-c-1 flex h-8 items-center" }, v = { class: "px-1.5 py-8" }, k = {}, B = /* @__PURE__ */ a({
|
|
6
|
+
...k,
|
|
7
7
|
__name: "WorkspaceCollection",
|
|
8
8
|
props: {
|
|
9
9
|
documentSlug: {},
|
|
@@ -19,22 +19,22 @@ const _ = { class: "custom-scroll h-full" }, f = { class: "w-full md:mx-auto md:
|
|
|
19
19
|
activeWorkspace: {},
|
|
20
20
|
plugins: {}
|
|
21
21
|
},
|
|
22
|
-
setup(
|
|
23
|
-
const
|
|
24
|
-
return (
|
|
25
|
-
e("div",
|
|
22
|
+
setup(t) {
|
|
23
|
+
const s = t;
|
|
24
|
+
return (w, b) => (r(), l("div", u, [
|
|
25
|
+
e("div", _, [
|
|
26
26
|
e("div", {
|
|
27
|
-
"aria-label": `title: ${
|
|
27
|
+
"aria-label": `title: ${t.activeWorkspace.label}`,
|
|
28
28
|
class: "mx-auto flex h-fit w-full flex-col gap-2 pt-6 pb-3 md:mx-auto md:max-w-[720px]"
|
|
29
29
|
}, [
|
|
30
|
-
|
|
31
|
-
e("div",
|
|
32
|
-
e("span",
|
|
30
|
+
o(c(m), { class: "text-c-2 size-6" }),
|
|
31
|
+
e("div", x, [
|
|
32
|
+
e("span", h, i(t.activeWorkspace.label), 1)
|
|
33
33
|
])
|
|
34
|
-
], 8,
|
|
35
|
-
|
|
36
|
-
e("div",
|
|
37
|
-
|
|
34
|
+
], 8, f),
|
|
35
|
+
o(d, { type: "workspace" }),
|
|
36
|
+
e("div", v, [
|
|
37
|
+
o(c(p), n(s, { collectionType: "workspace" }), null, 16)
|
|
38
38
|
])
|
|
39
39
|
])
|
|
40
40
|
]));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as u, computed as
|
|
2
|
-
import { ScalarToggle as
|
|
3
|
-
import
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as u, computed as s, createElementBlock as m, openBlock as d, createElementVNode as n, createVNode as c, unref as i, normalizeClass as a } from "vue";
|
|
2
|
+
import { ScalarToggle as v } from "@scalar/components";
|
|
3
|
+
import y from "../../../blocks/scalar-auth-selector-block/components/AuthSelector.vue.js";
|
|
4
|
+
const f = { class: "flex flex-col gap-4" }, p = { class: "flex flex-col gap-2" }, h = { class: "flex h-8 items-center justify-between" }, b = /* @__PURE__ */ u({
|
|
5
5
|
__name: "Authentication",
|
|
6
6
|
props: {
|
|
7
7
|
documentSlug: {},
|
|
@@ -18,33 +18,33 @@ const y = { class: "flex flex-col gap-4" }, f = { class: "flex flex-col gap-2" }
|
|
|
18
18
|
plugins: {},
|
|
19
19
|
collectionType: {}
|
|
20
20
|
},
|
|
21
|
-
setup(
|
|
22
|
-
const
|
|
23
|
-
() =>
|
|
24
|
-
),
|
|
25
|
-
() =>
|
|
26
|
-
({ url:
|
|
21
|
+
setup(e) {
|
|
22
|
+
const l = s(
|
|
23
|
+
() => e.document?.["x-scalar-set-operation-security"] ?? !1
|
|
24
|
+
), r = s(
|
|
25
|
+
() => e.document?.servers?.find(
|
|
26
|
+
({ url: o }) => o === e.document?.["x-scalar-selected-server"]
|
|
27
27
|
) ?? null
|
|
28
28
|
);
|
|
29
|
-
return (
|
|
30
|
-
n("div",
|
|
29
|
+
return (o, t) => (d(), m("div", f, [
|
|
30
|
+
n("div", p, [
|
|
31
31
|
n("div", h, [
|
|
32
32
|
t[1] || (t[1] = n("h3", { class: "font-bold" }, "Authentication", -1)),
|
|
33
|
-
|
|
33
|
+
c(i(v), {
|
|
34
34
|
class: "w-4",
|
|
35
|
-
modelValue:
|
|
35
|
+
modelValue: l.value,
|
|
36
36
|
"onUpdate:modelValue": t[0] || (t[0] = () => e.eventBus.emit("document:toggle:security"))
|
|
37
37
|
}, null, 8, ["modelValue"])
|
|
38
38
|
]),
|
|
39
39
|
t[2] || (t[2] = n("p", { class: "pr-6 text-sm" }, " If enabled, all selected authentication will apply to all operations in this document. You can override this by disabling the toggle and authentication will then be applied at the operation level. ", -1))
|
|
40
40
|
]),
|
|
41
41
|
n("div", {
|
|
42
|
-
class: a(!
|
|
42
|
+
class: a(!l.value && "cursor-not-allowed")
|
|
43
43
|
}, [
|
|
44
|
-
|
|
44
|
+
c(i(y), {
|
|
45
45
|
class: a([
|
|
46
46
|
"scalar-collection-auth !border-none",
|
|
47
|
-
!
|
|
47
|
+
!l.value && "pointer-events-none opacity-50 mix-blend-luminosity"
|
|
48
48
|
]),
|
|
49
49
|
environment: e.environment,
|
|
50
50
|
eventBus: e.eventBus,
|
|
@@ -54,7 +54,7 @@ const y = { class: "flex flex-col gap-4" }, f = { class: "flex flex-col gap-2" }
|
|
|
54
54
|
securityRequirements: e.document?.security ?? [],
|
|
55
55
|
securitySchemes: e.securitySchemes,
|
|
56
56
|
selectedSecurity: e.document?.["x-scalar-selected-security"],
|
|
57
|
-
server:
|
|
57
|
+
server: r.value,
|
|
58
58
|
title: "Authentication"
|
|
59
59
|
}, null, 8, ["class", "environment", "eventBus", "proxyUrl", "securityRequirements", "securitySchemes", "selectedSecurity", "server"])
|
|
60
60
|
], 2)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as s, computed as c, createElementBlock as n, openBlock as l, createStaticVNode as a, createVNode as i, unref as r } from "vue";
|
|
2
|
+
import u from "../../global-cookies/components/CookiesTable.vue.js";
|
|
3
|
+
const d = { class: "flex flex-col gap-4" }, f = /* @__PURE__ */ s({
|
|
4
4
|
__name: "Cookies",
|
|
5
5
|
props: {
|
|
6
6
|
documentSlug: {},
|
|
@@ -18,13 +18,13 @@ const p = { class: "flex flex-col gap-4" }, f = /* @__PURE__ */ c({
|
|
|
18
18
|
collectionType: {}
|
|
19
19
|
},
|
|
20
20
|
setup(e) {
|
|
21
|
-
const
|
|
22
|
-
return (
|
|
23
|
-
|
|
24
|
-
r(u
|
|
25
|
-
cookies:
|
|
26
|
-
eventBus:
|
|
27
|
-
collectionType:
|
|
21
|
+
const t = c(() => (e.collectionType === "document" ? e.document["x-scalar-cookies"] : e.workspaceStore.workspace["x-scalar-cookies"]) ?? []);
|
|
22
|
+
return (m, o) => (l(), n("div", d, [
|
|
23
|
+
o[0] || (o[0] = a('<div class="flex items-start justify-between gap-2"><div class="flex flex-col gap-2"><div class="flex h-8 items-center"><h3 class="font-bold">Cookies</h3></div><p class="text-c-2 mb-4 text-sm"> Manage your collection's cookies here.<br>Cookies allow you to store and send key-value data with your API requests—often used for things like session tokens, authentication, and saving user preferences.<br></p></div></div>', 1)),
|
|
24
|
+
i(r(u), {
|
|
25
|
+
cookies: t.value,
|
|
26
|
+
eventBus: e.eventBus,
|
|
27
|
+
collectionType: e.collectionType
|
|
28
28
|
}, null, 8, ["cookies", "eventBus", "collectionType"])
|
|
29
29
|
]));
|
|
30
30
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as o, computed as c, createElementBlock as s, openBlock as l, createStaticVNode as a, createVNode as i, unref as r } from "vue";
|
|
2
|
+
import m from "../../environments/EnvironmentsList.vue.js";
|
|
3
|
+
const v = { class: "flex flex-col gap-4" }, f = /* @__PURE__ */ o({
|
|
4
4
|
__name: "Environment",
|
|
5
5
|
props: {
|
|
6
6
|
documentSlug: {},
|
|
@@ -18,15 +18,15 @@ const d = { class: "flex flex-col gap-4" }, f = /* @__PURE__ */ s({
|
|
|
18
18
|
collectionType: {}
|
|
19
19
|
},
|
|
20
20
|
setup(e) {
|
|
21
|
-
const
|
|
21
|
+
const n = c(
|
|
22
22
|
() => (e.collectionType === "document" ? e.document["x-scalar-environments"] : e.workspaceStore.workspace["x-scalar-environments"]) ?? {}
|
|
23
23
|
);
|
|
24
|
-
return (
|
|
25
|
-
|
|
26
|
-
r(m
|
|
27
|
-
collectionType:
|
|
28
|
-
environments:
|
|
29
|
-
eventBus:
|
|
24
|
+
return (d, t) => (l(), s("div", v, [
|
|
25
|
+
t[0] || (t[0] = a('<div class="flex items-start justify-between gap-2"><div class="flex flex-col gap-2"><div class="flex h-8 items-center"><h3 class="font-bold">Environment Variables</h3></div><p class="text-c-2 mb-4 text-sm"> Set environment variables at your collection level. Use <code class="font-code text-c-2"> {{ variable }} </code> to add / search among the selected environment's variables in your request inputs. </p></div></div>', 1)),
|
|
26
|
+
i(r(m), {
|
|
27
|
+
collectionType: e.collectionType,
|
|
28
|
+
environments: n.value,
|
|
29
|
+
eventBus: e.eventBus
|
|
30
30
|
}, null, 8, ["collectionType", "environments", "eventBus"])
|
|
31
31
|
]));
|
|
32
32
|
}
|