@scalar/api-client 2.11.0 → 2.12.0
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 +44 -0
- package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBar.vue.js +1 -1
- package/dist/components/AddressBar/AddressBar.vue2.js +35 -29
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +2 -2
- package/dist/hooks/useClientConfig.d.ts +3 -0
- package/dist/hooks/useClientConfig.d.ts.map +1 -1
- package/dist/layouts/App/create-api-client-app.d.ts +17 -17
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.d.ts +17 -17
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +18 -18
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/errors.d.ts +1 -0
- package/dist/libs/errors.d.ts.map +1 -1
- package/dist/libs/errors.js +2 -1
- package/dist/libs/find-request.d.ts +1 -1
- package/dist/libs/send-request/create-request-operation.d.ts +4 -4
- package/dist/libs/send-request/create-request-operation.d.ts.map +1 -1
- package/dist/libs/send-request/create-request-operation.js +60 -51
- package/dist/store/active-entities.d.ts +1 -1
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/collections.d.ts.map +1 -1
- package/dist/store/requests.d.ts +11 -11
- package/dist/store/security-schemes.d.ts.map +1 -1
- package/dist/store/store.d.ts +10 -10
- package/dist/store/store.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts +80 -22
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.js +51 -48
- package/dist/v2/blocks/operation-block/components/Header.vue.d.ts +3 -3
- package/dist/v2/blocks/operation-block/components/Header.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/components/Header.vue.js +2 -2
- package/dist/v2/blocks/operation-block/components/Header.vue2.js +32 -33
- package/dist/v2/blocks/{scalar-operation-block/components/OperationBlock.vue.d.ts → request-block/RequestBlock.vue.d.ts} +3 -3
- package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/RequestBlock.vue.js +7 -0
- package/dist/v2/blocks/request-block/RequestBlock.vue2.js +223 -0
- package/dist/v2/blocks/{scalar-operation-block/components/OperationBody.vue.d.ts → request-block/components/RequestBody.vue.d.ts} +1 -1
- package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/components/RequestBody.vue.js +7 -0
- package/dist/v2/blocks/{scalar-operation-block/components/OperationBody.vue2.js → request-block/components/RequestBody.vue2.js} +15 -15
- package/dist/v2/blocks/{scalar-operation-block/components/OperationParams.vue.d.ts → request-block/components/RequestParams.vue.d.ts} +1 -1
- package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts.map +1 -0
- package/dist/v2/blocks/{scalar-operation-block/components/OperationParams.vue.js → request-block/components/RequestParams.vue.js} +24 -24
- package/dist/v2/blocks/request-block/components/RequestParams.vue2.js +4 -0
- package/dist/v2/blocks/{scalar-operation-block/components/OperationTable.vue.d.ts → request-block/components/RequestTable.vue.d.ts} +2 -2
- package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/components/RequestTable.vue.js +7 -0
- package/dist/v2/blocks/{scalar-operation-block/components/OperationTable.vue2.js → request-block/components/RequestTable.vue2.js} +8 -8
- package/dist/v2/blocks/{scalar-operation-block/components/OperationTableRow.vue.d.ts → request-block/components/RequestTableRow.vue.d.ts} +1 -1
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -0
- package/dist/v2/blocks/{scalar-operation-block/components/OperationTableRow.vue.js → request-block/components/RequestTableRow.vue.js} +52 -53
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue2.js +4 -0
- package/dist/v2/blocks/{scalar-operation-block/components/OperationTableTooltip.vue.d.ts → request-block/components/RequestTableTooltip.vue.d.ts} +1 -1
- package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue.js +7 -0
- package/dist/v2/blocks/{scalar-operation-block/components/OperationTableTooltip.vue2.js → request-block/components/RequestTableTooltip.vue2.js} +7 -7
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts +24 -0
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.js +29 -0
- package/dist/v2/blocks/request-block/helpers/files.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/helpers/get-parameter-content.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/helpers/get-parameter-example.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/helpers/get-parameter-schema.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/helpers/get-request-body-example.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/helpers/group-by.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/helpers/validate-parameter.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/index.d.ts +2 -0
- package/dist/v2/blocks/request-block/index.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/index.js +4 -0
- package/dist/v2/blocks/{scalar-response-block/components → response-block}/ResponseBlock.vue.d.ts +3 -3
- package/dist/v2/blocks/response-block/ResponseBlock.vue.d.ts.map +1 -0
- package/dist/v2/blocks/response-block/ResponseBlock.vue.js +7 -0
- package/dist/v2/blocks/{scalar-response-block/components → response-block}/ResponseBlock.vue2.js +25 -25
- package/dist/v2/blocks/response-block/components/Headers.vue.d.ts.map +1 -0
- package/dist/v2/blocks/response-block/components/ResponseBody.vue.d.ts.map +1 -0
- package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBody.vue.js +2 -2
- package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBody.vue2.js +4 -4
- package/dist/v2/blocks/response-block/components/ResponseBodyDownload.vue.d.ts.map +1 -0
- package/dist/v2/blocks/response-block/components/ResponseBodyInfo.vue.d.ts.map +1 -0
- package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.d.ts.map +1 -0
- package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyPreview.vue.js +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue.d.ts.map +1 -0
- package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyRaw.vue.js +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyStreaming.vue.d.ts.map +1 -0
- package/dist/v2/blocks/response-block/components/ResponseBodyToggle.vue.d.ts.map +1 -0
- package/dist/v2/blocks/response-block/components/ResponseBodyVirtual.vue.d.ts.map +1 -0
- package/dist/v2/blocks/response-block/components/ResponseCookies.vue.d.ts.map +1 -0
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.d.ts.map +1 -0
- package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseEmpty.vue.js +2 -2
- package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue.d.ts.map +1 -0
- package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue.js +7 -0
- package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseMetaInformation.vue.d.ts +0 -1
- package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue.d.ts.map +1 -0
- package/dist/v2/blocks/response-block/helpers/extract-filename.d.ts.map +1 -0
- package/dist/v2/blocks/response-block/helpers/get-content-length.d.ts.map +1 -0
- package/dist/v2/blocks/response-block/helpers/media-types.d.ts.map +1 -0
- package/dist/v2/blocks/response-block/helpers/process-response-body.d.ts.map +1 -0
- package/dist/v2/blocks/response-block/index.d.ts +2 -0
- package/dist/v2/blocks/response-block/index.d.ts.map +1 -0
- package/dist/v2/blocks/response-block/index.js +4 -0
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +4 -3
- 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/AddressBar.vue.js +2 -2
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +68 -68
- package/dist/v2/components/code-input/CodeInput.vue.d.ts +1 -0
- package/dist/v2/components/code-input/CodeInput.vue.d.ts.map +1 -1
- package/dist/v2/components/code-input/CodeInput.vue.js +1 -1
- package/dist/v2/components/code-input/CodeInput.vue2.js +29 -28
- package/dist/v2/components/resize/Resize.vue.d.ts.map +1 -1
- package/dist/v2/components/resize/Resize.vue.js +2 -2
- package/dist/v2/components/server/ServerDropdown.vue.d.ts +5 -5
- package/dist/v2/components/server/ServerDropdown.vue.d.ts.map +1 -1
- package/dist/v2/components/server/ServerDropdown.vue.js +38 -43
- package/dist/v2/components/server/ServerDropdownItem.vue.d.ts +1 -1
- package/dist/v2/components/server/ServerDropdownItem.vue.d.ts.map +1 -1
- package/dist/v2/components/server/ServerDropdownItem.vue.js +2 -2
- package/dist/v2/components/server/ServerDropdownItem.vue2.js +27 -29
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts +24 -4
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/v2/components/sidebar/Sidebar.vue.js +54 -49
- package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts +18 -9
- package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts.map +1 -1
- package/dist/v2/components/sidebar/SidebarMenu.vue.js +36 -43
- package/dist/v2/features/app/App.vue.d.ts +0 -3
- package/dist/v2/features/app/App.vue.d.ts.map +1 -1
- package/dist/v2/features/app/App.vue.js +130 -93
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts +36 -4
- 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 +68 -59
- package/dist/v2/features/app/components/CreateWorkspaceModal.vue.d.ts +15 -0
- package/dist/v2/features/app/components/CreateWorkspaceModal.vue.d.ts.map +1 -0
- package/dist/v2/features/app/components/CreateWorkspaceModal.vue.js +56 -0
- package/dist/v2/features/app/components/CreateWorkspaceModal.vue2.js +4 -0
- package/dist/v2/{components/TempReplaceMe.vue.d.ts → features/app/components/SplashScreen.vue.d.ts} +1 -1
- package/dist/v2/features/app/components/SplashScreen.vue.d.ts.map +1 -0
- package/dist/v2/features/app/components/SplashScreen.vue.js +7 -0
- package/dist/v2/features/app/components/SplashScreen.vue2.js +18 -0
- package/dist/v2/features/app/components/WebTopNav.vue.d.ts +26 -5
- package/dist/v2/features/app/components/WebTopNav.vue.d.ts.map +1 -1
- package/dist/v2/features/app/components/WebTopNav.vue.js +18 -19
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts +1 -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 +8 -8
- package/dist/v2/features/app/helpers/routes.d.ts +6 -31
- package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
- package/dist/v2/features/app/helpers/routes.js +4 -9
- package/dist/v2/features/collection/DocumentCollection.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/DocumentCollection.vue2.js +44 -51
- package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/WorkspaceCollection.vue2.js +25 -25
- package/dist/v2/features/collection/components/Authentication.vue.js +1 -1
- package/dist/v2/features/collection/components/Authentication.vue2.js +9 -7
- package/dist/v2/features/collection/components/Cookies.vue.d.ts +13 -1
- package/dist/v2/features/collection/components/Cookies.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Cookies.vue.js +2 -7
- package/dist/v2/features/collection/components/Cookies.vue2.js +32 -0
- package/dist/v2/features/collection/components/Environment.vue2.js +2 -0
- package/dist/v2/features/collection/components/Overview.vue2.js +10 -8
- package/dist/v2/features/collection/components/Servers.vue2.js +26 -24
- package/dist/v2/features/collection/components/Settings.vue.d.ts +13 -15
- package/dist/v2/features/collection/components/Settings.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Settings.vue.js +2 -5
- package/dist/v2/features/collection/components/Settings.vue2.js +51 -92
- package/dist/v2/features/global-cookies/components/CookiesTable.vue.d.ts +6 -22
- package/dist/v2/features/global-cookies/components/CookiesTable.vue.d.ts.map +1 -1
- package/dist/v2/features/global-cookies/components/CookiesTable.vue.js +3 -3
- package/dist/v2/features/global-cookies/components/CookiesTable.vue2.js +121 -88
- package/dist/v2/features/global-cookies/index.d.ts +1 -1
- package/dist/v2/features/global-cookies/index.d.ts.map +1 -1
- package/dist/v2/features/global-cookies/index.js +2 -2
- package/dist/v2/features/modal/Modal.vue.d.ts +0 -2
- package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
- package/dist/v2/features/modal/Modal.vue.js +3 -3
- package/dist/v2/features/modal/Modal.vue2.js +28 -61
- package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts.map +1 -1
- package/dist/v2/features/modal/helpers/create-api-client-modal.js +8 -9
- package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
- package/dist/v2/features/operation/Operation.vue.js +32 -25
- package/dist/v2/features/operation/helpers/get-security-requirements.d.ts +12 -0
- package/dist/v2/features/operation/helpers/get-security-requirements.d.ts.map +1 -0
- package/dist/v2/features/operation/helpers/get-security-requirements.js +4 -0
- package/dist/v2/features/search/components/SearchButton.vue.d.ts +12 -0
- package/dist/v2/features/search/components/SearchButton.vue.d.ts.map +1 -0
- package/dist/v2/features/search/components/SearchButton.vue.js +71 -0
- package/dist/v2/features/search/components/SearchButton.vue2.js +4 -0
- package/dist/v2/features/search/components/SearchModal.vue.d.ts +11 -0
- package/dist/v2/features/search/components/SearchModal.vue.d.ts.map +1 -0
- package/dist/v2/features/search/components/SearchModal.vue.js +7 -0
- package/dist/v2/features/search/components/SearchModal.vue2.js +101 -0
- package/dist/v2/features/search/components/SearchResult.vue.d.ts +10 -0
- package/dist/v2/features/search/components/SearchResult.vue.d.ts.map +1 -0
- package/dist/v2/features/search/components/SearchResult.vue.js +80 -0
- package/dist/v2/features/search/components/SearchResult.vue2.js +4 -0
- package/dist/v2/features/search/helpers/create-fuse-instance.d.ts +9 -0
- package/dist/v2/features/search/helpers/create-fuse-instance.d.ts.map +1 -0
- package/dist/v2/features/search/helpers/create-fuse-instance.js +43 -0
- package/dist/v2/features/search/helpers/create-search-index.d.ts +7 -0
- package/dist/v2/features/search/helpers/create-search-index.d.ts.map +1 -0
- package/dist/v2/features/search/helpers/create-search-index.js +63 -0
- package/dist/v2/features/search/hooks/use-search-index.d.ts +14 -0
- package/dist/v2/features/search/hooks/use-search-index.d.ts.map +1 -0
- package/dist/v2/features/search/hooks/use-search-index.js +24 -0
- package/dist/v2/features/search/index.d.ts +3 -0
- package/dist/v2/features/search/index.d.ts.map +1 -0
- package/dist/v2/features/search/index.js +6 -0
- package/dist/v2/features/search/types.d.ts +24 -0
- package/dist/v2/features/search/types.d.ts.map +1 -0
- package/dist/v2/features/settings/{Settings.vue.d.ts → CollectionSettings.vue.d.ts} +2 -2
- package/dist/v2/features/settings/CollectionSettings.vue.d.ts.map +1 -0
- package/dist/v2/features/settings/CollectionSettings.vue.js +266 -0
- package/dist/v2/features/settings/CollectionSettings.vue2.js +4 -0
- package/dist/v2/features/settings/DocumentSettings.vue.d.ts +19 -0
- package/dist/v2/features/settings/DocumentSettings.vue.d.ts.map +1 -0
- package/dist/v2/features/settings/DocumentSettings.vue.js +7 -0
- package/dist/v2/features/settings/DocumentSettings.vue2.js +106 -0
- package/dist/v2/features/settings/index.d.ts +2 -1
- package/dist/v2/features/settings/index.d.ts.map +1 -1
- package/dist/v2/features/settings/index.js +4 -2
- package/dist/v2/helpers/drag-handle-factory.d.ts +17 -0
- package/dist/v2/helpers/drag-handle-factory.d.ts.map +1 -0
- package/dist/v2/helpers/drag-handle-factory.js +135 -0
- package/dist/v2/helpers/handle-hotkeys.d.ts +23 -0
- package/dist/v2/helpers/handle-hotkeys.d.ts.map +1 -0
- package/dist/v2/helpers/handle-hotkeys.js +56 -0
- package/dist/v2/helpers/slugify.d.ts +9 -0
- package/dist/v2/helpers/slugify.d.ts.map +1 -0
- package/dist/v2/helpers/slugify.js +4 -0
- package/dist/v2/helpers/storage.d.ts +25 -0
- package/dist/v2/helpers/storage.d.ts.map +1 -0
- package/dist/v2/helpers/storage.js +20 -0
- package/dist/v2/hooks/use-color-mode.d.ts +20 -0
- package/dist/v2/hooks/use-color-mode.d.ts.map +1 -0
- package/dist/v2/hooks/use-color-mode.js +24 -0
- package/dist/v2/hooks/use-document-watcher.d.ts +9 -7
- package/dist/v2/hooks/use-document-watcher.d.ts.map +1 -1
- package/dist/v2/hooks/use-document-watcher.js +66 -0
- package/dist/v2/hooks/use-global-hot-keys.d.ts +10 -0
- package/dist/v2/hooks/use-global-hot-keys.d.ts.map +1 -0
- package/dist/v2/hooks/use-global-hot-keys.js +9 -0
- package/dist/v2/hooks/use-sidebar-state.d.ts +4 -3
- package/dist/v2/hooks/use-sidebar-state.d.ts.map +1 -1
- package/dist/v2/hooks/use-sidebar-state.js +46 -30
- package/dist/v2/hooks/use-workspace-client-events.d.ts +8 -2
- package/dist/v2/hooks/use-workspace-client-events.d.ts.map +1 -1
- package/dist/v2/hooks/use-workspace-client-events.js +51 -102
- package/dist/v2/hooks/use-workspace-selector.d.ts +18 -0
- package/dist/v2/hooks/use-workspace-selector.d.ts.map +1 -0
- package/dist/v2/hooks/use-workspace-selector.js +87 -0
- 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 +86 -77
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +29 -24
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/package.json +30 -29
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.js +0 -7
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue2.js +0 -262
- package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.js +0 -7
- package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue2.js +0 -4
- package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue.js +0 -7
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue2.js +0 -4
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableTooltip.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableTooltip.vue.js +0 -7
- package/dist/v2/blocks/scalar-operation-block/helpers/files.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-content.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-example.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-schema.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/helpers/get-request-body-example.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/helpers/group-by.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/helpers/validate-parameter.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/index.d.ts +0 -2
- package/dist/v2/blocks/scalar-operation-block/index.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/index.js +0 -4
- package/dist/v2/blocks/scalar-response-block/components/Headers.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.js +0 -7
- package/dist/v2/blocks/scalar-response-block/components/ResponseBody.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyDownload.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyInfo.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyPreview.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyRaw.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyToggle.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyVirtual.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseEmpty.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseLoadingOverlay.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseLoadingOverlay.vue.js +0 -7
- package/dist/v2/blocks/scalar-response-block/components/ResponseMetaInformation.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/helpers/extract-filename.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/helpers/get-content-length.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/helpers/media-types.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/helpers/process-response-body.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/index.d.ts +0 -2
- package/dist/v2/blocks/scalar-response-block/index.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/index.js +0 -4
- package/dist/v2/components/TempReplaceMe.vue.d.ts.map +0 -1
- package/dist/v2/components/TempReplaceMe.vue.js +0 -12
- package/dist/v2/features/global-cookies/components/GlobalCookies.vue.d.ts +0 -32
- package/dist/v2/features/global-cookies/components/GlobalCookies.vue.d.ts.map +0 -1
- package/dist/v2/features/global-cookies/components/GlobalCookies.vue.js +0 -7
- package/dist/v2/features/global-cookies/components/GlobalCookies.vue2.js +0 -58
- package/dist/v2/features/settings/Settings.vue.d.ts.map +0 -1
- package/dist/v2/features/settings/Settings.vue.js +0 -268
- package/dist/v2/features/settings/Settings.vue2.js +0 -4
- /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/files.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/files.js +0 -0
- /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/get-parameter-content.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/get-parameter-content.js +0 -0
- /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/get-parameter-example.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/get-parameter-example.js +0 -0
- /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/get-parameter-schema.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/get-parameter-schema.js +0 -0
- /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/get-request-body-example.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/get-request-body-example.js +0 -0
- /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/group-by.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/group-by.js +0 -0
- /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/validate-parameter.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/validate-parameter.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/Headers.vue.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/Headers.vue.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/Headers.vue2.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBody.vue.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyDownload.vue.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyDownload.vue.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyDownload.vue2.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyInfo.vue.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyInfo.vue.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyPreview.vue.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyPreview.vue2.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyRaw.vue.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyRaw.vue2.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyStreaming.vue.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyStreaming.vue.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyStreaming.vue2.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyToggle.vue.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyToggle.vue.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyToggle.vue2.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyVirtual.vue.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyVirtual.vue.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyVirtual.vue3.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseCookies.vue.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseCookies.vue.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseCookies.vue2.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseEmpty.vue.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseEmpty.vue2.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseLoadingOverlay.vue.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseLoadingOverlay.vue2.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseMetaInformation.vue.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseMetaInformation.vue2.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/helpers/extract-filename.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/helpers/extract-filename.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/helpers/get-content-length.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/helpers/get-content-length.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/helpers/media-types.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/helpers/media-types.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/helpers/process-response-body.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/helpers/process-response-body.js +0 -0
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarPopover as
|
|
3
|
-
import V from "
|
|
4
|
-
|
|
1
|
+
import { defineComponent as y, computed as v, createBlock as m, openBlock as t, unref as s, withCtx as n, createVNode as d, createElementBlock as i, Fragment as p, createElementVNode as a, createTextVNode as h, toDisplayString as U, createCommentVNode as w, renderList as C } from "vue";
|
|
2
|
+
import { ScalarPopover as B, ScalarButton as z, ScalarFloatingBackdrop as N } from "@scalar/components";
|
|
3
|
+
import { ScalarIconPlus as V, ScalarIconPencilSimple as D } from "@scalar/icons";
|
|
4
|
+
import I from "./ServerDropdownItem.vue.js";
|
|
5
|
+
const P = ["onClick"], $ = { class: "flex items-center justify-center" }, W = /* @__PURE__ */ y({
|
|
5
6
|
__name: "ServerDropdown",
|
|
6
7
|
props: {
|
|
7
8
|
servers: {},
|
|
@@ -9,15 +10,15 @@ const D = ["onClick"], $ = { class: "flex h-4 w-4 items-center justify-center" }
|
|
|
9
10
|
target: {},
|
|
10
11
|
layout: {}
|
|
11
12
|
},
|
|
12
|
-
emits: ["update:selectedServer", "update:variable", "
|
|
13
|
-
setup(
|
|
14
|
-
const
|
|
15
|
-
() =>
|
|
13
|
+
emits: ["update:selectedServer", "update:variable", "update:servers"],
|
|
14
|
+
setup(o, { emit: f }) {
|
|
15
|
+
const u = f, b = v(
|
|
16
|
+
() => o.servers.map((e) => ({
|
|
16
17
|
id: e.url,
|
|
17
18
|
label: e.url ?? "Unknown server"
|
|
18
19
|
}))
|
|
19
|
-
),
|
|
20
|
-
return (e, r) => (t(),
|
|
20
|
+
), S = v(() => o.server?.url?.endsWith("/") ? o.server.url.slice(0, -1) : o.server?.url || "");
|
|
21
|
+
return (e, r) => (t(), m(s(B), {
|
|
21
22
|
class: "max-h-[inherit] p-0 text-base",
|
|
22
23
|
focus: "",
|
|
23
24
|
offset: 0,
|
|
@@ -26,53 +27,47 @@ const D = ["onClick"], $ = { class: "flex h-4 w-4 items-center justify-center" }
|
|
|
26
27
|
target: e.target,
|
|
27
28
|
teleport: `#${e.target}`
|
|
28
29
|
}, {
|
|
29
|
-
popover:
|
|
30
|
-
|
|
30
|
+
popover: n(({ close: g }) => [
|
|
31
|
+
a("div", {
|
|
31
32
|
class: "custom-scroll flex max-h-[inherit] flex-col gap-1 border-t p-1",
|
|
32
|
-
onClick:
|
|
33
|
+
onClick: g
|
|
33
34
|
}, [
|
|
34
|
-
(t(!0),
|
|
35
|
-
key:
|
|
35
|
+
(t(!0), i(p, null, C(b.value, (l, k) => (t(), m(I, {
|
|
36
|
+
key: l.id,
|
|
36
37
|
server: e.server,
|
|
37
|
-
serverOption:
|
|
38
|
+
serverOption: l,
|
|
38
39
|
type: "request",
|
|
39
|
-
"onUpdate:selectedServer": (c) =>
|
|
40
|
-
"onUpdate:variable": (c,
|
|
40
|
+
"onUpdate:selectedServer": (c) => u("update:selectedServer", { url: l.id }),
|
|
41
|
+
"onUpdate:variable": (c, x) => u("update:variable", { index: k, key: c, value: x })
|
|
41
42
|
}, null, 8, ["server", "serverOption", "onUpdate:selectedServer", "onUpdate:variable"]))), 128)),
|
|
42
|
-
e.layout !== "modal" ? (t(),
|
|
43
|
+
e.layout !== "modal" ? (t(), i("button", {
|
|
43
44
|
key: 0,
|
|
44
45
|
class: "text-xxs hover:bg-b-2 flex cursor-pointer items-center gap-1.5 rounded p-1.75",
|
|
45
46
|
type: "button",
|
|
46
|
-
onClick: r[0] || (r[0] = (
|
|
47
|
+
onClick: r[0] || (r[0] = (l) => u("update:servers"))
|
|
47
48
|
}, [
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
icon: "Add",
|
|
51
|
-
size: "sm"
|
|
52
|
-
})
|
|
49
|
+
a("div", $, [
|
|
50
|
+
d(s(D), { class: "size-4" })
|
|
53
51
|
]),
|
|
54
|
-
r[3] || (r[3] =
|
|
55
|
-
])) :
|
|
56
|
-
], 8,
|
|
52
|
+
r[3] || (r[3] = a("span", null, "Update Servers", -1))
|
|
53
|
+
])) : w("", !0)
|
|
54
|
+
], 8, P)
|
|
57
55
|
]),
|
|
58
|
-
backdrop:
|
|
59
|
-
|
|
56
|
+
backdrop: n(() => [
|
|
57
|
+
d(s(N), { class: "-top-(--scalar-address-bar-height) rounded-lg" })
|
|
60
58
|
]),
|
|
61
|
-
default:
|
|
62
|
-
|
|
59
|
+
default: n(() => [
|
|
60
|
+
d(s(z), {
|
|
63
61
|
class: "z-context-plus hover:bg-b-2 font-code text-c-2 ml-0.75 h-auto gap-0.75 rounded border px-1.5 text-base whitespace-nowrap",
|
|
64
62
|
variant: "ghost"
|
|
65
63
|
}, {
|
|
66
|
-
default:
|
|
67
|
-
e.server ? (t(),
|
|
68
|
-
r[1] || (r[1] =
|
|
69
|
-
|
|
70
|
-
], 64)) : (t(),
|
|
71
|
-
r[2] || (r[2] =
|
|
72
|
-
|
|
73
|
-
icon: "Add",
|
|
74
|
-
size: "xs"
|
|
75
|
-
})
|
|
64
|
+
default: n(() => [
|
|
65
|
+
e.server ? (t(), i(p, { key: 0 }, [
|
|
66
|
+
r[1] || (r[1] = a("span", { class: "sr-only" }, "Server:", -1)),
|
|
67
|
+
h(" " + U(S.value), 1)
|
|
68
|
+
], 64)) : (t(), i(p, { key: 1 }, [
|
|
69
|
+
r[2] || (r[2] = a("span", { class: "sr-only" }, "Add Server", -1)),
|
|
70
|
+
d(s(V), { class: "size-3" })
|
|
76
71
|
], 64))
|
|
77
72
|
]),
|
|
78
73
|
_: 1
|
|
@@ -83,5 +78,5 @@ const D = ["onClick"], $ = { class: "flex h-4 w-4 items-center justify-center" }
|
|
|
83
78
|
}
|
|
84
79
|
});
|
|
85
80
|
export {
|
|
86
|
-
|
|
81
|
+
W as default
|
|
87
82
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ServerDropdownItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/server/ServerDropdownItem.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ServerDropdownItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/server/ServerDropdownItem.vue"],"names":[],"mappings":"AAiFA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAKhG,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,YAAY,GAAG,IAAI,CAAA;IAC3B,YAAY,EAAE;QACZ,EAAE,EAAE,MAAM,CAAA;QACV,KAAK,EAAE,MAAM,CAAA;KACd,CAAA;CACF,CAAC;;;;;;;;AA6JF,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ServerDropdownItem.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-1b7a32a4"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,48 +1,46 @@
|
|
|
1
|
-
import { defineComponent as h, useId as
|
|
2
|
-
import { ScalarListboxCheckbox as
|
|
3
|
-
import
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as h, useId as k, computed as c, createElementBlock as a, openBlock as n, normalizeClass as g, createElementVNode as l, createCommentVNode as m, mergeProps as S, unref as s, createVNode as d, toDisplayString as y, withModifiers as w } from "vue";
|
|
2
|
+
import { ScalarListboxCheckbox as C, ScalarMarkdown as O } from "@scalar/components";
|
|
3
|
+
import V from "../../../components/Server/ServerVariablesForm.vue.js";
|
|
4
|
+
const _ = ["aria-expanded"], E = { class: "overflow-hidden text-ellipsis whitespace-nowrap" }, I = ["id"], N = { key: 0 }, B = { class: "description text-c-3 px-3 py-1.5" }, j = /* @__PURE__ */ h({
|
|
5
5
|
__name: "ServerDropdownItem",
|
|
6
6
|
props: {
|
|
7
7
|
server: {},
|
|
8
8
|
serverOption: {}
|
|
9
9
|
},
|
|
10
10
|
emits: ["update:variable", "update:selectedServer"],
|
|
11
|
-
setup(o, { emit:
|
|
12
|
-
const v =
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
return (e, r) => (n(), i("div", {
|
|
16
|
-
class: k(["group/item flex min-h-fit flex-col rounded border", { "border-transparent": !t.value }])
|
|
11
|
+
setup(o, { emit: b }) {
|
|
12
|
+
const v = b, p = k(), f = () => Object.keys(o.server?.variables ?? {}).length > 0, r = c(() => o.serverOption.id === o.server?.url), i = c(() => r.value && f());
|
|
13
|
+
return (t, e) => (n(), a("div", {
|
|
14
|
+
class: g(["group/item flex min-h-fit flex-col rounded border", { "border-transparent": !r.value }])
|
|
17
15
|
}, [
|
|
18
|
-
l("button", S(
|
|
19
|
-
"aria-expanded":
|
|
20
|
-
class: ["flex min-h-8 cursor-pointer items-center gap-1.5 rounded px-1.5",
|
|
16
|
+
l("button", S(i.value ? { "aria-controls": s(p) } : {}, {
|
|
17
|
+
"aria-expanded": i.value,
|
|
18
|
+
class: ["flex min-h-8 cursor-pointer items-center gap-1.5 rounded px-1.5", r.value ? "text-c-1 bg-b-2" : "hover:bg-b-2"],
|
|
21
19
|
type: "button",
|
|
22
|
-
onClick:
|
|
20
|
+
onClick: e[0] || (e[0] = (u) => v("update:selectedServer"))
|
|
23
21
|
}), [
|
|
24
|
-
d(s(
|
|
25
|
-
l("span",
|
|
26
|
-
], 16,
|
|
27
|
-
|
|
22
|
+
d(s(C), { selected: r.value }, null, 8, ["selected"]),
|
|
23
|
+
l("span", E, y(t.serverOption.label), 1)
|
|
24
|
+
], 16, _),
|
|
25
|
+
i.value ? (n(), a("div", {
|
|
28
26
|
key: 0,
|
|
29
|
-
id: s(
|
|
27
|
+
id: s(p),
|
|
30
28
|
class: "bg-b-2 divide divide-y rounded-b border-t *:pl-4",
|
|
31
|
-
onClick:
|
|
29
|
+
onClick: e[2] || (e[2] = w(() => {
|
|
32
30
|
}, ["stop"]))
|
|
33
31
|
}, [
|
|
34
|
-
d(
|
|
35
|
-
variables:
|
|
36
|
-
"onUpdate:variable":
|
|
32
|
+
d(V, {
|
|
33
|
+
variables: t.server?.variables,
|
|
34
|
+
"onUpdate:variable": e[1] || (e[1] = (u, x) => v("update:variable", u, x))
|
|
37
35
|
}, null, 8, ["variables"]),
|
|
38
|
-
|
|
39
|
-
l("div",
|
|
40
|
-
d(s(
|
|
41
|
-
value:
|
|
36
|
+
t.server?.description ? (n(), a("div", N, [
|
|
37
|
+
l("div", B, [
|
|
38
|
+
d(s(O), {
|
|
39
|
+
value: t.server.description
|
|
42
40
|
}, null, 8, ["value"])
|
|
43
41
|
])
|
|
44
|
-
])) :
|
|
45
|
-
], 8,
|
|
42
|
+
])) : m("", !0)
|
|
43
|
+
], 8, I)) : m("", !0)
|
|
46
44
|
], 2));
|
|
47
45
|
}
|
|
48
46
|
});
|
|
@@ -1,11 +1,29 @@
|
|
|
1
|
+
import type { DraggingItem, HoveredItem } from '@scalar/draggable';
|
|
1
2
|
import { type SidebarState } from '@scalar/sidebar';
|
|
3
|
+
import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
4
|
+
import type { WorkspaceDocument } from '@scalar/workspace-store/schemas';
|
|
2
5
|
import type { TraversedEntry } from '@scalar/workspace-store/schemas/navigation';
|
|
6
|
+
import type { Workspace } from '../../../v2/hooks/use-workspace-selector.js';
|
|
3
7
|
import type { ClientLayout } from '../../../v2/types/layout';
|
|
4
8
|
type __VLS_Props = {
|
|
5
9
|
/** All documents to display sidebar items for */
|
|
6
10
|
sidebarState: SidebarState<TraversedEntry>;
|
|
7
11
|
/** Layout for the client */
|
|
8
12
|
layout: ClientLayout;
|
|
13
|
+
/** The currently active workspace */
|
|
14
|
+
activeWorkspace: Workspace;
|
|
15
|
+
/** The list of all available workspaces */
|
|
16
|
+
workspaces: Workspace[];
|
|
17
|
+
/** The workspace event bus for handling workspace-level events */
|
|
18
|
+
eventBus: WorkspaceEventBus;
|
|
19
|
+
/** The documents belonging to the workspace */
|
|
20
|
+
documents: WorkspaceDocument[];
|
|
21
|
+
/**
|
|
22
|
+
* Prevents sidebar items from being hovered and dropped into. Can be either a function or a boolean
|
|
23
|
+
*
|
|
24
|
+
* @default true
|
|
25
|
+
*/
|
|
26
|
+
isDroppable?: boolean | ((draggingItem: DraggingItem, hoveredItem: HoveredItem) => boolean);
|
|
9
27
|
};
|
|
10
28
|
type __VLS_Slots = {
|
|
11
29
|
/** Slot to add the workspace button */
|
|
@@ -14,22 +32,24 @@ type __VLS_Slots = {
|
|
|
14
32
|
footer?(): unknown;
|
|
15
33
|
};
|
|
16
34
|
type __VLS_PublicProps = __VLS_Props & {
|
|
17
|
-
/** Propagate up the workspace model to the parent */
|
|
18
|
-
'workspace'?: string;
|
|
19
35
|
/** Controls the visibility of the sidebar */
|
|
20
36
|
'isSidebarOpen': boolean;
|
|
21
37
|
/** Controls the width of the sidebar */
|
|
22
38
|
'sidebarWidth': number;
|
|
23
39
|
};
|
|
24
40
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
25
|
-
"update:workspace": (value: string) => any;
|
|
26
41
|
"update:isSidebarOpen": (value: boolean) => any;
|
|
27
42
|
"update:sidebarWidth": (value: number) => any;
|
|
28
43
|
} & {
|
|
44
|
+
"create:workspace": () => any;
|
|
45
|
+
"select:workspace": (id?: string | undefined) => any;
|
|
29
46
|
selectItem: (id: string) => any;
|
|
47
|
+
reorder: (draggingItem: DraggingItem, hoveredItem: HoveredItem) => any;
|
|
30
48
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
31
|
-
"
|
|
49
|
+
"onCreate:workspace"?: (() => any) | undefined;
|
|
50
|
+
"onSelect:workspace"?: ((id?: string | undefined) => any) | undefined;
|
|
32
51
|
onSelectItem?: ((id: string) => any) | undefined;
|
|
52
|
+
onReorder?: ((draggingItem: DraggingItem, hoveredItem: HoveredItem) => any) | undefined;
|
|
33
53
|
"onUpdate:isSidebarOpen"?: ((value: boolean) => any) | undefined;
|
|
34
54
|
"onUpdate:sidebarWidth"?: ((value: number) => any) | undefined;
|
|
35
55
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/sidebar/Sidebar.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/sidebar/Sidebar.vue"],"names":[],"mappings":"AAwIA,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAElE,OAAO,EAAiB,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAClE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AACxE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAA;AAKhF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAA;AAClE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAKrD,KAAK,WAAW,GAAG;IACjB,iDAAiD;IACjD,YAAY,EAAE,YAAY,CAAC,cAAc,CAAC,CAAA;IAC1C,4BAA4B;IAC5B,MAAM,EAAE,YAAY,CAAA;IACpB,qCAAqC;IACrC,eAAe,EAAE,SAAS,CAAA;IAC1B,2CAA2C;IAC3C,UAAU,EAAE,SAAS,EAAE,CAAA;IACvB,kEAAkE;IAClE,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,+CAA+C;IAC/C,SAAS,EAAE,iBAAiB,EAAE,CAAA;IAC9B;;;;OAIG;IACH,WAAW,CAAC,EACR,OAAO,GACP,CAAC,CAAC,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,WAAW,KAAK,OAAO,CAAC,CAAA;CACxE,CAAC;AAeF,KAAK,WAAW,GAAG;IACjB,uCAAuC;IACvC,eAAe,CAAC,IAAI,OAAO,CAAA;IAC3B,mDAAmD;IACnD,MAAM,CAAC,IAAI,OAAO,CAAA;CACnB,CAAC;AAsBF,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,6CAA6C;IAC7C,eAAe,EAAE,OAAO,CAAC;IACzB,wCAAwC;IACxC,cAAc,EAAE,MAAM,CAAC;CACtB,CAAC;AA4MF,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;kFAOnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,20 +1,22 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarIconButton as
|
|
3
|
-
import { ScalarIconMagnifyingGlass as
|
|
4
|
-
import { ScalarSidebar as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
1
|
+
import { defineComponent as w, mergeModels as f, useModel as c, ref as y, createBlock as s, openBlock as r, unref as a, withCtx as l, createVNode as B, renderSlot as b, createElementVNode as k, createCommentVNode as n } from "vue";
|
|
2
|
+
import { ScalarIconButton as W } from "@scalar/components";
|
|
3
|
+
import { ScalarIconMagnifyingGlass as V } from "@scalar/icons";
|
|
4
|
+
import { ScalarSidebar as $ } from "@scalar/sidebar";
|
|
5
|
+
import g from "./SidebarMenu.vue.js";
|
|
6
|
+
import C from "./SidebarToggle.vue.js";
|
|
7
|
+
import I from "../resize/Resize.vue.js";
|
|
8
|
+
import M from "../../features/search/components/SearchButton.vue.js";
|
|
9
|
+
const O = { class: "bg-sidebar-b-1 z-1 flex flex-col gap-1.5 px-3 pb-1.5" }, D = { class: "flex items-center justify-between" }, F = /* @__PURE__ */ w({
|
|
9
10
|
__name: "Sidebar",
|
|
10
|
-
props: /* @__PURE__ */
|
|
11
|
+
props: /* @__PURE__ */ f({
|
|
11
12
|
sidebarState: {},
|
|
12
|
-
layout: {}
|
|
13
|
+
layout: {},
|
|
14
|
+
activeWorkspace: {},
|
|
15
|
+
workspaces: {},
|
|
16
|
+
eventBus: {},
|
|
17
|
+
documents: {},
|
|
18
|
+
isDroppable: { type: [Boolean, Function] }
|
|
13
19
|
}, {
|
|
14
|
-
workspace: {
|
|
15
|
-
default: "default"
|
|
16
|
-
},
|
|
17
|
-
workspaceModifiers: {},
|
|
18
20
|
isSidebarOpen: { type: Boolean, required: !0 },
|
|
19
21
|
isSidebarOpenModifiers: {},
|
|
20
22
|
sidebarWidth: {
|
|
@@ -23,64 +25,67 @@ const x = { class: "bg-sidebar-b-1 sticky top-0 z-1 flex flex-col gap-3 px-3 pt-
|
|
|
23
25
|
},
|
|
24
26
|
sidebarWidthModifiers: {}
|
|
25
27
|
}),
|
|
26
|
-
emits: /* @__PURE__ */
|
|
27
|
-
setup(
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
width: f.value,
|
|
33
|
-
"onUpdate:width": e[5] || (e[5] = (o) => f.value = o),
|
|
28
|
+
emits: /* @__PURE__ */ f(["selectItem", "select:workspace", "create:workspace", "reorder"], ["update:isSidebarOpen", "update:sidebarWidth"]),
|
|
29
|
+
setup(p, { emit: S }) {
|
|
30
|
+
const i = S, u = c(p, "isSidebarOpen"), d = y(!1), m = c(p, "sidebarWidth");
|
|
31
|
+
return (e, t) => (r(), s(a(I), {
|
|
32
|
+
width: m.value,
|
|
33
|
+
"onUpdate:width": t[6] || (t[6] = (o) => m.value = o),
|
|
34
34
|
class: "flex flex-col"
|
|
35
35
|
}, {
|
|
36
36
|
default: l(() => [
|
|
37
|
-
|
|
37
|
+
B(a($), {
|
|
38
38
|
class: "flex w-auto flex-1 pt-2",
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
indent: 15,
|
|
40
|
+
isDroppable: e.isDroppable,
|
|
41
|
+
isExpanded: e.sidebarState.isExpanded,
|
|
42
|
+
isSelected: e.sidebarState.isSelected,
|
|
43
|
+
items: e.sidebarState.items.value,
|
|
42
44
|
layout: "client",
|
|
43
|
-
|
|
44
|
-
|
|
45
|
+
onReorder: t[4] || (t[4] = (o, v) => i("reorder", o, v)),
|
|
46
|
+
onSelectItem: t[5] || (t[5] = (o) => i("selectItem", o))
|
|
45
47
|
}, {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
header: l(() => [
|
|
49
|
+
k("div", O, [
|
|
50
|
+
k("div", D, [
|
|
51
|
+
e.layout === "desktop" ? (r(), s(g, {
|
|
50
52
|
key: 0,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
53
|
+
activeWorkspace: e.activeWorkspace,
|
|
54
|
+
workspaces: e.workspaces,
|
|
55
|
+
onCreateWorkspace: t[0] || (t[0] = (o) => i("create:workspace")),
|
|
56
|
+
"onSelect:workspace": t[1] || (t[1] = (o) => i("select:workspace", o))
|
|
57
|
+
}, null, 8, ["activeWorkspace", "workspaces"])) : e.layout === "modal" ? (r(), s(C, {
|
|
54
58
|
key: 1,
|
|
55
|
-
modelValue:
|
|
56
|
-
"onUpdate:modelValue":
|
|
57
|
-
}, null, 8, ["modelValue"])) :
|
|
58
|
-
|
|
59
|
+
modelValue: u.value,
|
|
60
|
+
"onUpdate:modelValue": t[2] || (t[2] = (o) => u.value = o)
|
|
61
|
+
}, null, 8, ["modelValue"])) : n("", !0),
|
|
62
|
+
e.layout !== "web" ? (r(), s(a(W), {
|
|
59
63
|
key: 2,
|
|
60
|
-
icon:
|
|
64
|
+
icon: a(V),
|
|
61
65
|
label: "Search",
|
|
62
|
-
onClick:
|
|
63
|
-
}, null, 8, ["icon"])) :
|
|
66
|
+
onClick: t[3] || (t[3] = (o) => d.value = !d.value)
|
|
67
|
+
}, null, 8, ["icon"])) : n("", !0)
|
|
64
68
|
]),
|
|
65
|
-
d.value ||
|
|
69
|
+
d.value || e.layout === "web" ? (r(), s(a(M), {
|
|
66
70
|
key: 0,
|
|
67
|
-
|
|
68
|
-
|
|
71
|
+
documents: e.documents,
|
|
72
|
+
eventBus: e.eventBus
|
|
73
|
+
}, null, 8, ["documents", "eventBus"])) : n("", !0)
|
|
69
74
|
])
|
|
70
75
|
]),
|
|
71
76
|
before: l(() => [
|
|
72
|
-
b(
|
|
77
|
+
b(e.$slots, "workspaceButton")
|
|
73
78
|
]),
|
|
74
79
|
footer: l(() => [
|
|
75
|
-
b(
|
|
80
|
+
b(e.$slots, "footer")
|
|
76
81
|
]),
|
|
77
82
|
_: 3
|
|
78
|
-
}, 8, ["isExpanded", "isSelected", "items"])
|
|
83
|
+
}, 8, ["isDroppable", "isExpanded", "isSelected", "items"])
|
|
79
84
|
]),
|
|
80
85
|
_: 3
|
|
81
86
|
}, 8, ["width"]));
|
|
82
87
|
}
|
|
83
88
|
});
|
|
84
89
|
export {
|
|
85
|
-
|
|
90
|
+
F as default
|
|
86
91
|
};
|
|
@@ -1,13 +1,22 @@
|
|
|
1
|
-
type
|
|
2
|
-
|
|
1
|
+
import type { Workspace } from '../../../v2/hooks/use-workspace-selector.js';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/**
|
|
4
|
+
* The currently active workspace.
|
|
5
|
+
* This represents the workspace that the user is currently working in.
|
|
6
|
+
*/
|
|
7
|
+
activeWorkspace: Workspace;
|
|
8
|
+
/**
|
|
9
|
+
* The list of all available workspaces.
|
|
10
|
+
* Used to render options for workspace switching and selection.
|
|
11
|
+
*/
|
|
12
|
+
workspaces: Workspace[];
|
|
3
13
|
};
|
|
4
|
-
declare const _default: import("vue").DefineComponent<
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"onUpdate:workspace"?: ((value: string) => any) | undefined;
|
|
14
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
15
|
+
"create:workspace": () => any;
|
|
16
|
+
"select:workspace": (id?: string | undefined) => any;
|
|
17
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
18
|
+
"onCreate:workspace"?: (() => any) | undefined;
|
|
19
|
+
"onSelect:workspace"?: ((id?: string | undefined) => any) | undefined;
|
|
11
20
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
21
|
export default _default;
|
|
13
22
|
//# sourceMappingURL=SidebarMenu.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarMenu.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/sidebar/SidebarMenu.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SidebarMenu.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/sidebar/SidebarMenu.vue"],"names":[],"mappings":"AAkGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAA;AAElE,KAAK,WAAW,GAAG;IACjB;;;OAGG;IACH,eAAe,EAAE,SAAS,CAAA;IAC1B;;;OAGG;IACH,UAAU,EAAE,SAAS,EAAE,CAAA;CACxB,CAAC;;;;;;;;AAgJF,wBAOG"}
|
|
@@ -1,63 +1,56 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarMenu as
|
|
3
|
-
import { ScalarIconGear as
|
|
4
|
-
import { RouterLink as
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as m, computed as k, createBlock as d, openBlock as S, unref as o, withCtx as t, createVNode as r, createTextVNode as i } from "vue";
|
|
2
|
+
import { ScalarMenu as f, ScalarMenuSection as w, ScalarMenuWorkspacePicker as M, ScalarMenuLink as C, ScalarMenuResources as V, ScalarMenuSupport as v } from "@scalar/components";
|
|
3
|
+
import { ScalarIconGear as W } from "@scalar/icons";
|
|
4
|
+
import { RouterLink as x } from "vue-router";
|
|
5
|
+
const L = /* @__PURE__ */ m({
|
|
6
6
|
__name: "SidebarMenu",
|
|
7
7
|
props: {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
default: "default"
|
|
11
|
-
},
|
|
12
|
-
workspaceModifiers: {}
|
|
8
|
+
activeWorkspace: {},
|
|
9
|
+
workspaces: {}
|
|
13
10
|
},
|
|
14
|
-
emits:
|
|
15
|
-
setup(
|
|
16
|
-
const
|
|
17
|
-
{
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
sections: r(({ close: c }) => [
|
|
29
|
-
t(o(W), null, {
|
|
30
|
-
title: r(() => [...e[3] || (e[3] = [
|
|
31
|
-
n("Team", -1)
|
|
11
|
+
emits: ["create:workspace", "select:workspace"],
|
|
12
|
+
setup(l, { emit: p }) {
|
|
13
|
+
const n = p, c = k(
|
|
14
|
+
() => l.workspaces.map((a) => ({
|
|
15
|
+
label: a.name,
|
|
16
|
+
id: a.id
|
|
17
|
+
}))
|
|
18
|
+
);
|
|
19
|
+
return (a, e) => (S(), d(o(f), null, {
|
|
20
|
+
products: t(() => [...e[2] || (e[2] = [])]),
|
|
21
|
+
sections: t(({ close: u }) => [
|
|
22
|
+
r(o(w), null, {
|
|
23
|
+
title: t(() => [...e[3] || (e[3] = [
|
|
24
|
+
i("Team", -1)
|
|
32
25
|
])]),
|
|
33
|
-
default:
|
|
34
|
-
|
|
35
|
-
modelValue: a.
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
26
|
+
default: t(() => [
|
|
27
|
+
r(o(M), {
|
|
28
|
+
modelValue: a.activeWorkspace.id,
|
|
29
|
+
workspaceOptions: c.value,
|
|
30
|
+
onCreateWorkspace: e[0] || (e[0] = (s) => n("create:workspace")),
|
|
31
|
+
"onUpdate:modelValue": e[1] || (e[1] = (s) => n("select:workspace", s))
|
|
39
32
|
}, null, 8, ["modelValue", "workspaceOptions"]),
|
|
40
|
-
|
|
41
|
-
is: o(
|
|
42
|
-
icon: o(
|
|
33
|
+
r(o(C), {
|
|
34
|
+
is: o(x),
|
|
35
|
+
icon: o(W),
|
|
43
36
|
to: "/settings",
|
|
44
|
-
onClick:
|
|
37
|
+
onClick: u
|
|
45
38
|
}, {
|
|
46
|
-
default:
|
|
47
|
-
|
|
39
|
+
default: t(() => [...e[4] || (e[4] = [
|
|
40
|
+
i(" Settings ", -1)
|
|
48
41
|
])]),
|
|
49
42
|
_: 1
|
|
50
43
|
}, 8, ["is", "icon", "onClick"])
|
|
51
44
|
]),
|
|
52
45
|
_: 2
|
|
53
46
|
}, 1024),
|
|
54
|
-
|
|
55
|
-
|
|
47
|
+
r(o(V)),
|
|
48
|
+
r(o(v))
|
|
56
49
|
]),
|
|
57
50
|
_: 1
|
|
58
51
|
}));
|
|
59
52
|
}
|
|
60
53
|
});
|
|
61
54
|
export {
|
|
62
|
-
|
|
55
|
+
L as default
|
|
63
56
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { WorkspaceStore } from '@scalar/workspace-store/client';
|
|
2
1
|
import type { ClientLayout } from '../../../v2/types/layout';
|
|
3
2
|
/**
|
|
4
3
|
* Main entry point for the API client for electron and web.
|
|
@@ -7,10 +6,8 @@ import type { ClientLayout } from '../../../v2/types/layout';
|
|
|
7
6
|
*/
|
|
8
7
|
declare const _default: import("vue").DefineComponent<{
|
|
9
8
|
layout: Exclude<ClientLayout, "modal">;
|
|
10
|
-
workspaceStore: WorkspaceStore;
|
|
11
9
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
12
10
|
layout: Exclude<ClientLayout, "modal">;
|
|
13
|
-
workspaceStore: WorkspaceStore;
|
|
14
11
|
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
12
|
export default _default;
|
|
16
13
|
//# sourceMappingURL=App.vue.d.ts.map
|
|
@@ -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":"AAwUA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAOrD;;;;GAIG;;YAGO,OAAO,CAAC,YAAY,EAAE,OAAO,CAAC;;YAA9B,OAAO,CAAC,YAAY,EAAE,OAAO,CAAC;;AAFxC,wBAuZC"}
|