@scalar/api-client 2.9.1 → 2.11.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 +50 -0
- package/README.md +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 +3 -3
- package/dist/layouts/App/create-api-client-app.d.ts +1 -1
- package/dist/layouts/Web/create-api-client-web.d.ts +1 -1
- package/dist/libs/create-client.d.ts +1 -1
- package/dist/libs/send-request/build-request-security.d.ts.map +1 -1
- package/dist/libs/send-request/build-request-security.js +1 -1
- package/dist/libs/send-request/create-fetch-query-params.d.ts.map +1 -1
- package/dist/store/store.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts +87 -0
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -0
- package/dist/v2/blocks/operation-block/OperationBlock.vue.js +126 -0
- package/dist/v2/blocks/operation-block/OperationBlock.vue2.js +4 -0
- package/dist/v2/{features/operation → blocks/operation-block}/components/Header.vue.d.ts +10 -32
- package/dist/v2/blocks/operation-block/components/Header.vue.d.ts.map +1 -0
- package/dist/v2/{features/operation → blocks/operation-block}/components/Header.vue.js +2 -2
- package/dist/v2/blocks/operation-block/components/Header.vue2.js +91 -0
- package/dist/v2/blocks/operation-block/index.d.ts +2 -0
- package/dist/v2/blocks/operation-block/index.d.ts.map +1 -0
- package/dist/v2/blocks/operation-block/index.js +4 -0
- 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-address-bar-block/components/AddressBar.vue.d.ts +10 -29
- 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 +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +52 -53
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts +15 -34
- 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 -169
- 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 +17 -22
- 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 -80
- 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 +134 -144
- 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 +47 -45
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts +5 -5
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.js +7 -7
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts +7 -24
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.js +2 -2
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue2.js +230 -208
- package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.d.ts +33 -30
- package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.js +2 -2
- package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue2.js +138 -99
- package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.d.ts +3 -5
- package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.js +35 -35
- package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue.d.ts +3 -5
- package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue.js +1 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue2.js +45 -44
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue.d.ts +2 -5
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue.js +67 -65
- package/dist/v2/blocks/scalar-response-block/components/Headers.vue.d.ts +2 -2
- package/dist/v2/blocks/scalar-response-block/components/Headers.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-response-block/components/Headers.vue.js +9 -9
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.d.ts +2 -4
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.js +3 -3
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue2.js +39 -38
- package/dist/v2/blocks/scalar-response-block/components/ResponseBody.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBody.vue.js +2 -2
- package/dist/v2/blocks/scalar-response-block/components/ResponseBody.vue2.js +18 -18
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.vue.js +14 -14
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyVirtual.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyVirtual.vue.js +12 -12
- package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.vue.js +13 -13
- 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/server/ServerDropdown.vue.d.ts +4 -2
- package/dist/v2/components/server/ServerDropdown.vue.d.ts.map +1 -1
- package/dist/v2/components/server/ServerDropdown.vue.js +31 -31
- package/dist/v2/components/server/ServerDropdownItem.vue.d.ts +2 -6
- package/dist/v2/components/server/ServerDropdownItem.vue.d.ts.map +1 -1
- package/dist/v2/components/server/ServerDropdownItem.vue.js +1 -1
- package/dist/v2/components/server/ServerDropdownItem.vue2.js +16 -16
- package/dist/v2/components/server/index.d.ts.map +1 -1
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts +6 -2
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/v2/components/sidebar/Sidebar.vue.js +38 -47
- package/dist/v2/features/app/App.vue.d.ts +2 -2
- package/dist/v2/features/app/App.vue.d.ts.map +1 -1
- package/dist/v2/features/app/App.vue.js +93 -65
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts +7 -3
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
- package/dist/v2/features/app/components/AppSidebar.vue.js +2 -2
- package/dist/v2/features/app/components/AppSidebar.vue2.js +50 -47
- package/dist/v2/features/app/helpers/routes.d.ts +5 -11
- package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
- package/dist/v2/features/app/helpers/routes.js +1 -1
- package/dist/v2/features/collection/DocumentCollection.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/DocumentCollection.vue2.js +77 -72
- package/dist/v2/features/collection/WorkspaceCollection.vue2.js +15 -12
- package/dist/v2/features/collection/components/Authentication.vue.d.ts +13 -46
- 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 +48 -37
- package/dist/v2/features/collection/components/Environment.vue2.js +3 -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 +24 -21
- 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 +103 -82
- 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/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 +40 -32
- package/dist/v2/features/operation/Operation.vue.d.ts +10 -77
- package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
- package/dist/v2/features/operation/Operation.vue.js +50 -114
- package/dist/v2/hooks/use-sidebar-state.d.ts +47 -0
- package/dist/v2/hooks/use-sidebar-state.d.ts.map +1 -0
- package/dist/v2/hooks/use-sidebar-state.js +112 -0
- package/dist/v2/hooks/use-workspace-client-events.d.ts.map +1 -1
- package/dist/v2/hooks/use-workspace-client-events.js +100 -19
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
- package/dist/views/Request/libs/oauth2.js +8 -6
- package/package.json +17 -17
- package/dist/components/CodeInput/CodeInput.test.d.ts +0 -2
- package/dist/components/CodeInput/CodeInput.test.d.ts.map +0 -1
- package/dist/components/ImportCollection/utils/get-openapi-version.test.d.ts +0 -2
- package/dist/components/ImportCollection/utils/get-openapi-version.test.d.ts.map +0 -1
- package/dist/components/ImportCollection/utils/is-document.test.d.ts +0 -2
- package/dist/components/ImportCollection/utils/is-document.test.d.ts.map +0 -1
- package/dist/components/ImportCollection/utils/is-url.test.d.ts +0 -2
- package/dist/components/ImportCollection/utils/is-url.test.d.ts.map +0 -1
- package/dist/components/Search/useSearch.test.d.ts +0 -2
- package/dist/components/Search/useSearch.test.d.ts.map +0 -1
- package/dist/components/Server/ServerDropdown.test.d.ts +0 -2
- package/dist/components/Server/ServerDropdown.test.d.ts.map +0 -1
- package/dist/components/ViewLayout/ViewLayoutSection.test.d.ts +0 -2
- package/dist/components/ViewLayout/ViewLayoutSection.test.d.ts.map +0 -1
- package/dist/hooks/useResponseBody.test.d.ts +0 -2
- package/dist/hooks/useResponseBody.test.d.ts.map +0 -1
- package/dist/hooks/useSidebar.test.d.ts +0 -2
- package/dist/hooks/useSidebar.test.d.ts.map +0 -1
- package/dist/layouts/App/create-api-client-app.test.d.ts +0 -2
- package/dist/layouts/App/create-api-client-app.test.d.ts.map +0 -1
- package/dist/layouts/Modal/create-api-client-modal.test.d.ts +0 -2
- package/dist/layouts/Modal/create-api-client-modal.test.d.ts.map +0 -1
- package/dist/layouts/Web/create-api-client-web.test.d.ts +0 -2
- package/dist/layouts/Web/create-api-client-web.test.d.ts.map +0 -1
- package/dist/libs/create-client.test.d.ts +0 -2
- package/dist/libs/create-client.test.d.ts.map +0 -1
- package/dist/libs/env-helpers.test.d.ts +0 -2
- package/dist/libs/env-helpers.test.d.ts.map +0 -1
- package/dist/libs/event-bus.test.d.ts +0 -2
- package/dist/libs/event-bus.test.d.ts.map +0 -1
- package/dist/libs/extractAttachmentFilename.test.d.ts +0 -2
- package/dist/libs/extractAttachmentFilename.test.d.ts.map +0 -1
- package/dist/libs/find-request.test.d.ts +0 -2
- package/dist/libs/find-request.test.d.ts.map +0 -1
- package/dist/libs/get-request-uid-by-path-method.test.d.ts +0 -2
- package/dist/libs/get-request-uid-by-path-method.test.d.ts.map +0 -1
- package/dist/libs/hot-keys.test.d.ts +0 -2
- package/dist/libs/hot-keys.test.d.ts.map +0 -1
- package/dist/libs/importers/curl.test.d.ts +0 -2
- package/dist/libs/importers/curl.test.d.ts.map +0 -1
- package/dist/libs/normalize-headers.test.d.ts +0 -2
- package/dist/libs/normalize-headers.test.d.ts.map +0 -1
- package/dist/libs/parse-curl.test.d.ts +0 -2
- package/dist/libs/parse-curl.test.d.ts.map +0 -1
- package/dist/libs/send-request/build-request-security.test.d.ts +0 -2
- package/dist/libs/send-request/build-request-security.test.d.ts.map +0 -1
- package/dist/libs/send-request/create-fetch-auth.test.d.ts +0 -2
- package/dist/libs/send-request/create-fetch-auth.test.d.ts.map +0 -1
- package/dist/libs/send-request/create-fetch-body.test.d.ts +0 -2
- package/dist/libs/send-request/create-fetch-body.test.d.ts.map +0 -1
- package/dist/libs/send-request/create-fetch-headers.test.d.ts +0 -2
- package/dist/libs/send-request/create-fetch-headers.test.d.ts.map +0 -1
- package/dist/libs/send-request/create-fetch-query-params.test.d.ts +0 -2
- package/dist/libs/send-request/create-fetch-query-params.test.d.ts.map +0 -1
- package/dist/libs/send-request/create-request-operation.test.d.ts +0 -191
- package/dist/libs/send-request/create-request-operation.test.d.ts.map +0 -1
- package/dist/libs/send-request/decode-buffer.test.d.ts +0 -2
- package/dist/libs/send-request/decode-buffer.test.d.ts.map +0 -1
- package/dist/libs/send-request/set-request-cookies.test.d.ts +0 -2
- package/dist/libs/send-request/set-request-cookies.test.d.ts.map +0 -1
- package/dist/libs/string-template.test.d.ts +0 -2
- package/dist/libs/string-template.test.d.ts.map +0 -1
- package/dist/libs/validate-parameters.test.d.ts +0 -2
- package/dist/libs/validate-parameters.test.d.ts.map +0 -1
- package/dist/plugins/plugin-manager.test.d.ts +0 -2
- package/dist/plugins/plugin-manager.test.d.ts.map +0 -1
- package/dist/routes.test.d.ts +0 -2
- package/dist/routes.test.d.ts.map +0 -1
- package/dist/store/collections.test.d.ts +0 -2
- package/dist/store/collections.test.d.ts.map +0 -1
- package/dist/store/request.test.d.ts +0 -2
- package/dist/store/request.test.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.test.d.ts +0 -2
- package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.test.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/components/HttpMethod.test.d.ts +0 -2
- package/dist/v2/blocks/operation-code-sample/components/HttpMethod.test.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.test.d.ts +0 -2
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.test.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/helpers/find-client.test.d.ts +0 -2
- package/dist/v2/blocks/operation-code-sample/helpers/find-client.test.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/helpers/generate-client-options.test.d.ts +0 -2
- package/dist/v2/blocks/operation-code-sample/helpers/generate-client-options.test.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.test.d.ts +0 -2
- package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.test.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.test.d.ts +0 -2
- package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.test.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.test.d.ts +0 -2
- package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.test.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/helpers/get-secrets.test.d.ts +0 -2
- package/dist/v2/blocks/operation-code-sample/helpers/get-secrets.test.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/get-example-value.test.d.ts +0 -2
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/get-example-value.test.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.test.d.ts +0 -2
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.test.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.test.d.ts +0 -2
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.test.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.test.d.ts +0 -2
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.test.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-security-schemes.test.d.ts +0 -2
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-security-schemes.test.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-server-url.test.d.ts +0 -2
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-server-url.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.test.d.ts.map +0 -1
- 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/OAuthScopesInput.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.test.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-auth-selector-block/helpers/oauth.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationParams.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-operation-block/components/OperationParams.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationTable.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-operation-block/components/OperationTable.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableTooltip.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableTooltip.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/helpers/file.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-operation-block/helpers/file.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-content.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-content.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-example.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-example.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-schema.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-schema.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/helpers/group-by.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-operation-block/helpers/group-by.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/helpers/validate-parameter.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-operation-block/helpers/validate-parameter.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/Headers.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-response-block/components/Headers.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyDownload.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyDownload.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyPreview.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyPreview.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/helpers/extract-filename.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-response-block/helpers/extract-filename.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/helpers/get-content-length.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-response-block/helpers/get-content-length.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/helpers/media-types.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-response-block/helpers/media-types.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/helpers/process-response-body.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-response-block/helpers/process-response-body.test.d.ts.map +0 -1
- package/dist/v2/components/code-input/CodeInput.test.d.ts +0 -2
- package/dist/v2/components/code-input/CodeInput.test.d.ts.map +0 -1
- package/dist/v2/components/code-input/code-variable-widget.test.d.ts +0 -2
- package/dist/v2/components/code-input/code-variable-widget.test.d.ts.map +0 -1
- package/dist/v2/components/server/ServerDropdown.test.d.ts +0 -2
- package/dist/v2/components/server/ServerDropdown.test.d.ts.map +0 -1
- package/dist/v2/components/server/ServerDropdownItem.test.d.ts +0 -2
- package/dist/v2/components/server/ServerDropdownItem.test.d.ts.map +0 -1
- package/dist/v2/features/app/App.test.d.ts +0 -2
- package/dist/v2/features/app/App.test.d.ts.map +0 -1
- package/dist/v2/features/collection/DocumentCollection.test.d.ts +0 -2
- package/dist/v2/features/collection/DocumentCollection.test.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Authentication.test.d.ts +0 -2
- package/dist/v2/features/collection/components/Authentication.test.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Environment.test.d.ts +0 -2
- package/dist/v2/features/collection/components/Environment.test.d.ts.map +0 -1
- package/dist/v2/features/collection/components/LabelInput.test.d.ts +0 -2
- package/dist/v2/features/collection/components/LabelInput.test.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Overview.test.d.ts +0 -2
- package/dist/v2/features/collection/components/Overview.test.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Servers.test.d.ts +0 -2
- package/dist/v2/features/collection/components/Servers.test.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Settings.test.d.ts +0 -2
- package/dist/v2/features/collection/components/Settings.test.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Tabs.test.d.ts +0 -2
- package/dist/v2/features/collection/components/Tabs.test.d.ts.map +0 -1
- package/dist/v2/features/environments/EnvironmentsList.test.d.ts +0 -2
- package/dist/v2/features/environments/EnvironmentsList.test.d.ts.map +0 -1
- package/dist/v2/features/environments/components/Environment.test.d.ts +0 -2
- package/dist/v2/features/environments/components/Environment.test.d.ts.map +0 -1
- package/dist/v2/features/environments/components/EnvironmentColors.test.d.ts +0 -2
- package/dist/v2/features/environments/components/EnvironmentColors.test.d.ts.map +0 -1
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.test.d.ts +0 -2
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.test.d.ts.map +0 -1
- package/dist/v2/features/global-cookies/components/CookiesTable.test.d.ts +0 -2
- package/dist/v2/features/global-cookies/components/CookiesTable.test.d.ts.map +0 -1
- package/dist/v2/features/global-cookies/components/GlobalCookies.test.d.ts +0 -2
- package/dist/v2/features/global-cookies/components/GlobalCookies.test.d.ts.map +0 -1
- package/dist/v2/features/operation/Operation.test.d.ts +0 -2
- package/dist/v2/features/operation/Operation.test.d.ts.map +0 -1
- package/dist/v2/features/operation/components/Header.test.d.ts +0 -2
- package/dist/v2/features/operation/components/Header.test.d.ts.map +0 -1
- package/dist/v2/features/operation/components/Header.vue.d.ts.map +0 -1
- package/dist/v2/features/operation/components/Header.vue2.js +0 -97
- package/dist/v2/features/settings/Settings.test.d.ts +0 -2
- package/dist/v2/features/settings/Settings.test.d.ts.map +0 -1
- package/dist/v2/hooks/use-document-watcher.test.d.ts +0 -2
- package/dist/v2/hooks/use-document-watcher.test.d.ts.map +0 -1
- package/dist/views/Components/CodeSnippet/CodeSnippet.test.d.ts +0 -2
- package/dist/views/Components/CodeSnippet/CodeSnippet.test.d.ts.map +0 -1
- package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.test.d.ts +0 -2
- package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.test.d.ts.map +0 -1
- package/dist/views/Components/CodeSnippet/helpers/get-har-request.test.d.ts +0 -2
- package/dist/views/Components/CodeSnippet/helpers/get-har-request.test.d.ts.map +0 -1
- package/dist/views/Components/CodeSnippet/helpers/get-snippet.test.d.ts +0 -2
- package/dist/views/Components/CodeSnippet/helpers/get-snippet.test.d.ts.map +0 -1
- package/dist/views/Request/RequestRoot.test.d.ts +0 -2
- package/dist/views/Request/RequestRoot.test.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.test.d.ts +0 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.test.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/RequestAuth/helpers/restore-auth-from-local-storage.test.d.ts +0 -2
- package/dist/views/Request/RequestSection/RequestAuth/helpers/restore-auth-from-local-storage.test.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/RequestBody.test.d.ts +0 -2
- package/dist/views/Request/RequestSection/RequestBody.test.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/RequestCodeExample.test.d.ts +0 -2
- package/dist/views/Request/RequestSection/RequestCodeExample.test.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/RequestSection.test.d.ts +0 -2
- package/dist/views/Request/RequestSection/RequestSection.test.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/helpers/filter-security-requirements.test.d.ts +0 -2
- package/dist/views/Request/RequestSection/helpers/filter-security-requirements.test.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/helpers/getting-started.test.d.ts +0 -2
- package/dist/views/Request/RequestSection/helpers/getting-started.test.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/helpers/update-scheme.test.d.ts +0 -2
- package/dist/views/Request/RequestSection/helpers/update-scheme.test.d.ts.map +0 -1
- package/dist/views/Request/RequestSubpageHeader.test.d.ts +0 -2
- package/dist/views/Request/RequestSubpageHeader.test.d.ts.map +0 -1
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.test.d.ts +0 -2
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.test.d.ts.map +0 -1
- package/dist/views/Request/ResponseSection/ResponseSection.test.d.ts +0 -2
- package/dist/views/Request/ResponseSection/ResponseSection.test.d.ts.map +0 -1
- package/dist/views/Request/consts/mediaTypes.test.d.ts +0 -2
- package/dist/views/Request/consts/mediaTypes.test.d.ts.map +0 -1
- package/dist/views/Request/libs/auth.test.d.ts +0 -2
- package/dist/views/Request/libs/auth.test.d.ts.map +0 -1
- package/dist/views/Request/libs/oauth2.test.d.ts +0 -2
- package/dist/views/Request/libs/oauth2.test.d.ts.map +0 -1
- package/dist/views/Request/libs/request.test.d.ts +0 -2
- package/dist/views/Request/libs/request.test.d.ts.map +0 -1
- package/dist/views/Request/libs/watch-mode.test.d.ts +0 -2
- package/dist/views/Request/libs/watch-mode.test.d.ts.map +0 -1
- package/dist/vitest.setup.d.ts +0 -34
- package/dist/vitest.setup.d.ts.map +0 -1
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { Environment } from '@scalar/oas-utils/entities/environment';
|
|
3
|
-
import type { Path, PathValue } from '@scalar/object-utils/nested';
|
|
4
|
-
import { type EnvVariable } from '../../../../store/index.js';
|
|
1
|
+
import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
|
|
5
2
|
type __VLS_Props = {
|
|
6
3
|
title?: string;
|
|
7
4
|
options: {
|
|
@@ -10,9 +7,8 @@ type __VLS_Props = {
|
|
|
10
7
|
placeholder: string;
|
|
11
8
|
}[];
|
|
12
9
|
data: Record<string, any>;
|
|
13
|
-
onUpdate:
|
|
14
|
-
environment:
|
|
15
|
-
envVariables: EnvVariable[];
|
|
10
|
+
onUpdate: (key: string, value: string) => void;
|
|
11
|
+
environment: XScalarEnvironment;
|
|
16
12
|
};
|
|
17
13
|
declare var __VLS_5: {};
|
|
18
14
|
type __VLS_Slots = {} & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Form.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/collection/components/Form.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Form.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/collection/components/Form.vue"],"names":[],"mappings":"AA0EA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AAQnH,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,EAAE;QACP,GAAG,EAAE,MAAM,CAAA;QACX,KAAK,EAAE,MAAM,CAAA;QACb,WAAW,EAAE,MAAM,CAAA;KACpB,EAAE,CAAA;IACH,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACzB,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAC9C,WAAW,EAAE,kBAAkB,CAAA;CAChC,CAAC;AA4IF,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAyB7C,QAAA,MAAM,eAAe,kSAMnB,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,55 +1,50 @@
|
|
|
1
|
-
import { defineComponent as f, useId as
|
|
2
|
-
import { ScalarIcon as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import S from "
|
|
6
|
-
import U from "
|
|
7
|
-
const $ = { key: 0 }, w = { class: "flex flex-1 flex-col gap-1.5" },
|
|
1
|
+
import { defineComponent as f, useId as k, createBlock as n, openBlock as l, createSlots as s, withCtx as t, createElementVNode as a, createCommentVNode as y, createElementBlock as i, Fragment as _, renderList as h, createVNode as m, unref as r, toDisplayString as c, renderSlot as b } from "vue";
|
|
2
|
+
import { ScalarIcon as g } from "@scalar/components";
|
|
3
|
+
import v from "../../../../components/ViewLayout/ViewLayoutSection.vue.js";
|
|
4
|
+
import V from "../../../components/data-table/DataTable.vue.js";
|
|
5
|
+
import S from "../../../components/data-table/DataTableInput.vue.js";
|
|
6
|
+
import U from "../../../components/data-table/DataTableRow.vue.js";
|
|
7
|
+
const $ = { key: 0 }, w = { class: "flex flex-1 flex-col gap-1.5" }, B = ["for"], C = { class: "centered-y bg-b-2 flex-center absolute right-1 z-1 rounded px-1 py-0.5" }, L = /* @__PURE__ */ f({
|
|
8
8
|
__name: "Form",
|
|
9
9
|
props: {
|
|
10
10
|
title: {},
|
|
11
11
|
options: {},
|
|
12
12
|
data: {},
|
|
13
13
|
onUpdate: { type: Function },
|
|
14
|
-
environment: {}
|
|
15
|
-
envVariables: {}
|
|
14
|
+
environment: {}
|
|
16
15
|
},
|
|
17
16
|
setup(D) {
|
|
18
|
-
const
|
|
19
|
-
return (e, F) => (l(),
|
|
17
|
+
const d = k();
|
|
18
|
+
return (e, F) => (l(), n(v, { class: "last:rounded-b-lg" }, s({
|
|
20
19
|
default: t(() => [
|
|
21
|
-
|
|
22
|
-
Object.keys(e.data).length > 0 ? (l(),
|
|
20
|
+
a("div", w, [
|
|
21
|
+
Object.keys(e.data).length > 0 ? (l(), n(V, {
|
|
23
22
|
key: 0,
|
|
24
23
|
class: "rounded-b-lg",
|
|
25
24
|
columns: [""]
|
|
26
25
|
}, {
|
|
27
26
|
default: t(() => [
|
|
28
|
-
(l(!0),
|
|
29
|
-
key: i,
|
|
30
|
-
class: v({ "border-t": i === 0 })
|
|
31
|
-
}, {
|
|
27
|
+
(l(!0), i(_, null, h(e.options, (o, p) => (l(), n(U, { key: p }, {
|
|
32
28
|
default: t(() => [
|
|
33
|
-
|
|
34
|
-
id: r(
|
|
29
|
+
m(S, {
|
|
30
|
+
id: r(d),
|
|
35
31
|
class: "pr-9",
|
|
36
|
-
envVariables: e.envVariables,
|
|
37
32
|
environment: e.environment,
|
|
38
33
|
lineWrapping: "",
|
|
39
|
-
modelValue: e.data[
|
|
40
|
-
placeholder:
|
|
41
|
-
"onUpdate:modelValue": (u) => e.onUpdate(
|
|
42
|
-
},
|
|
34
|
+
modelValue: e.data[o.key] ?? "",
|
|
35
|
+
placeholder: o.placeholder,
|
|
36
|
+
"onUpdate:modelValue": (u) => e.onUpdate(o.key, u)
|
|
37
|
+
}, s({
|
|
43
38
|
default: t(() => [
|
|
44
|
-
|
|
39
|
+
a("label", { for: r(d) }, c(o.label), 9, B)
|
|
45
40
|
]),
|
|
46
41
|
_: 2
|
|
47
42
|
}, [
|
|
48
|
-
|
|
43
|
+
o.key === "description" ? {
|
|
49
44
|
name: "icon",
|
|
50
45
|
fn: t(() => [
|
|
51
|
-
|
|
52
|
-
|
|
46
|
+
a("div", C, [
|
|
47
|
+
m(r(g), {
|
|
53
48
|
icon: "Markdown",
|
|
54
49
|
size: "lg"
|
|
55
50
|
})
|
|
@@ -57,13 +52,13 @@ const $ = { key: 0 }, w = { class: "flex flex-1 flex-col gap-1.5" }, z = ["for"]
|
|
|
57
52
|
]),
|
|
58
53
|
key: "0"
|
|
59
54
|
} : void 0
|
|
60
|
-
]), 1032, ["id", "
|
|
55
|
+
]), 1032, ["id", "environment", "modelValue", "placeholder", "onUpdate:modelValue"])
|
|
61
56
|
]),
|
|
62
57
|
_: 2
|
|
63
|
-
},
|
|
58
|
+
}, 1024))), 128))
|
|
64
59
|
]),
|
|
65
60
|
_: 1
|
|
66
|
-
})) :
|
|
61
|
+
})) : y("", !0)
|
|
67
62
|
])
|
|
68
63
|
]),
|
|
69
64
|
_: 2
|
|
@@ -71,7 +66,7 @@ const $ = { key: 0 }, w = { class: "flex flex-1 flex-col gap-1.5" }, z = ["for"]
|
|
|
71
66
|
e.title || e.$slots.title ? {
|
|
72
67
|
name: "title",
|
|
73
68
|
fn: t(() => [
|
|
74
|
-
e.title ? (l(),
|
|
69
|
+
e.title ? (l(), i("span", $, c(e.title), 1)) : b(e.$slots, "title", { key: 1 })
|
|
75
70
|
]),
|
|
76
71
|
key: "0"
|
|
77
72
|
} : void 0
|
|
@@ -79,5 +74,5 @@ const $ = { key: 0 }, w = { class: "flex flex-1 flex-col gap-1.5" }, z = ["for"]
|
|
|
79
74
|
}
|
|
80
75
|
});
|
|
81
76
|
export {
|
|
82
|
-
|
|
77
|
+
L as default
|
|
83
78
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as g, computed as
|
|
2
|
-
import { ScalarButton as f, ScalarMarkdown as
|
|
1
|
+
import { defineComponent as g, computed as x, ref as y, useTemplateRef as w, createElementBlock as i, openBlock as t, createElementVNode as o, createBlock as m, createCommentVNode as h, unref as n, withCtx as c, createVNode as d, Fragment as v, nextTick as B } from "vue";
|
|
2
|
+
import { ScalarButton as f, ScalarMarkdown as C } from "@scalar/components";
|
|
3
3
|
import { ScalarIconPencil as b } from "@scalar/icons";
|
|
4
|
-
import
|
|
5
|
-
const
|
|
4
|
+
import I from "../../../components/code-input/CodeInput.vue.js";
|
|
5
|
+
const V = { class: "flex flex-col gap-2" }, z = { class: "flex items-center justify-between gap-2 pl-1.5" }, N = { class: "has-[:focus-visible]:bg-b-1 group rounded-lg" }, R = {
|
|
6
6
|
key: 1,
|
|
7
7
|
class: "text-c-3 flex items-center justify-center rounded-lg border p-4"
|
|
8
8
|
}, j = /* @__PURE__ */ g({
|
|
@@ -11,28 +11,31 @@ const h = { class: "flex flex-col gap-2" }, z = { class: "flex items-center just
|
|
|
11
11
|
document: {},
|
|
12
12
|
eventBus: {},
|
|
13
13
|
layout: {},
|
|
14
|
+
path: {},
|
|
15
|
+
method: {},
|
|
16
|
+
exampleName: {},
|
|
14
17
|
environment: {},
|
|
15
18
|
workspaceStore: {},
|
|
16
19
|
collectionType: {}
|
|
17
20
|
},
|
|
18
21
|
setup(k) {
|
|
19
|
-
const u =
|
|
22
|
+
const u = x(
|
|
20
23
|
() => k.document?.info?.description ?? ""
|
|
21
|
-
), a =
|
|
22
|
-
a.value = s, s === "edit" && (await
|
|
24
|
+
), a = y("preview"), p = w("codeInputRef"), r = async (s) => {
|
|
25
|
+
a.value = s, s === "edit" && (await B(), p.value?.focus());
|
|
23
26
|
};
|
|
24
|
-
return (s, e) => (t(), i("div",
|
|
27
|
+
return (s, e) => (t(), i("div", V, [
|
|
25
28
|
o("div", z, [
|
|
26
29
|
e[6] || (e[6] = o("h3", { class: "font-bold" }, "Description", -1)),
|
|
27
|
-
a.value === "preview" ? (t(),
|
|
30
|
+
a.value === "preview" ? (t(), m(n(f), {
|
|
28
31
|
key: 0,
|
|
29
32
|
class: "text-c-2 hover:text-c-1 flex items-center gap-2",
|
|
30
33
|
size: "sm",
|
|
31
34
|
type: "button",
|
|
32
35
|
variant: "outlined",
|
|
33
|
-
onClick: e[0] || (e[0] = (
|
|
36
|
+
onClick: e[0] || (e[0] = (l) => r("edit"))
|
|
34
37
|
}, {
|
|
35
|
-
default:
|
|
38
|
+
default: c(() => [
|
|
36
39
|
d(n(b), {
|
|
37
40
|
size: "sm",
|
|
38
41
|
thickness: "1.5"
|
|
@@ -40,26 +43,26 @@ const h = { class: "flex flex-col gap-2" }, z = { class: "flex items-center just
|
|
|
40
43
|
e[5] || (e[5] = o("span", null, "Edit", -1))
|
|
41
44
|
]),
|
|
42
45
|
_: 1
|
|
43
|
-
})) :
|
|
46
|
+
})) : h("", !0)
|
|
44
47
|
]),
|
|
45
|
-
o("div",
|
|
48
|
+
o("div", N, [
|
|
46
49
|
a.value === "preview" ? (t(), i(v, { key: 0 }, [
|
|
47
50
|
u.value.trim().length ? (t(), i(v, { key: 0 }, [
|
|
48
|
-
d(n(
|
|
51
|
+
d(n(C), {
|
|
49
52
|
class: "flex-1 rounded border border-transparent p-1.5 hover:border-(--scalar-background-3)",
|
|
50
53
|
value: u.value,
|
|
51
54
|
withImages: "",
|
|
52
|
-
onDblclick: e[1] || (e[1] = (
|
|
55
|
+
onDblclick: e[1] || (e[1] = (l) => r("edit"))
|
|
53
56
|
}, null, 8, ["value"]),
|
|
54
57
|
e[7] || (e[7] = o("div", { class: "brightness-lifted bg-b-1 absolute inset-0 -z-1 hidden rounded group-hover:block group-has-[:focus-visible]:hidden" }, null, -1))
|
|
55
|
-
], 64)) : (t(), i("div",
|
|
58
|
+
], 64)) : (t(), i("div", R, [
|
|
56
59
|
d(n(f), {
|
|
57
60
|
class: "hover:bg-b-2 hover:text-c-1 text-c-2 flex items-center gap-2",
|
|
58
61
|
size: "sm",
|
|
59
62
|
variant: "ghost",
|
|
60
|
-
onClick: e[2] || (e[2] = (
|
|
63
|
+
onClick: e[2] || (e[2] = (l) => r("edit"))
|
|
61
64
|
}, {
|
|
62
|
-
default:
|
|
65
|
+
default: c(() => [
|
|
63
66
|
d(n(b), {
|
|
64
67
|
size: "sm",
|
|
65
68
|
thickness: "1.5"
|
|
@@ -69,7 +72,7 @@ const h = { class: "flex flex-col gap-2" }, z = { class: "flex items-center just
|
|
|
69
72
|
_: 1
|
|
70
73
|
})
|
|
71
74
|
]))
|
|
72
|
-
], 64)) : (t(),
|
|
75
|
+
], 64)) : (t(), m(n(I), {
|
|
73
76
|
key: 1,
|
|
74
77
|
ref_key: "codeInputRef",
|
|
75
78
|
ref: p,
|
|
@@ -77,8 +80,8 @@ const h = { class: "flex flex-col gap-2" }, z = { class: "flex items-center just
|
|
|
77
80
|
environment: void 0,
|
|
78
81
|
layout: s.layout,
|
|
79
82
|
modelValue: u.value,
|
|
80
|
-
onBlur: e[3] || (e[3] = (
|
|
81
|
-
"onUpdate:modelValue": e[4] || (e[4] = (
|
|
83
|
+
onBlur: e[3] || (e[3] = (l) => r("preview")),
|
|
84
|
+
"onUpdate:modelValue": e[4] || (e[4] = (l) => s.eventBus.emit("document:update:info", { description: l }))
|
|
82
85
|
}, null, 8, ["layout", "modelValue"]))
|
|
83
86
|
])
|
|
84
87
|
]));
|
|
@@ -1,33 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"server:delete": (payload: {
|
|
15
|
-
serverUrl: string;
|
|
16
|
-
}) => any;
|
|
17
|
-
"server:update:variable": (payload: {
|
|
18
|
-
serverUrl: string;
|
|
19
|
-
name: string;
|
|
20
|
-
value: string;
|
|
21
|
-
}) => any;
|
|
22
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
23
|
-
"onServer:delete"?: ((payload: {
|
|
24
|
-
serverUrl: string;
|
|
25
|
-
}) => any) | undefined;
|
|
26
|
-
"onServer:update:variable"?: ((payload: {
|
|
27
|
-
serverUrl: string;
|
|
28
|
-
name: string;
|
|
29
|
-
value: string;
|
|
30
|
-
}) => any) | undefined;
|
|
31
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
1
|
+
declare const _default: import("vue").DefineComponent<(import("../../../../v2/features/app/helpers/routes.js").RouteProps & {
|
|
2
|
+
collectionType: "document";
|
|
3
|
+
document: import("@scalar/workspace-store/schemas").WorkspaceDocument;
|
|
4
|
+
}) | (import("../../../../v2/features/app/helpers/routes.js").RouteProps & {
|
|
5
|
+
collectionType: "workspace";
|
|
6
|
+
document: null;
|
|
7
|
+
}), {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<(import("../../../../v2/features/app/helpers/routes.js").RouteProps & {
|
|
8
|
+
collectionType: "document";
|
|
9
|
+
document: import("@scalar/workspace-store/schemas").WorkspaceDocument;
|
|
10
|
+
}) | (import("../../../../v2/features/app/helpers/routes.js").RouteProps & {
|
|
11
|
+
collectionType: "workspace";
|
|
12
|
+
document: null;
|
|
13
|
+
})> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
32
14
|
export default _default;
|
|
33
15
|
//# sourceMappingURL=Servers.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Servers.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/collection/components/Servers.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Servers.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/collection/components/Servers.vue"],"names":[],"mappings":";;;;;;;;;;;;;AAqjBA,wBAMG"}
|
|
@@ -1,120 +1,141 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useModal as
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
1
|
+
import { defineComponent as M, ref as A, computed as x, createElementBlock as v, openBlock as c, Fragment as S, createElementVNode as r, createVNode as l, createTextVNode as g, renderList as I, createBlock as y, unref as s, toDisplayString as T, withCtx as f, createCommentVNode as V } from "vue";
|
|
2
|
+
import { useModal as P, ScalarMarkdown as z, ScalarButton as _, ScalarModal as L } from "@scalar/components";
|
|
3
|
+
import { debounce as O } from "@scalar/helpers/general/debounce";
|
|
4
|
+
import { ScalarIconTrash as R, ScalarIconPlus as j } from "@scalar/icons";
|
|
5
|
+
import E from "../../../../components/Sidebar/Actions/DeleteSidebarListElement.vue.js";
|
|
6
|
+
import F from "./Form.vue.js";
|
|
7
|
+
import W from "../../../../components/Server/ServerVariablesForm.vue.js";
|
|
8
|
+
const Y = { class: "flex flex-col gap-4" }, q = { class: "flex flex-col gap-4" }, G = { class: "bg-b-2 flex items-center justify-between rounded-t-lg px-3 py-1 text-sm" }, H = {
|
|
8
9
|
key: 1,
|
|
9
10
|
class: "self-center"
|
|
10
|
-
},
|
|
11
|
+
}, J = { class: "divide-0 flex w-full flex-col divide-y rounded-b-lg text-sm" }, K = { class: "text-c-3 flex h-full items-center justify-center rounded-lg border p-4" }, se = /* @__PURE__ */ M({
|
|
11
12
|
__name: "Servers",
|
|
12
13
|
props: {
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
document: {},
|
|
15
|
+
eventBus: {},
|
|
16
|
+
layout: {},
|
|
17
|
+
path: {},
|
|
18
|
+
method: {},
|
|
19
|
+
exampleName: {},
|
|
15
20
|
environment: {},
|
|
16
|
-
|
|
21
|
+
workspaceStore: {},
|
|
22
|
+
collectionType: {}
|
|
17
23
|
},
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
24
|
+
setup(o) {
|
|
25
|
+
const u = P(), n = A(-1), k = x(
|
|
26
|
+
() => o.document?.servers?.[n.value]
|
|
27
|
+
), $ = x(() => o.document?.servers ?? []), B = [
|
|
28
|
+
{
|
|
29
|
+
label: "URL",
|
|
30
|
+
key: "url",
|
|
31
|
+
placeholder: "https://void.scalar.com"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
label: "Description",
|
|
35
|
+
key: "description",
|
|
36
|
+
placeholder: "Production"
|
|
37
|
+
}
|
|
38
|
+
], w = (t) => {
|
|
39
|
+
n.value = t, u.show();
|
|
40
|
+
}, p = () => {
|
|
41
|
+
u.hide(), n.value = -1;
|
|
42
|
+
}, N = () => {
|
|
43
|
+
n.value < 0 || (o.eventBus.emit("server:delete:server", { index: n.value }), p());
|
|
44
|
+
}, { execute: b } = O({ delay: 328, maxWait: 1e3 }), U = (t, e, a) => b(
|
|
45
|
+
`${t}-${e}`,
|
|
46
|
+
() => o.eventBus.emit("server:update:server", {
|
|
47
|
+
index: t,
|
|
48
|
+
server: { [e]: a }
|
|
49
|
+
})
|
|
50
|
+
), C = (t, e, a) => b(
|
|
51
|
+
`${t}-${e}`,
|
|
52
|
+
() => o.eventBus.emit("server:update:variables", {
|
|
53
|
+
index: t,
|
|
54
|
+
key: e,
|
|
55
|
+
value: a
|
|
56
|
+
})
|
|
57
|
+
), D = () => o.eventBus.emit("server:add:server"), h = (t, e = 0) => t?.description || `Server ${e + 1}`;
|
|
58
|
+
return (t, e) => (c(), v(S, null, [
|
|
59
|
+
r("div", Y, [
|
|
60
|
+
e[1] || (e[1] = r("div", { class: "flex flex-col gap-2" }, [
|
|
61
|
+
r("h3", { class: "font-bold" }, "Servers"),
|
|
62
|
+
r("p", { class: "text-sm" }, [
|
|
63
|
+
g(" Add different base URLs for your API. You can use "),
|
|
64
|
+
r("code", { class: "font-code text-c-2" }, "{variables}"),
|
|
65
|
+
g(" for dynamic parts. ")
|
|
66
|
+
])
|
|
67
|
+
], -1)),
|
|
68
|
+
r("div", q, [
|
|
69
|
+
(c(!0), v(S, null, I($.value, (a, d) => (c(), v("div", {
|
|
70
|
+
key: d,
|
|
71
|
+
class: "rounded-lg border"
|
|
72
|
+
}, [
|
|
73
|
+
r("div", G, [
|
|
74
|
+
a.description ? (c(), y(s(z), {
|
|
34
75
|
key: 0,
|
|
35
76
|
class: "self-center",
|
|
36
|
-
value:
|
|
37
|
-
}, null, 8, ["value"])) : (
|
|
38
|
-
s(
|
|
77
|
+
value: a.description
|
|
78
|
+
}, null, 8, ["value"])) : (c(), v("span", H, T(h(a, d)), 1)),
|
|
79
|
+
l(s(_), {
|
|
39
80
|
class: "hover:bg-b-3 hover:text-c-1 h-fit p-1.25",
|
|
81
|
+
"data-testid": "delete-server-button",
|
|
40
82
|
variant: "ghost",
|
|
41
|
-
onClick: (i) =>
|
|
83
|
+
onClick: (i) => w(d)
|
|
42
84
|
}, {
|
|
43
|
-
default:
|
|
44
|
-
s(
|
|
85
|
+
default: f(() => [
|
|
86
|
+
l(s(R), { class: "size-3.5" })
|
|
45
87
|
]),
|
|
46
88
|
_: 1
|
|
47
89
|
}, 8, ["onClick"])
|
|
48
90
|
]),
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
data:
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
value: u
|
|
58
|
-
}),
|
|
59
|
-
options: [
|
|
60
|
-
{
|
|
61
|
-
label: "URL",
|
|
62
|
-
key: "url",
|
|
63
|
-
placeholder: "https://void.scalar.com"
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
label: "Description",
|
|
67
|
-
key: "description",
|
|
68
|
-
placeholder: "Production"
|
|
69
|
-
}
|
|
70
|
-
]
|
|
71
|
-
}, null, 8, ["data", "envVariables", "environment", "onUpdate"]),
|
|
72
|
-
e.variables ? (l(), m(t(j), {
|
|
91
|
+
r("div", J, [
|
|
92
|
+
l(F, {
|
|
93
|
+
data: a,
|
|
94
|
+
environment: t.environment,
|
|
95
|
+
onUpdate: (i, m) => U(d, i, m),
|
|
96
|
+
options: B
|
|
97
|
+
}, null, 8, ["data", "environment", "onUpdate"]),
|
|
98
|
+
a.variables ? (c(), y(s(W), {
|
|
73
99
|
key: 0,
|
|
74
|
-
variables:
|
|
75
|
-
"onUpdate:variable": (i,
|
|
76
|
-
|
|
77
|
-
name: i,
|
|
78
|
-
value: u
|
|
79
|
-
})
|
|
80
|
-
}, null, 8, ["variables", "onUpdate:variable"])) : b("", !0)
|
|
100
|
+
variables: a.variables,
|
|
101
|
+
"onUpdate:variable": (i, m) => C(d, i, m)
|
|
102
|
+
}, null, 8, ["variables", "onUpdate:variable"])) : V("", !0)
|
|
81
103
|
])
|
|
82
|
-
])
|
|
83
|
-
])
|
|
84
|
-
|
|
85
|
-
s(
|
|
104
|
+
]))), 128))
|
|
105
|
+
]),
|
|
106
|
+
r("div", K, [
|
|
107
|
+
l(s(_), {
|
|
86
108
|
class: "hover:bg-b-2 hover:text-c-1 flex items-center gap-2",
|
|
87
109
|
size: "sm",
|
|
88
110
|
variant: "ghost",
|
|
89
|
-
onClick:
|
|
111
|
+
onClick: D
|
|
90
112
|
}, {
|
|
91
|
-
default:
|
|
92
|
-
s(
|
|
93
|
-
|
|
113
|
+
default: f(() => [
|
|
114
|
+
l(s(j)),
|
|
115
|
+
e[0] || (e[0] = r("span", null, "Add Server", -1))
|
|
94
116
|
]),
|
|
95
117
|
_: 1
|
|
96
118
|
})
|
|
97
119
|
])
|
|
98
120
|
]),
|
|
99
|
-
|
|
100
|
-
key: 0,
|
|
121
|
+
l(s(L), {
|
|
101
122
|
size: "xxs",
|
|
102
|
-
state:
|
|
103
|
-
title: `Delete ${n.value
|
|
123
|
+
state: s(u),
|
|
124
|
+
title: `Delete ${h(k.value, n.value)}`
|
|
104
125
|
}, {
|
|
105
|
-
default:
|
|
106
|
-
|
|
126
|
+
default: f(() => [
|
|
127
|
+
l(E, {
|
|
107
128
|
variableName: "Server",
|
|
108
129
|
warningMessage: "Are you sure you want to delete this server? This action cannot be undone.",
|
|
109
|
-
onClose:
|
|
110
|
-
onDelete:
|
|
130
|
+
onClose: p,
|
|
131
|
+
onDelete: N
|
|
111
132
|
})
|
|
112
133
|
]),
|
|
113
134
|
_: 1
|
|
114
|
-
}, 8, ["state", "title"])
|
|
135
|
+
}, 8, ["state", "title"])
|
|
115
136
|
], 64));
|
|
116
137
|
}
|
|
117
138
|
});
|
|
118
139
|
export {
|
|
119
|
-
|
|
140
|
+
se as default
|
|
120
141
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EnvironmentVariablesTable.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/environments/components/EnvironmentVariablesTable.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EnvironmentVariablesTable.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/environments/components/EnvironmentVariablesTable.vue"],"names":[],"mappings":"AA6LA,OAAO,KAAK,EACV,cAAc,EACd,iBAAiB,EAClB,MAAM,gCAAgC,CAAA;AACvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AAWnH,KAAK,WAAW,GAAG;IACf,WAAW,EAAE,kBAAkB,CAAA;IAC/B,eAAe,EAAE,MAAM,CAAA;IACvB,QAAQ,EAAE,iBAAiB,CAAA;CAC5B,GAAG,cAAc,CAAC;;AAiVrB,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import o from "./EnvironmentVariablesTable.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const m = /* @__PURE__ */ o
|
|
3
|
+
import r from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-28c8509c"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/modal/Modal.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Modal.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/modal/Modal.vue"],"names":[],"mappings":"AA6RA,OAAO,EAGL,KAAK,UAAU,EAChB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAapE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qDAAqD,CAAA;AAIzF,MAAM,MAAM,UAAU,GAAG;IACvB,cAAc,EAAE,cAAc,CAAA;IAC9B,cAAc,EAAE,cAAc,CAAA;IAC9B,UAAU,EAAE,UAAU,CAAA;CACvB,CAAA;AAED;;;;GAIG;;AACH,wBA6OC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Modal.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import d from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const f = /* @__PURE__ */ d(o, [["__scopeId", "data-v-ddfe1d6d"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|