@scalar/api-client 2.18.4 → 2.19.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 +37 -0
- package/dist/components/AddressBar/AddressBar.vue2.js +5 -5
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +6 -6
- package/dist/components/ImportCollection/DropEventListener.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/DropEventListener.vue.js +26 -28
- package/dist/components/ImportCollection/utils/get-openapi-version.d.ts.map +1 -1
- package/dist/components/ImportCollection/utils/import-collection.d.ts +1 -1
- package/dist/components/ImportCollection/utils/import-collection.d.ts.map +1 -1
- package/dist/components/Search/useSearch.d.ts.map +1 -1
- package/dist/components/Search/useSearch.js +16 -16
- package/dist/components/Server/index.d.ts +1 -1
- package/dist/components/Server/index.d.ts.map +1 -1
- package/dist/components/Server/index.js +6 -6
- package/dist/components/SideNav/SideNav.vue.js +3 -3
- package/dist/components/Sidebar/index.d.ts +1 -2
- package/dist/components/Sidebar/index.d.ts.map +1 -1
- package/dist/components/index.d.ts +2 -2
- package/dist/components/index.d.ts.map +1 -1
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/useResponseBody.d.ts +1 -1
- package/dist/hooks/useResponseBody.d.ts.map +1 -1
- package/dist/hooks/useResponseBody.js +4 -4
- package/dist/hooks/useSidebar.d.ts +1 -1
- package/dist/hooks/useSidebar.d.ts.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/layouts/App/ApiClientApp.vue.js +5 -5
- package/dist/layouts/App/MainLayout.vue.js +4 -4
- package/dist/layouts/App/create-api-client-app.d.ts +12 -12
- package/dist/layouts/App/index.d.ts +1 -1
- package/dist/layouts/App/index.d.ts.map +1 -1
- package/dist/layouts/Web/ApiClientWeb.vue.js +6 -6
- package/dist/layouts/Web/create-api-client-web.d.ts +12 -12
- package/dist/layouts/Web/index.d.ts +1 -1
- package/dist/layouts/Web/index.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +12 -12
- package/dist/libs/get-request-uid-by-path-method.d.ts +1 -1
- package/dist/libs/get-request-uid-by-path-method.d.ts.map +1 -1
- package/dist/libs/hot-keys.d.ts +2 -2
- package/dist/libs/hot-keys.d.ts.map +1 -1
- package/dist/libs/importers/curl.d.ts.map +1 -1
- package/dist/libs/index.d.ts +14 -15
- package/dist/libs/index.d.ts.map +1 -1
- package/dist/libs/index.js +33 -33
- package/dist/libs/parse-curl.js +4 -4
- package/dist/libs/send-request/create-fetch-body.d.ts +1 -1
- package/dist/libs/send-request/create-fetch-body.d.ts.map +1 -1
- package/dist/libs/send-request/create-fetch-body.js +1 -1
- package/dist/libs/send-request/create-fetch-headers.d.ts.map +1 -1
- package/dist/libs/send-request/create-fetch-query-params.d.ts.map +1 -1
- package/dist/libs/send-request/create-fetch-query-params.js +2 -1
- package/dist/libs/send-request/index.d.ts +1 -1
- package/dist/libs/send-request/index.d.ts.map +1 -1
- package/dist/libs/send-request/index.js +4 -4
- package/dist/libs/send-request/set-request-cookies.d.ts.map +1 -1
- package/dist/libs/send-request/set-request-cookies.js +4 -4
- package/dist/store/active-entities.d.ts +1 -1
- package/dist/store/collections.d.ts +1 -1
- package/dist/store/collections.d.ts.map +1 -1
- package/dist/store/collections.js +4 -4
- package/dist/store/environment.d.ts +1 -1
- package/dist/store/environment.d.ts.map +1 -1
- package/dist/store/environment.js +4 -4
- package/dist/store/import-spec.d.ts +2 -2
- package/dist/store/import-spec.d.ts.map +1 -1
- package/dist/store/index.d.ts +1 -1
- package/dist/store/index.d.ts.map +1 -1
- package/dist/store/request-example.d.ts +1 -1
- package/dist/store/request-example.d.ts.map +1 -1
- package/dist/store/request-example.js +6 -6
- package/dist/store/requests.d.ts +1 -1
- package/dist/store/requests.d.ts.map +1 -1
- package/dist/store/requests.js +8 -8
- package/dist/store/security-schemes.d.ts +1 -1
- package/dist/store/security-schemes.d.ts.map +1 -1
- package/dist/store/security-schemes.js +4 -4
- package/dist/store/servers.d.ts +1 -1
- package/dist/store/servers.d.ts.map +1 -1
- package/dist/store/servers.js +4 -4
- package/dist/store/store.d.ts +12 -12
- package/dist/store/tags.d.ts +1 -1
- package/dist/store/tags.d.ts.map +1 -1
- package/dist/store/tags.js +5 -5
- package/dist/store/workspace.d.ts +13 -13
- package/dist/store/workspace.d.ts.map +1 -1
- package/dist/store/workspace.js +7 -7
- package/dist/style.css +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts +4 -5
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.js +17 -16
- package/dist/v2/blocks/operation-block/helpers/build-request-cookie-header.d.ts +3 -3
- package/dist/v2/blocks/operation-block/helpers/build-request-cookie-header.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/build-request-cookie-header.js +22 -22
- package/dist/v2/blocks/operation-block/helpers/build-request-parameters.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/build-request-parameters.js +14 -13
- package/dist/v2/blocks/operation-block/helpers/build-request.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/build-request.js +43 -41
- package/dist/v2/blocks/operation-block/helpers/filter-global-cookies.d.ts +14 -0
- package/dist/v2/blocks/operation-block/helpers/filter-global-cookies.d.ts.map +1 -0
- package/dist/v2/blocks/operation-block/helpers/filter-global-cookies.js +14 -0
- package/dist/v2/blocks/operation-block/helpers/get-resolved-url.d.ts +25 -0
- package/dist/v2/blocks/operation-block/helpers/get-resolved-url.d.ts.map +1 -0
- package/dist/v2/blocks/operation-block/helpers/get-resolved-url.js +17 -0
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.d.ts +10 -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 +1 -1
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue2.js +29 -25
- package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts +6 -1
- package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.js +27 -23
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.d.ts +10 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.js +48 -39
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.js +49 -46
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-server-url.d.ts +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-server-url.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-server-url.js +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts +6 -2
- package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue.js +2 -2
- package/dist/v2/blocks/request-block/RequestBlock.vue2.js +200 -115
- package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts +4 -4
- package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.js +21 -17
- package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts +16 -10
- package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestParams.vue.js +32 -45
- package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts +16 -13
- package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTable.vue.js +4 -4
- package/dist/v2/blocks/request-block/components/RequestTable.vue2.js +32 -33
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts +33 -18
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.js +106 -106
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts +10 -5
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.js +60 -31
- package/dist/v2/blocks/request-block/helpers/get-default-headers.d.ts +41 -0
- package/dist/v2/blocks/request-block/helpers/get-default-headers.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/helpers/get-default-headers.js +25 -0
- package/dist/v2/blocks/request-block/helpers/group-by.d.ts +1 -1
- package/dist/v2/blocks/request-block/helpers/group-by.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/helpers/group-by.js +6 -3
- package/dist/v2/blocks/request-block/helpers/is-param-disabled.d.ts +13 -0
- package/dist/v2/blocks/request-block/helpers/is-param-disabled.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/helpers/is-param-disabled.js +7 -0
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +61 -63
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts +1 -2
- 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/OAuth2.vue.d.ts +2 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.d.ts +2 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts +1 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +2 -2
- package/dist/v2/components/code-input/CodeInput.vue.d.ts +2 -0
- package/dist/v2/components/code-input/CodeInput.vue.d.ts.map +1 -1
- package/dist/v2/components/code-input/CodeInput.vue.js +2 -2
- package/dist/v2/components/code-input/CodeInput.vue2.js +57 -51
- package/dist/v2/features/app/App.vue.js +6 -6
- package/dist/v2/features/app/app-events.d.ts +5 -9
- package/dist/v2/features/app/app-events.d.ts.map +1 -1
- package/dist/v2/features/app/app-events.js +146 -120
- package/dist/v2/features/app/app-state.d.ts.map +1 -1
- package/dist/v2/features/app/app-state.js +69 -71
- package/dist/v2/features/app/components/AppSidebar.vue.js +1 -1
- package/dist/v2/features/app/components/AppSidebar.vue2.js +5 -5
- package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
- package/dist/v2/features/modal/Modal.vue.js +1 -1
- package/dist/v2/features/modal/Modal.vue2.js +21 -22
- package/dist/v2/features/modal/index.d.ts +1 -1
- package/dist/v2/features/modal/index.d.ts.map +1 -1
- package/dist/v2/features/modal/index.js +4 -4
- package/dist/v2/features/modal/modal-events.d.ts +13 -0
- package/dist/v2/features/modal/modal-events.d.ts.map +1 -0
- package/dist/v2/features/modal/modal-events.js +31 -0
- package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
- package/dist/v2/features/operation/Operation.vue.js +30 -43
- package/dist/v2/workspace-events.d.ts +25 -0
- package/dist/v2/workspace-events.d.ts.map +1 -0
- package/dist/v2/workspace-events.js +202 -0
- package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.d.ts.map +1 -1
- package/dist/views/Components/CodeSnippet/helpers/get-snippet.d.ts +1 -1
- package/dist/views/Components/CodeSnippet/helpers/get-snippet.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +3 -3
- package/dist/views/Environment/handle-drag.d.ts +1 -1
- package/dist/views/Environment/handle-drag.d.ts.map +1 -1
- package/dist/views/Request/RequestRoot.vue2.js +9 -9
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +4 -4
- package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +4 -4
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +5 -5
- package/dist/views/Request/RequestSection/helpers/update-scheme.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebar.vue2.js +6 -6
- package/dist/views/Request/RequestSidebarItem.vue2.js +6 -6
- package/dist/views/Request/RequestSubpageHeader.vue2.js +4 -4
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/index.d.ts +1 -1
- package/dist/views/Request/ResponseSection/index.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/index.js +4 -4
- package/dist/views/Request/consts/index.d.ts +2 -3
- package/dist/views/Request/consts/index.d.ts.map +1 -1
- package/dist/views/Request/consts/new-auth-options.d.ts +1 -1
- package/dist/views/Request/consts/new-auth-options.d.ts.map +1 -1
- package/dist/views/Request/handle-drag.d.ts +1 -1
- package/dist/views/Request/handle-drag.d.ts.map +1 -1
- package/dist/views/Request/hooks/useOpenApiWatcher.d.ts.map +1 -1
- package/dist/views/Request/hooks/useOpenApiWatcher.js +14 -14
- package/dist/views/Request/libs/auth.d.ts +1 -1
- package/dist/views/Request/libs/auth.d.ts.map +1 -1
- package/dist/views/Request/libs/index.d.ts +3 -3
- package/dist/views/Request/libs/index.d.ts.map +1 -1
- package/dist/views/Request/libs/oauth2.js +1 -1
- package/dist/views/Request/libs/watch-mode.js +6 -6
- package/dist/views/Request/types/index.d.ts +1 -1
- package/dist/views/Request/types/index.d.ts.map +1 -1
- package/package.json +13 -13
- package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.d.ts +0 -18
- package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.d.ts.map +0 -1
- package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.js +0 -39
- package/dist/v2/features/operation/helpers/get-operation-header.js +0 -12
package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-server-url.d.ts
CHANGED
|
@@ -2,5 +2,5 @@ import type { ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/o
|
|
|
2
2
|
/**
|
|
3
3
|
* Processes a server URL by replacing variables with their default values and merging with the path
|
|
4
4
|
*/
|
|
5
|
-
export declare const processServerUrl: (server: ServerObject, path: string) => string;
|
|
5
|
+
export declare const processServerUrl: (server: ServerObject | null, path: string) => string;
|
|
6
6
|
//# sourceMappingURL=process-server-url.d.ts.map
|
package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-server-url.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"process-server-url.d.ts","sourceRoot":"","sources":["../../../../../../src/v2/blocks/operation-code-sample/helpers/operation-to-har/process-server-url.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAEhG;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAAI,QAAQ,YAAY,EAAE,MAAM,MAAM,KAAG,
|
|
1
|
+
{"version":3,"file":"process-server-url.d.ts","sourceRoot":"","sources":["../../../../../../src/v2/blocks/operation-code-sample/helpers/operation-to-har/process-server-url.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAEhG;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAAI,QAAQ,YAAY,GAAG,IAAI,EAAE,MAAM,MAAM,KAAG,MA4B5E,CAAA"}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import type { HttpMethod } from '@scalar/helpers/http/http-methods';
|
|
2
2
|
import type { WorkspaceStore } from '@scalar/workspace-store/client';
|
|
3
|
-
import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
4
|
-
import type { AuthMeta } from '@scalar/workspace-store/mutators';
|
|
3
|
+
import type { AuthMeta, WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
5
4
|
import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
|
|
5
|
+
import type { XScalarCookie } from '@scalar/workspace-store/schemas/extensions/general/x-scalar-cookies';
|
|
6
6
|
import type { OpenApiDocument, OperationObject, SecuritySchemeObject, ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
7
7
|
import type { ClientLayout } from '../../../hooks/index.js';
|
|
8
8
|
import type { ClientOptionGroup } from '../../../v2/blocks/operation-code-sample/index.js';
|
|
9
9
|
import type { ClientPlugin } from '../../../v2/helpers/plugins.js';
|
|
10
|
+
export type ExtendedScalarCookie = XScalarCookie & {
|
|
11
|
+
location: 'document' | 'workspace';
|
|
12
|
+
};
|
|
10
13
|
type __VLS_Props = {
|
|
11
14
|
selectedSecurity: OpenApiDocument['x-scalar-selected-security'];
|
|
12
15
|
authMeta: AuthMeta;
|
|
@@ -25,6 +28,7 @@ type __VLS_Props = {
|
|
|
25
28
|
selectedClient: WorkspaceStore['workspace']['x-scalar-default-client'];
|
|
26
29
|
selectedSecuritySchemes: SecuritySchemeObject[];
|
|
27
30
|
server: ServerObject | null;
|
|
31
|
+
globalCookies: ExtendedScalarCookie[];
|
|
28
32
|
};
|
|
29
33
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
30
34
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestBlock.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/blocks/request-block/RequestBlock.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestBlock.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/blocks/request-block/RequestBlock.vue"],"names":[],"mappings":"AAsiBA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAEnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAEV,QAAQ,EACR,iBAAiB,EAClB,MAAM,gCAAgC,CAAA;AAGvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qEAAqE,CAAA;AACxG,OAAO,KAAK,EACV,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAKrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAI3C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAA;AAW1E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAWxD,MAAM,MAAM,oBAAoB,GAAG,aAAa,GAAG;IACjD,QAAQ,EAAE,UAAU,GAAG,WAAW,CAAA;CACnC,CAAA;AAED,KAAK,WAAW,GAAG;IACjB,gBAAgB,EAAE,eAAe,CAAC,4BAA4B,CAAC,CAAA;IAC/D,QAAQ,EAAE,QAAQ,CAAA;IAClB,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,WAAW,EAAE,kBAAkB,CAAA;IAC/B,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,YAAY,CAAA;IACpB,MAAM,EAAE,UAAU,CAAA;IAClB,SAAS,EAAE,eAAe,CAAA;IAC1B,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,QAAQ,EAAE,MAAM,CAAA;IAChB,oBAAoB,EAAE,eAAe,CAAC,UAAU,CAAC,CAAA;IACjD,eAAe,EAAE,WAAW,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAA;IAC9E,cAAc,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC,yBAAyB,CAAC,CAAA;IACtE,uBAAuB,EAAE,oBAAoB,EAAE,CAAA;IAC/C,MAAM,EAAE,YAAY,GAAG,IAAI,CAAA;IAC3B,aAAa,EAAE,oBAAoB,EAAE,CAAA;CACtC,CAAC;;AAkqBF,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./RequestBlock.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-175541a7"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,21 +1,27 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarErrorBoundary as
|
|
3
|
-
import { canMethodHaveBody as
|
|
4
|
-
import { REGEX as
|
|
1
|
+
import { defineComponent as j, computed as n, ref as z, useId as s, watch as X, createBlock as C, openBlock as d, withCtx as q, createElementVNode as K, withDirectives as c, createElementBlock as x, createVNode as m, unref as v, vShow as y, mergeProps as B, toHandlers as b, Fragment as J, renderList as W, createCommentVNode as E, resolveDynamicComponent as Y, toDisplayString as Z } from "vue";
|
|
2
|
+
import { ScalarErrorBoundary as _ } from "@scalar/components";
|
|
3
|
+
import { canMethodHaveBody as w } from "@scalar/helpers/http/can-method-have-body";
|
|
4
|
+
import { REGEX as ee } from "@scalar/helpers/regex/regex-helpers";
|
|
5
5
|
import { getResolvedRef as R } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
6
|
-
import { unpackProxyObject as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
|
|
6
|
+
import { unpackProxyObject as te } from "@scalar/workspace-store/helpers/unpack-proxy";
|
|
7
|
+
import ae from "../../../components/SectionFilter.vue.js";
|
|
8
|
+
import le from "../../../components/ViewLayout/ViewLayoutSection.vue.js";
|
|
9
|
+
import { filterGlobalCookie as ne } from "../operation-block/helpers/filter-global-cookies.js";
|
|
10
|
+
import { getExample as oe } from "../operation-block/helpers/get-example.js";
|
|
11
|
+
import { getResolvedUrl as re } from "../operation-block/helpers/get-resolved-url.js";
|
|
12
|
+
import ue from "./components/RequestBody.vue.js";
|
|
13
|
+
import ie from "./components/RequestCodeSnippet.vue.js";
|
|
14
|
+
import k from "./components/RequestParams.vue.js";
|
|
15
|
+
import { createParameterHandlers as S } from "./helpers/create-parameter-handlers.js";
|
|
16
|
+
import { getDefaultHeaders as se } from "./helpers/get-default-headers.js";
|
|
17
|
+
import { getParameterSchema as me } from "./helpers/get-parameter-schema.js";
|
|
18
|
+
import { groupBy as D } from "./helpers/group-by.js";
|
|
19
|
+
import { isParamDisabled as de } from "./helpers/is-param-disabled.js";
|
|
20
|
+
import ce from "../scalar-auth-selector-block/components/AuthSelector.vue.js";
|
|
21
|
+
const ve = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:pr-24" }, ye = ["for"], he = ["id", "placeholder", "value"], fe = {
|
|
16
22
|
key: 2,
|
|
17
23
|
class: "text-c-1 flex h-8 items-center"
|
|
18
|
-
},
|
|
24
|
+
}, xe = ["id", "role"], Ne = /* @__PURE__ */ j({
|
|
19
25
|
__name: "RequestBlock",
|
|
20
26
|
props: {
|
|
21
27
|
selectedSecurity: {},
|
|
@@ -34,130 +40,203 @@ const te = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
|
|
|
34
40
|
securitySchemes: {},
|
|
35
41
|
selectedClient: {},
|
|
36
42
|
selectedSecuritySchemes: {},
|
|
37
|
-
server: {}
|
|
43
|
+
server: {},
|
|
44
|
+
globalCookies: {}
|
|
38
45
|
},
|
|
39
46
|
setup(e) {
|
|
40
|
-
const
|
|
47
|
+
const r = n(() => ({
|
|
41
48
|
method: e.method,
|
|
42
49
|
path: e.path,
|
|
43
50
|
exampleKey: e.exampleKey
|
|
44
|
-
})),
|
|
45
|
-
() =>
|
|
51
|
+
})), o = n(
|
|
52
|
+
() => D(
|
|
46
53
|
e.operation.parameters?.map((t) => R(t)) ?? [],
|
|
47
|
-
"in"
|
|
54
|
+
"in",
|
|
55
|
+
(t) => {
|
|
56
|
+
const a = oe(t, e.exampleKey, void 0);
|
|
57
|
+
return {
|
|
58
|
+
name: t.name,
|
|
59
|
+
value: a?.value ?? "",
|
|
60
|
+
description: t.description,
|
|
61
|
+
schema: me(t),
|
|
62
|
+
isRequired: t.required,
|
|
63
|
+
isDisabled: de(t, a)
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
)
|
|
67
|
+
), I = n(
|
|
68
|
+
() => D(
|
|
69
|
+
o.value.header?.map((t) => ({
|
|
70
|
+
...t,
|
|
71
|
+
name: t.name.toLowerCase()
|
|
72
|
+
})) ?? [],
|
|
73
|
+
"name"
|
|
48
74
|
)
|
|
49
|
-
),
|
|
75
|
+
), N = n(
|
|
76
|
+
() => se({ method: e.method, operation: e.operation, exampleKey: e.exampleKey })
|
|
77
|
+
), V = n(() => {
|
|
78
|
+
const t = e.operation["x-scalar-disable-parameters"]?.["default-headers"]?.[e.exampleKey] ?? {};
|
|
79
|
+
return N.value.map((a) => {
|
|
80
|
+
const l = I.value[a.name.toLowerCase()]?.[0];
|
|
81
|
+
return {
|
|
82
|
+
name: a.name,
|
|
83
|
+
value: a.defaultValue,
|
|
84
|
+
schema: void 0,
|
|
85
|
+
isOverridden: l && !l?.isDisabled,
|
|
86
|
+
isReadonly: !0,
|
|
87
|
+
isDisabled: t[a.name.toLowerCase()] ?? !1
|
|
88
|
+
};
|
|
89
|
+
});
|
|
90
|
+
}), A = n(() => [
|
|
91
|
+
...V.value,
|
|
92
|
+
...o.value.header ?? []
|
|
93
|
+
]), P = n(() => {
|
|
94
|
+
const t = re({
|
|
95
|
+
environment: e.environment,
|
|
96
|
+
server: e.server,
|
|
97
|
+
path: e.path,
|
|
98
|
+
pathVariables: {}
|
|
99
|
+
}), a = e.operation["x-scalar-disable-parameters"]?.["global-cookies"]?.[e.exampleKey] ?? {};
|
|
100
|
+
return e.globalCookies?.filter(
|
|
101
|
+
(l) => ne({
|
|
102
|
+
cookie: l,
|
|
103
|
+
url: t,
|
|
104
|
+
// Do not filter global cookies for the default cookies section (it's already filtered in the buildRequestCookieHeader function)
|
|
105
|
+
// This is because we still want to show them on the UI
|
|
106
|
+
disabledGlobalCookies: {}
|
|
107
|
+
})
|
|
108
|
+
).map((l) => ({
|
|
109
|
+
name: l.name,
|
|
110
|
+
value: l.value,
|
|
111
|
+
globalRoute: l.location === "document" ? "document.cookies" : "workspace.cookies",
|
|
112
|
+
isReadonly: !0,
|
|
113
|
+
isDisabled: a[l.name.toLowerCase()] ?? !1
|
|
114
|
+
})) ?? [];
|
|
115
|
+
}), p = n(() => [
|
|
116
|
+
...P.value ?? [],
|
|
117
|
+
...o.value.cookie ?? []
|
|
118
|
+
]), u = z("All"), T = [
|
|
50
119
|
"Auth",
|
|
51
120
|
"Variables",
|
|
52
121
|
"Cookies",
|
|
53
122
|
"Headers",
|
|
54
123
|
"Query",
|
|
55
124
|
"Body"
|
|
56
|
-
],
|
|
57
|
-
All:
|
|
58
|
-
Auth:
|
|
59
|
-
Variables:
|
|
60
|
-
Cookies:
|
|
61
|
-
Headers:
|
|
62
|
-
Query:
|
|
63
|
-
Body:
|
|
64
|
-
},
|
|
65
|
-
const t = /* @__PURE__ */ new Set(["All", ...
|
|
66
|
-
return
|
|
67
|
-
}),
|
|
125
|
+
], $ = {
|
|
126
|
+
All: s(),
|
|
127
|
+
Auth: s(),
|
|
128
|
+
Variables: s(),
|
|
129
|
+
Cookies: s(),
|
|
130
|
+
Headers: s(),
|
|
131
|
+
Query: s(),
|
|
132
|
+
Body: s()
|
|
133
|
+
}, H = n(() => {
|
|
134
|
+
const t = /* @__PURE__ */ new Set(["All", ...T]);
|
|
135
|
+
return o.value.path?.length || t.delete("Variables"), w(e.method) || t.delete("Body"), O.value && t.delete("Auth"), [...t];
|
|
136
|
+
}), i = n(
|
|
68
137
|
() => Object.fromEntries(
|
|
69
|
-
|
|
138
|
+
H.value.map((t) => [t, $[t]])
|
|
70
139
|
)
|
|
71
|
-
),
|
|
140
|
+
), O = n(
|
|
72
141
|
() => e.layout === "modal" && !e.operation.security && !Object.keys(e.securitySchemes ?? {}).length
|
|
73
|
-
),
|
|
74
|
-
|
|
142
|
+
), L = n(() => e.operation.summary ? e.operation.summary : e.path.replace(ee.PROTOCOL, "") || "Request Name"), h = (t) => u.value === "All" || u.value === t;
|
|
143
|
+
X(
|
|
75
144
|
() => e.method,
|
|
76
145
|
(t) => {
|
|
77
|
-
|
|
146
|
+
u.value === "Body" && !w(t) && (u.value = "All");
|
|
78
147
|
}
|
|
79
148
|
);
|
|
80
|
-
const
|
|
149
|
+
const F = (t) => {
|
|
81
150
|
const a = t.target.value;
|
|
82
151
|
e.eventBus.emit("operation:update:summary", {
|
|
83
|
-
meta:
|
|
152
|
+
meta: r.value,
|
|
84
153
|
payload: { summary: a }
|
|
85
154
|
});
|
|
86
|
-
}, f =
|
|
87
|
-
path:
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
155
|
+
}, f = n(() => ({
|
|
156
|
+
path: S("path", e.eventBus, r.value, {
|
|
157
|
+
context: o.value.path ?? []
|
|
158
|
+
}),
|
|
159
|
+
cookie: S("cookie", e.eventBus, r.value, {
|
|
160
|
+
context: p.value ?? [],
|
|
161
|
+
globalParameters: P.value.length
|
|
162
|
+
}),
|
|
163
|
+
header: S("header", e.eventBus, r.value, {
|
|
164
|
+
context: A.value,
|
|
165
|
+
defaultParameters: V.value.length
|
|
166
|
+
}),
|
|
167
|
+
query: S("query", e.eventBus, r.value, {
|
|
168
|
+
context: o.value.query ?? []
|
|
169
|
+
})
|
|
170
|
+
})), G = (t) => e.eventBus.emit("operation:update:requestBody:contentType", {
|
|
92
171
|
payload: { contentType: t.value },
|
|
93
|
-
meta:
|
|
94
|
-
}),
|
|
172
|
+
meta: r.value
|
|
173
|
+
}), Q = ({
|
|
95
174
|
payload: t,
|
|
96
175
|
contentType: a
|
|
97
176
|
}) => {
|
|
98
|
-
const
|
|
177
|
+
const l = typeof t == "string" ? `update:requestBody:value-${a}` : void 0;
|
|
99
178
|
e.eventBus.emit(
|
|
100
179
|
"operation:update:requestBody:value",
|
|
101
180
|
{
|
|
102
181
|
payload: t,
|
|
103
182
|
contentType: a,
|
|
104
|
-
meta:
|
|
183
|
+
meta: r.value
|
|
105
184
|
},
|
|
106
185
|
{
|
|
107
|
-
debounceKey:
|
|
186
|
+
debounceKey: l
|
|
108
187
|
}
|
|
109
188
|
);
|
|
110
|
-
},
|
|
189
|
+
}, M = ({
|
|
111
190
|
payload: t,
|
|
112
191
|
contentType: a
|
|
113
192
|
}) => {
|
|
114
|
-
const
|
|
193
|
+
const l = `update:requestBody:${a}-form-value`;
|
|
115
194
|
e.eventBus.emit(
|
|
116
195
|
"operation:update:requestBody:formValue",
|
|
117
196
|
{
|
|
118
|
-
payload: t.map((
|
|
197
|
+
payload: t.map((g) => te(g, { depth: 1 })),
|
|
119
198
|
contentType: a,
|
|
120
|
-
meta:
|
|
199
|
+
meta: r.value
|
|
121
200
|
},
|
|
122
201
|
{
|
|
123
|
-
debounceKey:
|
|
202
|
+
debounceKey: l
|
|
124
203
|
}
|
|
125
204
|
);
|
|
126
|
-
},
|
|
127
|
-
return (t, a) => (
|
|
205
|
+
}, U = s();
|
|
206
|
+
return (t, a) => (d(), C(le, {
|
|
128
207
|
"aria-label": `Request: ${e.operation.summary}`
|
|
129
208
|
}, {
|
|
130
|
-
title:
|
|
131
|
-
|
|
132
|
-
e.layout !== "modal" ? (
|
|
209
|
+
title: q(() => [
|
|
210
|
+
K("div", ve, [
|
|
211
|
+
e.layout !== "modal" ? (d(), x("label", {
|
|
133
212
|
key: 0,
|
|
134
213
|
class: "pointer-events-auto absolute top-0 left-0 h-full w-full cursor-text opacity-0",
|
|
135
|
-
for:
|
|
136
|
-
}, null, 8,
|
|
137
|
-
e.layout !== "modal" ? (
|
|
214
|
+
for: v(U)
|
|
215
|
+
}, null, 8, ye)) : E("", !0),
|
|
216
|
+
e.layout !== "modal" ? (d(), x("input", {
|
|
138
217
|
key: 1,
|
|
139
|
-
id:
|
|
218
|
+
id: v(U),
|
|
140
219
|
class: "text-c-1 group-hover-input pointer-events-auto relative z-10 -ml-0.5 h-8 w-full rounded pl-1.25 has-[:focus-visible]:outline md:-ml-1.25",
|
|
141
|
-
placeholder:
|
|
220
|
+
placeholder: L.value,
|
|
142
221
|
value: e.operation.summary,
|
|
143
|
-
onInput:
|
|
144
|
-
}, null, 40,
|
|
222
|
+
onInput: F
|
|
223
|
+
}, null, 40, he)) : (d(), x("span", fe, Z(e.operation.summary), 1))
|
|
145
224
|
]),
|
|
146
|
-
|
|
147
|
-
modelValue:
|
|
148
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
|
149
|
-
filterIds:
|
|
150
|
-
filters:
|
|
225
|
+
m(ae, {
|
|
226
|
+
modelValue: u.value,
|
|
227
|
+
"onUpdate:modelValue": a[0] || (a[0] = (l) => u.value = l),
|
|
228
|
+
filterIds: i.value,
|
|
229
|
+
filters: H.value
|
|
151
230
|
}, null, 8, ["modelValue", "filterIds", "filters"])
|
|
152
231
|
]),
|
|
153
|
-
default:
|
|
154
|
-
|
|
155
|
-
id:
|
|
232
|
+
default: q(() => [
|
|
233
|
+
K("div", {
|
|
234
|
+
id: i.value.All,
|
|
156
235
|
class: "request-section-content custom-scroll relative flex flex-1 flex-col",
|
|
157
|
-
role:
|
|
236
|
+
role: u.value === "All" ? "tabpanel" : "none"
|
|
158
237
|
}, [
|
|
159
|
-
|
|
160
|
-
id:
|
|
238
|
+
c(m(v(ce), {
|
|
239
|
+
id: i.value.Auth,
|
|
161
240
|
environment: e.environment,
|
|
162
241
|
eventBus: e.eventBus,
|
|
163
242
|
meta: e.authMeta,
|
|
@@ -169,88 +248,94 @@ const te = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
|
|
|
169
248
|
server: e.server,
|
|
170
249
|
title: "Authentication"
|
|
171
250
|
}, null, 8, ["id", "environment", "eventBus", "meta", "proxyUrl", "securityRequirements", "securitySchemes", "selectedSecurity", "selectedSecuritySchemes", "server"]), [
|
|
172
|
-
[y, h("Auth") && !
|
|
251
|
+
[y, h("Auth") && !O.value]
|
|
173
252
|
]),
|
|
174
|
-
|
|
175
|
-
id:
|
|
253
|
+
c(m(k, B({
|
|
254
|
+
id: i.value.Variables,
|
|
176
255
|
environment: e.environment,
|
|
256
|
+
eventBus: e.eventBus,
|
|
177
257
|
exampleKey: e.exampleKey,
|
|
178
|
-
|
|
258
|
+
rows: o.value.path ?? [],
|
|
179
259
|
showAddRowPlaceholder: !1,
|
|
180
260
|
title: "Variables"
|
|
181
|
-
},
|
|
182
|
-
[y, h("Variables") &&
|
|
261
|
+
}, b(f.value.path)), null, 16, ["id", "environment", "eventBus", "exampleKey", "rows"]), [
|
|
262
|
+
[y, h("Variables") && o.value.path?.length]
|
|
183
263
|
]),
|
|
184
|
-
|
|
185
|
-
id:
|
|
264
|
+
c(m(k, B({
|
|
265
|
+
id: i.value.Cookies,
|
|
186
266
|
environment: e.environment,
|
|
267
|
+
eventBus: e.eventBus,
|
|
187
268
|
exampleKey: e.exampleKey,
|
|
188
|
-
|
|
269
|
+
rows: p.value ?? [],
|
|
189
270
|
showAddRowPlaceholder: !0,
|
|
190
271
|
title: "Cookies"
|
|
191
|
-
},
|
|
272
|
+
}, b(f.value.cookie)), null, 16, ["id", "environment", "eventBus", "exampleKey", "rows"]), [
|
|
192
273
|
[y, h("Cookies")]
|
|
193
274
|
]),
|
|
194
|
-
|
|
195
|
-
id:
|
|
275
|
+
c(m(k, B({
|
|
276
|
+
id: i.value.Headers,
|
|
196
277
|
environment: e.environment,
|
|
278
|
+
eventBus: e.eventBus,
|
|
197
279
|
exampleKey: e.exampleKey,
|
|
198
|
-
|
|
280
|
+
rows: A.value ?? [],
|
|
199
281
|
title: "Headers"
|
|
200
|
-
},
|
|
282
|
+
}, b(f.value.header)), null, 16, ["id", "environment", "eventBus", "exampleKey", "rows"]), [
|
|
201
283
|
[y, h("Headers")]
|
|
202
284
|
]),
|
|
203
|
-
|
|
204
|
-
id:
|
|
285
|
+
c(m(k, B({
|
|
286
|
+
id: i.value.Query,
|
|
205
287
|
environment: e.environment,
|
|
288
|
+
eventBus: e.eventBus,
|
|
206
289
|
exampleKey: e.exampleKey,
|
|
207
|
-
|
|
290
|
+
rows: o.value.query ?? [],
|
|
208
291
|
title: "Query Parameters"
|
|
209
|
-
},
|
|
292
|
+
}, b(f.value.query)), null, 16, ["id", "environment", "eventBus", "exampleKey", "rows"]), [
|
|
210
293
|
[y, h("Query")]
|
|
211
294
|
]),
|
|
212
|
-
|
|
213
|
-
id:
|
|
295
|
+
c(m(ue, {
|
|
296
|
+
id: i.value.Body,
|
|
214
297
|
environment: e.environment,
|
|
215
298
|
exampleKey: e.exampleKey,
|
|
216
|
-
requestBody:
|
|
299
|
+
requestBody: v(R)(e.operation.requestBody),
|
|
217
300
|
title: "Request Body",
|
|
218
|
-
"onUpdate:contentType":
|
|
219
|
-
"onUpdate:formValue":
|
|
220
|
-
"onUpdate:value":
|
|
301
|
+
"onUpdate:contentType": G,
|
|
302
|
+
"onUpdate:formValue": M,
|
|
303
|
+
"onUpdate:value": Q
|
|
221
304
|
}, null, 8, ["id", "environment", "exampleKey", "requestBody"]), [
|
|
222
|
-
[y, h("Body") &&
|
|
305
|
+
[y, h("Body") && v(w)(e.method)]
|
|
223
306
|
]),
|
|
224
|
-
(
|
|
225
|
-
default:
|
|
226
|
-
|
|
307
|
+
(d(!0), x(J, null, W(e.plugins, (l, g) => (d(), C(v(_), { key: g }, {
|
|
308
|
+
default: q(() => [
|
|
309
|
+
l?.components?.request ? (d(), C(Y(l.components.request), {
|
|
227
310
|
key: 0,
|
|
228
311
|
operation: e.operation,
|
|
229
312
|
selectedExample: e.exampleKey
|
|
230
|
-
}, null, 8, ["operation", "selectedExample"])) :
|
|
313
|
+
}, null, 8, ["operation", "selectedExample"])) : E("", !0)
|
|
231
314
|
]),
|
|
232
315
|
_: 2
|
|
233
316
|
}, 1024))), 128)),
|
|
234
|
-
a[1] || (a[1] =
|
|
235
|
-
|
|
317
|
+
a[1] || (a[1] = K("div", { class: "flex flex-grow" }, null, -1)),
|
|
318
|
+
c(m(ie, {
|
|
236
319
|
clientOptions: e.clientOptions,
|
|
237
320
|
eventBus: e.eventBus,
|
|
321
|
+
globalCookies: e.globalCookies,
|
|
322
|
+
integration: "client",
|
|
238
323
|
method: e.method,
|
|
239
324
|
operation: e.operation,
|
|
240
325
|
path: e.path,
|
|
241
326
|
securitySchemes: e.selectedSecuritySchemes,
|
|
242
327
|
selectedClient: e.selectedClient,
|
|
243
|
-
selectedContentType:
|
|
328
|
+
selectedContentType: v(R)(e.operation.requestBody)?.["x-scalar-selected-content-type"]?.[e.exampleKey],
|
|
244
329
|
selectedServer: e.server ?? void 0
|
|
245
|
-
}, null, 8, ["clientOptions", "eventBus", "method", "operation", "path", "securitySchemes", "selectedClient", "selectedContentType", "selectedServer"]), [
|
|
246
|
-
[y,
|
|
330
|
+
}, null, 8, ["clientOptions", "eventBus", "globalCookies", "method", "operation", "path", "securitySchemes", "selectedClient", "selectedContentType", "selectedServer"]), [
|
|
331
|
+
[y, u.value === "All"]
|
|
247
332
|
])
|
|
248
|
-
], 8,
|
|
333
|
+
], 8, xe)
|
|
249
334
|
]),
|
|
250
335
|
_: 1
|
|
251
336
|
}, 8, ["aria-label"]));
|
|
252
337
|
}
|
|
253
338
|
});
|
|
254
339
|
export {
|
|
255
|
-
|
|
340
|
+
Ne as default
|
|
256
341
|
};
|
|
@@ -18,7 +18,7 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
18
18
|
isDisabled: boolean;
|
|
19
19
|
}[];
|
|
20
20
|
contentType: string;
|
|
21
|
-
meta: import("@scalar/workspace-store/
|
|
21
|
+
meta: import("@scalar/workspace-store/events").OperationExampleMeta;
|
|
22
22
|
}, "payload" | "contentType">) => any;
|
|
23
23
|
"update:contentType": (payload: {
|
|
24
24
|
value: string;
|
|
@@ -26,7 +26,7 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
26
26
|
"update:value": (payload: Pick<{
|
|
27
27
|
payload: string | File | undefined;
|
|
28
28
|
contentType: string;
|
|
29
|
-
meta: import("@scalar/workspace-store/
|
|
29
|
+
meta: import("@scalar/workspace-store/events").OperationExampleMeta;
|
|
30
30
|
}, "payload" | "contentType">) => any;
|
|
31
31
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
32
32
|
"onUpdate:formValue"?: ((payload: Pick<{
|
|
@@ -36,7 +36,7 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
36
36
|
isDisabled: boolean;
|
|
37
37
|
}[];
|
|
38
38
|
contentType: string;
|
|
39
|
-
meta: import("@scalar/workspace-store/
|
|
39
|
+
meta: import("@scalar/workspace-store/events").OperationExampleMeta;
|
|
40
40
|
}, "payload" | "contentType">) => any) | undefined;
|
|
41
41
|
"onUpdate:contentType"?: ((payload: {
|
|
42
42
|
value: string;
|
|
@@ -44,7 +44,7 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
44
44
|
"onUpdate:value"?: ((payload: Pick<{
|
|
45
45
|
payload: string | File | undefined;
|
|
46
46
|
contentType: string;
|
|
47
|
-
meta: import("@scalar/workspace-store/
|
|
47
|
+
meta: import("@scalar/workspace-store/events").OperationExampleMeta;
|
|
48
48
|
}, "payload" | "contentType">) => any) | undefined;
|
|
49
49
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
50
50
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestCodeSnippet.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/components/RequestCodeSnippet.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestCodeSnippet.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/components/RequestCodeSnippet.vue"],"names":[],"mappings":"AA6JA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAQvE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,sEAAsE,CAAA;AAQpH,KAAK,WAAW,GAAG,wBAAwB,GAAG;IAAE,QAAQ,EAAE,iBAAiB,CAAA;CAAE,CAAC;;AA0Q9E,wBAMG"}
|