@scalar/api-client 2.25.0 → 2.26.1
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 +60 -0
- package/dist/components/AddressBar/AddressBar.vue.d.ts +2 -1
- package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBarHistory.vue.d.ts +2 -1
- package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.d.ts +3 -2
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandActionForm.vue.d.ts +5 -4
- package/dist/components/CommandPalette/CommandActionForm.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandActionInput.vue.d.ts +2 -1
- package/dist/components/CommandPalette/CommandActionInput.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts +2 -1
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts +2 -1
- package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts +2 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteImportCurl.vue.d.ts +2 -1
- package/dist/components/CommandPalette/CommandPaletteImportCurl.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts +2 -1
- package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteTag.vue.d.ts +2 -1
- package/dist/components/CommandPalette/CommandPaletteTag.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts +2 -1
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +2 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/WatchModeToggle.vue.d.ts +2 -1
- package/dist/components/CommandPalette/WatchModeToggle.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTable.vue.d.ts +3 -2
- package/dist/components/DataTable/DataTable.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableCell.vue.d.ts +5 -4
- package/dist/components/DataTable/DataTableCell.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableCheckbox.vue.d.ts +2 -1
- package/dist/components/DataTable/DataTableCheckbox.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableCheckbox.vue.js +8 -8
- package/dist/components/DataTable/DataTableHeader.vue.d.ts +5 -4
- package/dist/components/DataTable/DataTableHeader.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInput.vue.d.ts +7 -6
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInputSelect.vue.d.ts +2 -1
- package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableRow.vue.d.ts +3 -2
- package/dist/components/DataTable/DataTableRow.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableText.vue.d.ts +5 -4
- package/dist/components/DataTable/DataTableText.vue.d.ts.map +1 -1
- package/dist/components/EmptyState.vue.d.ts +2 -1
- package/dist/components/EmptyState.vue.d.ts.map +1 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts +2 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
- package/dist/components/Form/Form.vue.d.ts +5 -4
- package/dist/components/Form/Form.vue.d.ts.map +1 -1
- package/dist/components/Form/LabelInput.vue.d.ts +2 -1
- package/dist/components/Form/LabelInput.vue.d.ts.map +1 -1
- package/dist/components/HelpfulLink.vue.d.ts +3 -2
- package/dist/components/HelpfulLink.vue.d.ts.map +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +2 -1
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
- package/dist/components/IconSelector.vue.d.ts +6 -5
- package/dist/components/IconSelector.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/DropEventListener.vue.d.ts +2 -1
- package/dist/components/ImportCollection/DropEventListener.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/ImportCollectionListener.vue.d.ts +3 -2
- package/dist/components/ImportCollection/ImportCollectionListener.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts +2 -1
- package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/ImportNowButton.vue.d.ts +2 -1
- package/dist/components/ImportCollection/ImportNowButton.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/IntegrationLogo.vue.d.ts +2 -1
- package/dist/components/ImportCollection/IntegrationLogo.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/PasteEventListener.vue.d.ts +2 -1
- package/dist/components/ImportCollection/PasteEventListener.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/PrefetchError.vue.d.ts +2 -1
- package/dist/components/ImportCollection/PrefetchError.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.d.ts +2 -1
- package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/WorkspaceSelector.vue.d.ts +2 -1
- package/dist/components/ImportCollection/WorkspaceSelector.vue.d.ts.map +1 -1
- package/dist/components/OpenApiClientButton.vue.d.ts +2 -1
- package/dist/components/OpenApiClientButton.vue.d.ts.map +1 -1
- package/dist/components/ScalarAsciiArt.vue.d.ts +2 -1
- package/dist/components/ScalarAsciiArt.vue.d.ts.map +1 -1
- package/dist/components/SectionFilter.vue.d.ts +14 -9
- package/dist/components/SectionFilter.vue.d.ts.map +1 -1
- package/dist/components/SectionFilterButton.vue.d.ts +3 -2
- package/dist/components/SectionFilterButton.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerDropdown.vue.d.ts +2 -1
- package/dist/components/Server/ServerDropdown.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerDropdownItem.vue.d.ts +2 -1
- package/dist/components/Server/ServerDropdownItem.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerSelector.vue.d.ts +2 -1
- package/dist/components/Server/ServerSelector.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerVariablesForm.vue.d.ts +2 -1
- package/dist/components/Server/ServerVariablesForm.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerVariablesSelect.vue.d.ts +2 -1
- package/dist/components/Server/ServerVariablesSelect.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerVariablesTextbox.vue.d.ts +2 -1
- package/dist/components/Server/ServerVariablesTextbox.vue.d.ts.map +1 -1
- package/dist/components/SideNav/DownloadAppButton.vue.d.ts +2 -1
- package/dist/components/SideNav/DownloadAppButton.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideHelp.vue.d.ts +2 -1
- package/dist/components/SideNav/SideHelp.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNav.vue.d.ts +2 -1
- package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNavGroup.vue.d.ts +3 -2
- package/dist/components/SideNav/SideNavGroup.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNavLink.vue.d.ts +6 -5
- package/dist/components/SideNav/SideNavLink.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNavRouterLink.vue.d.ts +5 -4
- package/dist/components/SideNav/SideNavRouterLink.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.d.ts +2 -1
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.d.ts +2 -1
- package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.d.ts +2 -1
- package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.d.ts +3 -2
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.d.ts +3 -2
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarButton.vue.d.ts +3 -2
- package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarList.vue.d.ts +3 -2
- package/dist/components/Sidebar/SidebarList.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarListElement.vue.d.ts +2 -1
- package/dist/components/Sidebar/SidebarListElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarListElement.vue.js +2 -2
- package/dist/components/Sidebar/SidebarListElement.vue2.js +1 -1
- package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts +2 -1
- package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarToggle.vue.d.ts +2 -1
- package/dist/components/Sidebar/SidebarToggle.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNav.vue.d.ts +2 -1
- package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNavItem.vue.d.ts +2 -1
- package/dist/components/TopNav/TopNavItem.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayout.vue.d.ts +3 -2
- package/dist/components/ViewLayout/ViewLayout.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts +9 -8
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutContent.vue.d.ts +3 -2
- package/dist/components/ViewLayout/ViewLayoutContent.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts +3 -2
- package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
- package/dist/layouts/App/ApiClientApp.vue.d.ts +2 -1
- package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
- package/dist/layouts/App/MainLayout.vue.d.ts +5 -4
- package/dist/layouts/App/MainLayout.vue.d.ts.map +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue.d.ts +2 -1
- package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue.js +28 -5
- package/dist/layouts/Modal/ApiClientModal.vue2.js +2 -53
- package/dist/layouts/Modal/create-api-client-modal.js +8 -8
- package/dist/layouts/Web/ApiClientWeb.vue.d.ts +2 -1
- package/dist/layouts/Web/ApiClientWeb.vue.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts +3 -2
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/components/Header.vue.d.ts +2 -1
- package/dist/v2/blocks/operation-block/components/Header.vue.d.ts.map +1 -1
- 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 +28 -19
- package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.vue.d.ts +4 -2
- package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/components/HttpMethod.vue.d.ts +5 -4
- package/dist/v2/blocks/operation-code-sample/components/HttpMethod.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.d.ts +16 -3
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.js +2 -2
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue2.js +87 -79
- package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts +2 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts +2 -1
- package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.d.ts +2 -1
- package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.d.ts +2 -1
- package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.js +18 -18
- package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts +2 -1
- package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts +2 -1
- package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts +2 -1
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue.d.ts +2 -1
- package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/helpers/get-default-headers.js +1 -1
- package/dist/v2/blocks/response-block/ResponseBlock.vue.d.ts +2 -1
- package/dist/v2/blocks/response-block/ResponseBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/components/Headers.vue.d.ts +5 -4
- package/dist/v2/blocks/response-block/components/Headers.vue.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBody.vue.d.ts +2 -1
- package/dist/v2/blocks/response-block/components/ResponseBody.vue.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyDownload.vue.d.ts +2 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyDownload.vue.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyInfo.vue.d.ts +3 -2
- package/dist/v2/blocks/response-block/components/ResponseBodyInfo.vue.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.d.ts +2 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue.d.ts +2 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue.js +2 -2
- package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue2.js +19 -19
- package/dist/v2/blocks/response-block/components/ResponseBodyStreaming.vue.d.ts +2 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyStreaming.vue.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyToggle.vue.d.ts +2 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyToggle.vue.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyVirtual.vue.d.ts +2 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyVirtual.vue.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseCookies.vue.d.ts +2 -1
- package/dist/v2/blocks/response-block/components/ResponseCookies.vue.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.d.ts +2 -1
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue.d.ts +2 -1
- package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue.d.ts +2 -1
- package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +2 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue.d.ts +2 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/EnvironmentSelector.vue.d.ts +2 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/EnvironmentSelector.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts +2 -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 +26 -26
- package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.d.ts +2 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +2 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.d.ts +2 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.d.ts +2 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts +2 -1
- 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/RequestAuthDataTableInput.vue.d.ts +8 -6
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +2 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +1 -1
- package/dist/v2/components/callout/Callout.vue.d.ts +18 -0
- package/dist/v2/components/callout/Callout.vue.d.ts.map +1 -0
- package/dist/v2/components/callout/Callout.vue.js +7 -0
- package/dist/v2/components/callout/Callout.vue2.js +43 -0
- package/dist/v2/components/code-input/CodeInput.vue.d.ts +3 -2
- package/dist/v2/components/code-input/CodeInput.vue.d.ts.map +1 -1
- package/dist/v2/components/data-table/DataTable.vue.d.ts +3 -2
- package/dist/v2/components/data-table/DataTable.vue.d.ts.map +1 -1
- package/dist/v2/components/data-table/DataTableCell.vue.d.ts +5 -4
- package/dist/v2/components/data-table/DataTableCell.vue.d.ts.map +1 -1
- package/dist/v2/components/data-table/DataTableCheckbox.vue.d.ts +2 -1
- package/dist/v2/components/data-table/DataTableCheckbox.vue.d.ts.map +1 -1
- package/dist/v2/components/data-table/DataTableCheckbox.vue.js +8 -8
- package/dist/v2/components/data-table/DataTableHeader.vue.d.ts +5 -4
- package/dist/v2/components/data-table/DataTableHeader.vue.d.ts.map +1 -1
- package/dist/v2/components/data-table/DataTableInput.vue.d.ts +7 -6
- package/dist/v2/components/data-table/DataTableInput.vue.d.ts.map +1 -1
- package/dist/v2/components/data-table/DataTableInputSelect.vue.d.ts +2 -1
- package/dist/v2/components/data-table/DataTableInputSelect.vue.d.ts.map +1 -1
- package/dist/v2/components/data-table/DataTableRow.vue.d.ts +3 -2
- package/dist/v2/components/data-table/DataTableRow.vue.d.ts.map +1 -1
- package/dist/v2/components/data-table/DataTableText.vue.d.ts +5 -4
- package/dist/v2/components/data-table/DataTableText.vue.d.ts.map +1 -1
- package/dist/v2/components/forms/ConfirmationForm.vue.d.ts +3 -2
- package/dist/v2/components/forms/ConfirmationForm.vue.d.ts.map +1 -1
- package/dist/v2/components/layout/CollapsibleSection.vue.d.ts +3 -2
- package/dist/v2/components/layout/CollapsibleSection.vue.d.ts.map +1 -1
- package/dist/v2/components/layout/ValueEmitter.vue.d.ts +15 -10
- package/dist/v2/components/layout/ValueEmitter.vue.d.ts.map +1 -1
- package/dist/v2/components/modals/DeleteModal.vue.d.ts +2 -1
- package/dist/v2/components/modals/DeleteModal.vue.d.ts.map +1 -1
- package/dist/v2/components/modals/ModalClientContainer.spec.d.ts +2 -0
- package/dist/v2/components/modals/ModalClientContainer.spec.d.ts.map +1 -0
- package/dist/v2/components/modals/ModalClientContainer.vue.d.ts +24 -0
- package/dist/v2/components/modals/ModalClientContainer.vue.d.ts.map +1 -0
- package/dist/v2/components/modals/ModalClientContainer.vue.js +7 -0
- package/dist/v2/components/modals/ModalClientContainer.vue2.js +57 -0
- package/dist/v2/components/resize/Resize.vue.d.ts +3 -2
- package/dist/v2/components/resize/Resize.vue.d.ts.map +1 -1
- package/dist/v2/components/server/ServerDropdown.vue.d.ts +2 -1
- package/dist/v2/components/server/ServerDropdown.vue.d.ts.map +1 -1
- package/dist/v2/components/server/ServerDropdownItem.vue.d.ts +2 -1
- package/dist/v2/components/server/ServerDropdownItem.vue.d.ts.map +1 -1
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts +5 -3
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/v2/components/sidebar/Sidebar.vue.js +40 -41
- package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts +3 -2
- package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts.map +1 -1
- package/dist/v2/components/sidebar/SidebarToggle.vue.d.ts +4 -3
- package/dist/v2/components/sidebar/SidebarToggle.vue.d.ts.map +1 -1
- package/dist/v2/features/app/App.vue.d.ts +5 -4
- package/dist/v2/features/app/App.vue.d.ts.map +1 -1
- package/dist/v2/features/app/App.vue.js +84 -89
- package/dist/v2/features/app/app-events.d.ts +1 -1
- package/dist/v2/features/app/app-events.d.ts.map +1 -1
- package/dist/v2/features/app/app-events.js +10 -10
- package/dist/v2/features/app/app-state.d.ts +36 -87
- package/dist/v2/features/app/app-state.d.ts.map +1 -1
- package/dist/v2/features/app/app-state.js +339 -330
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts +5 -3
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
- package/dist/v2/features/app/components/CreateWorkspaceModal.vue.d.ts +2 -1
- package/dist/v2/features/app/components/CreateWorkspaceModal.vue.d.ts.map +1 -1
- package/dist/v2/features/app/components/DesktopTab.vue.d.ts +2 -1
- package/dist/v2/features/app/components/DesktopTab.vue.d.ts.map +1 -1
- package/dist/v2/features/app/components/DesktopTabs.vue.d.ts +2 -1
- package/dist/v2/features/app/components/DesktopTabs.vue.d.ts.map +1 -1
- package/dist/v2/features/app/components/DesktopTabs.vue.js +1 -1
- package/dist/v2/features/app/components/DownloadAppButton.vue.d.ts +2 -1
- package/dist/v2/features/app/components/DownloadAppButton.vue.d.ts.map +1 -1
- package/dist/v2/features/app/components/SidebarItemMenu.vue.d.ts +2 -1
- package/dist/v2/features/app/components/SidebarItemMenu.vue.d.ts.map +1 -1
- package/dist/v2/features/app/components/SplashScreen.vue.d.ts +2 -1
- package/dist/v2/features/app/components/SplashScreen.vue.d.ts.map +1 -1
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts +2 -2
- 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 +9 -9
- package/dist/v2/features/app/helpers/get-route-param.d.ts +7 -0
- package/dist/v2/features/app/helpers/get-route-param.d.ts.map +1 -0
- package/dist/v2/features/app/helpers/get-route-param.js +9 -0
- package/dist/v2/features/app/index.d.ts +1 -1
- package/dist/v2/features/app/index.d.ts.map +1 -1
- package/dist/v2/features/app/index.js +12 -12
- package/dist/v2/features/collection/DocumentCollection.vue.d.ts +2 -1
- package/dist/v2/features/collection/DocumentCollection.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/DocumentCollection.vue.js +72 -65
- package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts +2 -1
- package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Authentication.vue.d.ts +2 -1
- package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Cookies.vue.d.ts +2 -1
- package/dist/v2/features/collection/components/Cookies.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Environment.vue.d.ts +2 -1
- package/dist/v2/features/collection/components/Environment.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Form.vue.d.ts +5 -4
- package/dist/v2/features/collection/components/Form.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/LabelInput.vue.d.ts +4 -3
- package/dist/v2/features/collection/components/LabelInput.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Overview.vue.d.ts +2 -1
- package/dist/v2/features/collection/components/Overview.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Servers.vue.d.ts +2 -1
- package/dist/v2/features/collection/components/Servers.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Settings.vue.d.ts +2 -1
- package/dist/v2/features/collection/components/Settings.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Tabs.vue.d.ts +2 -1
- package/dist/v2/features/collection/components/Tabs.vue.d.ts.map +1 -1
- package/dist/v2/features/command-palette/TheCommandPalette.vue.d.ts +3 -2
- package/dist/v2/features/command-palette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/v2/features/command-palette/components/CommandActionForm.vue.d.ts +3 -2
- package/dist/v2/features/command-palette/components/CommandActionForm.vue.d.ts.map +1 -1
- package/dist/v2/features/command-palette/components/CommandActionInput.vue.d.ts +3 -2
- package/dist/v2/features/command-palette/components/CommandActionInput.vue.d.ts.map +1 -1
- package/dist/v2/features/command-palette/components/CommandPaletteDocument.vue.d.ts +3 -2
- package/dist/v2/features/command-palette/components/CommandPaletteDocument.vue.d.ts.map +1 -1
- package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.d.ts +3 -2
- package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.d.ts.map +1 -1
- package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.d.ts +31 -3
- package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.d.ts.map +1 -1
- package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.js +110 -106
- package/dist/v2/features/command-palette/components/CommandPaletteImportCurl.vue.d.ts +3 -2
- package/dist/v2/features/command-palette/components/CommandPaletteImportCurl.vue.d.ts.map +1 -1
- package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.d.ts +3 -2
- package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.d.ts.map +1 -1
- package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.d.ts +3 -2
- package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.d.ts.map +1 -1
- package/dist/v2/features/command-palette/components/WatchModeToggle.vue.d.ts +3 -2
- package/dist/v2/features/command-palette/components/WatchModeToggle.vue.d.ts.map +1 -1
- package/dist/v2/features/command-palette/helpers/load-document-from-source.d.ts +5 -1
- package/dist/v2/features/command-palette/helpers/load-document-from-source.d.ts.map +1 -1
- package/dist/v2/features/command-palette/helpers/load-document-from-source.js +41 -23
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts +41 -8
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts.map +1 -1
- package/dist/v2/features/command-palette/index.d.ts +1 -2
- package/dist/v2/features/command-palette/index.d.ts.map +1 -1
- package/dist/v2/features/command-palette/index.js +4 -6
- package/dist/v2/features/environments/EnvironmentsList.vue.d.ts +2 -1
- package/dist/v2/features/environments/EnvironmentsList.vue.d.ts.map +1 -1
- package/dist/v2/features/environments/components/Environment.vue.d.ts +2 -1
- package/dist/v2/features/environments/components/Environment.vue.d.ts.map +1 -1
- package/dist/v2/features/environments/components/EnvironmentColors.vue.d.ts +2 -1
- package/dist/v2/features/environments/components/EnvironmentColors.vue.d.ts.map +1 -1
- package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.d.ts +2 -1
- package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.d.ts.map +1 -1
- package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.d.ts +2 -1
- package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.d.ts.map +1 -1
- package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.d.ts +2 -1
- package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.d.ts.map +1 -1
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.d.ts +2 -1
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.d.ts.map +1 -1
- package/dist/v2/features/global-cookies/components/CookiesTable.vue.d.ts +2 -1
- package/dist/v2/features/global-cookies/components/CookiesTable.vue.d.ts.map +1 -1
- package/dist/v2/features/modal/Modal.vue.d.ts +3 -2
- package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
- package/dist/v2/features/modal/Modal.vue.js +120 -5
- package/dist/v2/features/modal/Modal.vue2.js +2 -147
- package/dist/v2/features/modal/helpers/create-api-client-modal.js +12 -12
- package/dist/v2/features/modal/modal-events.d.ts.map +1 -1
- package/dist/v2/features/modal/modal-events.js +33 -20
- package/dist/v2/features/operation/Operation.vue.d.ts +3 -2
- package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
- package/dist/v2/features/operation/Operation.vue.js +1 -1
- package/dist/v2/features/settings/CollectionSettings.vue.d.ts +2 -1
- package/dist/v2/features/settings/CollectionSettings.vue.d.ts.map +1 -1
- package/dist/v2/features/settings/DocumentSettings.vue.d.ts +2 -1
- package/dist/v2/features/settings/DocumentSettings.vue.d.ts.map +1 -1
- package/dist/v2/features/settings/components/Appearance.vue.d.ts +2 -1
- package/dist/v2/features/settings/components/Appearance.vue.d.ts.map +1 -1
- package/dist/v2/features/settings/components/Section.vue.d.ts +3 -2
- package/dist/v2/features/settings/components/Section.vue.d.ts.map +1 -1
- package/dist/views/Collection/Collection.vue.d.ts +2 -1
- package/dist/views/Collection/Collection.vue.d.ts.map +1 -1
- package/dist/views/Collection/CollectionAuthentication.vue.d.ts +2 -1
- package/dist/views/Collection/CollectionAuthentication.vue.d.ts.map +1 -1
- package/dist/views/Collection/CollectionCookies.vue.d.ts +2 -1
- package/dist/views/Collection/CollectionCookies.vue.d.ts.map +1 -1
- package/dist/views/Collection/CollectionEnvironment.vue.d.ts +2 -1
- package/dist/views/Collection/CollectionEnvironment.vue.d.ts.map +1 -1
- package/dist/views/Collection/CollectionInfoForm.vue.d.ts +2 -1
- package/dist/views/Collection/CollectionInfoForm.vue.d.ts.map +1 -1
- package/dist/views/Collection/CollectionNavigation.vue.d.ts +2 -1
- package/dist/views/Collection/CollectionNavigation.vue.d.ts.map +1 -1
- package/dist/views/Collection/CollectionOverview.vue.d.ts +2 -1
- package/dist/views/Collection/CollectionOverview.vue.d.ts.map +1 -1
- package/dist/views/Collection/CollectionScripts.vue.d.ts +2 -1
- package/dist/views/Collection/CollectionScripts.vue.d.ts.map +1 -1
- package/dist/views/Collection/CollectionServerForm.vue.d.ts +2 -1
- package/dist/views/Collection/CollectionServerForm.vue.d.ts.map +1 -1
- package/dist/views/Collection/CollectionServers.vue.d.ts +2 -1
- package/dist/views/Collection/CollectionServers.vue.d.ts.map +1 -1
- package/dist/views/Collection/CollectionSettings.vue.d.ts +2 -1
- package/dist/views/Collection/CollectionSettings.vue.d.ts.map +1 -1
- package/dist/views/Collection/CollectionSync.vue.d.ts +2 -1
- package/dist/views/Collection/CollectionSync.vue.d.ts.map +1 -1
- package/dist/views/Collection/components/EnvironmentForm.vue.d.ts +2 -1
- package/dist/views/Collection/components/EnvironmentForm.vue.d.ts.map +1 -1
- package/dist/views/Collection/components/MarkdownInput.vue.d.ts +2 -1
- package/dist/views/Collection/components/MarkdownInput.vue.d.ts.map +1 -1
- package/dist/views/Components/CodeSnippet/CodeSnippet.vue.d.ts +2 -1
- package/dist/views/Components/CodeSnippet/CodeSnippet.vue.d.ts.map +1 -1
- package/dist/views/Cookies/CookieForm.vue.d.ts +2 -1
- package/dist/views/Cookies/CookieForm.vue.d.ts.map +1 -1
- package/dist/views/Cookies/CookieModal.vue.d.ts +2 -1
- package/dist/views/Cookies/CookieModal.vue.d.ts.map +1 -1
- package/dist/views/Cookies/CookieRaw.vue.d.ts +2 -1
- package/dist/views/Cookies/CookieRaw.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue.d.ts +2 -1
- package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
- package/dist/views/Environment/Environment.vue.d.ts +2 -1
- package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentColorModal.vue.d.ts +2 -1
- package/dist/views/Environment/EnvironmentColorModal.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentColors.vue.d.ts +2 -1
- package/dist/views/Environment/EnvironmentColors.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentModal.vue.d.ts +2 -1
- package/dist/views/Environment/EnvironmentModal.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts +2 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
- package/dist/views/Request/Request.vue.d.ts +2 -1
- package/dist/views/Request/Request.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestRoot.vue.d.ts +2 -1
- package/dist/views/Request/RequestRoot.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestRoot.vue.js +2 -2
- package/dist/views/Request/RequestRoot.vue2.js +10 -10
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.d.ts +2 -1
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts +3 -2
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts +2 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts +3 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts +3 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts +6 -5
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts +3 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts +2 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts +2 -1
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts +2 -1
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts +2 -1
- package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts +2 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +33 -33
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +2 -1
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts +2 -1
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebar.vue.d.ts +2 -1
- package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.d.ts +3 -2
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
- package/dist/views/Request/RequestSidebarItem.vue2.js +4 -4
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts +2 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSubpageHeader.vue.d.ts +2 -1
- package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/RequestHeaders.vue.d.ts +2 -1
- package/dist/views/Request/ResponseSection/RequestHeaders.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts +2 -1
- package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.d.ts +2 -1
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyInfo.vue.d.ts +3 -2
- package/dist/views/Request/ResponseSection/ResponseBodyInfo.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.d.ts +2 -1
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts +2 -1
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue2.js +24 -23
- package/dist/views/Request/ResponseSection/ResponseBodyStreaming.vue.d.ts +2 -1
- package/dist/views/Request/ResponseSection/ResponseBodyStreaming.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.d.ts +2 -1
- package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.d.ts +2 -1
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseCookies.vue.d.ts +2 -1
- package/dist/views/Request/ResponseSection/ResponseCookies.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts +2 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.d.ts +2 -1
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.d.ts +2 -1
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.d.ts +2 -1
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts +2 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +25 -25
- package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts +2 -1
- package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
- package/dist/views/Settings/Settings.vue.d.ts +2 -1
- package/dist/views/Settings/Settings.vue.d.ts.map +1 -1
- package/dist/views/Settings/SettingsGeneral.vue.d.ts +2 -1
- package/dist/views/Settings/SettingsGeneral.vue.d.ts.map +1 -1
- package/dist/views/Settings/components/SettingsAppearance.vue.d.ts +2 -1
- package/dist/views/Settings/components/SettingsAppearance.vue.d.ts.map +1 -1
- package/dist/views/Settings/components/SettingsSection.vue.d.ts +3 -2
- package/dist/views/Settings/components/SettingsSection.vue.d.ts.map +1 -1
- package/package.json +13 -13
- package/dist/v2/features/app/components/WebTopNav.vue.d.ts +0 -41
- package/dist/v2/features/app/components/WebTopNav.vue.d.ts.map +0 -1
- package/dist/v2/features/app/components/WebTopNav.vue.js +0 -27
- package/dist/v2/features/app/components/WebTopNav.vue2.js +0 -4
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
type
|
|
1
|
+
type __VLS_ModelProps = {
|
|
2
2
|
modelValue: boolean;
|
|
3
3
|
};
|
|
4
|
-
declare const
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
5
5
|
"update:modelValue": (value: boolean) => any;
|
|
6
|
-
}, string, import("vue").PublicProps, Readonly<
|
|
6
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
7
7
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
8
8
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
9
10
|
export default _default;
|
|
10
11
|
//# sourceMappingURL=SidebarToggle.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarToggle.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/sidebar/SidebarToggle.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SidebarToggle.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/sidebar/SidebarToggle.vue"],"names":[],"mappings":"AAgDA,KAAK,gBAAgB,GAAG;IACxB,UAAU,EAAE,OAAO,CAAC;CACnB,CAAC;AAkFF,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { type ModalState } from '@scalar/components';
|
|
2
|
+
import type { CommandPaletteState } from '../../../v2/features/command-palette/hooks/use-command-palette-state.js';
|
|
2
3
|
import type { ClientPlugin } from '../../../v2/helpers/plugins.js';
|
|
3
4
|
import type { ClientLayout } from '../../../v2/types/layout';
|
|
4
|
-
import type { CommandPaletteState } from '../command-palette/hooks/use-command-palette-state.js';
|
|
5
5
|
import { type AppState } from './app-state.js';
|
|
6
6
|
/**
|
|
7
7
|
* Main entry point for the API client for electron and web.
|
|
8
8
|
*
|
|
9
9
|
* This component handles all events and store business logic for the application.
|
|
10
10
|
*/
|
|
11
|
-
declare const _default:
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
13
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
12
14
|
layout: Exclude<ClientLayout, "modal">;
|
|
13
15
|
plugins?: ClientPlugin[];
|
|
14
16
|
getAppState: () => AppState;
|
|
@@ -25,7 +27,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
25
27
|
* Slot for customizing the actions section of the sidebar menu.
|
|
26
28
|
* This slot is used to render custom actions or components within the actions section.
|
|
27
29
|
*/
|
|
28
|
-
'sidebar-menu-actions':
|
|
30
|
+
'sidebar-menu-actions': () => unknown;
|
|
29
31
|
/**
|
|
30
32
|
* Slot for customizing the create workspace modal.
|
|
31
33
|
* This slot is used to render custom actions or components within the create workspace modal.
|
|
@@ -34,7 +36,6 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
34
36
|
state: ModalState;
|
|
35
37
|
}) => unknown;
|
|
36
38
|
}>;
|
|
37
|
-
export default _default;
|
|
38
39
|
type __VLS_WithSlots<T, S> = T & {
|
|
39
40
|
new (): {
|
|
40
41
|
$slots: S;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"App.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/app/App.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"App.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/app/App.vue"],"names":[],"mappings":"AAqPA,OAAO,EAGL,KAAK,UAAU,EAChB,MAAM,oBAAoB,CAAA;AAY3B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,+DAA+D,CAAA;AAExG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAGxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,aAAa,CAAA;AAM3C;;;;GAIG;wBACkB,OAAO,YAAY;AAAxC,wBAAyC;AAGzC,QAAA,MAAM,YAAY;YAER,OAAO,CAAC,YAAY,EAAE,OAAO,CAAC;cAC5B,YAAY,EAAE;iBACX,MAAM,QAAQ;4BACH,MAAM,mBAAmB;;;;YAHzC,OAAO,CAAC,YAAY,EAAE,OAAO,CAAC;cAC5B,YAAY,EAAE;iBACX,MAAM,QAAQ;4BACH,MAAM,mBAAmB;;IAWjD;;;OAGG;4BACqB,MAAM,OAAO;IACrC;;;OAGG;yBACkB,CAAC,OAAO,EAAE;QAAE,KAAK,EAAE,UAAU,CAAA;KAAE,KAAK,OAAO;EAiV9D,CAAC;AACL,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -1,25 +1,24 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useModal as
|
|
3
|
-
import { getThemeStyles as
|
|
4
|
-
import { ScalarToasts as
|
|
5
|
-
import { extensions as
|
|
6
|
-
import { RouterView as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { groupWorkspacesByTeam as U } from "./helpers/group-workspaces.js";
|
|
1
|
+
import { defineComponent as y, computed as p, createBlock as d, openBlock as i, unref as t, withCtx as m, createElementVNode as l, createVNode as r, createElementBlock as u, renderSlot as v, createCommentVNode as k, normalizeProps as T, guardReactiveProps as W } from "vue";
|
|
2
|
+
import { useModal as x, ScalarTeleportRoot as g } from "@scalar/components";
|
|
3
|
+
import { getThemeStyles as B } from "@scalar/themes";
|
|
4
|
+
import { ScalarToasts as C } from "@scalar/use-toasts";
|
|
5
|
+
import { extensions as _ } from "@scalar/workspace-store/schemas/extensions";
|
|
6
|
+
import { RouterView as E } from "vue-router";
|
|
7
|
+
import A from "./components/CreateWorkspaceModal.vue.js";
|
|
8
|
+
import O from "./components/SplashScreen.vue.js";
|
|
10
9
|
import { useDocumentWatcher as M } from "./hooks/use-document-watcher.js";
|
|
11
|
-
import
|
|
10
|
+
import U from "../command-palette/TheCommandPalette.vue.js";
|
|
12
11
|
import { useColorMode as D } from "../../hooks/use-color-mode.js";
|
|
13
|
-
import { useGlobalHotKeys as
|
|
12
|
+
import { useGlobalHotKeys as I } from "../../hooks/use-global-hot-keys.js";
|
|
14
13
|
import N from "./components/AppSidebar.vue.js";
|
|
15
|
-
import
|
|
16
|
-
import
|
|
14
|
+
import P from "./components/DesktopTabs.vue.js";
|
|
15
|
+
import $ from "./components/DownloadAppButton.vue.js";
|
|
17
16
|
import { mergeSecurity as H } from "../../blocks/scalar-auth-selector-block/helpers/merge-security.js";
|
|
18
|
-
const
|
|
17
|
+
const L = ["innerHTML"], V = { key: 0 }, F = { class: "flex h-dvh w-dvw flex-1 flex-col" }, R = { class: "flex min-h-0 flex-1 flex-row" }, G = { class: "flex flex-1 flex-col" }, j = {
|
|
19
18
|
key: 0,
|
|
20
|
-
class: "flex
|
|
21
|
-
},
|
|
22
|
-
...
|
|
19
|
+
class: "flex h-12 items-center justify-end border-b p-2"
|
|
20
|
+
}, z = { class: "bg-b-1 min-h-0 flex-1" }, K = { key: 1 }, q = {}, de = /* @__PURE__ */ y({
|
|
21
|
+
...q,
|
|
23
22
|
__name: "App",
|
|
24
23
|
props: {
|
|
25
24
|
layout: {},
|
|
@@ -29,28 +28,28 @@ const F = ["innerHTML"], V = {
|
|
|
29
28
|
},
|
|
30
29
|
setup(s, { expose: f }) {
|
|
31
30
|
f({
|
|
32
|
-
openCreateWorkspace: () =>
|
|
31
|
+
openCreateWorkspace: () => c.show()
|
|
33
32
|
});
|
|
34
|
-
const e = s.getAppState(),
|
|
35
|
-
typeof window < "u" && (window.dataDumpWorkspace = () => e.store.value, window.dumpAppState = () => e),
|
|
36
|
-
documentName: () => e.store.value?.workspace[
|
|
33
|
+
const e = s.getAppState(), w = s.getCommandPaletteState();
|
|
34
|
+
typeof window < "u" && (window.dataDumpWorkspace = () => e.store.value, window.dumpAppState = () => e), I(e.eventBus, s.layout), M({
|
|
35
|
+
documentName: () => e.store.value?.workspace[_.workspace.activeDocument],
|
|
37
36
|
store: e.store,
|
|
38
37
|
initialTimeout: 5e3
|
|
39
|
-
});
|
|
40
|
-
const
|
|
38
|
+
}), D({ workspaceStore: e.store });
|
|
39
|
+
const S = p(() => {
|
|
41
40
|
if (e.store.value === null)
|
|
42
41
|
return "";
|
|
43
|
-
const
|
|
44
|
-
return
|
|
45
|
-
}),
|
|
46
|
-
if (!
|
|
42
|
+
const a = e.store.value.workspace["x-scalar-theme"];
|
|
43
|
+
return a ? `<style>${B(a)}</style>` : "";
|
|
44
|
+
}), h = (a) => {
|
|
45
|
+
if (!a)
|
|
47
46
|
return;
|
|
48
|
-
const
|
|
49
|
-
(
|
|
47
|
+
const o = e.workspace.workspaceList.value?.find(
|
|
48
|
+
(n) => n.id === a
|
|
50
49
|
);
|
|
51
|
-
|
|
52
|
-
},
|
|
53
|
-
const
|
|
50
|
+
o && e.workspace.navigateToWorkspace(o.namespace, o.slug);
|
|
51
|
+
}, c = x(), b = p(() => {
|
|
52
|
+
const a = e.store.value?.auth ? H(
|
|
54
53
|
e.document.value?.components?.securitySchemes ?? {},
|
|
55
54
|
{},
|
|
56
55
|
e.store.value.auth,
|
|
@@ -68,71 +67,67 @@ const F = ["innerHTML"], V = {
|
|
|
68
67
|
workspaceStore: e.store.value,
|
|
69
68
|
activeWorkspace: e.workspace.activeWorkspace.value,
|
|
70
69
|
plugins: s.plugins,
|
|
71
|
-
securitySchemes:
|
|
70
|
+
securitySchemes: a
|
|
72
71
|
};
|
|
73
|
-
})
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
t(e).store.value !== null && t(e).workspace.activeWorkspace.value !== null && !t(e).loading.value ? (l(), k("main", V, [
|
|
84
|
-
s.layout === "desktop" ? (l(), u(L, {
|
|
85
|
-
key: 0,
|
|
86
|
-
activeTabIndex: t(e).tabs.activeTabIndex.value,
|
|
87
|
-
eventBus: t(e).eventBus,
|
|
88
|
-
tabs: t(e).tabs.state.value
|
|
89
|
-
}, null, 8, ["activeTabIndex", "eventBus", "tabs"])) : (l(), u(P, {
|
|
90
|
-
key: 1,
|
|
91
|
-
activeWorkspace: t(e).workspace.activeWorkspace.value,
|
|
92
|
-
workspaces: d.value,
|
|
93
|
-
"onCreate:workspace": a[0] || (a[0] = (r) => t(i).show()),
|
|
94
|
-
"onSelect:workspace": m
|
|
95
|
-
}, null, 8, ["activeWorkspace", "workspaces"])),
|
|
96
|
-
p("div", R, [
|
|
97
|
-
n(N, {
|
|
98
|
-
isSidebarOpen: t(e).sidebar.isOpen.value,
|
|
99
|
-
"onUpdate:isSidebarOpen": a[1] || (a[1] = (r) => t(e).sidebar.isOpen.value = r),
|
|
100
|
-
activeWorkspace: t(e).workspace.activeWorkspace.value,
|
|
72
|
+
});
|
|
73
|
+
return (a, o) => (i(), d(t(g), null, {
|
|
74
|
+
default: m(() => [
|
|
75
|
+
l("div", { innerHTML: S.value }, null, 8, L),
|
|
76
|
+
r(t(C)),
|
|
77
|
+
t(e).store.value !== null && t(e).workspace.activeWorkspace.value !== null && !t(e).loading.value ? (i(), u("main", V, [
|
|
78
|
+
l("div", F, [
|
|
79
|
+
s.layout === "desktop" ? (i(), d(P, {
|
|
80
|
+
key: 0,
|
|
81
|
+
activeTabIndex: t(e).tabs.activeTabIndex.value,
|
|
101
82
|
eventBus: t(e).eventBus,
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
83
|
+
tabs: t(e).tabs.state.value
|
|
84
|
+
}, null, 8, ["activeTabIndex", "eventBus", "tabs"])) : k("", !0),
|
|
85
|
+
l("div", R, [
|
|
86
|
+
r(N, {
|
|
87
|
+
isSidebarOpen: t(e).sidebar.isOpen.value,
|
|
88
|
+
"onUpdate:isSidebarOpen": o[0] || (o[0] = (n) => t(e).sidebar.isOpen.value = n),
|
|
89
|
+
activeWorkspace: t(e).workspace.activeWorkspace.value,
|
|
90
|
+
eventBus: t(e).eventBus,
|
|
91
|
+
isWorkspaceOpen: t(e).workspace.isOpen.value,
|
|
92
|
+
layout: s.layout,
|
|
93
|
+
sidebarState: t(e).sidebar.state,
|
|
94
|
+
sidebarWidth: t(e).sidebar.width.value,
|
|
95
|
+
store: t(e).store.value,
|
|
96
|
+
workspaces: t(e).workspace.workspaceGroups.value,
|
|
97
|
+
"onClick:workspace": t(e).workspace.navigateToWorkspace,
|
|
98
|
+
"onCreate:workspace": o[1] || (o[1] = (n) => t(c).show()),
|
|
99
|
+
"onSelect:workspace": h,
|
|
100
|
+
onSelectItem: t(e).sidebar.handleSelectItem,
|
|
101
|
+
"onUpdate:sidebarWidth": t(e).sidebar.handleSidebarWidthUpdate
|
|
102
|
+
}, {
|
|
103
|
+
sidebarMenuActions: m(() => [
|
|
104
|
+
v(a.$slots, "sidebar-menu-actions")
|
|
105
|
+
]),
|
|
106
|
+
_: 3
|
|
107
|
+
}, 8, ["isSidebarOpen", "activeWorkspace", "eventBus", "isWorkspaceOpen", "layout", "sidebarState", "sidebarWidth", "store", "workspaces", "onClick:workspace", "onSelectItem", "onUpdate:sidebarWidth"]),
|
|
108
|
+
l("div", G, [
|
|
109
|
+
s.layout === "web" ? (i(), u("nav", j, [
|
|
110
|
+
r($)
|
|
111
|
+
])) : k("", !0),
|
|
112
|
+
l("div", z, [
|
|
113
|
+
r(t(E), T(W(b.value)), null, 16)
|
|
114
|
+
])
|
|
115
|
+
])
|
|
121
116
|
])
|
|
122
117
|
]),
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
state: t(
|
|
126
|
-
"onCreate:workspace":
|
|
118
|
+
v(a.$slots, "create-workspace", { state: t(c) }, () => [
|
|
119
|
+
r(A, {
|
|
120
|
+
state: t(c),
|
|
121
|
+
"onCreate:workspace": o[2] || (o[2] = (n) => t(e).workspace.create(n))
|
|
127
122
|
}, null, 8, ["state"])
|
|
128
123
|
]),
|
|
129
|
-
|
|
124
|
+
r(U, {
|
|
130
125
|
eventBus: t(e).eventBus,
|
|
131
|
-
paletteState: t(
|
|
126
|
+
paletteState: t(w),
|
|
132
127
|
workspaceStore: t(e).store.value
|
|
133
128
|
}, null, 8, ["eventBus", "paletteState", "workspaceStore"])
|
|
134
|
-
])) : (
|
|
135
|
-
|
|
129
|
+
])) : (i(), u("main", K, [
|
|
130
|
+
r(O)
|
|
136
131
|
]))
|
|
137
132
|
]),
|
|
138
133
|
_: 3
|
|
@@ -140,5 +135,5 @@ const F = ["innerHTML"], V = {
|
|
|
140
135
|
}
|
|
141
136
|
});
|
|
142
137
|
export {
|
|
143
|
-
|
|
138
|
+
de as default
|
|
144
139
|
};
|
|
@@ -5,7 +5,7 @@ import type { Router } from 'vue-router';
|
|
|
5
5
|
export declare function initializeAppEventHandlers({ eventBus, store, router, rebuildSidebar, navigateToCurrentTab, onSelectSidebarItem, onAfterExampleCreation, onCopyTabUrl, onToggleSidebar, }: {
|
|
6
6
|
eventBus: WorkspaceEventBus;
|
|
7
7
|
store: ShallowRef<WorkspaceStore | null>;
|
|
8
|
-
router:
|
|
8
|
+
router: Router;
|
|
9
9
|
rebuildSidebar: (documentName?: string) => void;
|
|
10
10
|
navigateToCurrentTab: () => Promise<void>;
|
|
11
11
|
onSelectSidebarItem: (id: string) => void;
|
|
@@ -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,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAC7F,OAAO,EAAE,KAAK,UAAU,EAAY,MAAM,KAAK,CAAA;AAC/C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AAIxC,wBAAgB,0BAA0B,CAAC,EACzC,QAAQ,EACR,KAAK,EACL,MAAM,EACN,cAAc,EACd,oBAAoB,EACpB,mBAAmB,EACnB,sBAAsB,EACtB,YAAY,EACZ,eAAe,GAChB,EAAE;IACD,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,KAAK,EAAE,UAAU,CAAC,cAAc,GAAG,IAAI,CAAC,CAAA;IACxC,MAAM,EAAE,
|
|
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,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAC7F,OAAO,EAAE,KAAK,UAAU,EAAY,MAAM,KAAK,CAAA;AAC/C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AAIxC,wBAAgB,0BAA0B,CAAC,EACzC,QAAQ,EACR,KAAK,EACL,MAAM,EACN,cAAc,EACd,oBAAoB,EACpB,mBAAmB,EACnB,sBAAsB,EACtB,YAAY,EACZ,eAAe,GAChB,EAAE;IACD,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,KAAK,EAAE,UAAU,CAAC,cAAc,GAAG,IAAI,CAAC,CAAA;IACxC,MAAM,EAAE,MAAM,CAAA;IACd,cAAc,EAAE,CAAC,YAAY,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IAC/C,oBAAoB,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;IACzC,mBAAmB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IACzC,sBAAsB,EAAE,CAAC,CAAC,EAAE,oBAAoB,KAAK,IAAI,CAAA;IACzD,YAAY,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IACxC,eAAe,EAAE,MAAM,IAAI,CAAA;CAC5B,QAmNA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
import { initializeWorkspaceEventHandlers as
|
|
1
|
+
import { computed as E } from "vue";
|
|
2
|
+
import { initializeWorkspaceEventHandlers as h } from "../../workspace-events.js";
|
|
3
3
|
function N({
|
|
4
4
|
eventBus: m,
|
|
5
5
|
store: r,
|
|
@@ -11,13 +11,13 @@ function N({
|
|
|
11
11
|
onCopyTabUrl: i,
|
|
12
12
|
onToggleSidebar: f
|
|
13
13
|
}) {
|
|
14
|
-
const u =
|
|
14
|
+
const u = E(() => o.currentRoute?.value), l = ({
|
|
15
15
|
documentName: e,
|
|
16
16
|
path: a,
|
|
17
17
|
method: t,
|
|
18
18
|
exampleName: n
|
|
19
19
|
}) => !(e !== void 0 && e !== u.value?.params.documentSlug || a !== void 0 && encodeURIComponent(a) !== u.value?.params.pathEncoded || t !== void 0 && t !== u.value?.params.method || n !== void 0 && n !== u.value?.params.exampleName);
|
|
20
|
-
|
|
20
|
+
h({
|
|
21
21
|
eventBus: m,
|
|
22
22
|
store: r,
|
|
23
23
|
hooks: {
|
|
@@ -26,7 +26,7 @@ function N({
|
|
|
26
26
|
//------------------------------------------------------------------------------------
|
|
27
27
|
"document:delete:document": {
|
|
28
28
|
onAfterExecute: async (e) => {
|
|
29
|
-
u?.value?.params.documentSlug === e.name && await o.
|
|
29
|
+
u?.value?.params.documentSlug === e.name && await o.push({
|
|
30
30
|
name: "workspace.environment"
|
|
31
31
|
});
|
|
32
32
|
}
|
|
@@ -38,7 +38,7 @@ function N({
|
|
|
38
38
|
onBeforeExecute: (e) => ({
|
|
39
39
|
...e,
|
|
40
40
|
callback: async (a) => {
|
|
41
|
-
a === "success" && (await o.
|
|
41
|
+
a === "success" && (await o.replace({
|
|
42
42
|
name: "example",
|
|
43
43
|
params: {
|
|
44
44
|
method: e.payload.method,
|
|
@@ -69,7 +69,7 @@ function N({
|
|
|
69
69
|
documentName: a,
|
|
70
70
|
path: t,
|
|
71
71
|
method: n
|
|
72
|
-
}) && await o.
|
|
72
|
+
}) && await o.replace({
|
|
73
73
|
name: "document.overview",
|
|
74
74
|
params: {
|
|
75
75
|
documentSlug: a
|
|
@@ -89,7 +89,7 @@ function N({
|
|
|
89
89
|
path: t,
|
|
90
90
|
method: n,
|
|
91
91
|
exampleName: x
|
|
92
|
-
}) && await o.
|
|
92
|
+
}) && await o.replace({
|
|
93
93
|
name: "example",
|
|
94
94
|
params: {
|
|
95
95
|
pathEncoded: encodeURIComponent(t),
|
|
@@ -143,8 +143,8 @@ function N({
|
|
|
143
143
|
onAfterExecute: c
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
|
-
}), m.on("scroll-to:nav-item", ({ id: e }) => d(e)), m.on("ui:toggle:sidebar", f), m.on("ui:route:page", ({ name: e }) => o.
|
|
147
|
-
const t = await o.
|
|
146
|
+
}), m.on("scroll-to:nav-item", ({ id: e }) => d(e)), m.on("ui:toggle:sidebar", f), m.on("ui:route:page", ({ name: e }) => o.push({ name: e })), m.on("ui:route:example", async ({ exampleName: e, callback: a }) => {
|
|
147
|
+
const t = await o.replace({
|
|
148
148
|
name: "example",
|
|
149
149
|
params: {
|
|
150
150
|
exampleName: e
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import type { ScalarListboxOption } from '@scalar/components';
|
|
1
|
+
import type { ScalarListboxOption, WorkspaceGroup } from '@scalar/components';
|
|
2
2
|
import type { HttpMethod } from '@scalar/helpers/http/http-methods';
|
|
3
|
+
import type { LoaderPlugin } from '@scalar/json-magic/bundle';
|
|
4
|
+
import { createSidebarState } from '@scalar/sidebar';
|
|
3
5
|
import { type WorkspaceStore } from '@scalar/workspace-store/client';
|
|
4
6
|
import { type WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
5
7
|
import type { WorkspaceDocument } from '@scalar/workspace-store/schemas';
|
|
@@ -8,75 +10,6 @@ import type { Tab } from '@scalar/workspace-store/schemas/extensions/workspace/x
|
|
|
8
10
|
import type { TraversedEntry } from '@scalar/workspace-store/schemas/navigation';
|
|
9
11
|
import { type ComputedRef, type Ref, type ShallowRef } from 'vue';
|
|
10
12
|
import type { RouteLocationNormalizedGeneric, Router } from 'vue-router';
|
|
11
|
-
type WorkspaceOption = ScalarListboxOption & {
|
|
12
|
-
teamUid: string;
|
|
13
|
-
namespace: string;
|
|
14
|
-
slug: string;
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* Navigates to the overview page of the specified workspace.
|
|
18
|
-
* Updates the route based on the given namespace and slug.
|
|
19
|
-
*
|
|
20
|
-
* @param namespace - The workspace namespace.
|
|
21
|
-
* @param slug - The unique workspace slug (identifier).
|
|
22
|
-
*/
|
|
23
|
-
declare const navigateToWorkspace: (namespace?: string, slug?: string) => Promise<void>;
|
|
24
|
-
/**
|
|
25
|
-
* Creates a new workspace with the provided name.
|
|
26
|
-
* - Generates a unique slug for the workspace (uses the provided slug if it is unique, otherwise generates a unique slug).
|
|
27
|
-
* - Adds a default blank document ("drafts") to the workspace.
|
|
28
|
-
* - Persists the workspace and navigates to it.
|
|
29
|
-
*
|
|
30
|
-
* Example usage:
|
|
31
|
-
* await createWorkspace({ name: 'My Awesome API' })
|
|
32
|
-
* // -> Navigates to /workspace/my-awesome-api (if available)
|
|
33
|
-
*/
|
|
34
|
-
declare const createWorkspace: ({ teamUid, namespace, slug, name, }: {
|
|
35
|
-
teamUid?: string;
|
|
36
|
-
namespace?: string;
|
|
37
|
-
slug?: string;
|
|
38
|
-
name: string;
|
|
39
|
-
}) => Promise<{
|
|
40
|
-
name: string;
|
|
41
|
-
namespace: string;
|
|
42
|
-
slug: string;
|
|
43
|
-
teamUid: string;
|
|
44
|
-
} | undefined>;
|
|
45
|
-
declare const sidebarState: {
|
|
46
|
-
items: ComputedRef<TraversedEntry[]>;
|
|
47
|
-
index: ComputedRef<Map<string, TraversedEntry & {
|
|
48
|
-
parent?: TraversedEntry | undefined;
|
|
49
|
-
}>>;
|
|
50
|
-
selectedItems: import("vue").Ref<Record<string, boolean>, Record<string, boolean>>;
|
|
51
|
-
expandedItems: import("vue").Ref<Record<string, boolean>, Record<string, boolean>>;
|
|
52
|
-
selectedItem: import("vue").Ref<string | null, string | null>;
|
|
53
|
-
setSelected: (id: string | null) => void;
|
|
54
|
-
setExpanded: (id: string, value: boolean) => void;
|
|
55
|
-
isExpanded: (id: string) => boolean;
|
|
56
|
-
isSelected: (id: string) => boolean;
|
|
57
|
-
getEntryById: (id: string) => (TraversedEntry & {
|
|
58
|
-
parent?: TraversedEntry | undefined;
|
|
59
|
-
}) | undefined;
|
|
60
|
-
reset: () => void;
|
|
61
|
-
};
|
|
62
|
-
/**
|
|
63
|
-
* Looks up a sidebar entry by its unique API location.
|
|
64
|
-
* - First tries to find an entry matching all provided properties (including example).
|
|
65
|
-
* - If not found, falls back to matching only the operation (ignores example field).
|
|
66
|
-
* This allows resolving either examples, operations, or documents as appropriate.
|
|
67
|
-
*
|
|
68
|
-
* @param location - Object specifying the document name, path, method, and optional example name.
|
|
69
|
-
* @returns The matching sidebar entry, or undefined if none found.
|
|
70
|
-
*
|
|
71
|
-
* Example:
|
|
72
|
-
* const entry = getEntryByLocation({
|
|
73
|
-
* document: 'pets',
|
|
74
|
-
* path: '/pets',
|
|
75
|
-
* method: 'get',
|
|
76
|
-
* example: 'default',
|
|
77
|
-
* })
|
|
78
|
-
*/
|
|
79
|
-
declare const getEntryByLocation: GetEntryByLocation;
|
|
80
13
|
export type GetEntryByLocation = (location: {
|
|
81
14
|
document: string;
|
|
82
15
|
path?: string;
|
|
@@ -85,15 +18,11 @@ export type GetEntryByLocation = (location: {
|
|
|
85
18
|
}) => (TraversedEntry & {
|
|
86
19
|
parent?: TraversedEntry | undefined;
|
|
87
20
|
}) | undefined;
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
*/
|
|
94
|
-
declare const handleSelectItem: (id: string) => Promise<void | import("vue-router").NavigationFailure | undefined> | undefined;
|
|
95
|
-
/** Handler for sidebar width changes. */
|
|
96
|
-
declare const handleSidebarWidthUpdate: (width: number) => void | undefined;
|
|
21
|
+
type WorkspaceOption = ScalarListboxOption & {
|
|
22
|
+
teamUid: string;
|
|
23
|
+
namespace: string;
|
|
24
|
+
slug: string;
|
|
25
|
+
};
|
|
97
26
|
/** Defines the overall application state structure and its main feature modules */
|
|
98
27
|
export type AppState = {
|
|
99
28
|
/** The workspace store */
|
|
@@ -101,17 +30,17 @@ export type AppState = {
|
|
|
101
30
|
/** The sidebar management */
|
|
102
31
|
sidebar: {
|
|
103
32
|
/** The sidebar state */
|
|
104
|
-
state: typeof
|
|
33
|
+
state: ReturnType<typeof createSidebarState<TraversedEntry>>;
|
|
105
34
|
/** The width of the sidebar */
|
|
106
35
|
width: ComputedRef<number>;
|
|
107
36
|
/** Whether the sidebar is open */
|
|
108
37
|
isOpen: Ref<boolean>;
|
|
109
38
|
/** Handles the selection of an item in the sidebar */
|
|
110
|
-
handleSelectItem:
|
|
39
|
+
handleSelectItem: (id: string) => void;
|
|
111
40
|
/** Handles the width update of the sidebar */
|
|
112
|
-
handleSidebarWidthUpdate:
|
|
41
|
+
handleSidebarWidthUpdate: (width: number) => void;
|
|
113
42
|
/** Gets the entry by location */
|
|
114
|
-
getEntryByLocation:
|
|
43
|
+
getEntryByLocation: GetEntryByLocation;
|
|
115
44
|
};
|
|
116
45
|
/** The tabs management */
|
|
117
46
|
tabs: {
|
|
@@ -125,25 +54,40 @@ export type AppState = {
|
|
|
125
54
|
/** The workspace management */
|
|
126
55
|
workspace: {
|
|
127
56
|
/** Creates a new workspace and navigates to it */
|
|
128
|
-
create:
|
|
57
|
+
create: (payload: {
|
|
58
|
+
teamUid?: string;
|
|
59
|
+
namespace?: string;
|
|
60
|
+
slug?: string;
|
|
61
|
+
name: string;
|
|
62
|
+
}) => Promise<{
|
|
63
|
+
name: string;
|
|
64
|
+
namespace: string;
|
|
65
|
+
slug: string;
|
|
66
|
+
teamUid: string;
|
|
67
|
+
} | undefined>;
|
|
129
68
|
/** All workspace list */
|
|
130
69
|
workspaceList: Ref<WorkspaceOption[]>;
|
|
131
70
|
/** Filtered workspace list, based on the current teamUid */
|
|
132
71
|
filteredWorkspaceList: ComputedRef<WorkspaceOption[]>;
|
|
72
|
+
/**
|
|
73
|
+
* Groups workspaces into team and local categories for display in the workspace picker.
|
|
74
|
+
* Team workspaces are shown first (when not on local team), followed by local workspaces.
|
|
75
|
+
*/
|
|
76
|
+
workspaceGroups: ComputedRef<WorkspaceGroup[]>;
|
|
133
77
|
/** The currently active workspace */
|
|
134
78
|
activeWorkspace: ShallowRef<{
|
|
135
79
|
id: string;
|
|
136
80
|
label: string;
|
|
137
81
|
} | null>;
|
|
138
82
|
/** Navigates to the specified workspace */
|
|
139
|
-
navigateToWorkspace:
|
|
83
|
+
navigateToWorkspace: (namespace?: string, slug?: string) => Promise<void>;
|
|
140
84
|
/** Whether the workspace page is open */
|
|
141
85
|
isOpen: ComputedRef<boolean>;
|
|
142
86
|
};
|
|
143
87
|
/** The workspace event bus for handling workspace-level events */
|
|
144
88
|
eventBus: WorkspaceEventBus;
|
|
145
89
|
/** The router instance */
|
|
146
|
-
router:
|
|
90
|
+
router: Router;
|
|
147
91
|
/** The current route derived from the router */
|
|
148
92
|
currentRoute: Ref<RouteLocationNormalizedGeneric | null>;
|
|
149
93
|
/** Whether the workspace is currently syncing */
|
|
@@ -169,7 +113,12 @@ export type AppState = {
|
|
|
169
113
|
environment: ComputedRef<XScalarEnvironment>;
|
|
170
114
|
/** The currently active document */
|
|
171
115
|
document: ComputedRef<WorkspaceDocument | null>;
|
|
116
|
+
/** Whether the current color mode is dark */
|
|
117
|
+
isDarkMode: ComputedRef<boolean>;
|
|
172
118
|
};
|
|
173
|
-
export declare
|
|
119
|
+
export declare const createAppState: ({ router, fileLoader, }: {
|
|
120
|
+
router: Router;
|
|
121
|
+
fileLoader?: LoaderPlugin;
|
|
122
|
+
}) => Promise<AppState>;
|
|
174
123
|
export {};
|
|
175
124
|
//# sourceMappingURL=app-state.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-state.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/app/app-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;
|
|
1
|
+
{"version":3,"file":"app-state.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/app/app-state.ts"],"names":[],"mappings":"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"}
|