@scalar/api-client 2.38.3 → 2.38.4
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 +6 -0
- package/dist/{AddressBar-CX8xiYoe.js → AddressBar-BOZGKSoz.js} +4 -4
- package/dist/{AddressBar-CX8xiYoe.js.map → AddressBar-BOZGKSoz.js.map} +1 -1
- package/dist/{App-BpNPKHmM.js → App-DHBmpWJI.js} +4 -4
- package/dist/{App-BpNPKHmM.js.map → App-DHBmpWJI.js.map} +1 -1
- package/dist/{CodeInput-BN7uw3Bh.js → CodeInput-BTN8cC5h.js} +2 -2
- package/dist/{CodeInput-BN7uw3Bh.js.map → CodeInput-BTN8cC5h.js.map} +1 -1
- package/dist/{Collection-ChAxs3rz.js → Collection-BsAG7ms5.js} +2 -2
- package/dist/{Collection-ChAxs3rz.js.map → Collection-BsAG7ms5.js.map} +1 -1
- package/dist/{CollectionAuthentication-BDpvv8cA.js → CollectionAuthentication-BMGhRnpo.js} +5 -5
- package/dist/{CollectionAuthentication-BDpvv8cA.js.map → CollectionAuthentication-BMGhRnpo.js.map} +1 -1
- package/dist/{CollectionEnvironment-dwisJ-h5.js → CollectionEnvironment-BY9Gcnln.js} +4 -4
- package/dist/{CollectionEnvironment-dwisJ-h5.js.map → CollectionEnvironment-BY9Gcnln.js.map} +1 -1
- package/dist/{CollectionOverview-CJ9-Vmei.js → CollectionOverview-C3GvN8GY.js} +3 -3
- package/dist/{CollectionOverview-CJ9-Vmei.js.map → CollectionOverview-C3GvN8GY.js.map} +1 -1
- package/dist/{CollectionServers-BWkIGwz4.js → CollectionServers-DuOLysNB.js} +5 -5
- package/dist/{CollectionServers-BWkIGwz4.js.map → CollectionServers-DuOLysNB.js.map} +1 -1
- package/dist/{CollectionSettings-CqUUYOym.js → CollectionSettings-FtXNetOh.js} +2 -2
- package/dist/{CollectionSettings-CqUUYOym.js.map → CollectionSettings-FtXNetOh.js.map} +1 -1
- package/dist/{CommandPalette-BiA0IgO8.js → CommandPalette-BxoEK8TY.js} +2 -2
- package/dist/{CommandPalette-BiA0IgO8.js.map → CommandPalette-BxoEK8TY.js.map} +1 -1
- package/dist/{Cookies-CNRSxP8J.js → Cookies-BYTv1YIA.js} +8 -8
- package/dist/{Cookies-CNRSxP8J.js.map → Cookies-BYTv1YIA.js.map} +1 -1
- package/dist/{DataTableInput-SkIUPlrB.js → DataTableInput-RydMDjn2.js} +2 -2
- package/dist/{DataTableInput-SkIUPlrB.js.map → DataTableInput-RydMDjn2.js.map} +1 -1
- package/dist/{Environment-D_CbZk0A.js → Environment-BIxG7DaO.js} +5 -5
- package/dist/{Environment-D_CbZk0A.js.map → Environment-BIxG7DaO.js.map} +1 -1
- package/dist/{EnvironmentModal-CcyqnPc2.js → EnvironmentModal-C0lYytkh.js} +2 -2
- package/dist/{EnvironmentModal-CcyqnPc2.js.map → EnvironmentModal-C0lYytkh.js.map} +1 -1
- package/dist/{Form-bA4bV_oA.js → Form-KFcdRQp1.js} +3 -3
- package/dist/{Form-bA4bV_oA.js.map → Form-KFcdRQp1.js.map} +1 -1
- package/dist/{ImportCollection-BIYMxB9Q.js → ImportCollection-CGjySEzP.js} +2 -2
- package/dist/{ImportCollection-BIYMxB9Q.js.map → ImportCollection-CGjySEzP.js.map} +1 -1
- package/dist/{MainLayout-oMIJ5QXF.js → MainLayout-BnLwst16.js} +3 -3
- package/dist/{MainLayout-oMIJ5QXF.js.map → MainLayout-BnLwst16.js.map} +1 -1
- package/dist/{Modal-DkOa_KK0.js → Modal-CTZ8UNds.js} +2 -2
- package/dist/{Modal-DkOa_KK0.js.map → Modal-CTZ8UNds.js.map} +1 -1
- package/dist/{Request-BWfYWyBa.js → Request-d0RY0ZhC.js} +10 -10
- package/dist/{Request-BWfYWyBa.js.map → Request-d0RY0ZhC.js.map} +1 -1
- package/dist/{RequestAuth-BU6ubH-c.js → RequestAuth-1cRH3DDn.js} +3 -3
- package/dist/{RequestAuth-BU6ubH-c.js.map → RequestAuth-1cRH3DDn.js.map} +1 -1
- package/dist/{RequestRoot-7xhK5_qr.js → RequestRoot-pW0yXesG.js} +7 -7
- package/dist/{RequestRoot-7xhK5_qr.js.map → RequestRoot-pW0yXesG.js.map} +1 -1
- package/dist/{RequestSection-Bx8UHW-k.js → RequestSection-D2BLvDTr.js} +4 -4
- package/dist/{RequestSection-Bx8UHW-k.js.map → RequestSection-D2BLvDTr.js.map} +1 -1
- package/dist/{ResponseSection-CLrgLMN_.js → ResponseSection-B_YF7l_E.js} +3 -3
- package/dist/{ResponseSection-CLrgLMN_.js.map → ResponseSection-B_YF7l_E.js.map} +1 -1
- package/dist/{Server-BS4zjUdO.js → Server-CEKGIEfE.js} +2 -2
- package/dist/{Server-BS4zjUdO.js.map → Server-CEKGIEfE.js.map} +1 -1
- package/dist/{Settings-BuLKHzRY.js → Settings-BaPvhJ8Y.js} +2 -2
- package/dist/{Settings-BuLKHzRY.js.map → Settings-BaPvhJ8Y.js.map} +1 -1
- package/dist/{Sidebar-Xl9_nFXX.js → Sidebar-CRxdl38Y.js} +2 -2
- package/dist/{Sidebar-Xl9_nFXX.js.map → Sidebar-CRxdl38Y.js.map} +1 -1
- package/dist/components/AddressBar/AddressBar.vue.d.ts +1 -1
- package/dist/components/AddressBar/index.js +3 -3
- package/dist/components/CodeInput/CodeInput.vue.d.ts +1 -1
- package/dist/components/CodeInput/codeVariableWidget.d.ts +1 -1
- package/dist/components/CodeInput/index.js +1 -1
- package/dist/components/CommandPalette/index.js +1 -1
- package/dist/components/DataTable/DataTableInput.vue.d.ts +2 -2
- package/dist/components/DataTable/index.js +2 -2
- package/dist/components/Form/LabelInput.vue.d.ts +1 -1
- package/dist/components/ImportCollection/index.js +1 -1
- package/dist/components/ImportCollection/utils/import-collection.d.ts +1 -1
- package/dist/components/ImportCollection/utils/workspace-store-is-empty.d.ts +1 -1
- package/dist/components/Server/ServerVariablesForm.vue.d.ts +1 -1
- package/dist/components/Server/index.js +1 -1
- package/dist/components/Sidebar/index.js +1 -1
- package/dist/components/index.d.ts +2 -2
- package/dist/components/index.js +4 -4
- package/dist/{components-DfJHvSLM.js → components-B0BwUDFw.js} +2 -2
- package/dist/{components-DfJHvSLM.js.map → components-B0BwUDFw.js.map} +1 -1
- package/dist/hooks/useSidebar.d.ts +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -5
- package/dist/layouts/App/create-api-client-app.d.ts +9 -9
- package/dist/layouts/App/index.js +3 -3
- package/dist/layouts/Modal/create-api-client-modal.d.ts +1 -1
- package/dist/layouts/Modal/index.d.ts +1 -1
- package/dist/layouts/Modal/index.js +1 -1
- package/dist/layouts/Web/create-api-client-web.d.ts +9 -9
- package/dist/layouts/Web/index.js +4 -4
- package/dist/libs/create-client.d.ts +3 -3
- package/dist/libs/environment-parser.d.ts +1 -1
- package/dist/libs/get-request-uid-by-path-method.d.ts +1 -1
- package/dist/libs/hot-keys.d.ts +1 -1
- package/dist/libs/index.d.ts +1 -1
- package/dist/libs/index.js +1 -1
- package/dist/libs/local-storage.d.ts +1 -1
- package/dist/libs/send-request/create-request-operation.d.ts +3 -3
- package/dist/{operation-block-DE-hoO03.js → operation-block-B1B3lJPx.js} +3 -3
- package/dist/{operation-block-DE-hoO03.js.map → operation-block-B1B3lJPx.js.map} +1 -1
- package/dist/{operation-code-sample-xgx4qi2H.js → operation-code-sample-DOzAPxLQ.js} +2 -2
- package/dist/{operation-code-sample-xgx4qi2H.js.map → operation-code-sample-DOzAPxLQ.js.map} +1 -1
- package/dist/plugins/hooks/usePluginManager.d.ts +1 -1
- package/dist/{request-block-N7dPFyrG.js → request-block-C1kLLMEd.js} +2 -2
- package/dist/{request-block-N7dPFyrG.js.map → request-block-C1kLLMEd.js.map} +1 -1
- package/dist/store/collections.d.ts +1 -1
- package/dist/store/environment.d.ts +1 -1
- package/dist/store/events.d.ts +8 -8
- package/dist/store/import-spec.d.ts +2 -2
- package/dist/store/index.js +1 -1
- package/dist/store/request-example.d.ts +1 -1
- package/dist/store/requests.d.ts +1 -1
- package/dist/store/security-schemes.d.ts +1 -1
- package/dist/store/servers.d.ts +1 -1
- package/dist/store/store.d.ts +7 -7
- package/dist/store/tags.d.ts +1 -1
- package/dist/store/workspace.d.ts +1 -1
- package/dist/{store-DaPoVtIS.js → store-DnlAQK5d.js} +15 -15
- package/dist/{store-DaPoVtIS.js.map → store-DnlAQK5d.js.map} +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts +3 -3
- package/dist/v2/blocks/operation-block/components/Header.vue.d.ts +2 -2
- package/dist/v2/blocks/operation-block/helpers/build-request-security.d.ts +2 -2
- package/dist/v2/blocks/operation-block/helpers/build-request.d.ts +2 -2
- package/dist/v2/blocks/operation-block/helpers/har-to-fetch-response.d.ts +1 -1
- package/dist/v2/blocks/operation-block/helpers/send-request.d.ts +1 -1
- package/dist/v2/blocks/operation-block/index.js +8 -8
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.d.ts +2 -2
- package/dist/v2/blocks/operation-code-sample/helpers/find-client.d.ts +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/generate-client-options.d.ts +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/get-clients.d.ts +2 -2
- package/dist/v2/blocks/operation-code-sample/helpers/get-secrets.d.ts +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.d.ts +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-security-schemes.d.ts +1 -1
- package/dist/v2/blocks/operation-code-sample/index.js +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts +4 -4
- package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.d.ts +1 -1
- package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts +1 -1
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts +1 -1
- package/dist/v2/blocks/request-block/helpers/get-form-body-rows.d.ts +1 -1
- package/dist/v2/blocks/request-block/index.js +4 -4
- package/dist/v2/blocks/response-block/ResponseBlock.vue.d.ts +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.d.ts +1 -1
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.d.ts +1 -1
- package/dist/v2/blocks/response-block/index.js +2 -2
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts +3 -3
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts +2 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.d.ts +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts +2 -2
- package/dist/v2/blocks/scalar-auth-selector-block/index.js +2 -2
- package/dist/v2/components/code-input/CodeInput.vue.d.ts +1 -1
- package/dist/v2/components/data-table/DataTableInput.vue.d.ts +1 -1
- package/dist/v2/components/data-table/DataTableInputSelect.vue.d.ts +1 -1
- package/dist/v2/components/server/ServerDropdown.vue.d.ts +1 -1
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts +1 -1
- package/dist/v2/features/app/App.vue.d.ts +3 -3
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts +1 -1
- package/dist/v2/features/app/components/index.js +2 -2
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts +3 -3
- package/dist/v2/features/app/helpers/get-route-param.d.ts +1 -1
- package/dist/v2/features/app/helpers/routes.d.ts +3 -3
- package/dist/v2/features/app/index.d.ts +5 -5
- package/dist/v2/features/app/index.js +8 -8
- package/dist/v2/features/collection/DocumentCollection.vue.d.ts +1 -1
- package/dist/v2/features/collection/OperationCollection.vue.d.ts +1 -1
- package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts +1 -1
- package/dist/v2/features/collection/components/Authentication.vue.d.ts +4 -4
- package/dist/v2/features/collection/components/Cookies.vue.d.ts +4 -4
- package/dist/v2/features/collection/components/Editor/Editor.vue.d.ts +4 -4
- package/dist/v2/features/collection/components/Environment.vue.d.ts +4 -4
- package/dist/v2/features/collection/components/Overview.vue.d.ts +4 -4
- package/dist/v2/features/collection/components/Servers.vue.d.ts +4 -4
- package/dist/v2/features/collection/components/Settings.vue.d.ts +4 -4
- package/dist/v2/features/collection/components/Tabs.vue.d.ts +1 -1
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts +45 -10
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts.map +1 -1
- package/dist/v2/features/editor/helpers/json/create-json-model.d.ts +1 -1
- package/dist/v2/features/editor/helpers/yaml/create-yaml-model.d.ts +1 -1
- package/dist/v2/features/editor/helpers/yaml/get-yaml-node-range-from-path.d.ts +1 -1
- package/dist/v2/features/editor/hooks/use-editor.d.ts +1 -1
- package/dist/v2/features/editor/hooks/use-json-pointer-link-support.d.ts +1 -1
- package/dist/v2/features/modal/Modal.vue.d.ts +1 -1
- package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts +2 -2
- package/dist/v2/features/modal/hooks/use-modal-sidebar.d.ts +1 -1
- package/dist/v2/features/modal/index.js +8 -8
- package/dist/v2/features/modal/modal-events.d.ts +1 -1
- package/dist/v2/features/operation/Operation.vue.d.ts +2 -2
- package/dist/v2/features/operation/index.js +8 -8
- package/dist/v2/features/search/helpers/create-fuse-instance.d.ts +1 -1
- package/dist/v2/features/search/helpers/create-search-index.d.ts +1 -1
- package/dist/v2/helpers/get-active-proxy-url.d.ts +1 -1
- package/dist/v2/helpers/get-tab-details.d.ts +1 -1
- package/dist/v2/helpers/handle-hotkeys.d.ts +1 -1
- package/dist/v2/hooks/use-global-hot-keys.d.ts +1 -1
- package/dist/views/Collection/components/EnvironmentForm.vue.d.ts +1 -1
- package/dist/views/Collection/components/MarkdownInput.vue.d.ts +1 -1
- package/dist/views/Components/CodeSnippet/CodeSnippet.vue.d.ts +1 -1
- package/dist/views/Components/CodeSnippet/helpers/get-har-request.d.ts +1 -1
- package/dist/views/Components/CodeSnippet/helpers/get-snippet.d.ts +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts +1 -1
- package/dist/views/Environment/handle-drag.d.ts +1 -1
- package/dist/views/Request/Request.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/helpers/restore-auth-from-local-storage.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/index.js +3 -3
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/helpers/update-scheme.d.ts +1 -1
- package/dist/views/Request/RequestSection/index.js +4 -4
- package/dist/views/Request/RequestSidebarItem.vue.d.ts +1 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts +3 -3
- package/dist/views/Request/RequestSubpageHeader.vue.d.ts +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.d.ts +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts +1 -1
- package/dist/views/Request/ResponseSection/index.js +3 -3
- package/dist/views/Request/components/index.js +1 -1
- package/dist/views/Request/handle-drag.d.ts +2 -2
- package/dist/views/Request/libs/auth.d.ts +1 -1
- package/dist/views/Request/libs/oauth2.d.ts +1 -1
- package/dist/views/Request/libs/watch-mode.d.ts +2 -2
- package/package.json +12 -12
|
@@ -2,8 +2,8 @@ import type { HttpMethod } from '@scalar/helpers/http/http-methods';
|
|
|
2
2
|
import type { ServerMeta, WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
3
3
|
import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
|
|
4
4
|
import type { ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
5
|
-
import type { ClientLayout } from '
|
|
6
|
-
import { type History } from '
|
|
5
|
+
import type { ClientLayout } from '../../../../hooks/index.js';
|
|
6
|
+
import { type History } from '../../../../v2/blocks/scalar-address-bar-block/index.js';
|
|
7
7
|
/**
|
|
8
8
|
Operation block header: address bar, environment selector, and modal controls.
|
|
9
9
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type XScalarCookie } from '@scalar/workspace-store/schemas/extensions/general/x-scalar-cookies';
|
|
2
2
|
import type { SecurityRequirementObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
3
|
-
import type { MergedSecuritySchemes } from '
|
|
4
|
-
import type { SecuritySchemeObjectSecret } from '
|
|
3
|
+
import type { MergedSecuritySchemes } from '../../../../v2/blocks/scalar-auth-selector-block/helpers/merge-security';
|
|
4
|
+
import type { SecuritySchemeObjectSecret } from '../../../../v2/blocks/scalar-auth-selector-block/helpers/secret-types';
|
|
5
5
|
/**
|
|
6
6
|
* Get the selected security schemes from security requirements.
|
|
7
7
|
* Takes security requirement objects and resolves them to actual security scheme objects.
|
|
@@ -3,8 +3,8 @@ import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensi
|
|
|
3
3
|
import type { XScalarCookie } from '@scalar/workspace-store/schemas/extensions/general/x-scalar-cookies';
|
|
4
4
|
import type { ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
5
5
|
import type { OperationObject } from '@scalar/workspace-store/schemas/v3.1/strict/operation';
|
|
6
|
-
import { type ErrorResponse } from '
|
|
7
|
-
import type { SecuritySchemeObjectSecret } from '
|
|
6
|
+
import { type ErrorResponse } from '../../../../libs/errors';
|
|
7
|
+
import type { SecuritySchemeObjectSecret } from '../../../../v2/blocks/scalar-auth-selector-block/helpers/secret-types';
|
|
8
8
|
/**
|
|
9
9
|
* Builds a fully configured Request object ready for execution.
|
|
10
10
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { HttpMethod } from '@scalar/helpers/http/http-methods';
|
|
2
2
|
import type { HarResponse } from '@scalar/snippetz';
|
|
3
|
-
import type { ResponseInstance } from '
|
|
3
|
+
import type { ResponseInstance } from '../../../../v2/blocks/operation-block/helpers/send-request';
|
|
4
4
|
type HarToFetchResponseProps = {
|
|
5
5
|
/** The HAR Response object to convert */
|
|
6
6
|
harResponse: HarResponse;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { HttpMethod } from '@scalar/helpers/http/http-methods';
|
|
2
2
|
import { type ClientPlugin } from '@scalar/oas-utils/helpers';
|
|
3
3
|
import type { OperationObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
4
|
-
import { type ErrorResponse } from '
|
|
4
|
+
import { type ErrorResponse } from '../../../../libs/errors';
|
|
5
5
|
/** A single set of populated values for a sent request */
|
|
6
6
|
export type ResponseInstance = Omit<Response, 'headers'> & {
|
|
7
7
|
/** Store headers as an object to match what we had with axios */
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import "../../../HttpMethod-rnWEgC3T.js";
|
|
2
|
-
import "../../../CodeInput-
|
|
3
|
-
import "../../../Server-
|
|
4
|
-
import "../../../AddressBar-
|
|
2
|
+
import "../../../CodeInput-BTN8cC5h.js";
|
|
3
|
+
import "../../../Server-CEKGIEfE.js";
|
|
4
|
+
import "../../../AddressBar-BOZGKSoz.js";
|
|
5
5
|
import "../../../components-ChixwQhN.js";
|
|
6
|
-
import "../../../Sidebar-
|
|
7
|
-
import "../../../DataTableInput-
|
|
8
|
-
import { l as buildRequestSecurity, t as OperationBlock_default, u as getSecuritySchemes } from "../../../operation-block-
|
|
9
|
-
import { T as getExample } from "../../../operation-code-sample-
|
|
6
|
+
import "../../../Sidebar-CRxdl38Y.js";
|
|
7
|
+
import "../../../DataTableInput-RydMDjn2.js";
|
|
8
|
+
import { l as buildRequestSecurity, t as OperationBlock_default, u as getSecuritySchemes } from "../../../operation-block-B1B3lJPx.js";
|
|
9
|
+
import { T as getExample } from "../../../operation-code-sample-DOzAPxLQ.js";
|
|
10
10
|
import { t as getResolvedUrl } from "../../../get-resolved-url-SybDPV0U.js";
|
|
11
|
-
import "../../../request-block-
|
|
11
|
+
import "../../../request-block-C1kLLMEd.js";
|
|
12
12
|
import "../../../SectionFilter-hrtoRLwj.js";
|
|
13
13
|
import "../../../code-input-iq-moLxi.js";
|
|
14
14
|
import "../../../data-table-PL7e8NRO.js";
|
|
@@ -3,8 +3,8 @@ import { type AvailableClients } from '@scalar/snippetz';
|
|
|
3
3
|
import { type WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
4
4
|
import type { XScalarCookie } from '@scalar/workspace-store/schemas/extensions/general/x-scalar-cookies';
|
|
5
5
|
import type { OperationObject, ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
6
|
-
import type { ClientOptionGroup } from '
|
|
7
|
-
import type { SecuritySchemeObjectSecret } from '
|
|
6
|
+
import type { ClientOptionGroup } from '../../../../v2/blocks/operation-code-sample/types';
|
|
7
|
+
import type { SecuritySchemeObjectSecret } from '../../../../v2/blocks/scalar-auth-selector-block/helpers/secret-types';
|
|
8
8
|
export type OperationCodeSampleProps = {
|
|
9
9
|
/**
|
|
10
10
|
* Integration type: determines if the code sample is displayed in a client environment
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type AvailableClients } from '@scalar/snippetz';
|
|
2
|
-
import type { ClientOption, CustomClientOption, CustomClientOptionGroup } from '
|
|
2
|
+
import type { ClientOption, CustomClientOption, CustomClientOptionGroup } from '../../../../v2/blocks/operation-code-sample/types';
|
|
3
3
|
export declare const DEFAULT_CLIENT = "shell/curl";
|
|
4
4
|
/** Type guard to check if a string is a valid client id */
|
|
5
5
|
export declare const isClient: (id: any) => id is AvailableClients[number];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type AvailableClients } from '@scalar/snippetz';
|
|
2
2
|
import type { XCodeSample } from '@scalar/workspace-store/schemas/extensions/operation';
|
|
3
|
-
import type { ClientOptionGroup } from '
|
|
3
|
+
import type { ClientOptionGroup } from '../../../../v2/blocks/operation-code-sample/types';
|
|
4
4
|
/** Type of custom code sample IDs */
|
|
5
5
|
export type CustomCodeSampleId = `custom/${string}`;
|
|
6
6
|
/** Helper to generate an ID for custom code samples */
|
|
@@ -3,7 +3,7 @@ import type { AvailableClient } from '@scalar/snippetz';
|
|
|
3
3
|
import type { XScalarCookie } from '@scalar/workspace-store/schemas/extensions/general/x-scalar-cookies';
|
|
4
4
|
import type { XCodeSample } from '@scalar/workspace-store/schemas/extensions/operation';
|
|
5
5
|
import type { OperationObject, ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
6
|
-
import type { SecuritySchemeObjectSecret } from '
|
|
6
|
+
import type { SecuritySchemeObjectSecret } from '../../../../v2/blocks/scalar-auth-selector-block/helpers/secret-types';
|
|
7
7
|
import { type CustomCodeSampleId } from './generate-client-options';
|
|
8
8
|
type GenerateCodeSnippetProps = {
|
|
9
9
|
/** The selected client/language for code generation (e.g., 'node/fetch') or a custom code sample ID. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { XCodeSample } from '@scalar/workspace-store/schemas/extensions/operation';
|
|
2
|
-
import type { ClientOptionGroup } from '
|
|
3
|
-
import type { CustomClientOptionGroup } from '
|
|
2
|
+
import type { ClientOptionGroup } from '../../../../v2/blocks/operation-code-sample/index.js';
|
|
3
|
+
import type { CustomClientOptionGroup } from '../../../../v2/blocks/operation-code-sample/types';
|
|
4
4
|
/**
|
|
5
5
|
* Merges custom code samples with the client options
|
|
6
6
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SecuritySchemeObjectSecret } from '
|
|
1
|
+
import type { SecuritySchemeObjectSecret } from '../../../../v2/blocks/scalar-auth-selector-block/helpers/secret-types';
|
|
2
2
|
/** Extract secrets from security schemes */
|
|
3
3
|
export declare const getSecrets: (securitySchemes: SecuritySchemeObjectSecret[]) => string[];
|
|
4
4
|
//# sourceMappingURL=get-secrets.d.ts.map
|
|
@@ -2,7 +2,7 @@ import type { HttpMethod } from '@scalar/helpers/http/http-methods';
|
|
|
2
2
|
import type { XScalarCookie } from '@scalar/workspace-store/schemas/extensions/general/x-scalar-cookies';
|
|
3
3
|
import type { OperationObject, ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
4
4
|
import type { Request as HarRequest } from 'har-format';
|
|
5
|
-
import type { SecuritySchemeObjectSecret } from '
|
|
5
|
+
import type { SecuritySchemeObjectSecret } from '../../../../../v2/blocks/scalar-auth-selector-block/helpers/secret-types';
|
|
6
6
|
export type OperationToHarProps = {
|
|
7
7
|
/** OpenAPI Operation object */
|
|
8
8
|
operation: OperationObject;
|
package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-security-schemes.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Request as HarRequest } from 'har-format';
|
|
2
|
-
import type { SecuritySchemeObjectSecret } from '
|
|
2
|
+
import type { SecuritySchemeObjectSecret } from '../../../../../v2/blocks/scalar-auth-selector-block/helpers/secret-types';
|
|
3
3
|
type ProcessedSecuritySchemesReturn = {
|
|
4
4
|
headers: HarRequest['headers'];
|
|
5
5
|
queryString: HarRequest['queryString'];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { E as getResolvedRefDeep, S as getExampleFromSchema, c as findClient, d as ExamplePicker_default, l as isClient, o as generateClientOptions, s as DEFAULT_CLIENT, t as OperationCodeSample_default } from "../../../operation-code-sample-
|
|
1
|
+
import { E as getResolvedRefDeep, S as getExampleFromSchema, c as findClient, d as ExamplePicker_default, l as isClient, o as generateClientOptions, s as DEFAULT_CLIENT, t as OperationCodeSample_default } from "../../../operation-code-sample-DOzAPxLQ.js";
|
|
2
2
|
export { DEFAULT_CLIENT, ExamplePicker_default as ExamplePicker, OperationCodeSample_default as OperationCodeSample, findClient, generateClientOptions, getExampleFromSchema, getResolvedRefDeep, isClient };
|
|
@@ -6,10 +6,10 @@ import type { AuthMeta, WorkspaceEventBus } from '@scalar/workspace-store/events
|
|
|
6
6
|
import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
|
|
7
7
|
import type { XScalarCookie } from '@scalar/workspace-store/schemas/extensions/general/x-scalar-cookies';
|
|
8
8
|
import type { OpenApiDocument, OperationObject, ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
9
|
-
import type { ClientLayout } from '
|
|
10
|
-
import type { ClientOptionGroup } from '
|
|
11
|
-
import { type MergedSecuritySchemes } from '
|
|
12
|
-
import type { SecuritySchemeObjectSecret } from '
|
|
9
|
+
import type { ClientLayout } from '../../../hooks/index.js';
|
|
10
|
+
import type { ClientOptionGroup } from '../../../v2/blocks/operation-code-sample/index.js';
|
|
11
|
+
import { type MergedSecuritySchemes } from '../../../v2/blocks/scalar-auth-selector-block/index.js';
|
|
12
|
+
import type { SecuritySchemeObjectSecret } from '../../../v2/blocks/scalar-auth-selector-block/helpers/secret-types';
|
|
13
13
|
export type ExtendedScalarCookie = XScalarCookie & {
|
|
14
14
|
location: 'document' | 'workspace';
|
|
15
15
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
2
|
-
import type { OperationCodeSampleProps } from '
|
|
2
|
+
import type { OperationCodeSampleProps } from '../../../../v2/blocks/operation-code-sample/components/OperationCodeSample.vue';
|
|
3
3
|
type __VLS_Props = OperationCodeSampleProps & {
|
|
4
4
|
eventBus: WorkspaceEventBus;
|
|
5
5
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
|
|
2
|
-
import { type TableRow } from '
|
|
2
|
+
import { type TableRow } from '../../../../v2/blocks/request-block/components/RequestTableRow.vue';
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
data: TableRow[];
|
|
5
5
|
/** Hide the enabled column */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { OperationExampleMeta, WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
2
|
-
import type { TableRow } from '
|
|
2
|
+
import type { TableRow } from '../../../../v2/blocks/request-block/components/RequestTableRow.vue';
|
|
3
3
|
type ParameterType = 'path' | 'cookie' | 'header' | 'query';
|
|
4
4
|
/** Create parameter event handlers for a given type */
|
|
5
5
|
export declare const createParameterHandlers: (type: ParameterType, eventBus: WorkspaceEventBus, meta: OperationExampleMeta, { context, defaultParameters, globalParameters, }: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ExampleObject, SchemaObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
2
|
-
import type { TableRow } from '
|
|
2
|
+
import type { TableRow } from '../../../../v2/blocks/request-block/components/RequestTableRow.vue';
|
|
3
3
|
/** Build the table rows for the form data, optionally enriched with schema (e.g. enum) per property */
|
|
4
4
|
export declare const getFormBodyRows: (example: ExampleObject | undefined | null, contentType: string, formBodySchema?: SchemaObject) => TableRow[];
|
|
5
5
|
//# sourceMappingURL=get-form-body-rows.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "../../../CodeInput-
|
|
2
|
-
import "../../../DataTableInput-
|
|
3
|
-
import "../../../operation-code-sample-
|
|
4
|
-
import { t as RequestBlock_default } from "../../../request-block-
|
|
1
|
+
import "../../../CodeInput-BTN8cC5h.js";
|
|
2
|
+
import "../../../DataTableInput-RydMDjn2.js";
|
|
3
|
+
import "../../../operation-code-sample-DOzAPxLQ.js";
|
|
4
|
+
import { t as RequestBlock_default } from "../../../request-block-C1kLLMEd.js";
|
|
5
5
|
import "../../../SectionFilter-hrtoRLwj.js";
|
|
6
6
|
import "../../../code-input-iq-moLxi.js";
|
|
7
7
|
import "../../../data-table-PL7e8NRO.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ResponseInstance } from '@scalar/oas-utils/entities/spec';
|
|
2
2
|
import type { ClientPlugin } from '@scalar/oas-utils/helpers';
|
|
3
3
|
import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
4
|
-
import type { ClientLayout } from '
|
|
4
|
+
import type { ClientLayout } from '../../../hooks/index.js';
|
|
5
5
|
type __VLS_Props = {
|
|
6
6
|
/** Preprocessed response */
|
|
7
7
|
response: ResponseInstance | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../../CodeInput-
|
|
2
|
-
import "../../../DataTableInput-
|
|
1
|
+
import "../../../CodeInput-BTN8cC5h.js";
|
|
2
|
+
import "../../../DataTableInput-RydMDjn2.js";
|
|
3
3
|
import "../../../SectionFilter-hrtoRLwj.js";
|
|
4
4
|
import { t as ResponseBlock_default } from "../../../response-block-DmkaDZYs.js";
|
|
5
5
|
import "../../../ScalarAsciiArt-BjuSnj8e.js";
|
|
@@ -2,7 +2,7 @@ import type { HttpMethod as HttpMethodType } from '@scalar/helpers/http/http-met
|
|
|
2
2
|
import type { ServerMeta, WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
3
3
|
import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
|
|
4
4
|
import type { ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
5
|
-
import { type ClientLayout } from '
|
|
5
|
+
import { type ClientLayout } from '../../../../hooks/index.js';
|
|
6
6
|
import { type History } from './AddressBarHistory.vue';
|
|
7
7
|
/**
|
|
8
8
|
* AddressBar component
|
|
@@ -3,8 +3,8 @@ import type { SelectedSecurity } from '@scalar/workspace-store/entities/auth';
|
|
|
3
3
|
import type { AuthMeta, WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
4
4
|
import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
|
|
5
5
|
import type { OpenApiDocument, ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
6
|
-
import type { MergedSecuritySchemes } from '
|
|
7
|
-
import { type SecuritySchemeOption } from '
|
|
6
|
+
import type { MergedSecuritySchemes } from '../../../../v2/blocks/scalar-auth-selector-block/helpers/merge-security';
|
|
7
|
+
import { type SecuritySchemeOption } from '../../../../v2/blocks/scalar-auth-selector-block/helpers/security-scheme';
|
|
8
8
|
type __VLS_Props = {
|
|
9
9
|
environment: XScalarEnvironment;
|
|
10
10
|
eventBus: WorkspaceEventBus;
|
|
@@ -28,7 +28,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
|
28
28
|
text: string;
|
|
29
29
|
} | null>;
|
|
30
30
|
selectedSchemeOptions: import("vue").ComputedRef<SecuritySchemeOption[]>;
|
|
31
|
-
schemeOptions: import("vue").ComputedRef<SecuritySchemeOption[] | import("
|
|
31
|
+
schemeOptions: import("vue").ComputedRef<SecuritySchemeOption[] | import("../../../../v2/blocks/scalar-auth-selector-block/helpers/security-scheme").SecuritySchemeGroup[]>;
|
|
32
32
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
33
33
|
declare const _default: typeof __VLS_export;
|
|
34
34
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
2
2
|
import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
|
|
3
3
|
import type { ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
4
|
-
import type { OAuthFlowsObjectSecret, SecuritySchemeObjectSecret } from '
|
|
4
|
+
import type { OAuthFlowsObjectSecret, SecuritySchemeObjectSecret } from '../../../../v2/blocks/scalar-auth-selector-block/helpers/secret-types';
|
|
5
5
|
type __VLS_Props = {
|
|
6
6
|
/** Current environment configuration */
|
|
7
7
|
environment: XScalarEnvironment;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { AuthMeta, WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
2
2
|
import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
|
|
3
3
|
import type { ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
4
|
-
import type { MergedSecuritySchemes } from '
|
|
5
|
-
import type { SecuritySchemeOption } from '
|
|
4
|
+
import type { MergedSecuritySchemes } from '../../../../v2/blocks/scalar-auth-selector-block/index.js';
|
|
5
|
+
import type { SecuritySchemeOption } from '../../../../v2/blocks/scalar-auth-selector-block/helpers/security-scheme';
|
|
6
6
|
type __VLS_Props = {
|
|
7
7
|
/** The current environment configuration */
|
|
8
8
|
environment: XScalarEnvironment;
|
package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
|
|
2
|
-
import type { VueClassProp } from '
|
|
2
|
+
import type { VueClassProp } from '../../../../types/vue';
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
containerClass?: VueClassProp;
|
|
5
5
|
environment: XScalarEnvironment;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
2
2
|
import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
|
|
3
3
|
import type { SecurityRequirementObject, ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
4
|
-
import type { MergedSecuritySchemes } from '
|
|
4
|
+
import type { MergedSecuritySchemes } from '../../../../v2/blocks/scalar-auth-selector-block/index.js';
|
|
5
5
|
type __VLS_Props = {
|
|
6
6
|
/** Current environment configuration */
|
|
7
7
|
environment: XScalarEnvironment;
|
package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Static } from '@scalar/typebox';
|
|
2
|
-
import type { ErrorResponse } from '
|
|
2
|
+
import type { ErrorResponse } from '../../../../libs/errors';
|
|
3
3
|
/**
|
|
4
4
|
* OpenID Connect Discovery Document (subset)
|
|
5
5
|
* Represents the metadata fields consumed by the auth selector flow conversion.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
2
|
-
import type { ErrorResponse } from '
|
|
3
|
-
import type { OAuthFlowsObjectSecret } from '
|
|
2
|
+
import type { ErrorResponse } from '../../../../libs/errors';
|
|
3
|
+
import type { OAuthFlowsObjectSecret } from '../../../../v2/blocks/scalar-auth-selector-block/helpers/secret-types';
|
|
4
4
|
export type OAuth2Tokens = {
|
|
5
5
|
accessToken: string;
|
|
6
6
|
refreshToken?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../../CodeInput-
|
|
2
|
-
import "../../../DataTableInput-
|
|
1
|
+
import "../../../CodeInput-BTN8cC5h.js";
|
|
2
|
+
import "../../../DataTableInput-RydMDjn2.js";
|
|
3
3
|
import "../../../code-input-iq-moLxi.js";
|
|
4
4
|
import "../../../data-table-PL7e8NRO.js";
|
|
5
5
|
import { n as AuthSelector_default, r as isAuthOptional, t as mergeSecurity } from "../../../scalar-auth-selector-block-Bs79QOMA.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type CodeMirrorLanguage, type Extension } from '@scalar/use-codemirror';
|
|
2
2
|
import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
|
|
3
3
|
import { type Ref } from 'vue';
|
|
4
|
-
import type { ClientLayout } from '
|
|
4
|
+
import type { ClientLayout } from '../../../v2/types/layout';
|
|
5
5
|
export type CodeInputModelValue = string | number | boolean | Array<string | number | boolean> | Record<string, unknown>;
|
|
6
6
|
/**
|
|
7
7
|
* CodeInput
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
|
|
2
|
-
import type { VueClassProp } from '
|
|
2
|
+
import type { VueClassProp } from '../../../types/vue';
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
id?: string;
|
|
5
5
|
type?: string | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ServerMeta } from '@scalar/workspace-store/events';
|
|
2
2
|
import type { ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
3
|
-
import type { ClientLayout } from '
|
|
3
|
+
import type { ClientLayout } from '../../../hooks/index.js';
|
|
4
4
|
/**
|
|
5
5
|
* ServerDropdown component
|
|
6
6
|
* This component is used to display the server dropdown for the operation block
|
|
@@ -2,7 +2,7 @@ import { type WorkspaceGroup } from '@scalar/components';
|
|
|
2
2
|
import { type DraggingItem, type HoveredItem, type SidebarState } from '@scalar/sidebar';
|
|
3
3
|
import type { WorkspaceDocument } from '@scalar/workspace-store/schemas';
|
|
4
4
|
import type { TraversedEntry } from '@scalar/workspace-store/schemas/navigation';
|
|
5
|
-
import type { ClientLayout } from '
|
|
5
|
+
import type { ClientLayout } from '../../../v2/types/layout';
|
|
6
6
|
type __VLS_Props = {
|
|
7
7
|
/** All documents to display sidebar items for */
|
|
8
8
|
sidebarState: SidebarState<TraversedEntry>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type ModalState } from '@scalar/components';
|
|
2
2
|
import type { ClientPlugin } from '@scalar/oas-utils/helpers';
|
|
3
|
-
import type { CommandPaletteState } from '
|
|
4
|
-
import type { ImportDocumentFromRegistry } from '
|
|
5
|
-
import type { ClientLayout } from '
|
|
3
|
+
import type { CommandPaletteState } from '../../../v2/features/command-palette/hooks/use-command-palette-state';
|
|
4
|
+
import type { ImportDocumentFromRegistry } from '../../../v2/types/configuration';
|
|
5
|
+
import type { ClientLayout } from '../../../v2/types/layout';
|
|
6
6
|
import { type AppState } from './app-state';
|
|
7
7
|
/**
|
|
8
8
|
* Main entry point for the API client for electron and web.
|
|
@@ -3,7 +3,7 @@ import type { SidebarState } from '@scalar/sidebar';
|
|
|
3
3
|
import type { WorkspaceStore } from '@scalar/workspace-store/client';
|
|
4
4
|
import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
5
5
|
import type { TraversedEntry } from '@scalar/workspace-store/schemas/navigation';
|
|
6
|
-
import type { ClientLayout } from '
|
|
6
|
+
import type { ClientLayout } from '../../../../v2/types/layout';
|
|
7
7
|
type __VLS_Props = {
|
|
8
8
|
/**
|
|
9
9
|
* The current layout of the app (e.g., 'desktop', 'web')
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../../../CodeInput-
|
|
2
|
-
import "../../../../DataTableInput-
|
|
1
|
+
import "../../../../CodeInput-BTN8cC5h.js";
|
|
2
|
+
import "../../../../DataTableInput-RydMDjn2.js";
|
|
3
3
|
import "../../../../code-input-iq-moLxi.js";
|
|
4
4
|
import "../../../../data-table-PL7e8NRO.js";
|
|
5
5
|
import "../../../../scalar-auth-selector-block-Bs79QOMA.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ClientPlugin } from '@scalar/oas-utils/helpers';
|
|
2
2
|
import type { Theme } from '@scalar/themes';
|
|
3
|
-
import type { ImportDocumentFromRegistry } from '
|
|
4
|
-
import type { ClientLayout } from '
|
|
3
|
+
import type { ImportDocumentFromRegistry } from '../../../../v2/types/configuration';
|
|
4
|
+
import type { ClientLayout } from '../../../../v2/types/layout';
|
|
5
5
|
type CreateApiClientOptions = {
|
|
6
6
|
/**
|
|
7
7
|
* The layout of the client, limited to web or desktop in app
|
|
@@ -38,7 +38,7 @@ export declare const createAppRouter: (layout: CreateApiClientOptions["layout"])
|
|
|
38
38
|
*/
|
|
39
39
|
export declare const createApiClientApp: (el: HTMLElement | null, { layout, plugins, customThemes, fallbackThemeSlug, fetchRegistryDocument }: CreateApiClientOptions) => Promise<{
|
|
40
40
|
app: import("vue").App<Element>;
|
|
41
|
-
state: import("
|
|
41
|
+
state: import("../../../../v2/features/app/app-state").AppState;
|
|
42
42
|
} | undefined>;
|
|
43
43
|
export {};
|
|
44
44
|
//# sourceMappingURL=create-api-client-app.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { HttpMethod } from '@scalar/helpers/http/http-methods';
|
|
2
2
|
import type { RouteLocationNormalizedGeneric } from 'vue-router';
|
|
3
|
-
import type { ScalarClientAppRouteParams } from '
|
|
3
|
+
import type { ScalarClientAppRouteParams } from '../../../../v2/features/app/helpers/routes';
|
|
4
4
|
/** Extracts a string parameter from the route */
|
|
5
5
|
export declare function getRouteParam(paramName: 'method', route: RouteLocationNormalizedGeneric | null): HttpMethod | undefined;
|
|
6
6
|
export declare function getRouteParam(paramName: Exclude<ScalarClientAppRouteParams, 'method'>, route: RouteLocationNormalizedGeneric | null): string | undefined;
|
|
@@ -5,9 +5,9 @@ import type { WorkspaceStore } from '@scalar/workspace-store/client';
|
|
|
5
5
|
import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
6
6
|
import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
|
|
7
7
|
import type { WorkspaceDocument } from '@scalar/workspace-store/schemas/workspace';
|
|
8
|
-
import type { MergedSecuritySchemes } from '
|
|
9
|
-
import type { ImportDocumentFromRegistry } from '
|
|
10
|
-
import type { ClientLayout } from '
|
|
8
|
+
import type { MergedSecuritySchemes } from '../../../../v2/blocks/scalar-auth-selector-block/helpers/merge-security';
|
|
9
|
+
import type { ImportDocumentFromRegistry } from '../../../../v2/types/configuration';
|
|
10
|
+
import type { ClientLayout } from '../../../../v2/types/layout';
|
|
11
11
|
/** These props are provided at the route level */
|
|
12
12
|
export type RouteProps = {
|
|
13
13
|
/** The slug of the currently selected document in the workspace */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { type AppState, createAppState } from '
|
|
2
|
-
export { default as CreateWorkspaceModal } from '
|
|
3
|
-
export { default as CommandActionForm } from '
|
|
4
|
-
export { default as CommandActionInput } from '
|
|
5
|
-
export type { ClientLayout } from '
|
|
1
|
+
export { type AppState, createAppState } from '../../../v2/features/app/app-state';
|
|
2
|
+
export { default as CreateWorkspaceModal } from '../../../v2/features/app/components/CreateWorkspaceModal.vue';
|
|
3
|
+
export { default as CommandActionForm } from '../../../v2/features/command-palette/components/CommandActionForm.vue';
|
|
4
|
+
export { default as CommandActionInput } from '../../../v2/features/command-palette/components/CommandActionInput.vue';
|
|
5
|
+
export type { ClientLayout } from '../../../v2/types/layout';
|
|
6
6
|
export { type CommandPaletteAction, type CommandPaletteRoute, baseClientActions, baseRoutes, useCommandPaletteState, } from '../command-palette/hooks/use-command-palette-state';
|
|
7
7
|
export { default as ClientApp } from './App.vue';
|
|
8
8
|
export { createApiClientApp, createAppRouter } from './helpers/create-api-client-app';
|
|
@@ -2,16 +2,16 @@ import { t as parseCurlCommand } from "../../../parse-curl-BtypQT3D.js";
|
|
|
2
2
|
import { t as _plugin_vue_export_helper_default } from "../../../_plugin-vue_export-helper-BmmBcIzD.js";
|
|
3
3
|
import { t as IconSelector_default } from "../../../IconSelector-BDC_GQXv.js";
|
|
4
4
|
import "../../../HttpMethod-rnWEgC3T.js";
|
|
5
|
-
import "../../../CodeInput-
|
|
5
|
+
import "../../../CodeInput-BTN8cC5h.js";
|
|
6
6
|
import { t as ServerVariablesForm_default } from "../../../ServerVariablesForm-BRZ9XC8o.js";
|
|
7
|
-
import "../../../Server-
|
|
8
|
-
import "../../../AddressBar-
|
|
7
|
+
import "../../../Server-CEKGIEfE.js";
|
|
8
|
+
import "../../../AddressBar-BOZGKSoz.js";
|
|
9
9
|
import "../../../components-ChixwQhN.js";
|
|
10
|
-
import "../../../Sidebar-
|
|
11
|
-
import "../../../DataTableInput-
|
|
12
|
-
import { n as Operation_default, o as getSelectedSecurity, r as getActiveProxyUrl } from "../../../operation-block-
|
|
13
|
-
import { u as HttpMethod_default } from "../../../operation-code-sample-
|
|
14
|
-
import "../../../request-block-
|
|
10
|
+
import "../../../Sidebar-CRxdl38Y.js";
|
|
11
|
+
import "../../../DataTableInput-RydMDjn2.js";
|
|
12
|
+
import { n as Operation_default, o as getSelectedSecurity, r as getActiveProxyUrl } from "../../../operation-block-B1B3lJPx.js";
|
|
13
|
+
import { u as HttpMethod_default } from "../../../operation-code-sample-DOzAPxLQ.js";
|
|
14
|
+
import "../../../request-block-C1kLLMEd.js";
|
|
15
15
|
import "../../../SectionFilter-hrtoRLwj.js";
|
|
16
16
|
import { t as ViewLayoutSection_default } from "../../../ViewLayoutSection-mUqKbQry.js";
|
|
17
17
|
import { t as CodeInput_default } from "../../../code-input-iq-moLxi.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RouteProps } from '
|
|
1
|
+
import type { RouteProps } from '../../../v2/features/app/helpers/routes';
|
|
2
2
|
/** Document collection page — tabs for Overview, Servers, Auth, Environment, Cookies, and Settings. */
|
|
3
3
|
declare const _default: typeof __VLS_export;
|
|
4
4
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RouteProps } from '
|
|
1
|
+
import type { RouteProps } from '../../../v2/features/app/helpers/routes';
|
|
2
2
|
/** Document collection page — tabs for Overview, Servers, Auth, Environment, Cookies, and Settings. */
|
|
3
3
|
declare const _default: typeof __VLS_export;
|
|
4
4
|
export default _default;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
declare const __VLS_export: import("vue").DefineComponent<(import("
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<(import("../../../../v2/features/app/helpers/routes").RouteProps & {
|
|
2
2
|
collectionType: "document" | "operation";
|
|
3
3
|
document: import("@scalar/workspace-store/schemas").WorkspaceDocument;
|
|
4
|
-
}) | (import("
|
|
4
|
+
}) | (import("../../../../v2/features/app/helpers/routes").RouteProps & {
|
|
5
5
|
collectionType: "workspace";
|
|
6
6
|
document: null;
|
|
7
|
-
}), {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<(import("
|
|
7
|
+
}), {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<(import("../../../../v2/features/app/helpers/routes").RouteProps & {
|
|
8
8
|
collectionType: "document" | "operation";
|
|
9
9
|
document: import("@scalar/workspace-store/schemas").WorkspaceDocument;
|
|
10
|
-
}) | (import("
|
|
10
|
+
}) | (import("../../../../v2/features/app/helpers/routes").RouteProps & {
|
|
11
11
|
collectionType: "workspace";
|
|
12
12
|
document: null;
|
|
13
13
|
})> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|