@scalar/api-client 2.10.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 +69 -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/components/ImportCollection/IntegrationLogo.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/IntegrationLogo.vue.js +1 -0
- package/dist/components/Server/ServerVariablesForm.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerVariablesForm.vue.js +6 -6
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +1 -1
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +14 -13
- package/dist/hooks/useClientConfig.d.ts +6 -3
- package/dist/hooks/useClientConfig.d.ts.map +1 -1
- package/dist/layouts/App/create-api-client-app.d.ts +18 -18
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.d.ts +18 -18
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +19 -19
- 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 +11 -11
- 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 +82 -26
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.js +65 -65
- package/dist/v2/blocks/operation-block/components/Header.vue.d.ts +5 -8
- package/dist/v2/blocks/operation-block/components/Header.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/components/Header.vue.js +3 -3
- package/dist/v2/blocks/operation-block/components/Header.vue2.js +33 -36
- package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.vue.js +11 -10
- package/dist/v2/blocks/{scalar-operation-block/components/OperationBlock.vue.d.ts → request-block/RequestBlock.vue.d.ts} +5 -19
- 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} +4 -6
- 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} +86 -90
- package/dist/v2/blocks/{scalar-operation-block/components/OperationParams.vue.d.ts → request-block/components/RequestParams.vue.d.ts} +3 -6
- 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} +26 -28
- 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} +4 -7
- 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/request-block/components/RequestTable.vue2.js +86 -0
- package/dist/v2/blocks/{scalar-operation-block/components/OperationTableRow.vue.d.ts → request-block/components/RequestTableRow.vue.d.ts} +3 -6
- 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} +63 -67
- 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/{scalar-response-block → response-block}/components/Headers.vue.d.ts +2 -2
- package/dist/v2/blocks/response-block/components/Headers.vue.d.ts.map +1 -0
- package/dist/v2/blocks/{scalar-response-block → response-block}/components/Headers.vue.js +9 -9
- 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 +22 -22
- 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/{scalar-response-block → response-block}/components/ResponseBodyStreaming.vue.js +14 -14
- 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/{scalar-response-block → response-block}/components/ResponseBodyVirtual.vue.js +12 -12
- package/dist/v2/blocks/response-block/components/ResponseCookies.vue.d.ts.map +1 -0
- package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseCookies.vue.js +13 -13
- 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 +6 -8
- 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 -70
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts +11 -9
- 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 +179 -5
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue2.js +2 -179
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +201 -198
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts +11 -6
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +82 -5
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue2.js +2 -85
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts +3 -13
- 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/RequestAuthDataTableInput.vue.js +16 -18
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +133 -142
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js +1 -1
- 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/data-table/DataTable.vue.d.ts.map +1 -1
- package/dist/v2/components/data-table/DataTable.vue.js +4 -4
- package/dist/v2/components/data-table/DataTableInput.vue.d.ts +5 -7
- package/dist/v2/components/data-table/DataTableInput.vue.d.ts.map +1 -1
- package/dist/v2/components/data-table/DataTableInput.vue.js +2 -2
- package/dist/v2/components/data-table/DataTableInput.vue2.js +32 -36
- package/dist/v2/components/forms/ConfirmationForm.vue.d.ts +25 -0
- package/dist/v2/components/forms/ConfirmationForm.vue.d.ts.map +1 -0
- package/dist/v2/components/forms/ConfirmationForm.vue.js +7 -0
- package/dist/v2/components/forms/ConfirmationForm.vue2.js +45 -0
- package/dist/v2/components/forms/index.d.ts +2 -0
- package/dist/v2/components/forms/index.d.ts.map +1 -0
- package/dist/v2/components/forms/index.js +4 -0
- package/dist/v2/components/layout/CollapsibleSection.vue.d.ts +43 -0
- package/dist/v2/components/layout/CollapsibleSection.vue.d.ts.map +1 -0
- package/dist/v2/components/layout/CollapsibleSection.vue.js +89 -0
- package/dist/v2/components/layout/CollapsibleSection.vue2.js +4 -0
- package/dist/v2/components/layout/ValueEmitter.vue.d.ts +23 -0
- package/dist/v2/components/layout/ValueEmitter.vue.d.ts.map +1 -0
- package/dist/v2/components/layout/ValueEmitter.vue.js +21 -0
- package/dist/v2/components/layout/ValueEmitter.vue2.js +4 -0
- package/dist/v2/components/layout/index.d.ts +2 -0
- package/dist/v2/components/layout/index.d.ts.map +1 -0
- package/dist/v2/components/layout/index.js +4 -0
- package/dist/v2/components/modals/DeleteModal.vue.d.ts +15 -0
- package/dist/v2/components/modals/DeleteModal.vue.d.ts.map +1 -0
- package/dist/v2/components/modals/DeleteModal.vue.js +31 -0
- package/dist/v2/components/modals/DeleteModal.vue2.js +4 -0
- package/dist/v2/components/modals/index.d.ts +2 -0
- package/dist/v2/components/modals/index.d.ts.map +1 -0
- package/dist/v2/components/modals/index.js +4 -0
- 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 +7 -5
- package/dist/v2/components/server/ServerDropdown.vue.d.ts.map +1 -1
- package/dist/v2/components/server/ServerDropdown.vue.js +44 -49
- package/dist/v2/components/server/ServerDropdownItem.vue.d.ts +3 -7
- 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 +24 -26
- package/dist/v2/components/server/index.d.ts.map +1 -1
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts +30 -6
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/v2/components/sidebar/Sidebar.vue.js +57 -62
- 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 +2 -5
- package/dist/v2/features/app/App.vue.d.ts.map +1 -1
- package/dist/v2/features/app/App.vue.js +134 -82
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts +42 -6
- 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 +76 -64
- 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 -41
- 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 +69 -74
- 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.d.ts +13 -25
- package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Authentication.vue.js +2 -2
- package/dist/v2/features/collection/components/Authentication.vue2.js +49 -35
- 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/Form.vue.d.ts +3 -7
- package/dist/v2/features/collection/components/Form.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Form.vue.js +28 -33
- package/dist/v2/features/collection/components/Overview.vue2.js +10 -8
- package/dist/v2/features/collection/components/Servers.vue.d.ts +13 -31
- package/dist/v2/features/collection/components/Servers.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Servers.vue2.js +105 -82
- 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/environments/components/EnvironmentVariablesTable.vue.d.ts.map +1 -1
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.js +3 -3
- 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 +2 -2
- package/dist/v2/features/modal/Modal.vue2.js +28 -53
- 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 +35 -34
- 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 +48 -0
- package/dist/v2/hooks/use-sidebar-state.d.ts.map +1 -0
- package/dist/v2/hooks/use-sidebar-state.js +128 -0
- 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 +52 -135
- 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 +29 -28
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +0 -45
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +0 -29
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/event-types.d.ts +0 -29
- package/dist/v2/blocks/scalar-auth-selector-block/event-types.d.ts.map +0 -1
- 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 -289
- 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/OperationTable.vue2.js +0 -88
- 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.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.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.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.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,16 +1,13 @@
|
|
|
1
|
-
import type { WorkspaceStore } from '@scalar/workspace-store/client';
|
|
2
1
|
import type { ClientLayout } from '../../../v2/types/layout';
|
|
3
2
|
/**
|
|
4
|
-
* Main entry point for the API client for electron and web
|
|
3
|
+
* Main entry point for the API client for electron and web.
|
|
5
4
|
*
|
|
6
|
-
* This
|
|
5
|
+
* This component handles all events and store business logic for the application.
|
|
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"}
|
|
@@ -1,100 +1,152 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarTeleportRoot as
|
|
3
|
-
import { isHttpMethod as
|
|
4
|
-
import { getThemeStyles as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import { defineComponent as P, ref as V, computed as r, createElementBlock as $, createBlock as f, unref as t, openBlock as p, Fragment as F, createElementVNode as w, createVNode as m, withCtx as z, withDirectives as G, vShow as K, normalizeProps as j, guardReactiveProps as q } from "vue";
|
|
2
|
+
import { useModal as J, ScalarTeleportRoot as Q } from "@scalar/components";
|
|
3
|
+
import { isHttpMethod as X } from "@scalar/helpers/http/is-http-method";
|
|
4
|
+
import { getThemeStyles as Y } from "@scalar/themes";
|
|
5
|
+
import { createWorkspaceEventBus as Z } from "@scalar/workspace-store/events";
|
|
6
|
+
import { xScalarEnvironmentSchema as S } from "@scalar/workspace-store/schemas/extensions/document/x-scalar-environments";
|
|
7
|
+
import { coerceValue as h } from "@scalar/workspace-store/schemas/typebox-coerce";
|
|
8
|
+
import { useRoute as ee, useRouter as oe, RouterView as te } from "vue-router";
|
|
9
|
+
import ae from "./components/CreateWorkspaceModal.vue.js";
|
|
10
|
+
import re from "./components/SplashScreen.vue.js";
|
|
11
|
+
import { useColorMode as se } from "../../hooks/use-color-mode.js";
|
|
12
|
+
import { useDocumentWatcher as ne } from "../../hooks/use-document-watcher.js";
|
|
13
|
+
import { useGlobalHotKeys as le } from "../../hooks/use-global-hot-keys.js";
|
|
14
|
+
import { useSidebarState as ce } from "../../hooks/use-sidebar-state.js";
|
|
15
|
+
import { useWorkspaceClientEvents as ue } from "../../hooks/use-workspace-client-events.js";
|
|
16
|
+
import { useWorkspaceSelector as ie } from "../../hooks/use-workspace-selector.js";
|
|
17
|
+
import pe from "./components/AppSidebar.vue.js";
|
|
18
|
+
import me from "./components/DesktopTabs.vue.js";
|
|
19
|
+
import de from "./components/WebTopNav.vue.js";
|
|
20
|
+
const ve = ["innerHTML"], ke = { class: "flex min-h-0 flex-1" }, fe = { class: "bg-b-1 flex-1" }, we = {}, He = /* @__PURE__ */ P({
|
|
21
|
+
...we,
|
|
16
22
|
__name: "App",
|
|
17
23
|
props: {
|
|
18
|
-
layout: {}
|
|
19
|
-
workspaceStore: {}
|
|
24
|
+
layout: {}
|
|
20
25
|
},
|
|
21
|
-
setup(
|
|
22
|
-
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
), b = r(() => {
|
|
29
|
-
const e = l
|
|
30
|
-
return e
|
|
31
|
-
}),
|
|
32
|
-
const e = l
|
|
33
|
-
return e &&
|
|
34
|
-
}),
|
|
35
|
-
|
|
36
|
-
return e && typeof e == "string" ? e : void 0;
|
|
26
|
+
setup(W) {
|
|
27
|
+
typeof window < "u" && (window.dataDumpWorkspace = () => o.value);
|
|
28
|
+
const c = Z({
|
|
29
|
+
debug: !1
|
|
30
|
+
}), u = V(!0), x = ee(), C = oe(), l = (e) => {
|
|
31
|
+
const a = x.params[e];
|
|
32
|
+
return typeof a == "string" ? a : void 0;
|
|
33
|
+
}, d = r(() => l("workspaceSlug")), n = r(() => l("documentSlug")), v = r(() => !n.value || o.value === null ? null : o.value.workspace.documents[n.value] ?? null), b = r(() => {
|
|
34
|
+
const e = l("pathEncoded");
|
|
35
|
+
return e ? decodeURIComponent(e) : void 0;
|
|
36
|
+
}), T = r(() => {
|
|
37
|
+
const e = l("method");
|
|
38
|
+
return e && X(e) ? e : void 0;
|
|
39
|
+
}), y = r(() => l("exampleName")), { store: o, workspaces: E, activeWorkspace: i, setWorkspaceId: D, createWorkspace: I } = ie({
|
|
40
|
+
workspaceId: d
|
|
37
41
|
});
|
|
38
|
-
|
|
39
|
-
const
|
|
40
|
-
|
|
42
|
+
se({ workspaceStore: o });
|
|
43
|
+
const { handleSelectItem: _, sidebarState: O } = ce({
|
|
44
|
+
workspaceStore: o,
|
|
45
|
+
documentSlug: n,
|
|
46
|
+
path: b,
|
|
47
|
+
method: T,
|
|
48
|
+
exampleName: y
|
|
49
|
+
});
|
|
50
|
+
ue({
|
|
51
|
+
eventBus: c,
|
|
52
|
+
document: v,
|
|
53
|
+
workspaceStore: o,
|
|
54
|
+
navigateTo: _,
|
|
55
|
+
isSidebarOpen: u
|
|
56
|
+
}), le(c, W.layout), ne({
|
|
57
|
+
documentName: n,
|
|
58
|
+
store: o,
|
|
59
|
+
initialTimeout: 5e3
|
|
60
|
+
});
|
|
61
|
+
const U = r(() => {
|
|
62
|
+
if (o.value === null)
|
|
63
|
+
return h(S, {});
|
|
64
|
+
const e = o.value.workspace["x-scalar-active-environment"];
|
|
41
65
|
if (!e)
|
|
42
|
-
return S
|
|
43
|
-
const
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
66
|
+
return h(S, {});
|
|
67
|
+
const a = o.value.workspace["x-scalar-environments"]?.[e] ?? {
|
|
68
|
+
variables: []
|
|
69
|
+
}, s = v.value?.["x-scalar-environments"]?.[e] ?? {
|
|
70
|
+
variables: []
|
|
71
|
+
};
|
|
72
|
+
return h(S, {
|
|
73
|
+
...a,
|
|
74
|
+
...s,
|
|
75
|
+
variables: [...a.variables, ...s.variables]
|
|
48
76
|
});
|
|
49
|
-
})
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
77
|
+
}), M = r(() => {
|
|
78
|
+
if (o.value === null)
|
|
79
|
+
return "";
|
|
80
|
+
const e = o.value.workspace["x-scalar-theme"];
|
|
81
|
+
return e ? `<style>${Y(e)}</style>` : "";
|
|
82
|
+
}), B = 288, A = r(
|
|
83
|
+
() => o.value?.workspace?.["x-scalar-sidebar-width"] ?? B
|
|
84
|
+
), N = r(
|
|
85
|
+
() => !!(d.value && !n.value)
|
|
86
|
+
), R = (e) => o.value?.update("x-scalar-sidebar-width", e), H = () => C.push({
|
|
87
|
+
name: "workspace.environment",
|
|
88
|
+
params: { workspaceSlug: d.value }
|
|
89
|
+
}), g = (e) => {
|
|
90
|
+
e && D(e);
|
|
91
|
+
}, L = r(
|
|
92
|
+
() => ({
|
|
93
|
+
documentSlug: n.value ?? "",
|
|
94
|
+
document: v.value,
|
|
95
|
+
environment: U.value,
|
|
96
|
+
eventBus: c,
|
|
97
|
+
exampleName: y.value,
|
|
98
|
+
layout: W.layout,
|
|
99
|
+
method: T.value,
|
|
100
|
+
path: b.value,
|
|
101
|
+
workspaceStore: o.value,
|
|
102
|
+
activeWorkspace: i.value
|
|
103
|
+
})
|
|
104
|
+
), k = J();
|
|
105
|
+
return (e, a) => t(o) !== null && t(i) !== null ? (p(), $(F, { key: 0 }, [
|
|
106
|
+
w("div", { innerHTML: M.value }, null, 8, ve),
|
|
107
|
+
m(t(Q), null, {
|
|
108
|
+
default: z(() => [
|
|
109
|
+
e.layout === "desktop" ? (p(), f(me, { key: 0 })) : (p(), f(de, {
|
|
55
110
|
key: 1,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
"onUpdate:
|
|
65
|
-
|
|
111
|
+
activeWorkspace: t(i),
|
|
112
|
+
workspaces: t(E),
|
|
113
|
+
"onCreate:workspace": a[0] || (a[0] = (s) => t(k).show()),
|
|
114
|
+
"onSelect:workspace": g
|
|
115
|
+
}, null, 8, ["activeWorkspace", "workspaces"])),
|
|
116
|
+
w("main", ke, [
|
|
117
|
+
G(m(pe, {
|
|
118
|
+
isSidebarOpen: u.value,
|
|
119
|
+
"onUpdate:isSidebarOpen": a[1] || (a[1] = (s) => u.value = s),
|
|
120
|
+
activeWorkspace: t(i),
|
|
121
|
+
eventBus: t(c),
|
|
122
|
+
isWorkspaceOpen: N.value,
|
|
66
123
|
layout: e.layout,
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
124
|
+
sidebarState: t(O),
|
|
125
|
+
sidebarWidth: A.value,
|
|
126
|
+
store: t(o),
|
|
127
|
+
workspaces: t(E),
|
|
128
|
+
"onClick:workspace": H,
|
|
129
|
+
"onCreate:workspace": a[2] || (a[2] = (s) => t(k).show()),
|
|
130
|
+
"onSelect:workspace": g,
|
|
131
|
+
onSelectItem: t(_),
|
|
132
|
+
"onUpdate:sidebarWidth": R
|
|
133
|
+
}, null, 8, ["isSidebarOpen", "activeWorkspace", "eventBus", "isWorkspaceOpen", "layout", "sidebarState", "sidebarWidth", "store", "workspaces", "onSelectItem"]), [
|
|
134
|
+
[K, u.value]
|
|
71
135
|
]),
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
environment: E.value,
|
|
79
|
-
eventBus: d(v),
|
|
80
|
-
layout: e.layout,
|
|
81
|
-
workspaceStore: e.workspaceStore,
|
|
82
|
-
path: b.value,
|
|
83
|
-
method: y.value,
|
|
84
|
-
exampleName: x.value
|
|
85
|
-
}, null, 8, ["document", "environment", "eventBus", "layout", "workspaceStore", "path", "method", "exampleName"]))
|
|
86
|
-
], 1024))
|
|
87
|
-
]),
|
|
88
|
-
_: 1
|
|
89
|
-
})
|
|
136
|
+
m(ae, {
|
|
137
|
+
state: t(k),
|
|
138
|
+
"onCreate:workspace": a[3] || (a[3] = (s) => t(I)(s))
|
|
139
|
+
}, null, 8, ["state"]),
|
|
140
|
+
w("div", fe, [
|
|
141
|
+
m(t(te), j(q(L.value)), null, 16)
|
|
90
142
|
])
|
|
91
143
|
])
|
|
92
144
|
]),
|
|
93
145
|
_: 1
|
|
94
146
|
})
|
|
95
|
-
], 64));
|
|
147
|
+
], 64)) : (p(), f(re, { key: 1 }));
|
|
96
148
|
}
|
|
97
149
|
});
|
|
98
150
|
export {
|
|
99
|
-
|
|
151
|
+
He as default
|
|
100
152
|
};
|
|
@@ -1,26 +1,62 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { SidebarState } from '@scalar/sidebar';
|
|
2
|
+
import type { WorkspaceStore } from '@scalar/workspace-store/client';
|
|
3
|
+
import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
4
|
+
import type { TraversedEntry } from '@scalar/workspace-store/schemas/navigation';
|
|
5
|
+
import type { Workspace } from '../../../../v2/hooks/use-workspace-selector.js';
|
|
2
6
|
import type { ClientLayout } from '../../../../v2/types/layout';
|
|
3
7
|
type __VLS_Props = {
|
|
8
|
+
/**
|
|
9
|
+
* The current layout of the app (e.g., 'desktop', 'web')
|
|
10
|
+
*/
|
|
4
11
|
layout: ClientLayout;
|
|
5
|
-
|
|
12
|
+
/**
|
|
13
|
+
* The sidebar state, holding navigation items and state
|
|
14
|
+
*/
|
|
15
|
+
sidebarState: SidebarState<TraversedEntry>;
|
|
16
|
+
/**
|
|
17
|
+
* Whether the workspace overview sidebar is currently open
|
|
18
|
+
*/
|
|
19
|
+
isWorkspaceOpen?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* The currently active workspace.
|
|
22
|
+
* This represents the workspace that the user is currently working in.
|
|
23
|
+
*/
|
|
24
|
+
activeWorkspace: Workspace;
|
|
25
|
+
/**
|
|
26
|
+
* The list of all available workspaces.
|
|
27
|
+
* Used to render options for workspace switching and selection.
|
|
28
|
+
*/
|
|
29
|
+
workspaces: Workspace[];
|
|
30
|
+
/**
|
|
31
|
+
* The workspace event bus for handling workspace-level events.
|
|
32
|
+
* Used for triggering and responding to workspace changes and actions.
|
|
33
|
+
*/
|
|
34
|
+
eventBus: WorkspaceEventBus;
|
|
35
|
+
/**
|
|
36
|
+
* The WorkspaceStore instance for managing workspace state and actions.
|
|
37
|
+
* Provides methods and state for interacting with the current workspace.
|
|
38
|
+
*/
|
|
39
|
+
store: WorkspaceStore;
|
|
6
40
|
};
|
|
7
41
|
type __VLS_PublicProps = __VLS_Props & {
|
|
8
|
-
/** Propagate up the workspace model to the parent */
|
|
9
|
-
'workspace': string;
|
|
10
42
|
/** Controls the visibility of the sidebar */
|
|
11
43
|
'isSidebarOpen': boolean;
|
|
12
44
|
/** Controls the width of the sidebar */
|
|
13
45
|
'sidebarWidth': number;
|
|
14
46
|
};
|
|
15
47
|
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
|
-
"update:workspace": (value: string) => any;
|
|
17
48
|
"update:isSidebarOpen": (value: boolean) => any;
|
|
18
49
|
"update:sidebarWidth": (value: number) => any;
|
|
19
50
|
} & {
|
|
51
|
+
"create:workspace": () => any;
|
|
52
|
+
"select:workspace": (id?: string | undefined) => any;
|
|
53
|
+
selectItem: (id: string) => any;
|
|
20
54
|
"open:commandPalette": (action?: "import" | undefined) => any;
|
|
21
55
|
"click:workspace": () => any;
|
|
22
56
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
23
|
-
"
|
|
57
|
+
"onCreate:workspace"?: (() => any) | undefined;
|
|
58
|
+
"onSelect:workspace"?: ((id?: string | undefined) => any) | undefined;
|
|
59
|
+
onSelectItem?: ((id: string) => any) | undefined;
|
|
24
60
|
"onUpdate:isSidebarOpen"?: ((value: boolean) => any) | undefined;
|
|
25
61
|
"onUpdate:sidebarWidth"?: ((value: number) => any) | undefined;
|
|
26
62
|
"onOpen:commandPalette"?: ((action?: "import" | undefined) => any) | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppSidebar.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/app/components/AppSidebar.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AppSidebar.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/app/components/AppSidebar.vue"],"names":[],"mappings":"AAmQA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AACnD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAA;AAQhF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAA;AAClE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,KAAK,WAAW,GAAG;IACjB;;OAEG;IACH,MAAM,EAAE,YAAY,CAAA;IAEpB;;OAEG;IACH,YAAY,EAAE,YAAY,CAAC,cAAc,CAAC,CAAA;IAE1C;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB;;;OAGG;IACH,eAAe,EAAE,SAAS,CAAA;IAC1B;;;OAGG;IACH,UAAU,EAAE,SAAS,EAAE,CAAA;IACvB;;;OAGG;IACH,QAAQ,EAAE,iBAAiB,CAAA;IAC3B;;;OAGG;IACH,KAAK,EAAE,cAAc,CAAA;CACtB,CAAC;AAoEF,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,6CAA6C;IAC7C,eAAe,EAAE,OAAO,CAAC;IACzB,wCAAwC;IACxC,cAAc,EAAE,MAAM,CAAC;CACtB,CAAC;;;;;;;;;;;;;;;;;;;AA+QF,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./AppSidebar.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import p from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ p(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ p(o, [["__scopeId", "data-v-1294a014"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,24 +1,25 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarSidebarItem as
|
|
3
|
-
import { ScalarIconGlobe as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
1
|
+
import { defineComponent as A, mergeModels as k, computed as p, capitalize as D, useModel as f, createBlock as S, openBlock as m, unref as o, createSlots as P, withCtx as n, createVNode as l, createTextVNode as u, toDisplayString as $, createElementVNode as i, normalizeClass as z, createElementBlock as E, createCommentVNode as w } from "vue";
|
|
2
|
+
import { ScalarSidebarItem as M, ScalarButton as y } from "@scalar/components";
|
|
3
|
+
import { ScalarIconGlobe as N } from "@scalar/icons";
|
|
4
|
+
import V from "../../../../assets/rabbit.ascii.js";
|
|
5
|
+
import q from "../../../../assets/rabbitjump.ascii.js";
|
|
6
|
+
import W from "../../../../components/ScalarAsciiArt.vue.js";
|
|
7
|
+
import { dragHandleFactory as G } from "../../../helpers/drag-handle-factory.js";
|
|
8
|
+
import R from "../../../components/sidebar/Sidebar.vue.js";
|
|
9
|
+
const j = {
|
|
9
10
|
key: 0,
|
|
10
11
|
class: "empty-sidebar-item-content overflow-hidden px-2.5 py-2.5"
|
|
11
|
-
},
|
|
12
|
+
}, x = { class: "rabbit-ascii relative m-auto mt-2 h-[68px] w-[60px]" }, H = { class: "gap-1.5 p-2" }, Y = /* @__PURE__ */ A({
|
|
12
13
|
__name: "AppSidebar",
|
|
13
14
|
props: /* @__PURE__ */ k({
|
|
14
15
|
layout: {},
|
|
15
|
-
|
|
16
|
+
sidebarState: {},
|
|
17
|
+
isWorkspaceOpen: { type: Boolean },
|
|
18
|
+
activeWorkspace: {},
|
|
19
|
+
workspaces: {},
|
|
20
|
+
eventBus: {},
|
|
21
|
+
store: {}
|
|
16
22
|
}, {
|
|
17
|
-
workspace: {
|
|
18
|
-
required: !0,
|
|
19
|
-
default: "default"
|
|
20
|
-
},
|
|
21
|
-
workspaceModifiers: {},
|
|
22
23
|
isSidebarOpen: { type: Boolean, required: !0 },
|
|
23
24
|
isSidebarOpenModifiers: {},
|
|
24
25
|
sidebarWidth: {
|
|
@@ -27,80 +28,91 @@ const $ = {
|
|
|
27
28
|
},
|
|
28
29
|
sidebarWidthModifiers: {}
|
|
29
30
|
}),
|
|
30
|
-
emits: /* @__PURE__ */ k(["open:commandPalette", "click:workspace"
|
|
31
|
-
setup(
|
|
32
|
-
const
|
|
33
|
-
() =>
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
"onUpdate:
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
31
|
+
emits: /* @__PURE__ */ k(["open:commandPalette", "click:workspace", "selectItem", "select:workspace", "create:workspace"], ["update:isSidebarOpen", "update:sidebarWidth"]),
|
|
32
|
+
setup(r, { emit: O }) {
|
|
33
|
+
const s = O, B = p(() => D(r.activeWorkspace.name)), c = f(r, "isSidebarOpen"), b = f(r, "sidebarWidth"), d = p(() => r.sidebarState.items.value.length <= 1), v = p(
|
|
34
|
+
() => G({
|
|
35
|
+
store: r.store,
|
|
36
|
+
sidebarState: r.sidebarState
|
|
37
|
+
})
|
|
38
|
+
), g = (a, e) => v.value.handleDragEnd(a, e), C = (a, e) => v.value.isDroppable(a, e);
|
|
39
|
+
return (a, e) => (m(), S(o(R), {
|
|
40
|
+
isDroppable: C,
|
|
41
|
+
isSidebarOpen: c.value,
|
|
42
|
+
"onUpdate:isSidebarOpen": e[3] || (e[3] = (t) => c.value = t),
|
|
43
|
+
sidebarWidth: b.value,
|
|
44
|
+
"onUpdate:sidebarWidth": e[4] || (e[4] = (t) => b.value = t),
|
|
45
|
+
activeWorkspace: a.activeWorkspace,
|
|
46
|
+
documents: Object.values(a.store.workspace.documents),
|
|
47
|
+
eventBus: a.eventBus,
|
|
48
|
+
layout: a.layout,
|
|
49
|
+
sidebarState: a.sidebarState,
|
|
50
|
+
workspaces: a.workspaces,
|
|
51
|
+
onCreateWorkspace: e[5] || (e[5] = (t) => s("create:workspace")),
|
|
52
|
+
"onSelect:workspace": e[6] || (e[6] = (t) => s("select:workspace", t)),
|
|
53
|
+
onSelectItem: e[7] || (e[7] = (t) => s("selectItem", t)),
|
|
54
|
+
onReorder: e[8] || (e[8] = (t, I) => g(t, I))
|
|
55
|
+
}, P({
|
|
56
|
+
workspaceButton: n(() => [
|
|
57
|
+
l(o(M), {
|
|
47
58
|
is: "button",
|
|
48
|
-
|
|
49
|
-
|
|
59
|
+
active: a.isWorkspaceOpen,
|
|
60
|
+
icon: o(N),
|
|
61
|
+
onClick: e[0] || (e[0] = (t) => s("click:workspace"))
|
|
50
62
|
}, {
|
|
51
|
-
default:
|
|
52
|
-
|
|
63
|
+
default: n(() => [
|
|
64
|
+
u($(B.value), 1)
|
|
53
65
|
]),
|
|
54
66
|
_: 1
|
|
55
|
-
}, 8, ["icon"])
|
|
67
|
+
}, 8, ["active", "icon"])
|
|
56
68
|
]),
|
|
57
69
|
_: 2
|
|
58
70
|
}, [
|
|
59
|
-
|
|
71
|
+
a.layout !== "modal" ? {
|
|
60
72
|
name: "footer",
|
|
61
|
-
fn:
|
|
62
|
-
|
|
63
|
-
class:
|
|
64
|
-
"empty-sidebar-item border-t":
|
|
73
|
+
fn: n(() => [
|
|
74
|
+
i("div", {
|
|
75
|
+
class: z({
|
|
76
|
+
"empty-sidebar-item border-t": d.value
|
|
65
77
|
})
|
|
66
78
|
}, [
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
art: o(
|
|
79
|
+
d.value ? (m(), E("div", j, [
|
|
80
|
+
i("div", x, [
|
|
81
|
+
l(W, {
|
|
82
|
+
art: o(V),
|
|
71
83
|
class: "rabbitsit font-bold"
|
|
72
84
|
}, null, 8, ["art"]),
|
|
73
|
-
|
|
74
|
-
art: o(
|
|
85
|
+
l(W, {
|
|
86
|
+
art: o(q),
|
|
75
87
|
class: "rabbitjump absolute top-0 left-0 font-bold"
|
|
76
88
|
}, null, 8, ["art"])
|
|
77
89
|
]),
|
|
78
|
-
e[
|
|
79
|
-
|
|
80
|
-
|
|
90
|
+
e[9] || (e[9] = i("div", { class: "mt-2 mb-2 text-center text-sm text-balance" }, [
|
|
91
|
+
i("b", { class: "font-medium" }, "Let's Get Started"),
|
|
92
|
+
i("p", { class: "mt-2 leading-3" }, " Create request, folder, collection or import from OpenAPI/Postman ")
|
|
81
93
|
], -1))
|
|
82
|
-
])) :
|
|
83
|
-
|
|
84
|
-
|
|
94
|
+
])) : w("", !0),
|
|
95
|
+
i("div", H, [
|
|
96
|
+
d.value ? (m(), S(o(y), {
|
|
85
97
|
key: 0,
|
|
86
98
|
class: "w-full",
|
|
87
99
|
size: "sm",
|
|
88
|
-
onClick: e[1] || (e[1] = (t) =>
|
|
100
|
+
onClick: e[1] || (e[1] = (t) => s("open:commandPalette", "import"))
|
|
89
101
|
}, {
|
|
90
|
-
default:
|
|
91
|
-
|
|
102
|
+
default: n(() => [...e[10] || (e[10] = [
|
|
103
|
+
u(" Import Collection ", -1)
|
|
92
104
|
])]),
|
|
93
105
|
_: 1
|
|
94
|
-
})) :
|
|
95
|
-
|
|
106
|
+
})) : w("", !0),
|
|
107
|
+
l(o(y), {
|
|
96
108
|
class: "w-full",
|
|
97
109
|
hotkey: "K",
|
|
98
110
|
size: "sm",
|
|
99
111
|
variant: "outlined",
|
|
100
|
-
onClick: e[2] || (e[2] = (t) =>
|
|
112
|
+
onClick: e[2] || (e[2] = (t) => s("open:commandPalette"))
|
|
101
113
|
}, {
|
|
102
|
-
default:
|
|
103
|
-
|
|
114
|
+
default: n(() => [...e[11] || (e[11] = [
|
|
115
|
+
u(" Add Item ", -1)
|
|
104
116
|
])]),
|
|
105
117
|
_: 1
|
|
106
118
|
})
|
|
@@ -109,9 +121,9 @@ const $ = {
|
|
|
109
121
|
]),
|
|
110
122
|
key: "0"
|
|
111
123
|
} : void 0
|
|
112
|
-
]), 1032, ["isSidebarOpen", "sidebarWidth", "
|
|
124
|
+
]), 1032, ["isSidebarOpen", "sidebarWidth", "activeWorkspace", "documents", "eventBus", "layout", "sidebarState", "workspaces"]));
|
|
113
125
|
}
|
|
114
126
|
});
|
|
115
127
|
export {
|
|
116
|
-
|
|
128
|
+
Y as default
|
|
117
129
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type ModalState } from '@scalar/components';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
state: ModalState;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
6
|
+
"create:workspace": (payload: {
|
|
7
|
+
name: string;
|
|
8
|
+
}) => any;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
|
+
"onCreate:workspace"?: ((payload: {
|
|
11
|
+
name: string;
|
|
12
|
+
}) => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
export default _default;
|
|
15
|
+
//# sourceMappingURL=CreateWorkspaceModal.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateWorkspaceModal.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/app/components/CreateWorkspaceModal.vue"],"names":[],"mappings":"AAAA,OAwEO,EAAe,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAMjE,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,UAAU,CAAA;CAClB,CAAC;;;cAIyC,MAAM;;;;cAAN,MAAM;;;AA4HjD,wBAOG"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { defineComponent as p, ref as f, computed as s, watch as b, createBlock as v, openBlock as k, unref as x, withCtx as r, createVNode as m, createTextVNode as V } from "vue";
|
|
2
|
+
import { ScalarModal as _ } from "@scalar/components";
|
|
3
|
+
import w from "../../../../components/CommandPalette/CommandActionForm.vue.js";
|
|
4
|
+
import C from "../../../../components/CommandPalette/CommandActionInput.vue.js";
|
|
5
|
+
const g = /* @__PURE__ */ p({
|
|
6
|
+
__name: "CreateWorkspaceModal",
|
|
7
|
+
props: {
|
|
8
|
+
state: {}
|
|
9
|
+
},
|
|
10
|
+
emits: ["create:workspace"],
|
|
11
|
+
setup(l, { emit: d }) {
|
|
12
|
+
const n = d, e = f(""), a = s(() => e.value.trim()), i = s(
|
|
13
|
+
() => a.value.length === 0
|
|
14
|
+
);
|
|
15
|
+
b(
|
|
16
|
+
() => l.state.open,
|
|
17
|
+
(o) => {
|
|
18
|
+
o && (e.value = "");
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
const u = () => {
|
|
22
|
+
a.value && (n("create:workspace", {
|
|
23
|
+
name: a.value
|
|
24
|
+
}), l.state.hide());
|
|
25
|
+
};
|
|
26
|
+
return (o, t) => (k(), v(x(_), {
|
|
27
|
+
bodyClass: "border-t-0 rounded-t-lg",
|
|
28
|
+
size: "xs",
|
|
29
|
+
state: o.state
|
|
30
|
+
}, {
|
|
31
|
+
default: r(() => [
|
|
32
|
+
m(w, {
|
|
33
|
+
disabled: i.value,
|
|
34
|
+
onSubmit: u
|
|
35
|
+
}, {
|
|
36
|
+
submit: r(() => [...t[1] || (t[1] = [
|
|
37
|
+
V("Add Workspace", -1)
|
|
38
|
+
])]),
|
|
39
|
+
default: r(() => [
|
|
40
|
+
m(C, {
|
|
41
|
+
modelValue: e.value,
|
|
42
|
+
"onUpdate:modelValue": t[0] || (t[0] = (c) => e.value = c),
|
|
43
|
+
class: "-mt-[.5px] !p-0",
|
|
44
|
+
placeholder: "Workspace name"
|
|
45
|
+
}, null, 8, ["modelValue"])
|
|
46
|
+
]),
|
|
47
|
+
_: 1
|
|
48
|
+
}, 8, ["disabled"])
|
|
49
|
+
]),
|
|
50
|
+
_: 1
|
|
51
|
+
}, 8, ["state"]));
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
export {
|
|
55
|
+
g as default
|
|
56
|
+
};
|
package/dist/v2/{components/TempReplaceMe.vue.d.ts → features/app/components/SplashScreen.vue.d.ts}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
2
|
export default _default;
|
|
3
|
-
//# sourceMappingURL=
|
|
3
|
+
//# sourceMappingURL=SplashScreen.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SplashScreen.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/app/components/SplashScreen.vue"],"names":[],"mappings":";AA+HA,wBAKG"}
|