@scalar/api-client 3.19.1 → 3.19.3
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 +21 -0
- package/dist/style.css +26 -26
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts +8 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.js.map +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.script.js +38 -3
- package/dist/v2/blocks/operation-block/OperationBlock.vue.script.js.map +1 -1
- package/dist/v2/blocks/operation-block/components/Header.vue.d.ts +2 -0
- package/dist/v2/blocks/operation-block/components/Header.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/components/Header.vue.js +1 -1
- package/dist/v2/blocks/operation-block/components/Header.vue.js.map +1 -1
- package/dist/v2/blocks/operation-block/components/Header.vue.script.js +5 -2
- package/dist/v2/blocks/operation-block/components/Header.vue.script.js.map +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue.script.js.map +1 -1
- package/dist/v2/blocks/request-block/helpers/create-parameter-rows.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/helpers/create-parameter-rows.js +1 -1
- package/dist/v2/blocks/request-block/helpers/create-parameter-rows.js.map +1 -1
- package/dist/v2/blocks/response-block/ResponseBlock.vue.d.ts +2 -0
- package/dist/v2/blocks/response-block/ResponseBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/ResponseBlock.vue.js +1 -1
- package/dist/v2/blocks/response-block/ResponseBlock.vue.js.map +1 -1
- package/dist/v2/blocks/response-block/ResponseBlock.vue.script.js +3 -0
- package/dist/v2/blocks/response-block/ResponseBlock.vue.script.js.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.d.ts +2 -0
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.js +1 -1
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.js.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.script.js +4 -1
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.script.js.map +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +2 -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.vue.js.map +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.script.js +3 -2
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.script.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.script.js.map +1 -1
- package/dist/v2/constants.js +1 -1
- package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
- package/dist/v2/features/modal/Modal.vue.js.map +1 -1
- package/dist/v2/features/modal/Modal.vue.script.js +2 -0
- package/dist/v2/features/modal/Modal.vue.script.js.map +1 -1
- package/dist/v2/features/operation/Operation.vue.d.ts +2 -0
- package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
- package/dist/v2/features/operation/Operation.vue.js.map +1 -1
- package/dist/v2/features/operation/Operation.vue.script.js +29 -7
- package/dist/v2/features/operation/Operation.vue.script.js.map +1 -1
- package/dist/vue-styles.css +26 -26
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Operation.vue.script.js","names":[],"sources":["../../../../src/v2/features/operation/Operation.vue"],"sourcesContent":["<script lang=\"ts\">\n/**\n * Operation example page\n *\n * Displays an operation with a specific example selected\n * - View example request data\n * - Modify example request data\n * - Send example request\n */\nexport default {}\n\nexport type OperationProps = {\n /** The slug of the currently selected document in the workspace */\n documentSlug: string\n /** The currently active document — OpenAPI-only, the operation page has no AsyncAPI path */\n document: OpenApiDocument | null\n /** The workspace event bus */\n eventBus: WorkspaceEventBus\n /** The layout of the client */\n layout: ClientLayout\n /** The API path currently selected (e.g. \"/users/{id}\") */\n path?: string\n /** The HTTP method for the currently selected API path (e.g. GET, POST) */\n method?: HttpMethod\n /** The name of the currently selected example (for examples within an endpoint) */\n exampleName?: string\n /** Resolve the selected entry from the OpenAPI webhooks map. */\n isWebhook?: boolean\n /** The currently active environment */\n environment: XScalarEnvironment\n /** The workspace store */\n workspaceStore: WorkspaceStore\n /** Client plugins */\n plugins: ClientPlugin[]\n /** App or modal options forwarded to operation/auth blocks */\n options?: MaybeRefOrGetter<ApiClientOptions>\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { isElectron } from '@scalar/helpers/general/is-electron'\nimport type { HttpMethod } from '@scalar/helpers/http/http-methods'\nimport type { ClientPlugin } from '@scalar/oas-utils/helpers'\nimport type { WorkspaceStore } from '@scalar/workspace-store/client'\nimport type { WorkspaceEventBus } from '@scalar/workspace-store/events'\nimport {\n getActiveProxyUrl,\n getRequestExampleContext,\n} from '@scalar/workspace-store/request-example'\nimport type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments'\nimport type { OpenApiDocument } from '@scalar/workspace-store/schemas/v3.2/strict/openapi-document'\nimport { computed, toValue, type MaybeRefOrGetter } from 'vue'\n\nimport { OperationBlock } from '@/v2/blocks/operation-block'\nimport { APP_VERSION } from '@/v2/constants'\nimport { mapHiddenClientsConfig } from '@/v2/features/modal/helpers/map-hidden-clients-config'\nimport type { ClientLayout } from '@/v2/types/layout'\nimport type { ApiClientOptions } from '@/v2/types/options'\n\nconst {\n document,\n layout,\n eventBus,\n path,\n method,\n environment,\n exampleName,\n options,\n workspaceStore,\n plugins,\n documentSlug,\n isWebhook = false,\n} = defineProps<\n OperationProps & {\n /** Selected anyOf/oneOf request-body variants keyed by schema path */\n requestBodyCompositionSelection?: Record<string, number>\n }\n>()\n\n/**\n * Shared request-example context (operation, servers, auth scope, cookies). Recomputed when any\n * underlying workspace or route input changes — same reactivity as the previous local computeds.\n */\nconst requestExample = computed(() => {\n if (!path || !method || !exampleName || !document) {\n return null\n }\n\n const result = getRequestExampleContext(\n workspaceStore,\n documentSlug,\n { path, method, exampleName, isWebhook },\n {\n baseServerUrl: toValue(options)?.baseServerURL,\n fallbackDocument: document,\n isElectron: isElectron(),\n layout: layout === 'web' ? 'web' : 'other',\n servers: toValue(options)?.servers,\n appVersion: APP_VERSION,\n authentication: toValue(options)?.authentication,\n },\n )\n\n return result.ok ? result.data : null\n})\n\nconst operation = computed(() => requestExample.value?.operation ?? null)\nconst workspaceCookies = computed(\n () => requestExample.value?.cookies.workspace ?? [],\n)\nconst documentCookies = computed(\n () => requestExample.value?.cookies.document ?? [],\n)\nconst servers = computed(() => requestExample.value?.servers.list ?? [])\nconst selectedServer = computed(\n () => requestExample.value?.servers.selected ?? null,\n)\nconst serverMeta = computed(\n () => requestExample.value?.servers.meta ?? { type: 'document' as const },\n)\n\nconst securitySchemes = computed(\n () => requestExample.value?.security.schemes ?? {},\n)\n\nconst selectedSecurity = computed(\n () =>\n requestExample.value?.security.selected ?? {\n selectedIndex: -1,\n selectedSchemes: [],\n },\n)\nconst selectedSecuritySchemes = computed(\n () => requestExample.value?.security.selectedSchemes ?? [],\n)\nconst securityRequirements = computed(\n () => requestExample.value?.security.requirements ?? [],\n)\nconst authMeta = computed(\n () => requestExample.value?.security.meta ?? { type: 'document' as const },\n)\n\nconst defaultHeaders = computed(\n () => requestExample.value?.headers.default ?? {},\n)\n\n/** Combine environments from document and workspace into a unique array of environment names */\nconst environments = computed(() => {\n return Array.from(\n new Set(\n Object.keys({\n ...document?.['x-scalar-environments'],\n ...workspaceStore.workspace['x-scalar-environments'],\n }),\n ),\n )\n})\n\n/** Temporarily use the old config.hiddenClients until we migrate to the new httpClients config */\nconst httpClients = computed(() =>\n mapHiddenClientsConfig(toValue(options)?.hiddenClients),\n)\n</script>\n\n<template>\n <!-- Operation exists -->\n <template v-if=\"path && method && exampleName && operation && document\">\n <OperationBlock\n :activeEnvironment=\"\n workspaceStore.workspace['x-scalar-active-environment']\n \"\n :appVersion=\"APP_VERSION\"\n :authMeta\n :defaultHeaders\n :document\n :documentCookies\n :documentSecurity=\"document?.security ?? []\"\n :documentSlug\n :documentUrl=\"document?.['x-scalar-original-source-url']\"\n :environment\n :environments\n :eventBus\n :exampleKey=\"exampleName\"\n :hideClientButton=\"toValue(options)?.hideClientButton ?? false\"\n :history=\"workspaceStore.history.getHistory(documentSlug, path, method)\"\n :httpClients\n :layout\n :method\n :isWebhook\n :operation\n :options\n :path\n :plugins=\"plugins\"\n :proxyUrl=\"\n getActiveProxyUrl(\n workspaceStore.workspace['x-scalar-active-proxy'],\n layout === 'web' ? 'web' : 'other',\n ) ?? ''\n \"\n :requestBodyCompositionSelection\n :securityRequirements=\"securityRequirements\"\n :securitySchemes\n :selectedClient=\"workspaceStore.workspace['x-scalar-default-client']\"\n :selectedSecurity=\"selectedSecurity\"\n :selectedSecuritySchemes=\"selectedSecuritySchemes\"\n :server=\"selectedServer\"\n :serverMeta\n :servers\n :workspaceCookies />\n </template>\n\n <!-- Empty state -->\n <div\n v-else\n class=\"flex h-full w-full items-center justify-center\">\n <span class=\"text-c-3\">Select an operation to view details</span>\n </div>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmFA,MAAM,iBAAiB,eAAe;GACpC,IAAI,CAAC,QAAA,QAAQ,CAAC,QAAA,UAAU,CAAC,QAAA,eAAe,CAAC,QAAA,UACvC,OAAO;GAGT,MAAM,SAAS,yBACb,QAAA,gBACA,QAAA,cACA;IAAE,MAAG,QAAA;IAAG,QAAK,QAAA;IAAG,aAAU,QAAA;IAAG,WAAQ,QAAA;GAAE,GACvC;IACE,eAAe,QAAQ,QAAA,OAAO,CAAC,EAAE;IACjC,kBAAkB,QAAA;IAClB,YAAY,WAAW;IACvB,QAAQ,QAAA,WAAW,QAAQ,QAAQ;IACnC,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,QAAA,YAAA,UAAA,GAC5D,YAyCsB,MAAA,sBAAA,GAAA;;IAxCnB,mBAA4B,QAAA,eAAe,UAAS;IAGpD,YAAY,MAAA,WAAA;IACZ,UAAA,SAAA;IACA,gBAAA,eAAA;IACA,UAAA,QAAA;IACA,iBAAA,gBAAA;IACA,kBAAkB,QAAA,UAAU,YAAQ,CAAA;IACpC,cAAA,QAAA;IACA,aAAa,QAAA,WAAQ;IACrB,aAAA,QAAA;IACA,cAAA,aAAA;IACA,UAAA,QAAA;IACA,YAAY,QAAA;IACZ,kBAAkB,QAAQ,QAAA,OAAO,CAAA,EAAG,oBAAgB;IACpD,SAAS,QAAA,eAAe,QAAQ,WAAW,QAAA,cAAc,QAAA,MAAM,QAAA,MAAM;IACrE,aAAA,YAAA;IACA,QAAA,QAAA;IACA,QAAA,QAAA;IACA,WAAA,QAAA;IACA,WAAA,UAAA;IACA,SAAA,QAAA;IACA,MAAA,QAAA;IACA,SAAS,QAAA;IACT,UAAmB,MAAA,iBAAA,CAAiB,CAAY,QAAA,eAAe,UAAS,0BAAqC,QAAA,WAAM,QAAA,QAAA,OAAA,KAAA;IAMnH,iCAAA,QAAA;IACA,sBAAsB,qBAAA;IACtB,iBAAA,gBAAA;IACA,gBAAgB,QAAA,eAAe,UAAS;IACxC,kBAAkB,iBAAA;IAClB,yBAAyB,wBAAA;IACzB,QAAQ,eAAA;IACR,YAAA,WAAA;IACA,SAAA,QAAA;IACA,kBAAA,iBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAIL,mBAIM,OAJN,YAIM,CAAA,GAAA,OAAA,OAAA,OAAA,KAAA,CADJ,mBAAiE,QAAA,EAA3D,OAAM,WAAU,GAAC,uCAAmC,EAAA,CAAA,EAAA,CAAA"}
|
|
1
|
+
{"version":3,"file":"Operation.vue.script.js","names":[],"sources":["../../../../src/v2/features/operation/Operation.vue"],"sourcesContent":["<script lang=\"ts\">\n/**\n * Operation example page\n *\n * Displays an operation with a specific example selected\n * - View example request data\n * - Modify example request data\n * - Send example request\n */\nexport default {}\n\nexport type OperationProps = {\n /** Hidden modals keep their operation mounted without downloading examples. */\n isActive?: boolean\n /** The slug of the currently selected document in the workspace */\n documentSlug: string\n /** The currently active document — OpenAPI-only, the operation page has no AsyncAPI path */\n document: OpenApiDocument | null\n /** The workspace event bus */\n eventBus: WorkspaceEventBus\n /** The layout of the client */\n layout: ClientLayout\n /** The API path currently selected (e.g. \"/users/{id}\") */\n path?: string\n /** The HTTP method for the currently selected API path (e.g. GET, POST) */\n method?: HttpMethod\n /** The name of the currently selected example (for examples within an endpoint) */\n exampleName?: string\n /** Resolve the selected entry from the OpenAPI webhooks map. */\n isWebhook?: boolean\n /** The currently active environment */\n environment: XScalarEnvironment\n /** The workspace store */\n workspaceStore: WorkspaceStore\n /** Client plugins */\n plugins: ClientPlugin[]\n /** App or modal options forwarded to operation/auth blocks */\n options?: MaybeRefOrGetter<ApiClientOptions>\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { isElectron } from '@scalar/helpers/general/is-electron'\nimport type { HttpMethod } from '@scalar/helpers/http/http-methods'\nimport type { ClientPlugin } from '@scalar/oas-utils/helpers'\nimport type { WorkspaceStore } from '@scalar/workspace-store/client'\nimport type { WorkspaceEventBus } from '@scalar/workspace-store/events'\nimport { getResolvedRef } from '@scalar/workspace-store/helpers/get-resolved-ref'\nimport {\n getOperationExamples,\n resolveOperationExamples,\n} from '@scalar/workspace-store/helpers/operation-examples'\nimport {\n EXTERNAL_EXAMPLES,\n useExampleVisibility,\n useExternalExamples,\n} from '@scalar/workspace-store/helpers/use-external-examples'\nimport {\n getActiveProxyUrl,\n getRequestExampleContext,\n getSelectedBodyContentType,\n} from '@scalar/workspace-store/request-example'\nimport type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments'\nimport type { OpenApiDocument } from '@scalar/workspace-store/schemas/v3.2/strict/openapi-document'\nimport {\n computed,\n provide,\n ref,\n toValue,\n type ComponentPublicInstance,\n type MaybeRefOrGetter,\n} from 'vue'\n\nimport { OperationBlock } from '@/v2/blocks/operation-block'\nimport { APP_VERSION } from '@/v2/constants'\nimport { mapHiddenClientsConfig } from '@/v2/features/modal/helpers/map-hidden-clients-config'\nimport type { ClientLayout } from '@/v2/types/layout'\nimport type { ApiClientOptions } from '@/v2/types/options'\n\nconst {\n isActive = true,\n document,\n layout,\n eventBus,\n path,\n method,\n environment,\n exampleName,\n options,\n workspaceStore,\n plugins,\n documentSlug,\n isWebhook = false,\n} = defineProps<\n OperationProps & {\n /** Selected anyOf/oneOf request-body variants keyed by schema path */\n requestBodyCompositionSelection?: Record<string, number>\n }\n>()\n\n/**\n * Shared request-example context (operation, servers, auth scope, cookies). Recomputed when any\n * underlying workspace or route input changes — same reactivity as the previous local computeds.\n */\nconst requestExample = computed(() => {\n if (!path || !method || !exampleName || !document) {\n return null\n }\n\n const result = getRequestExampleContext(\n workspaceStore,\n documentSlug,\n { path, method, exampleName, isWebhook },\n {\n baseServerUrl: toValue(options)?.baseServerURL,\n fallbackDocument: document,\n isElectron: isElectron(),\n layout: layout === 'web' ? 'web' : 'other',\n servers: toValue(options)?.servers,\n appVersion: APP_VERSION,\n authentication: toValue(options)?.authentication,\n },\n )\n\n return result.ok ? result.data : null\n})\n\nconst sourceOperation = computed(() => requestExample.value?.operation ?? null)\nconst getResolver = (): ReturnType<WorkspaceStore['externalExamples']> =>\n workspaceStore.externalExamples(documentSlug)\nprovide(EXTERNAL_EXAMPLES, getResolver)\nconst contentType = computed(\n () =>\n getSelectedBodyContentType(\n getResolvedRef(sourceOperation.value?.requestBody),\n exampleName,\n ) ?? undefined,\n)\nconst container = ref<ComponentPublicInstance | null>(null)\nconst visible = useExampleVisibility(container)\nconst externalExamples = useExternalExamples(\n () =>\n sourceOperation.value\n ? getOperationExamples(\n sourceOperation.value,\n exampleName ?? '',\n contentType.value,\n )\n : [],\n () => isActive && visible.value,\n getResolver,\n)\nconst operation = computed(() =>\n sourceOperation.value\n ? resolveOperationExamples(\n sourceOperation.value,\n exampleName ?? '',\n contentType.value,\n externalExamples.resolve,\n )\n : null,\n)\nconst workspaceCookies = computed(\n () => requestExample.value?.cookies.workspace ?? [],\n)\nconst documentCookies = computed(\n () => requestExample.value?.cookies.document ?? [],\n)\nconst servers = computed(() => requestExample.value?.servers.list ?? [])\nconst selectedServer = computed(\n () => requestExample.value?.servers.selected ?? null,\n)\nconst serverMeta = computed(\n () => requestExample.value?.servers.meta ?? { type: 'document' as const },\n)\n\nconst securitySchemes = computed(\n () => requestExample.value?.security.schemes ?? {},\n)\n\nconst selectedSecurity = computed(\n () =>\n requestExample.value?.security.selected ?? {\n selectedIndex: -1,\n selectedSchemes: [],\n },\n)\nconst selectedSecuritySchemes = computed(\n () => requestExample.value?.security.selectedSchemes ?? [],\n)\nconst securityRequirements = computed(\n () => requestExample.value?.security.requirements ?? [],\n)\nconst authMeta = computed(\n () => requestExample.value?.security.meta ?? { type: 'document' as const },\n)\n\nconst defaultHeaders = computed(\n () => requestExample.value?.headers.default ?? {},\n)\n\n/** Combine environments from document and workspace into a unique array of environment names */\nconst environments = computed(() => {\n return Array.from(\n new Set(\n Object.keys({\n ...document?.['x-scalar-environments'],\n ...workspaceStore.workspace['x-scalar-environments'],\n }),\n ),\n )\n})\n\n/** Temporarily use the old config.hiddenClients until we migrate to the new httpClients config */\nconst httpClients = computed(() =>\n mapHiddenClientsConfig(toValue(options)?.hiddenClients),\n)\n</script>\n\n<template>\n <!-- Operation exists -->\n <template v-if=\"path && method && exampleName && operation && document\">\n <OperationBlock\n ref=\"container\"\n :activeEnvironment=\"\n workspaceStore.workspace['x-scalar-active-environment']\n \"\n :appVersion=\"APP_VERSION\"\n :authMeta\n :defaultHeaders\n :document\n :documentCookies\n :documentSecurity=\"document?.security ?? []\"\n :documentSlug\n :documentUrl=\"document?.['x-scalar-original-source-url']\"\n :environment\n :environments\n :eventBus\n :exampleKey=\"exampleName\"\n :externalExamplesFailed=\"externalExamples.failed.value\"\n :externalExamplesPending=\"externalExamples.pending.value\"\n :hideClientButton=\"toValue(options)?.hideClientButton ?? false\"\n :history=\"workspaceStore.history.getHistory(documentSlug, path, method)\"\n :httpClients\n :isWebhook\n :layout\n :method\n :operation\n :options\n :path\n :plugins=\"plugins\"\n :proxyUrl=\"\n getActiveProxyUrl(\n workspaceStore.workspace['x-scalar-active-proxy'],\n layout === 'web' ? 'web' : 'other',\n ) ?? ''\n \"\n :requestBodyCompositionSelection\n :securityRequirements=\"securityRequirements\"\n :securitySchemes\n :selectedClient=\"workspaceStore.workspace['x-scalar-default-client']\"\n :selectedSecurity=\"selectedSecurity\"\n :selectedSecuritySchemes=\"selectedSecuritySchemes\"\n :server=\"selectedServer\"\n :serverMeta\n :servers\n :workspaceCookies\n @retry:externalExamples=\"externalExamples.retry\" />\n </template>\n\n <!-- Empty state -->\n <div\n v-else\n class=\"flex h-full w-full items-center justify-center\">\n <span class=\"text-c-3\">Select an operation to view details</span>\n </div>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwGA,MAAM,iBAAiB,eAAe;GACpC,IAAI,CAAC,QAAA,QAAQ,CAAC,QAAA,UAAU,CAAC,QAAA,eAAe,CAAC,QAAA,UACvC,OAAO;GAGT,MAAM,SAAS,yBACb,QAAA,gBACA,QAAA,cACA;IAAE,MAAG,QAAA;IAAG,QAAK,QAAA;IAAG,aAAU,QAAA;IAAG,WAAQ,QAAA;GAAE,GACvC;IACE,eAAe,QAAQ,QAAA,OAAO,CAAC,EAAE;IACjC,kBAAkB,QAAA;IAClB,YAAY,WAAW;IACvB,QAAQ,QAAA,WAAW,QAAQ,QAAQ;IACnC,SAAS,QAAQ,QAAA,OAAO,CAAC,EAAE;IAC3B,YAAY;IACZ,gBAAgB,QAAQ,QAAA,OAAO,CAAC,EAAE;GACpC,CACF;GAEA,OAAO,OAAO,KAAK,OAAO,OAAO;EACnC,CAAC;EAED,MAAM,kBAAkB,eAAe,eAAe,OAAO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BAAyB,wBAAA;IACzB,QAAQ,eAAA;IACR,YAAA,WAAA;IACA,SAAA,QAAA;IACA,kBAAA,iBAAA;IACA,4BAAwB,MAAA,gBAAA,CAAgB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAI9C,mBAIM,OAJN,YAIM,CAAA,GAAA,OAAA,OAAA,OAAA,KAAA,CADJ,mBAAiE,QAAA,EAA3D,OAAM,WAAU,GAAC,uCAAmC,EAAA,CAAA,EAAA,CAAA"}
|
package/dist/vue-styles.css
CHANGED
|
@@ -538,7 +538,7 @@ input[data-v-a6f4752a]::placeholder {
|
|
|
538
538
|
flex-grow: 1;
|
|
539
539
|
}
|
|
540
540
|
|
|
541
|
-
.scalar-version-number[data-v-
|
|
541
|
+
.scalar-version-number[data-v-1c2fb5fe] {
|
|
542
542
|
transform: skew(0deg, 13deg);
|
|
543
543
|
width: 76px;
|
|
544
544
|
height: 76px;
|
|
@@ -558,7 +558,7 @@ input[data-v-a6f4752a]::placeholder {
|
|
|
558
558
|
text-transform: initial;
|
|
559
559
|
text-decoration-color: var(--scalar-color-3);
|
|
560
560
|
}
|
|
561
|
-
.scalar-version-number a[data-v-
|
|
561
|
+
.scalar-version-number a[data-v-1c2fb5fe] {
|
|
562
562
|
font-weight: bold;
|
|
563
563
|
font-weight: bold;
|
|
564
564
|
background: var(--scalar-background-2);
|
|
@@ -567,7 +567,7 @@ input[data-v-a6f4752a]::placeholder {
|
|
|
567
567
|
text-decoration: none;
|
|
568
568
|
border: 0.5px solid var(--scalar-border-color);
|
|
569
569
|
}
|
|
570
|
-
.gitbook-show[data-v-
|
|
570
|
+
.gitbook-show[data-v-1c2fb5fe] {
|
|
571
571
|
display: none;
|
|
572
572
|
}
|
|
573
573
|
|
|
@@ -578,11 +578,11 @@ input[data-v-a6f4752a]::placeholder {
|
|
|
578
578
|
opacity: 0;
|
|
579
579
|
}
|
|
580
580
|
|
|
581
|
-
.animate-response-heading .response-heading[data-v-
|
|
582
|
-
animation: push-response-
|
|
581
|
+
.animate-response-heading .response-heading[data-v-e6c572c3] {
|
|
582
|
+
animation: push-response-e6c572c3 0.2s ease-in-out forwards;
|
|
583
583
|
opacity: 1;
|
|
584
584
|
}
|
|
585
|
-
@keyframes push-response-
|
|
585
|
+
@keyframes push-response-e6c572c3 {
|
|
586
586
|
from {
|
|
587
587
|
opacity: 1;
|
|
588
588
|
transform: translateY(0);
|
|
@@ -592,11 +592,11 @@ to {
|
|
|
592
592
|
transform: translateY(-4px);
|
|
593
593
|
}
|
|
594
594
|
}
|
|
595
|
-
.animate-response-heading .animate-response-children[data-v-
|
|
596
|
-
animation: response-spans-
|
|
595
|
+
.animate-response-heading .animate-response-children[data-v-e6c572c3] {
|
|
596
|
+
animation: response-spans-e6c572c3 0.2s ease-in-out forwards 0.05s;
|
|
597
597
|
opacity: 0;
|
|
598
598
|
}
|
|
599
|
-
@keyframes response-spans-
|
|
599
|
+
@keyframes response-spans-e6c572c3 {
|
|
600
600
|
from {
|
|
601
601
|
opacity: 0;
|
|
602
602
|
transform: translateY(4px);
|
|
@@ -624,21 +624,21 @@ to {
|
|
|
624
624
|
background: var(--scalar-background-2);
|
|
625
625
|
}
|
|
626
626
|
|
|
627
|
-
[data-v-
|
|
627
|
+
[data-v-3f5b6752] .cm-editor {
|
|
628
628
|
height: 100%;
|
|
629
629
|
outline: none;
|
|
630
630
|
width: 100%;
|
|
631
631
|
}
|
|
632
|
-
[data-v-
|
|
632
|
+
[data-v-3f5b6752] .cm-line {
|
|
633
633
|
padding: 0;
|
|
634
634
|
}
|
|
635
|
-
[data-v-
|
|
635
|
+
[data-v-3f5b6752] .cm-content {
|
|
636
636
|
padding: 0;
|
|
637
637
|
display: flex;
|
|
638
638
|
align-items: center;
|
|
639
639
|
font-size: var(--scalar-small);
|
|
640
640
|
}
|
|
641
|
-
.scroll-timeline-x[data-v-
|
|
641
|
+
.scroll-timeline-x[data-v-3f5b6752] {
|
|
642
642
|
-ms-overflow-style: none;
|
|
643
643
|
/* Fade the URL at the viewport edges. Mask lives on the scrollport (this
|
|
644
644
|
element) rather than on `.cm-scroller`, whose width follows the URL's
|
|
@@ -651,31 +651,31 @@ to {
|
|
|
651
651
|
transparent 100%
|
|
652
652
|
);
|
|
653
653
|
}
|
|
654
|
-
.scroll-timeline-x-hidden[data-v-
|
|
654
|
+
.scroll-timeline-x-hidden[data-v-3f5b6752] {
|
|
655
655
|
overflow-x: auto;
|
|
656
656
|
}
|
|
657
|
-
.scroll-timeline-x-hidden[data-v-
|
|
657
|
+
.scroll-timeline-x-hidden[data-v-3f5b6752] .cm-scroller {
|
|
658
658
|
scrollbar-width: none;
|
|
659
659
|
-ms-overflow-style: none;
|
|
660
660
|
padding-right: 20px;
|
|
661
661
|
overflow: auto;
|
|
662
662
|
}
|
|
663
|
-
.scroll-timeline-x-hidden[data-v-
|
|
663
|
+
.scroll-timeline-x-hidden[data-v-3f5b6752]::-webkit-scrollbar {
|
|
664
664
|
width: 0;
|
|
665
665
|
height: 0;
|
|
666
666
|
display: none;
|
|
667
667
|
}
|
|
668
|
-
.scroll-timeline-x-hidden[data-v-
|
|
668
|
+
.scroll-timeline-x-hidden[data-v-3f5b6752] .cm-scroller::-webkit-scrollbar {
|
|
669
669
|
width: 0;
|
|
670
670
|
height: 0;
|
|
671
671
|
display: none;
|
|
672
672
|
}
|
|
673
|
-
.scroll-timeline-x-address[data-v-
|
|
673
|
+
.scroll-timeline-x-address[data-v-3f5b6752] {
|
|
674
674
|
line-height: 27px;
|
|
675
675
|
scrollbar-width: none; /* Firefox */
|
|
676
676
|
}
|
|
677
677
|
/* make clickable are to left of send button */
|
|
678
|
-
.scroll-timeline-x-address[data-v-
|
|
678
|
+
.scroll-timeline-x-address[data-v-3f5b6752]:after {
|
|
679
679
|
content: '';
|
|
680
680
|
position: absolute;
|
|
681
681
|
height: 100%;
|
|
@@ -683,12 +683,12 @@ to {
|
|
|
683
683
|
right: 0;
|
|
684
684
|
cursor: text;
|
|
685
685
|
}
|
|
686
|
-
.scroll-timeline-x-address[data-v-
|
|
686
|
+
.scroll-timeline-x-address[data-v-3f5b6752]:empty:before {
|
|
687
687
|
content: 'Enter URL or cURL request';
|
|
688
688
|
color: var(--scalar-color-3);
|
|
689
689
|
pointer-events: none;
|
|
690
690
|
}
|
|
691
|
-
.address-bar-bg-states[data-v-
|
|
691
|
+
.address-bar-bg-states[data-v-3f5b6752] {
|
|
692
692
|
--scalar-address-bar-bg: color-mix(
|
|
693
693
|
in srgb,
|
|
694
694
|
var(--scalar-background-1),
|
|
@@ -696,22 +696,22 @@ to {
|
|
|
696
696
|
);
|
|
697
697
|
background: var(--scalar-address-bar-bg);
|
|
698
698
|
}
|
|
699
|
-
.address-bar-bg-states[data-v-
|
|
699
|
+
.address-bar-bg-states[data-v-3f5b6752]:has(.cm-focused) {
|
|
700
700
|
--scalar-address-bar-bg: var(--scalar-background-1);
|
|
701
701
|
border-color: var(--scalar-border-color);
|
|
702
702
|
outline-width: 1px;
|
|
703
703
|
outline-style: solid;
|
|
704
704
|
}
|
|
705
|
-
.address-bar-bg-states:has(.cm-focused) .fade-left[data-v-
|
|
706
|
-
.address-bar-bg-states:has(.cm-focused) .fade-right[data-v-
|
|
705
|
+
.address-bar-bg-states:has(.cm-focused) .fade-left[data-v-3f5b6752],
|
|
706
|
+
.address-bar-bg-states:has(.cm-focused) .fade-right[data-v-3f5b6752] {
|
|
707
707
|
--scalar-address-bar-bg: var(--scalar-background-1);
|
|
708
708
|
}
|
|
709
709
|
|
|
710
|
-
.app-exit-button[data-v-
|
|
710
|
+
.app-exit-button[data-v-57d0a8d2] {
|
|
711
711
|
color: white;
|
|
712
712
|
background: rgba(0, 0, 0, 0.1);
|
|
713
713
|
}
|
|
714
|
-
.app-exit-button[data-v-
|
|
714
|
+
.app-exit-button[data-v-57d0a8d2]:hover {
|
|
715
715
|
background: rgba(255, 255, 255, 0.1);
|
|
716
716
|
}
|
|
717
717
|
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"rest",
|
|
19
19
|
"testing"
|
|
20
20
|
],
|
|
21
|
-
"version": "3.19.
|
|
21
|
+
"version": "3.19.3",
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=22"
|
|
24
24
|
},
|
|
@@ -295,21 +295,21 @@
|
|
|
295
295
|
"dependencies": {
|
|
296
296
|
"@headlessui/tailwindcss": "^0.2.2",
|
|
297
297
|
"@headlessui/vue": "1.7.23",
|
|
298
|
-
"@scalar/blocks": "0.1.
|
|
299
|
-
"@scalar/components": "0.
|
|
298
|
+
"@scalar/blocks": "0.1.20",
|
|
299
|
+
"@scalar/components": "0.30.0",
|
|
300
300
|
"@scalar/helpers": "0.12.0",
|
|
301
301
|
"@scalar/icons": "0.7.6",
|
|
302
|
-
"@scalar/oas-utils": "0.20.
|
|
302
|
+
"@scalar/oas-utils": "0.20.3",
|
|
303
303
|
"@scalar/openapi-types": "0.9.6",
|
|
304
|
-
"@scalar/sidebar": "0.11.
|
|
305
|
-
"@scalar/snippetz": "0.9.
|
|
304
|
+
"@scalar/sidebar": "0.11.5",
|
|
305
|
+
"@scalar/snippetz": "0.9.32",
|
|
306
306
|
"@scalar/themes": "0.18.0",
|
|
307
307
|
"@scalar/typebox": "^0.1.3",
|
|
308
|
-
"@scalar/types": "0.20.
|
|
308
|
+
"@scalar/types": "0.20.1",
|
|
309
309
|
"@scalar/use-codemirror": "0.14.15",
|
|
310
310
|
"@scalar/use-hooks": "0.4.12",
|
|
311
311
|
"@scalar/use-toasts": "0.10.5",
|
|
312
|
-
"@scalar/workspace-store": "0.
|
|
312
|
+
"@scalar/workspace-store": "0.64.0",
|
|
313
313
|
"@vueuse/core": "13.9.0",
|
|
314
314
|
"@vueuse/integrations": "13.9.0",
|
|
315
315
|
"focus-trap": "^7.8.0",
|