@scalar/api-client 2.6.1 → 2.8.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 +77 -0
- package/README.md +1 -1
- package/dist/analytics.d.ts +2 -18
- package/dist/analytics.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.d.ts +1 -1
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +66 -42
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInputSelect.vue.js +21 -22
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +4 -5
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +2 -2
- package/dist/components/ImportCollection/WorkspaceSelector.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/WorkspaceSelector.vue.js +13 -14
- package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarButton.vue.js +0 -1
- package/dist/hooks/useAnalytics.d.ts +2 -18
- package/dist/hooks/useAnalytics.d.ts.map +1 -1
- package/dist/hooks/useClientConfig.d.ts +114 -120
- package/dist/hooks/useClientConfig.d.ts.map +1 -1
- package/dist/hooks/useResponseBody.js +6 -6
- package/dist/layouts/App/create-api-client-app.d.ts +1379 -1307
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.d.ts +2754 -2610
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.d.ts +1379 -1307
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +1379 -1307
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/find-request.d.ts +17 -17
- package/dist/libs/find-request.d.ts.map +1 -1
- package/dist/libs/hot-keys.d.ts +1 -1
- package/dist/libs/local-storage.d.ts.map +1 -1
- package/dist/libs/send-request/build-request-security.d.ts +1 -1
- package/dist/libs/send-request/create-fetch-body.d.ts +1 -1
- package/dist/libs/send-request/create-request-operation.d.ts +2 -2
- package/dist/libs/send-request/create-request-operation.d.ts.map +1 -1
- package/dist/libs/send-request/create-request-operation.js +19 -19
- package/dist/libs/send-request/create-request-operation.test.d.ts +82 -82
- package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
- package/dist/plugins/plugin-manager.d.ts +3 -3
- package/dist/plugins/plugin-manager.d.ts.map +1 -1
- package/dist/store/active-entities.d.ts +118 -118
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/collections.d.ts +127 -127
- package/dist/store/collections.d.ts.map +1 -1
- package/dist/store/cookies.d.ts +14 -14
- package/dist/store/environment.d.ts +23 -23
- package/dist/store/request-example.d.ts +546 -546
- package/dist/store/request-example.d.ts.map +1 -1
- package/dist/store/requests.d.ts +194 -194
- package/dist/store/requests.d.ts.map +1 -1
- package/dist/store/security-schemes.d.ts +281 -281
- package/dist/store/security-schemes.d.ts.map +1 -1
- package/dist/store/servers.d.ts +45 -45
- package/dist/store/servers.d.ts.map +1 -1
- package/dist/store/store.d.ts +1379 -1307
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/store.js +18 -18
- package/dist/store/tags.d.ts +35 -35
- package/dist/store/tags.d.ts.map +1 -1
- package/dist/store/workspace.d.ts +47 -47
- package/dist/store/workspace.d.ts.map +1 -1
- package/dist/style.css +1 -1
- 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 +2 -3
- package/dist/v2/blocks/operation-code-sample/components/HttpMethod.test.d.ts +2 -0
- package/dist/v2/blocks/operation-code-sample/components/HttpMethod.test.d.ts.map +1 -0
- package/dist/v2/blocks/operation-code-sample/components/HttpMethod.vue.d.ts +25 -0
- package/dist/v2/blocks/operation-code-sample/components/HttpMethod.vue.d.ts.map +1 -0
- package/dist/v2/blocks/operation-code-sample/components/HttpMethod.vue.js +30 -0
- package/dist/v2/blocks/operation-code-sample/components/HttpMethod.vue2.js +4 -0
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.js +3 -3
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue2.js +104 -98
- package/dist/v2/blocks/operation-code-sample/helpers/find-client.js +16 -14
- package/dist/v2/blocks/operation-code-sample/helpers/generate-client-options.js +31 -2
- package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.d.ts +6 -1
- package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.js +198 -131
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.bench.d.ts +2 -0
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.bench.d.ts.map +1 -0
- package/dist/v2/blocks/operation-code-sample/index.d.ts +4 -1
- package/dist/v2/blocks/operation-code-sample/index.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/index.js +10 -4
- 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 +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue2.js +31 -32
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts +2 -6
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts +39 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.js +7 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue2.js +226 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.d.ts +66 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.js +7 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue2.js +200 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationParams.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationParams.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.d.ts +51 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.js +89 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue2.js +4 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationTable.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationTable.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue.d.ts +46 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue.js +7 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue2.js +85 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue.d.ts +43 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue.js +193 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue2.js +4 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableTooltip.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableTooltip.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableTooltip.vue.d.ts +8 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableTooltip.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableTooltip.vue.js +7 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableTooltip.vue2.js +62 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/file.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/file.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/files.d.ts +5 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/files.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/files.js +7 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-content.d.ts +8 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-content.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-content.js +9 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-content.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-content.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-example.d.ts +6 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-example.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-example.js +12 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-example.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-example.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-schema.d.ts +6 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-schema.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-schema.js +6 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-schema.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-schema.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/get-request-body-example.d.ts +3 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/get-request-body-example.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/get-request-body-example.js +5 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/group-by.d.ts +5 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/group-by.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/group-by.js +7 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/group-by.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/group-by.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/validate-parameter.d.ts +11 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/validate-parameter.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/validate-parameter.js +32 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/validate-parameter.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/validate-parameter.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/index.d.ts +2 -0
- package/dist/v2/blocks/scalar-operation-block/index.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/index.js +4 -0
- package/dist/v2/blocks/scalar-response-block/components/Headers.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-response-block/components/Headers.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/components/Headers.vue.d.ts +20 -0
- package/dist/v2/blocks/scalar-response-block/components/Headers.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/components/Headers.vue.js +98 -0
- package/dist/v2/blocks/scalar-response-block/components/Headers.vue2.js +4 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.d.ts +47 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.js +7 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue2.js +182 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBody.vue.d.ts +12 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBody.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBody.vue.js +7 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBody.vue2.js +88 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyDownload.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyDownload.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyDownload.vue.d.ts +8 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyDownload.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyDownload.vue.js +36 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyDownload.vue2.js +4 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyInfo.vue.d.ts +13 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyInfo.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyInfo.vue.js +14 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyPreview.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyPreview.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyPreview.vue.d.ts +10 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyPreview.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyPreview.vue.js +7 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyPreview.vue2.js +64 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyRaw.vue.d.ts +8 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyRaw.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyRaw.vue.js +7 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyRaw.vue2.js +41 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.vue.d.ts +6 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.vue.js +74 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.vue2.js +4 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyToggle.vue.d.ts +10 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyToggle.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyToggle.vue.js +25 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyToggle.vue2.js +4 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyVirtual.vue.d.ts +11 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyVirtual.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyVirtual.vue.js +52 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyVirtual.vue3.js +5 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.vue.d.ts +9 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.vue.js +54 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.vue2.js +4 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseEmpty.vue.d.ts +23 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseEmpty.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseEmpty.vue.js +7 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseEmpty.vue2.js +88 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseLoadingOverlay.vue.d.ts +8 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseLoadingOverlay.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseLoadingOverlay.vue.js +7 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseLoadingOverlay.vue2.js +41 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseMetaInformation.vue.d.ts +10 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseMetaInformation.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseMetaInformation.vue.js +61 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseMetaInformation.vue2.js +4 -0
- package/dist/v2/blocks/scalar-response-block/helpers/extract-filename.d.ts +5 -0
- package/dist/v2/blocks/scalar-response-block/helpers/extract-filename.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/helpers/extract-filename.js +18 -0
- package/dist/v2/blocks/scalar-response-block/helpers/extract-filename.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-response-block/helpers/extract-filename.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/helpers/get-content-length.d.ts +4 -0
- package/dist/v2/blocks/scalar-response-block/helpers/get-content-length.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/helpers/get-content-length.js +12 -0
- package/dist/v2/blocks/scalar-response-block/helpers/get-content-length.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-response-block/helpers/get-content-length.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/helpers/media-types.d.ts +20 -0
- package/dist/v2/blocks/scalar-response-block/helpers/media-types.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/helpers/media-types.js +127 -0
- package/dist/v2/blocks/scalar-response-block/helpers/media-types.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-response-block/helpers/media-types.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/helpers/process-response-body.d.ts +17 -0
- package/dist/v2/blocks/scalar-response-block/helpers/process-response-body.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/helpers/process-response-body.js +16 -0
- package/dist/v2/blocks/scalar-response-block/helpers/process-response-body.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-response-block/helpers/process-response-body.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/index.d.ts +2 -0
- package/dist/v2/blocks/scalar-response-block/index.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/index.js +4 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts +54 -54
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +31 -32
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts +54 -54
- 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 +0 -1
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +13 -14
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +5 -6
- package/dist/views/Request/libs/auth.d.ts +2 -2
- package/dist/views/Request/libs/watch-mode.d.ts +4 -4
- package/dist/views/Request/libs/watch-mode.d.ts.map +1 -1
- package/dist/views/Request/libs/watch-mode.js +241 -186
- package/package.json +21 -16
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,82 @@
|
|
|
1
1
|
# @scalar/api-client
|
|
2
2
|
|
|
3
|
+
## 2.8.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 63ff417: feat: sidebar package
|
|
8
|
+
- 5d99cad: feat: operation block
|
|
9
|
+
- b998d57: feat: response block
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- debdcf6: Correctly handle additionalProperties when set to false
|
|
14
|
+
- a747da6: feat(components): overhaul and polish ScalarButton ✨
|
|
15
|
+
- 1e01464: Adds a new ApiReferenceConfigWithSource type and make the base ApiReferenceConfig type agnostic of any document sources.
|
|
16
|
+
- Updated dependencies [15c4240]
|
|
17
|
+
- Updated dependencies [debdcf6]
|
|
18
|
+
- Updated dependencies [13dcd89]
|
|
19
|
+
- Updated dependencies [63ff417]
|
|
20
|
+
- Updated dependencies [5d99cad]
|
|
21
|
+
- Updated dependencies [e0cdd9a]
|
|
22
|
+
- Updated dependencies [a747da6]
|
|
23
|
+
- Updated dependencies [1e01464]
|
|
24
|
+
- Updated dependencies [c69cb71]
|
|
25
|
+
- Updated dependencies [90d54b6]
|
|
26
|
+
- @scalar/openapi-types@0.4.1
|
|
27
|
+
- @scalar/oas-utils@0.5.1
|
|
28
|
+
- @scalar/themes@0.13.21
|
|
29
|
+
- @scalar/workspace-store@0.17.0
|
|
30
|
+
- @scalar/components@0.15.0
|
|
31
|
+
- @scalar/snippetz@0.5.0
|
|
32
|
+
- @scalar/types@0.3.1
|
|
33
|
+
- @scalar/openapi-parser@0.22.2
|
|
34
|
+
- @scalar/postman-to-openapi@0.3.39
|
|
35
|
+
- @scalar/use-codemirror@0.12.42
|
|
36
|
+
- @scalar/import@0.4.30
|
|
37
|
+
|
|
38
|
+
## 2.7.0
|
|
39
|
+
|
|
40
|
+
### Minor Changes
|
|
41
|
+
|
|
42
|
+
- 008a0f3: feat: migrate to Zod 4
|
|
43
|
+
|
|
44
|
+
### Patch Changes
|
|
45
|
+
|
|
46
|
+
- f833196: fix: performance issues on references
|
|
47
|
+
- Updated dependencies [008a0f3]
|
|
48
|
+
- Updated dependencies [f833196]
|
|
49
|
+
- Updated dependencies [a9f8d56]
|
|
50
|
+
- @scalar/openapi-types@0.4.0
|
|
51
|
+
- @scalar/oas-utils@0.5.0
|
|
52
|
+
- @scalar/types@0.3.0
|
|
53
|
+
- @scalar/components@0.14.40
|
|
54
|
+
- @scalar/openapi-parser@0.22.1
|
|
55
|
+
- @scalar/postman-to-openapi@0.3.38
|
|
56
|
+
- @scalar/snippetz@0.4.11
|
|
57
|
+
- @scalar/themes@0.13.20
|
|
58
|
+
- @scalar/workspace-store@0.16.2
|
|
59
|
+
- @scalar/use-codemirror@0.12.41
|
|
60
|
+
- @scalar/import@0.4.29
|
|
61
|
+
|
|
62
|
+
## 2.6.2
|
|
63
|
+
|
|
64
|
+
### Patch Changes
|
|
65
|
+
|
|
66
|
+
- 8ad6af0: feat: integrate new code sample block
|
|
67
|
+
- a46a700: Export API reference content and simplify child components of layout
|
|
68
|
+
- Updated dependencies [2b98503]
|
|
69
|
+
- Updated dependencies [c6736fd]
|
|
70
|
+
- Updated dependencies [4951456]
|
|
71
|
+
- @scalar/workspace-store@0.16.1
|
|
72
|
+
- @scalar/openapi-parser@0.22.0
|
|
73
|
+
- @scalar/json-magic@0.6.0
|
|
74
|
+
- @scalar/oas-utils@0.4.34
|
|
75
|
+
- @scalar/import@0.4.28
|
|
76
|
+
- @scalar/components@0.14.39
|
|
77
|
+
- @scalar/postman-to-openapi@0.3.37
|
|
78
|
+
- @scalar/use-codemirror@0.12.40
|
|
79
|
+
|
|
3
80
|
## 2.6.1
|
|
4
81
|
|
|
5
82
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -97,7 +97,7 @@ open()
|
|
|
97
97
|
/** Configuration options for the Scalar API client */
|
|
98
98
|
export type ClientConfiguration = {
|
|
99
99
|
/** The Swagger/OpenAPI document to render */
|
|
100
|
-
spec:
|
|
100
|
+
spec: SourceConfiguration
|
|
101
101
|
/** Pass in a proxy to the API client */
|
|
102
102
|
proxyUrl?: string
|
|
103
103
|
/** Pass in a theme API client */
|
package/dist/analytics.d.ts
CHANGED
|
@@ -4,30 +4,14 @@ export declare const analytics: {
|
|
|
4
4
|
to: import("zod").ZodString;
|
|
5
5
|
from: import("zod").ZodString;
|
|
6
6
|
hostname: import("zod").ZodString;
|
|
7
|
-
},
|
|
8
|
-
to: string;
|
|
9
|
-
from: string;
|
|
10
|
-
hostname: string;
|
|
11
|
-
}, {
|
|
12
|
-
to: string;
|
|
13
|
-
from: string;
|
|
14
|
-
hostname: string;
|
|
15
|
-
}>;
|
|
7
|
+
}, import("zod/v4/core").$strip>;
|
|
16
8
|
readonly 'client-send-request': import("zod").ZodUndefined;
|
|
17
9
|
}[E]> extends undefined ? [] : [import("zod").input<{
|
|
18
10
|
readonly 'page-view': import("zod").ZodObject<{
|
|
19
11
|
to: import("zod").ZodString;
|
|
20
12
|
from: import("zod").ZodString;
|
|
21
13
|
hostname: import("zod").ZodString;
|
|
22
|
-
},
|
|
23
|
-
to: string;
|
|
24
|
-
from: string;
|
|
25
|
-
hostname: string;
|
|
26
|
-
}, {
|
|
27
|
-
to: string;
|
|
28
|
-
from: string;
|
|
29
|
-
hostname: string;
|
|
30
|
-
}>;
|
|
14
|
+
}, import("zod/v4/core").$strip>;
|
|
31
15
|
readonly 'client-send-request': import("zod").ZodUndefined;
|
|
32
16
|
}[E]>]) => Promise<void>;
|
|
33
17
|
};
|
package/dist/analytics.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"analytics.d.ts","sourceRoot":"","sources":["../src/analytics.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;uEAIuX,GAAI
|
|
1
|
+
{"version":3,"file":"analytics.d.ts","sourceRoot":"","sources":["../src/analytics.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;uEAIuX,GAAI;;;;;;;;;;;;;;;CADhZ,CAAA"}
|
|
@@ -76,8 +76,8 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
76
76
|
onBlur?: ((v: string) => any) | undefined;
|
|
77
77
|
onCurl?: ((v: string) => any) | undefined;
|
|
78
78
|
}>, {
|
|
79
|
-
disabled: boolean;
|
|
80
79
|
nullable: boolean;
|
|
80
|
+
disabled: boolean;
|
|
81
81
|
colorPicker: boolean;
|
|
82
82
|
emitOnBlur: boolean;
|
|
83
83
|
extensions: Extension[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodeInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CodeInput/CodeInput.vue"],"names":[],"mappings":"AA2eA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,EAIL,KAAK,kBAAkB,EACvB,KAAK,SAAS,EACf,MAAM,wBAAwB,CAAA;AAE/B,OAAO,EAAyC,KAAK,GAAG,EAAE,MAAM,KAAK,CAAA;AAGrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;;kBAUxC,OAAO;eACV,OAAO;gBACN,MAAM,GAAG,MAAM;YACnB,OAAO;iBACF,OAAO;iBACP,SAAS,EAAE;kBACV,OAAO;WACd,OAAO;uBACK,OAAO;eACf,kBAAkB;wBACT,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;wBACnB,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;kBACzB,MAAM;eACT,OAAO;mBACH,OAAO;2BACC,OAAO;WACvB,MAAM,EAAE;eACJ,MAAM,EAAE;WACZ,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS;eACzB,OAAO;oBACF,OAAO;iBACV,OAAO;cACV,MAAM,GAAG,MAAM;iBACZ,WAAW;kBACV,WAAW,EAAE;mBACZ,OAAO;;IAiMxB,0BAA0B;;0BArJC,MAAM;0BA0BN,MAAM;wBAOR,MAAM;;;;;;;;;;kBAtGf,OAAO;eACV,OAAO;gBACN,MAAM,GAAG,MAAM;YACnB,OAAO;iBACF,OAAO;iBACP,SAAS,EAAE;kBACV,OAAO;WACd,OAAO;uBACK,OAAO;eACf,kBAAkB;wBACT,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;wBACnB,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;kBACzB,MAAM;eACT,OAAO;mBACH,OAAO;2BACC,OAAO;WACvB,MAAM,EAAE;eACJ,MAAM,EAAE;WACZ,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS;eACzB,OAAO;oBACF,OAAO;iBACV,OAAO;cACV,MAAM,GAAG,MAAM;iBACZ,WAAW;kBACV,WAAW,EAAE;mBACZ,OAAO;;;;;;;
|
|
1
|
+
{"version":3,"file":"CodeInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CodeInput/CodeInput.vue"],"names":[],"mappings":"AA2eA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,EAIL,KAAK,kBAAkB,EACvB,KAAK,SAAS,EACf,MAAM,wBAAwB,CAAA;AAE/B,OAAO,EAAyC,KAAK,GAAG,EAAE,MAAM,KAAK,CAAA;AAGrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;;kBAUxC,OAAO;eACV,OAAO;gBACN,MAAM,GAAG,MAAM;YACnB,OAAO;iBACF,OAAO;iBACP,SAAS,EAAE;kBACV,OAAO;WACd,OAAO;uBACK,OAAO;eACf,kBAAkB;wBACT,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;wBACnB,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;kBACzB,MAAM;eACT,OAAO;mBACH,OAAO;2BACC,OAAO;WACvB,MAAM,EAAE;eACJ,MAAM,EAAE;WACZ,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS;eACzB,OAAO;oBACF,OAAO;iBACV,OAAO;cACV,MAAM,GAAG,MAAM;iBACZ,WAAW;kBACV,WAAW,EAAE;mBACZ,OAAO;;IAiMxB,0BAA0B;;0BArJC,MAAM;0BA0BN,MAAM;wBAOR,MAAM;;;;;;;;;;kBAtGf,OAAO;eACV,OAAO;gBACN,MAAM,GAAG,MAAM;YACnB,OAAO;iBACF,OAAO;iBACP,SAAS,EAAE;kBACV,OAAO;WACd,OAAO;uBACK,OAAO;eACf,kBAAkB;wBACT,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;wBACnB,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;kBACzB,MAAM;eACT,OAAO;mBACH,OAAO;2BACC,OAAO;WACvB,MAAM,EAAE;eACJ,MAAM,EAAE;WACZ,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS;eACzB,OAAO;oBACF,OAAO;iBACV,OAAO;cACV,MAAM,GAAG,MAAM;iBACZ,WAAW;kBACV,WAAW,EAAE;mBACZ,OAAO;;;;;;;cANX,OAAO;cAlBP,OAAO;iBADJ,OAAO;gBAIR,OAAO;gBACP,SAAS,EAAE;sBAGL,OAAO;kBAMX,OAAO;0BACC,OAAO;mBAKd,OAAO;kBAKR,OAAO;;cAkhBZ,CAAC,KAAK,IAAiB,KAAK,GAAG;;WAClC,CAAC,KAAK,IAAiB,KAAK,GAAG;;AA9iB1C,wBAmmBC;AAYD,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -70,50 +70,62 @@ export declare const PaletteComponents: {
|
|
|
70
70
|
readonly 'Import from cURL': import("vue").DefineComponent<{
|
|
71
71
|
metaData: {
|
|
72
72
|
parsedCurl: {
|
|
73
|
-
uid?: string | undefined;
|
|
74
|
-
path?: string | undefined;
|
|
75
|
-
type?: "request" | undefined;
|
|
76
73
|
description?: string | undefined;
|
|
77
74
|
summary?: string | undefined;
|
|
78
75
|
externalDocs?: {
|
|
79
76
|
url: string;
|
|
80
|
-
description?:
|
|
77
|
+
description?: string | undefined;
|
|
81
78
|
} | undefined;
|
|
82
79
|
'x-internal'?: boolean | undefined;
|
|
83
80
|
'x-scalar-ignore'?: boolean | undefined;
|
|
84
81
|
security?: Record<string, string[] | undefined>[] | undefined;
|
|
85
|
-
selectedSecuritySchemeUids?: (string | string[])[] | undefined;
|
|
86
|
-
selectedServerUid?: string | null | undefined;
|
|
87
|
-
servers?: string[] | undefined;
|
|
88
82
|
tags?: string[] | undefined;
|
|
89
|
-
examples?: string[] | undefined;
|
|
90
83
|
deprecated?: boolean | undefined;
|
|
91
84
|
operationId?: string | undefined;
|
|
92
85
|
requestBody?: any;
|
|
93
86
|
parameters?: {
|
|
87
|
+
in: "path" | "cookie" | "query" | "header";
|
|
94
88
|
name: string;
|
|
95
|
-
in: "cookie" | "path" | "query" | "header";
|
|
96
89
|
description?: string | undefined;
|
|
97
90
|
required?: boolean | undefined;
|
|
98
|
-
|
|
99
|
-
content?: unknown;
|
|
91
|
+
deprecated?: boolean | undefined;
|
|
100
92
|
schema?: unknown;
|
|
101
|
-
|
|
93
|
+
content?: unknown;
|
|
94
|
+
style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
|
|
95
|
+
explode?: boolean | undefined;
|
|
96
|
+
example?: unknown;
|
|
97
|
+
examples?: Record<string, {
|
|
102
98
|
value?: unknown;
|
|
103
99
|
summary?: string | undefined;
|
|
104
100
|
externalValue?: string | undefined;
|
|
105
|
-
}> | undefined;
|
|
106
|
-
deprecated?: boolean | undefined;
|
|
107
|
-
style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
|
|
108
|
-
explode?: boolean | undefined;
|
|
101
|
+
}> | unknown[] | undefined;
|
|
109
102
|
}[] | undefined;
|
|
110
103
|
responses?: Record<string, any> | undefined;
|
|
111
104
|
callbacks?: Record<string, Record<string, Record<string, any>>> | undefined;
|
|
112
|
-
'x-codeSamples'?:
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
105
|
+
'x-codeSamples'?: {
|
|
106
|
+
source: string;
|
|
107
|
+
lang?: string | undefined;
|
|
108
|
+
label?: string | undefined;
|
|
109
|
+
}[] | undefined;
|
|
110
|
+
'x-code-samples'?: {
|
|
111
|
+
source: string;
|
|
112
|
+
lang?: string | undefined;
|
|
113
|
+
label?: string | undefined;
|
|
114
|
+
}[] | undefined;
|
|
115
|
+
'x-custom-examples'?: {
|
|
116
|
+
source: string;
|
|
117
|
+
lang?: string | undefined;
|
|
118
|
+
label?: string | undefined;
|
|
119
|
+
}[] | undefined;
|
|
120
|
+
'x-scalar-stability'?: import("@scalar/types").XScalarStability | undefined;
|
|
121
|
+
type?: "request" | undefined;
|
|
122
|
+
uid?: string | undefined;
|
|
123
|
+
path?: string | undefined;
|
|
124
|
+
method?: "delete" | "get" | "connect" | "head" | "options" | "patch" | "post" | "put" | "trace" | undefined;
|
|
125
|
+
servers?: string[] | undefined;
|
|
126
|
+
selectedServerUid?: string | null | undefined;
|
|
127
|
+
examples?: string[] | undefined;
|
|
128
|
+
selectedSecuritySchemeUids?: (string | string[])[] | undefined;
|
|
117
129
|
'x-post-response'?: string | undefined;
|
|
118
130
|
} & {
|
|
119
131
|
url?: string;
|
|
@@ -126,50 +138,62 @@ export declare const PaletteComponents: {
|
|
|
126
138
|
}, string, import("vue").PublicProps, Readonly<{
|
|
127
139
|
metaData: {
|
|
128
140
|
parsedCurl: {
|
|
129
|
-
uid?: string | undefined;
|
|
130
|
-
path?: string | undefined;
|
|
131
|
-
type?: "request" | undefined;
|
|
132
141
|
description?: string | undefined;
|
|
133
142
|
summary?: string | undefined;
|
|
134
143
|
externalDocs?: {
|
|
135
144
|
url: string;
|
|
136
|
-
description?:
|
|
145
|
+
description?: string | undefined;
|
|
137
146
|
} | undefined;
|
|
138
147
|
'x-internal'?: boolean | undefined;
|
|
139
148
|
'x-scalar-ignore'?: boolean | undefined;
|
|
140
149
|
security?: Record<string, string[] | undefined>[] | undefined;
|
|
141
|
-
selectedSecuritySchemeUids?: (string | string[])[] | undefined;
|
|
142
|
-
selectedServerUid?: string | null | undefined;
|
|
143
|
-
servers?: string[] | undefined;
|
|
144
150
|
tags?: string[] | undefined;
|
|
145
|
-
examples?: string[] | undefined;
|
|
146
151
|
deprecated?: boolean | undefined;
|
|
147
152
|
operationId?: string | undefined;
|
|
148
153
|
requestBody?: any;
|
|
149
154
|
parameters?: {
|
|
155
|
+
in: "path" | "cookie" | "query" | "header";
|
|
150
156
|
name: string;
|
|
151
|
-
in: "cookie" | "path" | "query" | "header";
|
|
152
157
|
description?: string | undefined;
|
|
153
158
|
required?: boolean | undefined;
|
|
154
|
-
|
|
155
|
-
content?: unknown;
|
|
159
|
+
deprecated?: boolean | undefined;
|
|
156
160
|
schema?: unknown;
|
|
157
|
-
|
|
161
|
+
content?: unknown;
|
|
162
|
+
style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
|
|
163
|
+
explode?: boolean | undefined;
|
|
164
|
+
example?: unknown;
|
|
165
|
+
examples?: Record<string, {
|
|
158
166
|
value?: unknown;
|
|
159
167
|
summary?: string | undefined;
|
|
160
168
|
externalValue?: string | undefined;
|
|
161
|
-
}> | undefined;
|
|
162
|
-
deprecated?: boolean | undefined;
|
|
163
|
-
style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
|
|
164
|
-
explode?: boolean | undefined;
|
|
169
|
+
}> | unknown[] | undefined;
|
|
165
170
|
}[] | undefined;
|
|
166
171
|
responses?: Record<string, any> | undefined;
|
|
167
172
|
callbacks?: Record<string, Record<string, Record<string, any>>> | undefined;
|
|
168
|
-
'x-codeSamples'?:
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
+
'x-codeSamples'?: {
|
|
174
|
+
source: string;
|
|
175
|
+
lang?: string | undefined;
|
|
176
|
+
label?: string | undefined;
|
|
177
|
+
}[] | undefined;
|
|
178
|
+
'x-code-samples'?: {
|
|
179
|
+
source: string;
|
|
180
|
+
lang?: string | undefined;
|
|
181
|
+
label?: string | undefined;
|
|
182
|
+
}[] | undefined;
|
|
183
|
+
'x-custom-examples'?: {
|
|
184
|
+
source: string;
|
|
185
|
+
lang?: string | undefined;
|
|
186
|
+
label?: string | undefined;
|
|
187
|
+
}[] | undefined;
|
|
188
|
+
'x-scalar-stability'?: import("@scalar/types").XScalarStability | undefined;
|
|
189
|
+
type?: "request" | undefined;
|
|
190
|
+
uid?: string | undefined;
|
|
191
|
+
path?: string | undefined;
|
|
192
|
+
method?: "delete" | "get" | "connect" | "head" | "options" | "patch" | "post" | "put" | "trace" | undefined;
|
|
193
|
+
servers?: string[] | undefined;
|
|
194
|
+
selectedServerUid?: string | null | undefined;
|
|
195
|
+
examples?: string[] | undefined;
|
|
196
|
+
selectedSecuritySchemeUids?: (string | string[])[] | undefined;
|
|
173
197
|
'x-post-response'?: string | undefined;
|
|
174
198
|
} & {
|
|
175
199
|
url?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TheCommandPalette.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/TheCommandPalette.vue"],"names":[],"mappings":"AAqfA;;;;GAIG;;AACH,wBA8lBI;AAEJ,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;mBA7nB9B,CA5TmB;qBA4TnB,CA3Ta;;;;;;;mBA2Tb,CA5TmB;qBA4TnB,CA3Ta
|
|
1
|
+
{"version":3,"file":"TheCommandPalette.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/TheCommandPalette.vue"],"names":[],"mappings":"AAqfA;;;;GAIG;;AACH,wBA8lBI;AAEJ,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;mBA7nB9B,CA5TmB;qBA4TnB,CA3Ta;;;;;;;mBA2Tb,CA5TmB;qBA4TnB,CA3Ta;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAi8BH,CAAA;AAEV,yCAAyC;AACzC,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,iBAAiB,CAAA;AAEzD,MAAM,MAAM,mBAAmB,GAAG;IAChC,8DAA8D;IAC9D,WAAW,CAAC,EAAE,YAAY,CAAA;IAC1B,iEAAiE;IACjE,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAC/B,CACA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTableInputSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInputSelect.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DataTableInputSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInputSelect.vue"],"names":[],"mappings":"AA4LA,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,MAAM,GAAG,MAAM,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;IACrC,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC1B,CAAC;;;;;;uBAFoB,OAAO;;AA2Z/B,wBAQG"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as T, computed as m, ref as V, watch as _, nextTick as E, createElementBlock as f, openBlock as o, createBlock as v, withDirectives as K, unref as a, withCtx as s, createVNode as
|
|
2
|
-
import { ScalarComboboxMultiselect as
|
|
1
|
+
import { defineComponent as T, computed as m, ref as V, watch as _, nextTick as E, createElementBlock as f, openBlock as o, createBlock as v, withDirectives as K, unref as a, withCtx as s, createVNode as n, createElementVNode as i, toDisplayString as y, withKeys as M, vModelText as R, createCommentVNode as S, Fragment as C, renderList as U, normalizeClass as $ } from "vue";
|
|
2
|
+
import { ScalarComboboxMultiselect as F, ScalarButton as b, ScalarIcon as h, ScalarDropdown as L, ScalarDropdownItem as D, ScalarDropdownDivider as W } from "@scalar/components";
|
|
3
3
|
const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-full pr-10 -outline-offset-1 has-[:focus-visible]:rounded-[4px] has-[:focus-visible]:outline" }, G = { class: "text-c-1 whitespace-nowrap" }, H = { class: "text-c-1 overflow-hidden text-ellipsis" }, J = { class: "overflow-hidden text-ellipsis" }, P = { class: "flex h-4 w-4 items-center justify-center" }, Z = /* @__PURE__ */ T({
|
|
4
4
|
__name: "DataTableInputSelect",
|
|
5
5
|
props: {
|
|
@@ -10,25 +10,25 @@ const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-f
|
|
|
10
10
|
type: {}
|
|
11
11
|
},
|
|
12
12
|
emits: ["update:modelValue"],
|
|
13
|
-
setup(
|
|
14
|
-
const
|
|
13
|
+
setup(z, { emit: B }) {
|
|
14
|
+
const u = z, c = B, p = m(() => u.value ?? []), d = V(!1), r = V(""), x = V(null);
|
|
15
15
|
_(r, (e) => {
|
|
16
16
|
c("update:modelValue", e);
|
|
17
17
|
});
|
|
18
18
|
const g = (e) => {
|
|
19
19
|
c("update:modelValue", e), d.value = !1;
|
|
20
|
-
},
|
|
20
|
+
}, j = () => {
|
|
21
21
|
r.value.trim() && g(r.value);
|
|
22
22
|
}, A = () => {
|
|
23
23
|
r.value.trim() || c("update:modelValue", ""), d.value = !1;
|
|
24
|
-
}, I = (e) =>
|
|
24
|
+
}, I = (e) => u.modelValue.toString() === e;
|
|
25
25
|
_(d, (e) => {
|
|
26
26
|
e && E(() => {
|
|
27
27
|
x.value?.focus();
|
|
28
28
|
});
|
|
29
29
|
});
|
|
30
|
-
const k = m(() =>
|
|
31
|
-
const e = new Set(
|
|
30
|
+
const k = m(() => u.modelValue !== void 0 ? u.modelValue : u.default), w = m(() => {
|
|
31
|
+
const e = new Set(u.modelValue.toString().split(", "));
|
|
32
32
|
return p.value.filter((l) => e.has(l)).map((l) => ({ id: l, label: l, value: l }));
|
|
33
33
|
}), N = m(
|
|
34
34
|
() => p.value.map((e) => ({ id: e, label: e, value: e }))
|
|
@@ -37,21 +37,21 @@ const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-f
|
|
|
37
37
|
c("update:modelValue", l.join(", "));
|
|
38
38
|
};
|
|
39
39
|
return (e, l) => (o(), f("div", q, [
|
|
40
|
-
e.type === "array" ? (o(), v(a(
|
|
40
|
+
e.type === "array" ? (o(), v(a(F), {
|
|
41
41
|
key: 0,
|
|
42
42
|
modelValue: w.value,
|
|
43
43
|
options: N.value,
|
|
44
44
|
"onUpdate:modelValue": O
|
|
45
45
|
}, {
|
|
46
46
|
default: s(() => [
|
|
47
|
-
|
|
47
|
+
n(a(b), {
|
|
48
48
|
class: "custom-scroll h-full justify-start gap-1.5 px-2 py-1.5 pr-6 font-normal outline-none",
|
|
49
49
|
fullWidth: "",
|
|
50
50
|
variant: "ghost"
|
|
51
51
|
}, {
|
|
52
52
|
default: s(() => [
|
|
53
53
|
i("span", G, y(w.value.length > 0 ? w.value.map((t) => t.label).join(", ") : "Select a value"), 1),
|
|
54
|
-
|
|
54
|
+
n(a(h), {
|
|
55
55
|
icon: "ChevronDown",
|
|
56
56
|
size: "md",
|
|
57
57
|
class: "min-w-4"
|
|
@@ -70,10 +70,10 @@ const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-f
|
|
|
70
70
|
placeholder: "Value",
|
|
71
71
|
type: "text",
|
|
72
72
|
onBlur: A,
|
|
73
|
-
onKeyup: M(
|
|
73
|
+
onKeyup: M(j, ["enter"])
|
|
74
74
|
}, null, 544)), [
|
|
75
75
|
[R, r.value]
|
|
76
|
-
]) : (o(), v(a(
|
|
76
|
+
]) : (o(), v(a(L), {
|
|
77
77
|
key: 2,
|
|
78
78
|
resize: "",
|
|
79
79
|
value: k.value
|
|
@@ -87,12 +87,12 @@ const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-f
|
|
|
87
87
|
}, {
|
|
88
88
|
default: s(() => [
|
|
89
89
|
i("div", {
|
|
90
|
-
class:
|
|
90
|
+
class: $([
|
|
91
91
|
"flex h-4 w-4 items-center justify-center rounded-full p-[3px]",
|
|
92
92
|
I(t) ? "bg-c-accent text-b-1" : "shadow-border text-transparent"
|
|
93
93
|
])
|
|
94
94
|
}, [
|
|
95
|
-
|
|
95
|
+
n(a(h), {
|
|
96
96
|
class: "size-2.5",
|
|
97
97
|
icon: "Checkmark",
|
|
98
98
|
thickness: "3"
|
|
@@ -103,14 +103,14 @@ const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-f
|
|
|
103
103
|
_: 2
|
|
104
104
|
}, 1032, ["value", "onClick"]))), 128)),
|
|
105
105
|
e.canAddCustomValue ? (o(), f(C, { key: 0 }, [
|
|
106
|
-
p.value.length ? (o(), v(a(
|
|
107
|
-
|
|
106
|
+
p.value.length ? (o(), v(a(W), { key: 0 })) : S("", !0),
|
|
107
|
+
n(a(D), {
|
|
108
108
|
class: "flex items-center gap-1.5",
|
|
109
109
|
onClick: l[1] || (l[1] = (t) => d.value = !0)
|
|
110
110
|
}, {
|
|
111
111
|
default: s(() => [
|
|
112
112
|
i("div", P, [
|
|
113
|
-
|
|
113
|
+
n(a(h), {
|
|
114
114
|
icon: "Add",
|
|
115
115
|
size: "sm"
|
|
116
116
|
})
|
|
@@ -123,14 +123,13 @@ const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-f
|
|
|
123
123
|
], 64)) : S("", !0)
|
|
124
124
|
]),
|
|
125
125
|
default: s(() => [
|
|
126
|
-
|
|
127
|
-
class: "
|
|
128
|
-
fullWidth: "",
|
|
126
|
+
n(a(b), {
|
|
127
|
+
class: "size-full justify-start gap-1.5 overflow-auto px-2 py-1.5 font-normal whitespace-nowrap outline-none",
|
|
129
128
|
variant: "ghost"
|
|
130
129
|
}, {
|
|
131
130
|
default: s(() => [
|
|
132
131
|
i("span", H, y(k.value || "Select a value"), 1),
|
|
133
|
-
|
|
132
|
+
n(a(h), {
|
|
134
133
|
icon: "ChevronDown",
|
|
135
134
|
size: "md"
|
|
136
135
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EnvironmentSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/EnvironmentSelector/EnvironmentSelector.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"EnvironmentSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/EnvironmentSelector/EnvironmentSelector.vue"],"names":[],"mappings":";AA2eA,wBAKG"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as B, computed as E, watch as h, onMounted as D, createBlock as v, openBlock as s, unref as n, withCtx as r, createVNode as l, createElementVNode as d, toDisplayString as g, createElementBlock as L, createCommentVNode as M, Fragment as V, renderList as
|
|
2
|
-
import { ScalarDropdown as
|
|
1
|
+
import { defineComponent as B, computed as E, watch as h, onMounted as D, createBlock as v, openBlock as s, unref as n, withCtx as r, createVNode as l, createElementVNode as d, toDisplayString as g, createElementBlock as L, createCommentVNode as M, Fragment as V, renderList as j, withModifiers as w, createTextVNode as _ } from "vue";
|
|
2
|
+
import { ScalarDropdown as W, ScalarButton as T, ScalarDropdownItem as p, ScalarListboxCheckbox as k, ScalarDropdownDivider as $, ScalarIcon as z } from "@scalar/components";
|
|
3
3
|
import { useRouter as A } from "vue-router";
|
|
4
4
|
import { PathId as F } from "../../routes.js";
|
|
5
5
|
import { useActiveEntities as O } from "../../store/active-entities.js";
|
|
@@ -48,9 +48,9 @@ const q = { class: "m-0 flex items-center gap-1.5 font-medium whitespace-nowrap"
|
|
|
48
48
|
(t) => t && f(t)
|
|
49
49
|
), D(() => {
|
|
50
50
|
o.value && f(o.value);
|
|
51
|
-
}), (t, e) => (s(), v(n(
|
|
51
|
+
}), (t, e) => (s(), v(n(W), { teleport: "" }, {
|
|
52
52
|
items: r(() => [
|
|
53
|
-
(s(!0), L(V, null,
|
|
53
|
+
(s(!0), L(V, null, j(u.value, (a) => (s(), v(n(p), {
|
|
54
54
|
key: a.uid,
|
|
55
55
|
class: "group/item flex items-center gap-1.5 overflow-hidden text-ellipsis whitespace-nowrap",
|
|
56
56
|
onClick: w((x) => m(a.uid), ["stop"])
|
|
@@ -98,7 +98,6 @@ const q = { class: "m-0 flex items-center gap-1.5 font-medium whitespace-nowrap"
|
|
|
98
98
|
default: r(() => [
|
|
99
99
|
l(n(T), {
|
|
100
100
|
class: "text-c-1 hover:bg-b-2 line-clamp-1 h-auto w-fit justify-start px-1.5 py-1.5 font-normal",
|
|
101
|
-
fullWidth: "",
|
|
102
101
|
variant: "ghost"
|
|
103
102
|
}, {
|
|
104
103
|
default: r(() => [
|
|
@@ -4,9 +4,9 @@ type __VLS_Props = {
|
|
|
4
4
|
isEditable?: boolean;
|
|
5
5
|
};
|
|
6
6
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
7
|
-
change: (value: "delete" | "get" | "
|
|
7
|
+
change: (value: "delete" | "get" | "connect" | "head" | "options" | "patch" | "post" | "put" | "trace") => any;
|
|
8
8
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
-
onChange?: ((value: "delete" | "get" | "
|
|
9
|
+
onChange?: ((value: "delete" | "get" | "connect" | "head" | "options" | "patch" | "post" | "put" | "trace") => any) | undefined;
|
|
10
10
|
}>, {
|
|
11
11
|
isEditable: boolean;
|
|
12
12
|
isSquare: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WorkspaceSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ImportCollection/WorkspaceSelector.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"WorkspaceSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ImportCollection/WorkspaceSelector.vue"],"names":[],"mappings":";AAseA,wBAKG"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as S, ref as
|
|
1
|
+
import { defineComponent as S, ref as D, createElementBlock as x, openBlock as d, Fragment as w, createElementVNode as t, createVNode as s, unref as e, withCtx as o, toDisplayString as k, renderList as W, createBlock as z, withModifiers as v, normalizeClass as N, withDirectives as M, vModelText as B, createTextVNode as V } from "vue";
|
|
2
2
|
import { useModal as j, ScalarDropdown as E, ScalarButton as h, ScalarIcon as m, ScalarDropdownItem as _, ScalarDropdownDivider as T, ScalarModal as $ } from "@scalar/components";
|
|
3
3
|
import { useToasts as A } from "@scalar/use-toasts";
|
|
4
4
|
import { useRouter as I } from "vue-router";
|
|
@@ -7,11 +7,11 @@ import { useWorkspace as L } from "../../store/store.js";
|
|
|
7
7
|
const P = { class: "flex w-[inherit] items-center text-base" }, R = { class: "m-0 flex items-center gap-1 text-sm font-medium" }, U = { class: "line-clamp-1 w-[calc(100%-10px)] text-left text-xs" }, q = { class: "overflow-hidden text-ellipsis" }, G = { class: "flex h-4 w-4 items-center justify-center" }, ee = /* @__PURE__ */ S({
|
|
8
8
|
__name: "WorkspaceSelector",
|
|
9
9
|
setup(H) {
|
|
10
|
-
const { activeWorkspace: i } = F(), { workspaces: b, workspaceMutators: g } = L(), { push: u } = I(), c = j(), { toast: f } = A(), r =
|
|
11
|
-
|
|
10
|
+
const { activeWorkspace: i } = F(), { workspaces: b, workspaceMutators: g } = L(), { push: u } = I(), c = j(), { toast: f } = A(), r = D(""), C = (n) => {
|
|
11
|
+
n !== i.value?.uid && u({
|
|
12
12
|
name: "workspace",
|
|
13
13
|
params: {
|
|
14
|
-
workspace:
|
|
14
|
+
workspace: n
|
|
15
15
|
}
|
|
16
16
|
});
|
|
17
17
|
}, y = () => {
|
|
@@ -19,21 +19,21 @@ const P = { class: "flex w-[inherit] items-center text-base" }, R = { class: "m-
|
|
|
19
19
|
f("Please enter a name before creating a workspace.", "error");
|
|
20
20
|
return;
|
|
21
21
|
}
|
|
22
|
-
const
|
|
22
|
+
const n = g.add({
|
|
23
23
|
name: r.value
|
|
24
24
|
});
|
|
25
|
-
f(`Created new workspace '${
|
|
25
|
+
f(`Created new workspace '${n.name}'`), u({
|
|
26
26
|
name: "workspace",
|
|
27
27
|
params: {
|
|
28
|
-
workspace:
|
|
28
|
+
workspace: n.uid
|
|
29
29
|
}
|
|
30
30
|
}), r.value = "", c.hide();
|
|
31
31
|
};
|
|
32
|
-
return (
|
|
32
|
+
return (n, a) => (d(), x(w, null, [
|
|
33
33
|
t("div", P, [
|
|
34
34
|
s(e(E), null, {
|
|
35
35
|
items: o(() => [
|
|
36
|
-
(d(!0), x(w, null,
|
|
36
|
+
(d(!0), x(w, null, W(e(b), (l, p) => (d(), z(e(_), {
|
|
37
37
|
key: p,
|
|
38
38
|
class: "group/item flex w-full items-center gap-1.5 overflow-hidden text-ellipsis whitespace-nowrap",
|
|
39
39
|
onClick: v((J) => C(p), ["stop"])
|
|
@@ -51,14 +51,14 @@ const P = { class: "flex w-[inherit] items-center text-base" }, R = { class: "m-
|
|
|
51
51
|
thickness: "3"
|
|
52
52
|
})
|
|
53
53
|
], 2),
|
|
54
|
-
t("span", q, k(
|
|
54
|
+
t("span", q, k(l.name), 1)
|
|
55
55
|
]),
|
|
56
56
|
_: 2
|
|
57
57
|
}, 1032, ["onClick"]))), 128)),
|
|
58
58
|
s(e(T)),
|
|
59
59
|
s(e(_), {
|
|
60
60
|
class: "flex items-center gap-1.5",
|
|
61
|
-
onClick: a[0] || (a[0] = (
|
|
61
|
+
onClick: a[0] || (a[0] = (l) => e(c).show())
|
|
62
62
|
}, {
|
|
63
63
|
default: o(() => [
|
|
64
64
|
t("div", G, [
|
|
@@ -75,8 +75,7 @@ const P = { class: "flex w-[inherit] items-center text-base" }, R = { class: "m-
|
|
|
75
75
|
]),
|
|
76
76
|
default: o(() => [
|
|
77
77
|
s(e(h), {
|
|
78
|
-
class: "
|
|
79
|
-
fullWidth: "",
|
|
78
|
+
class: "hover:bg-b-2 text-c-3 line-clamp-1 h-full w-fit justify-start px-1.5 py-1 font-normal",
|
|
80
79
|
variant: "ghost"
|
|
81
80
|
}, {
|
|
82
81
|
default: o(() => [
|
|
@@ -107,7 +106,7 @@ const P = { class: "flex w-[inherit] items-center text-base" }, R = { class: "m-
|
|
|
107
106
|
onSubmit: v(y, ["prevent"])
|
|
108
107
|
}, [
|
|
109
108
|
M(t("input", {
|
|
110
|
-
"onUpdate:modelValue": a[1] || (a[1] = (
|
|
109
|
+
"onUpdate:modelValue": a[1] || (a[1] = (l) => r.value = l),
|
|
111
110
|
class: "min-h-8 w-full flex-1 border-none p-1.5 text-sm outline-none",
|
|
112
111
|
placeholder: "New Workspace",
|
|
113
112
|
type: "text"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarButton.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SidebarButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarButton.vue"],"names":[],"mappings":"AAkCA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,IAAI,CAAA;IACjB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAC;AAyEF,QAAA,IAAI,QAAQ,IAAW,CAAE;AACzB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAuB9C,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"}
|