@scalar/api-client 3.10.3 → 3.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -0
- package/dist/style.css +200 -103
- 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 +9 -0
- package/dist/v2/blocks/operation-block/OperationBlock.vue.script.js.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/send-request.d.ts +7 -1
- package/dist/v2/blocks/operation-block/helpers/send-request.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/send-request.js +2 -2
- package/dist/v2/blocks/operation-block/helpers/send-request.js.map +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue.js +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue.js.map +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue.script.js +46 -9
- package/dist/v2/blocks/request-block/RequestBlock.vue.script.js.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts +4 -0
- package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestParams.vue.js.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestParams.vue.script.js.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts +3 -11
- package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTable.vue.js +1 -1
- package/dist/v2/blocks/request-block/components/RequestTable.vue.js.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTable.vue.script.js.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts +8 -10
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.js.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.script.js +24 -23
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.script.js.map +1 -1
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts +9 -6
- 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 +31 -4
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.js.map +1 -1
- package/dist/v2/blocks/request-block/helpers/create-parameter-rows.d.ts +4 -0
- 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 +78 -5
- package/dist/v2/blocks/request-block/helpers/create-parameter-rows.js.map +1 -1
- 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.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.script.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +4 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.script.js +2 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.script.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue.d.ts +3 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue.script.js +3 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue.script.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.script.js +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.script.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.script.js +2 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.script.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.d.ts +4 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.js +4 -3
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts +7 -2
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js +11 -9
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js.map +1 -1
- package/dist/v2/components/code-input/CodeInput.vue.d.ts.map +1 -1
- package/dist/v2/components/code-input/CodeInput.vue.js +1 -1
- package/dist/v2/components/code-input/CodeInput.vue.js.map +1 -1
- package/dist/v2/components/code-input/CodeInput.vue.script.js +3 -2
- package/dist/v2/components/code-input/CodeInput.vue.script.js.map +1 -1
- package/dist/v2/components/code-input/CodeInputLite.vue.d.ts +124 -0
- package/dist/v2/components/code-input/CodeInputLite.vue.d.ts.map +1 -0
- package/dist/v2/components/code-input/CodeInputLite.vue.js +10 -0
- package/dist/v2/components/code-input/CodeInputLite.vue.js.map +1 -0
- package/dist/v2/components/code-input/CodeInputLite.vue.script.js +631 -0
- package/dist/v2/components/code-input/CodeInputLite.vue.script.js.map +1 -0
- package/dist/v2/components/code-input/PillTooltipHost.vue.d.ts +3 -0
- package/dist/v2/components/code-input/PillTooltipHost.vue.d.ts.map +1 -1
- package/dist/v2/components/code-input/PillTooltipHost.vue.js.map +1 -1
- package/dist/v2/components/code-input/PillTooltipHost.vue.script.js +23 -11
- package/dist/v2/components/code-input/PillTooltipHost.vue.script.js.map +1 -1
- package/dist/v2/components/code-input/code-variable-widget.d.ts.map +1 -1
- package/dist/v2/components/code-input/code-variable-widget.js +5 -2
- package/dist/v2/components/code-input/code-variable-widget.js.map +1 -1
- package/dist/v2/components/code-input/helpers/build-pill-context.d.ts +11 -0
- package/dist/v2/components/code-input/helpers/build-pill-context.d.ts.map +1 -0
- package/dist/v2/components/code-input/helpers/build-pill-context.js +28 -0
- package/dist/v2/components/code-input/helpers/build-pill-context.js.map +1 -0
- package/dist/v2/components/code-input/helpers/lookup-variable-value.d.ts +11 -0
- package/dist/v2/components/code-input/helpers/lookup-variable-value.d.ts.map +1 -0
- package/dist/v2/components/code-input/helpers/lookup-variable-value.js +18 -0
- package/dist/v2/components/code-input/helpers/lookup-variable-value.js.map +1 -0
- package/dist/v2/components/code-input/helpers/pill-signature.d.ts +13 -0
- package/dist/v2/components/code-input/helpers/pill-signature.d.ts.map +1 -0
- package/dist/v2/components/code-input/helpers/pill-signature.js +25 -0
- package/dist/v2/components/code-input/helpers/pill-signature.js.map +1 -0
- package/dist/v2/components/code-input/helpers/serialize-value.d.ts +10 -0
- package/dist/v2/components/code-input/helpers/serialize-value.d.ts.map +1 -0
- package/dist/v2/components/code-input/helpers/serialize-value.js +17 -0
- package/dist/v2/components/code-input/helpers/serialize-value.js.map +1 -0
- package/dist/v2/components/code-input/index.d.ts +1 -0
- package/dist/v2/components/code-input/index.d.ts.map +1 -1
- package/dist/v2/components/code-input/index.js +2 -1
- package/dist/v2/components/data-table/DataTableInput.vue.d.ts +0 -4
- package/dist/v2/components/data-table/DataTableInput.vue.d.ts.map +1 -1
- package/dist/v2/components/data-table/DataTableInput.vue.js +1 -1
- package/dist/v2/components/data-table/DataTableInput.vue.js.map +1 -1
- package/dist/v2/components/data-table/DataTableInput.vue.script.js +2 -19
- package/dist/v2/components/data-table/DataTableInput.vue.script.js.map +1 -1
- package/dist/v2/constants.js +1 -1
- package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.d.ts +9 -0
- package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.d.ts.map +1 -1
- package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.js.map +1 -1
- package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.script.js +59 -28
- package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.script.js.map +1 -1
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.d.ts.map +1 -1
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.js +1 -1
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.js.map +1 -1
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.script.js +3 -8
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.script.js.map +1 -1
- package/dist/v2/features/modal/Modal.vue.js.map +1 -1
- package/dist/v2/features/modal/Modal.vue.script.js +1 -1
- package/dist/v2/features/modal/Modal.vue.script.js.map +1 -1
- package/dist/vue-styles.css +147 -95
- package/package.json +11 -11
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.vue.script.js","names":[],"sources":["../../../../src/v2/features/modal/Modal.vue"],"sourcesContent":["<script lang=\"ts\">\nexport type ModalProps = {\n /** The workspace store must be initialized and passed in */\n workspaceStore: WorkspaceStore\n /** The document must be initialized and passed in. OpenAPI-only — the modal has no AsyncAPI path. */\n document: ComputedRef<OpenApiDocument | null>\n /** The path must be initialized and passed in */\n path: ComputedRef<string | undefined>\n /** The event bus for handling all events */\n eventBus: WorkspaceEventBus\n /** The method must be initialized and passed in */\n method: ComputedRef<HttpMethod | undefined>\n /** The example name must be initialized and passed in */\n exampleName: ComputedRef<string | undefined>\n /** Selected anyOf/oneOf request-body variants keyed by schema path */\n requestBodyCompositionSelection: Ref<Record<string, number>>\n /** Controls the visibility of the modal */\n modalState: ModalState\n /** The sidebar state must be initialized and passed in */\n sidebarState: UseModalSidebarReturn\n /** Api client plugins to include in the modal */\n plugins: ClientPlugin[]\n /** Subset of the configuration options for the modal */\n options: MaybeRefOrGetter<ApiClientOptions>\n}\n\n/**\n * Scalar Api Client Modal\n *\n * This component is used to render the API Client Modal\n */\nexport default {}\n</script>\n\n<script setup lang=\"ts\">\nimport type { ScalarListboxOption } from '@scalar/components/listbox'\nimport type { ModalState } from '@scalar/components/modal'\nimport type { HttpMethod } from '@scalar/helpers/http/http-methods'\nimport type { ClientPlugin } from '@scalar/oas-utils/helpers'\nimport { ScalarToasts } from '@scalar/use-toasts'\nimport type { WorkspaceStore } from '@scalar/workspace-store/client'\nimport { type WorkspaceEventBus } from '@scalar/workspace-store/events'\nimport { getActiveEnvironment } from '@scalar/workspace-store/request-example'\nimport type { OpenApiDocument } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document'\nimport {\n computed,\n onBeforeUnmount,\n ref,\n watch,\n type ComputedRef,\n type MaybeRefOrGetter,\n type Ref,\n} from 'vue'\n\nimport ModalClientContainer from '@/v2/components/modals/ModalClientContainer.vue'\nimport { Sidebar, SidebarToggle } from '@/v2/components/sidebar'\nimport { type UseModalSidebarReturn } from '@/v2/features/modal/hooks/use-modal-sidebar'\nimport { initializeModalEvents } from '@/v2/features/modal/modal-events'\nimport Operation from '@/v2/features/operation/Operation.vue'\nimport { useGlobalHotKeys } from '@/v2/hooks/use-global-hot-keys'\nimport { useScrollLock } from '@/v2/hooks/use-scroll-lock'\nimport type { ApiClientOptions, ApiClientOptionsRef } from '@/v2/types/options'\n\nconst {\n document,\n eventBus,\n modalState,\n options,\n plugins,\n requestBodyCompositionSelection,\n sidebarState,\n workspaceStore,\n} = defineProps<\n Omit<ModalProps, 'options'> & { options: ApiClientOptionsRef }\n>()\n\nconst activeWorkspace: ScalarListboxOption = {\n label: 'default',\n id: 'default',\n}\n\n/** Controls the visibility of the sidebar. */\nconst isSidebarOpen = ref(false)\n\n/** Initialize modal events */\ninitializeModalEvents({\n eventBus,\n isSidebarOpen,\n requestBodyCompositionSelection,\n sidebarState,\n modalState,\n store: workspaceStore,\n})\n\n/** Register global hotkeys for the app, passing the workspace event bus and layout state */\nuseGlobalHotKeys(eventBus, 'modal', () => !modalState.open)\n\n/** Clean up on close */\nconst cleanUp = () => {\n eventBus.emit('operation:cancel:request')\n}\n\nconst isLocked = useScrollLock(() => {\n if (typeof window !== 'undefined') {\n return window.document.body\n }\n return null\n})\n\nwatch(\n () => modalState.open,\n (open) => {\n // Make sure scrolling is locked or unlocked when the modal is opened or closed\n isLocked.value = open\n\n if (!open) {\n cleanUp()\n }\n },\n)\n\n// Ensure we add our scalar wrapper class to the headless ui root\nonBeforeUnmount(() => cleanUp())\n\n/** Default sidebar width in pixels. */\nconst DEFAULT_SIDEBAR_WIDTH = 288\n\n/** Width of the sidebar, with fallback to default. */\nconst sidebarWidth = computed(\n () =>\n workspaceStore?.workspace?.['x-scalar-sidebar-width'] ??\n DEFAULT_SIDEBAR_WIDTH,\n)\n\n/** Handler for sidebar width changes. */\nconst handleSidebarWidthUpdate = (width: number) =>\n workspaceStore?.update('x-scalar-sidebar-width', width)\n\n/**\n * Merged environment variables from workspace and document levels.\n * Variables from both sources are combined, with document variables\n * taking precedence in case of naming conflicts.\n */\nconst environment = computed(\n () => getActiveEnvironment(workspaceStore, document.value).environment,\n)\n\ndefineExpose({\n sidebarWidth,\n environment,\n})\n</script>\n\n<template>\n <ModalClientContainer :modalState>\n <!-- Toasts -->\n <ScalarToasts />\n\n <!-- If we have a document, path and method, render the operation -->\n <main\n v-if=\"document.value && path?.value && method?.value\"\n class=\"relative flex h-full min-h-0 w-full flex-1\">\n <SidebarToggle\n v-model=\"isSidebarOpen\"\n class=\"absolute top-2 left-4 z-10 max-md:top-4\" />\n <Sidebar\n v-show=\"isSidebarOpen\"\n v-model:sidebarWidth=\"sidebarWidth\"\n :activeWorkspace=\"activeWorkspace\"\n class=\"h-full max-md:absolute! max-md:z-5 max-md:w-full!\"\n :documents=\"[document.value]\"\n :eventBus\n :isDroppable=\"() => false\"\n layout=\"modal\"\n :sidebarState=\"sidebarState.state\"\n :workspaces=\"[]\"\n @selectItem=\"sidebarState.handleSelectItem\"\n @update:sidebarWidth=\"handleSidebarWidthUpdate\" />\n <Operation\n :activeWorkspace=\"activeWorkspace\"\n class=\"flex-1\"\n :document=\"document.value\"\n :documentSlug=\"document.value['x-scalar-navigation']?.
|
|
1
|
+
{"version":3,"file":"Modal.vue.script.js","names":[],"sources":["../../../../src/v2/features/modal/Modal.vue"],"sourcesContent":["<script lang=\"ts\">\nexport type ModalProps = {\n /** The workspace store must be initialized and passed in */\n workspaceStore: WorkspaceStore\n /** The document must be initialized and passed in. OpenAPI-only — the modal has no AsyncAPI path. */\n document: ComputedRef<OpenApiDocument | null>\n /** The path must be initialized and passed in */\n path: ComputedRef<string | undefined>\n /** The event bus for handling all events */\n eventBus: WorkspaceEventBus\n /** The method must be initialized and passed in */\n method: ComputedRef<HttpMethod | undefined>\n /** The example name must be initialized and passed in */\n exampleName: ComputedRef<string | undefined>\n /** Selected anyOf/oneOf request-body variants keyed by schema path */\n requestBodyCompositionSelection: Ref<Record<string, number>>\n /** Controls the visibility of the modal */\n modalState: ModalState\n /** The sidebar state must be initialized and passed in */\n sidebarState: UseModalSidebarReturn\n /** Api client plugins to include in the modal */\n plugins: ClientPlugin[]\n /** Subset of the configuration options for the modal */\n options: MaybeRefOrGetter<ApiClientOptions>\n}\n\n/**\n * Scalar Api Client Modal\n *\n * This component is used to render the API Client Modal\n */\nexport default {}\n</script>\n\n<script setup lang=\"ts\">\nimport type { ScalarListboxOption } from '@scalar/components/listbox'\nimport type { ModalState } from '@scalar/components/modal'\nimport type { HttpMethod } from '@scalar/helpers/http/http-methods'\nimport type { ClientPlugin } from '@scalar/oas-utils/helpers'\nimport { ScalarToasts } from '@scalar/use-toasts'\nimport type { WorkspaceStore } from '@scalar/workspace-store/client'\nimport { type WorkspaceEventBus } from '@scalar/workspace-store/events'\nimport { getActiveEnvironment } from '@scalar/workspace-store/request-example'\nimport type { OpenApiDocument } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document'\nimport {\n computed,\n onBeforeUnmount,\n ref,\n watch,\n type ComputedRef,\n type MaybeRefOrGetter,\n type Ref,\n} from 'vue'\n\nimport ModalClientContainer from '@/v2/components/modals/ModalClientContainer.vue'\nimport { Sidebar, SidebarToggle } from '@/v2/components/sidebar'\nimport { type UseModalSidebarReturn } from '@/v2/features/modal/hooks/use-modal-sidebar'\nimport { initializeModalEvents } from '@/v2/features/modal/modal-events'\nimport Operation from '@/v2/features/operation/Operation.vue'\nimport { useGlobalHotKeys } from '@/v2/hooks/use-global-hot-keys'\nimport { useScrollLock } from '@/v2/hooks/use-scroll-lock'\nimport type { ApiClientOptions, ApiClientOptionsRef } from '@/v2/types/options'\n\nconst {\n document,\n eventBus,\n modalState,\n options,\n plugins,\n requestBodyCompositionSelection,\n sidebarState,\n workspaceStore,\n} = defineProps<\n Omit<ModalProps, 'options'> & { options: ApiClientOptionsRef }\n>()\n\nconst activeWorkspace: ScalarListboxOption = {\n label: 'default',\n id: 'default',\n}\n\n/** Controls the visibility of the sidebar. */\nconst isSidebarOpen = ref(false)\n\n/** Initialize modal events */\ninitializeModalEvents({\n eventBus,\n isSidebarOpen,\n requestBodyCompositionSelection,\n sidebarState,\n modalState,\n store: workspaceStore,\n})\n\n/** Register global hotkeys for the app, passing the workspace event bus and layout state */\nuseGlobalHotKeys(eventBus, 'modal', () => !modalState.open)\n\n/** Clean up on close */\nconst cleanUp = () => {\n eventBus.emit('operation:cancel:request')\n}\n\nconst isLocked = useScrollLock(() => {\n if (typeof window !== 'undefined') {\n return window.document.body\n }\n return null\n})\n\nwatch(\n () => modalState.open,\n (open) => {\n // Make sure scrolling is locked or unlocked when the modal is opened or closed\n isLocked.value = open\n\n if (!open) {\n cleanUp()\n }\n },\n)\n\n// Ensure we add our scalar wrapper class to the headless ui root\nonBeforeUnmount(() => cleanUp())\n\n/** Default sidebar width in pixels. */\nconst DEFAULT_SIDEBAR_WIDTH = 288\n\n/** Width of the sidebar, with fallback to default. */\nconst sidebarWidth = computed(\n () =>\n workspaceStore?.workspace?.['x-scalar-sidebar-width'] ??\n DEFAULT_SIDEBAR_WIDTH,\n)\n\n/** Handler for sidebar width changes. */\nconst handleSidebarWidthUpdate = (width: number) =>\n workspaceStore?.update('x-scalar-sidebar-width', width)\n\n/**\n * Merged environment variables from workspace and document levels.\n * Variables from both sources are combined, with document variables\n * taking precedence in case of naming conflicts.\n */\nconst environment = computed(\n () => getActiveEnvironment(workspaceStore, document.value).environment,\n)\n\ndefineExpose({\n sidebarWidth,\n environment,\n})\n</script>\n\n<template>\n <ModalClientContainer :modalState>\n <!-- Toasts -->\n <ScalarToasts />\n\n <!-- If we have a document, path and method, render the operation -->\n <main\n v-if=\"document.value && path?.value && method?.value\"\n class=\"relative flex h-full min-h-0 w-full flex-1\">\n <SidebarToggle\n v-model=\"isSidebarOpen\"\n class=\"absolute top-2 left-4 z-10 max-md:top-4\" />\n <Sidebar\n v-show=\"isSidebarOpen\"\n v-model:sidebarWidth=\"sidebarWidth\"\n :activeWorkspace=\"activeWorkspace\"\n class=\"h-full max-md:absolute! max-md:z-5 max-md:w-full!\"\n :documents=\"[document.value]\"\n :eventBus\n :isDroppable=\"() => false\"\n layout=\"modal\"\n :sidebarState=\"sidebarState.state\"\n :workspaces=\"[]\"\n @selectItem=\"sidebarState.handleSelectItem\"\n @update:sidebarWidth=\"handleSidebarWidthUpdate\" />\n <Operation\n :activeWorkspace=\"activeWorkspace\"\n class=\"flex-1\"\n :document=\"document.value\"\n :documentSlug=\"document.value['x-scalar-navigation']?.name ?? ''\"\n :environment\n :eventBus\n :exampleName=\"exampleName?.value\"\n layout=\"modal\"\n :method=\"method?.value\"\n :options\n :path=\"path?.value\"\n :plugins\n :requestBodyCompositionSelection=\"requestBodyCompositionSelection.value\"\n :workspaceStore />\n </main>\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\">No document selected</span>\n </div>\n </ModalClientContainer>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4EA,MAAM,kBAAuC;GAC3C,OAAO;GACP,IAAI;GACN;;EAGA,MAAM,gBAAgB,IAAI,MAAK;;AAG/B,wBAAsB;GACpB,UAAO,QAAA;GACP;GACA,iCAA8B,QAAA;GAC9B,cAAW,QAAA;GACX,YAAS,QAAA;GACT,OAAO,QAAA;GACR,CAAA;;AAGD,mBAAiB,QAAA,UAAU,eAAe,CAAC,QAAA,WAAW,KAAI;;EAG1D,MAAM,gBAAgB;AACpB,WAAA,SAAS,KAAK,2BAA0B;;EAG1C,MAAM,WAAW,oBAAoB;AACnC,OAAI,OAAO,WAAW,YACpB,QAAO,OAAO,SAAS;AAEzB,UAAO;IACR;AAED,cACQ,QAAA,WAAW,OAChB,SAAS;AAER,YAAS,QAAQ;AAEjB,OAAI,CAAC,KACH,UAAQ;IAGd;AAGA,wBAAsB,SAAS,CAAA;;EAG/B,MAAM,wBAAwB;;EAG9B,MAAM,eAAe,eAEjB,QAAA,gBAAgB,YAAY,6BAC5B,sBACJ;;EAGA,MAAM,4BAA4B,UAChC,QAAA,gBAAgB,OAAO,0BAA0B,MAAK;;;;;;EAOxD,MAAM,cAAc,eACZ,qBAAqB,QAAA,gBAAgB,QAAA,SAAS,MAAM,CAAC,YAC7D;AAEA,WAAa;GACX;GACA;GACD,CAAA;;uBAIC,YA8CuB,8BAAA,EA9CA,YAAA,QAAA,YAAU,EAAA;2BAEf,CAAhB,YAAgB,MAAA,aAAA,CAAA,EAIR,QAAA,SAAS,SAAS,QAAA,MAAM,SAAS,QAAA,QAAQ,SAAA,WAAA,EADjD,mBAkCO,QAlCP,YAkCO;KA/BL,YAEoD,MAAA,sBAAA,EAAA;kBADzC,cAAA;iFAAa,QAAA;MACtB,OAAM;;oBACR,YAYoD,MAAA,gBAAA,EAAA;MAV1C,cAAc,aAAA;mFAAY,QAAA,SAUZ,yBAAA;MATJ;MAClB,OAAM;MACL,WAAS,CAAG,QAAA,SAAS,MAAK;MAC1B,UAAA,QAAA;MACA,mBAAa;MACd,QAAO;MACN,cAAc,QAAA,aAAa;MAC3B,YAAY,EAAE;MACd,cAAY,QAAA,aAAa;;;;;;;kBAVlB,cAAA,MAAa,CAAA,CAAA;KAYvB,YAcoB,mBAAA;MAbA;MAClB,OAAM;MACL,UAAU,QAAA,SAAS;MACnB,cAAc,QAAA,SAAS,MAAK,wBAAyB,QAAI;MACzD,aAAA,YAAA;MACA,UAAA,QAAA;MACA,aAAa,QAAA,aAAa;MAC3B,QAAO;MACN,QAAQ,QAAA,QAAQ;MAChB,SAAA,QAAA;MACA,MAAM,QAAA,MAAM;MACZ,SAAA,QAAA;MACA,iCAAiC,QAAA,gCAAgC;MACjE,gBAAA,QAAA;;;;;;;;;;;;;;wBAGL,mBAIM,OAJN,YAIM,CAAA,GAAA,OAAA,OAAA,OAAA,KAAA,CADJ,mBAAkD,QAAA,EAA5C,OAAM,YAAU,EAAC,wBAAoB,GAAA,CAAA,EAAA,CAAA,EAAA,CAAA"}
|
package/dist/vue-styles.css
CHANGED
|
@@ -70,23 +70,23 @@ to {
|
|
|
70
70
|
/*
|
|
71
71
|
Deep styling for customizing Codemirror
|
|
72
72
|
*/
|
|
73
|
-
[data-v-
|
|
73
|
+
[data-v-d6fb2049] .cm-editor {
|
|
74
74
|
height: 100%;
|
|
75
75
|
outline: none;
|
|
76
76
|
padding: 0;
|
|
77
77
|
background: transparent;
|
|
78
78
|
}
|
|
79
|
-
[data-v-
|
|
79
|
+
[data-v-d6fb2049] .cm-placeholder {
|
|
80
80
|
color: var(--scalar-color-3);
|
|
81
81
|
}
|
|
82
|
-
[data-v-
|
|
82
|
+
[data-v-d6fb2049] .cm-content {
|
|
83
83
|
font-family: var(--scalar-font-code);
|
|
84
84
|
font-size: var(--scalar-small);
|
|
85
85
|
max-height: 20px;
|
|
86
86
|
padding: 8px 0;
|
|
87
87
|
}
|
|
88
88
|
/* Tooltip helper */
|
|
89
|
-
[data-v-
|
|
89
|
+
[data-v-d6fb2049] .cm-tooltip {
|
|
90
90
|
background: transparent !important;
|
|
91
91
|
filter: brightness(var(--scalar-lifted-brightness));
|
|
92
92
|
border-radius: var(--scalar-radius);
|
|
@@ -95,43 +95,43 @@ to {
|
|
|
95
95
|
outline: none !important;
|
|
96
96
|
overflow: hidden !important;
|
|
97
97
|
}
|
|
98
|
-
[data-v-
|
|
98
|
+
[data-v-d6fb2049] .cm-tooltip-autocomplete ul li {
|
|
99
99
|
padding: 3px 6px !important;
|
|
100
100
|
}
|
|
101
|
-
[data-v-
|
|
101
|
+
[data-v-d6fb2049] .cm-completionIcon-type:after {
|
|
102
102
|
color: var(--scalar-color-3) !important;
|
|
103
103
|
}
|
|
104
|
-
[data-v-
|
|
104
|
+
[data-v-d6fb2049] .cm-tooltip-autocomplete ul li[aria-selected] {
|
|
105
105
|
background: var(--scalar-background-2) !important;
|
|
106
106
|
color: var(--scalar-color-1) !important;
|
|
107
107
|
}
|
|
108
|
-
[data-v-
|
|
108
|
+
[data-v-d6fb2049] .cm-tooltip-autocomplete ul {
|
|
109
109
|
padding: 6px !important;
|
|
110
110
|
position: relative;
|
|
111
111
|
}
|
|
112
|
-
[data-v-
|
|
112
|
+
[data-v-d6fb2049] .cm-tooltip-autocomplete ul li:hover {
|
|
113
113
|
border-radius: 3px;
|
|
114
114
|
color: var(--scalar-color-1) !important;
|
|
115
115
|
background: var(--scalar-background-3) !important;
|
|
116
116
|
}
|
|
117
117
|
/* Disable active line highlighting */
|
|
118
|
-
[data-v-
|
|
118
|
+
[data-v-d6fb2049] .cm-activeLine,[data-v-d6fb2049] .cm-activeLineGutter {
|
|
119
119
|
background-color: transparent;
|
|
120
120
|
}
|
|
121
121
|
/* Color selection matching */
|
|
122
|
-
[data-v-
|
|
122
|
+
[data-v-d6fb2049] .cm-selectionMatch,[data-v-d6fb2049] .cm-matchingBracket {
|
|
123
123
|
border-radius: var(--scalar-radius);
|
|
124
124
|
background: var(--scalar-background-4) !important;
|
|
125
125
|
}
|
|
126
126
|
/* Color Picker Swatches */
|
|
127
|
-
[data-v-
|
|
127
|
+
[data-v-d6fb2049] .cm-css-color-picker-wrapper {
|
|
128
128
|
display: inline-flex;
|
|
129
129
|
outline: 1px solid var(--scalar-background-3);
|
|
130
130
|
border-radius: 3px;
|
|
131
131
|
overflow: hidden;
|
|
132
132
|
}
|
|
133
133
|
/* Number gutter */
|
|
134
|
-
[data-v-
|
|
134
|
+
[data-v-d6fb2049] .cm-gutters {
|
|
135
135
|
background-color: transparent;
|
|
136
136
|
border-right: none;
|
|
137
137
|
color: var(--scalar-color-3);
|
|
@@ -139,7 +139,7 @@ to {
|
|
|
139
139
|
line-height: 22px;
|
|
140
140
|
border-radius: 0 0 0 3px;
|
|
141
141
|
}
|
|
142
|
-
[data-v-
|
|
142
|
+
[data-v-d6fb2049] .cm-gutters:before {
|
|
143
143
|
content: '';
|
|
144
144
|
position: absolute;
|
|
145
145
|
top: 2px;
|
|
@@ -149,7 +149,7 @@ to {
|
|
|
149
149
|
border-radius: var(--scalar-radius) 0 0 var(--scalar-radius);
|
|
150
150
|
background-color: var(--scalar-background-1);
|
|
151
151
|
}
|
|
152
|
-
[data-v-
|
|
152
|
+
[data-v-d6fb2049] .cm-gutterElement {
|
|
153
153
|
font-family: var(--scalar-font-code) !important;
|
|
154
154
|
padding-left: 0px !important;
|
|
155
155
|
padding-right: 6px !important;
|
|
@@ -158,16 +158,16 @@ to {
|
|
|
158
158
|
justify-content: flex-end;
|
|
159
159
|
position: relative;
|
|
160
160
|
}
|
|
161
|
-
[data-v-
|
|
161
|
+
[data-v-d6fb2049] .cm-lineNumbers .cm-gutterElement {
|
|
162
162
|
min-width: fit-content;
|
|
163
163
|
}
|
|
164
|
-
[data-v-
|
|
164
|
+
[data-v-d6fb2049] .cm-gutter + .cm-gutter :not(.cm-foldGutter) .cm-gutterElement {
|
|
165
165
|
padding-left: 0 !important;
|
|
166
166
|
}
|
|
167
|
-
[data-v-
|
|
167
|
+
[data-v-d6fb2049] .cm-scroller {
|
|
168
168
|
overflow: auto;
|
|
169
169
|
}
|
|
170
|
-
.line-wrapping[data-v-
|
|
170
|
+
.line-wrapping[data-v-d6fb2049]:focus-within .cm-content {
|
|
171
171
|
display: inline-table;
|
|
172
172
|
min-height: fit-content;
|
|
173
173
|
padding: 3px 6px;
|
|
@@ -243,21 +243,21 @@ to {
|
|
|
243
243
|
margin-top: 0;
|
|
244
244
|
}
|
|
245
245
|
|
|
246
|
-
[data-v-
|
|
246
|
+
[data-v-d37cbfcc] .cm-editor {
|
|
247
247
|
height: 100%;
|
|
248
248
|
outline: none;
|
|
249
249
|
width: 100%;
|
|
250
250
|
}
|
|
251
|
-
[data-v-
|
|
251
|
+
[data-v-d37cbfcc] .cm-line {
|
|
252
252
|
padding: 0;
|
|
253
253
|
}
|
|
254
|
-
[data-v-
|
|
254
|
+
[data-v-d37cbfcc] .cm-content {
|
|
255
255
|
padding: 0;
|
|
256
256
|
display: flex;
|
|
257
257
|
align-items: center;
|
|
258
258
|
font-size: var(--scalar-small);
|
|
259
259
|
}
|
|
260
|
-
.scroll-timeline-x[data-v-
|
|
260
|
+
.scroll-timeline-x[data-v-d37cbfcc] {
|
|
261
261
|
-ms-overflow-style: none;
|
|
262
262
|
/* Fade the URL at the viewport edges. Mask lives on the scrollport (this
|
|
263
263
|
element) rather than on `.cm-scroller`, whose width follows the URL's
|
|
@@ -270,31 +270,31 @@ to {
|
|
|
270
270
|
transparent 100%
|
|
271
271
|
);
|
|
272
272
|
}
|
|
273
|
-
.scroll-timeline-x-hidden[data-v-
|
|
273
|
+
.scroll-timeline-x-hidden[data-v-d37cbfcc] {
|
|
274
274
|
overflow-x: auto;
|
|
275
275
|
}
|
|
276
|
-
.scroll-timeline-x-hidden[data-v-
|
|
276
|
+
.scroll-timeline-x-hidden[data-v-d37cbfcc] .cm-scroller {
|
|
277
277
|
scrollbar-width: none;
|
|
278
278
|
-ms-overflow-style: none;
|
|
279
279
|
padding-right: 20px;
|
|
280
280
|
overflow: auto;
|
|
281
281
|
}
|
|
282
|
-
.scroll-timeline-x-hidden[data-v-
|
|
282
|
+
.scroll-timeline-x-hidden[data-v-d37cbfcc]::-webkit-scrollbar {
|
|
283
283
|
width: 0;
|
|
284
284
|
height: 0;
|
|
285
285
|
display: none;
|
|
286
286
|
}
|
|
287
|
-
.scroll-timeline-x-hidden[data-v-
|
|
287
|
+
.scroll-timeline-x-hidden[data-v-d37cbfcc] .cm-scroller::-webkit-scrollbar {
|
|
288
288
|
width: 0;
|
|
289
289
|
height: 0;
|
|
290
290
|
display: none;
|
|
291
291
|
}
|
|
292
|
-
.scroll-timeline-x-address[data-v-
|
|
292
|
+
.scroll-timeline-x-address[data-v-d37cbfcc] {
|
|
293
293
|
line-height: 27px;
|
|
294
294
|
scrollbar-width: none; /* Firefox */
|
|
295
295
|
}
|
|
296
296
|
/* make clickable are to left of send button */
|
|
297
|
-
.scroll-timeline-x-address[data-v-
|
|
297
|
+
.scroll-timeline-x-address[data-v-d37cbfcc]:after {
|
|
298
298
|
content: '';
|
|
299
299
|
position: absolute;
|
|
300
300
|
height: 100%;
|
|
@@ -302,12 +302,12 @@ to {
|
|
|
302
302
|
right: 0;
|
|
303
303
|
cursor: text;
|
|
304
304
|
}
|
|
305
|
-
.scroll-timeline-x-address[data-v-
|
|
305
|
+
.scroll-timeline-x-address[data-v-d37cbfcc]:empty:before {
|
|
306
306
|
content: 'Enter URL or cURL request';
|
|
307
307
|
color: var(--scalar-color-3);
|
|
308
308
|
pointer-events: none;
|
|
309
309
|
}
|
|
310
|
-
.address-bar-bg-states[data-v-
|
|
310
|
+
.address-bar-bg-states[data-v-d37cbfcc] {
|
|
311
311
|
--scalar-address-bar-bg: color-mix(
|
|
312
312
|
in srgb,
|
|
313
313
|
var(--scalar-background-1),
|
|
@@ -315,12 +315,16 @@ to {
|
|
|
315
315
|
);
|
|
316
316
|
background: var(--scalar-address-bar-bg);
|
|
317
317
|
}
|
|
318
|
-
.address-bar-bg-states[data-v-
|
|
318
|
+
.address-bar-bg-states[data-v-d37cbfcc]:has(.cm-focused) {
|
|
319
319
|
--scalar-address-bar-bg: var(--scalar-background-1);
|
|
320
320
|
border-color: var(--scalar-border-color);
|
|
321
321
|
outline-width: 1px;
|
|
322
322
|
outline-style: solid;
|
|
323
323
|
}
|
|
324
|
+
.address-bar-bg-states:has(.cm-focused) .fade-left[data-v-d37cbfcc],
|
|
325
|
+
.address-bar-bg-states:has(.cm-focused) .fade-right[data-v-d37cbfcc] {
|
|
326
|
+
--scalar-address-bar-bg: var(--scalar-background-1);
|
|
327
|
+
}
|
|
324
328
|
|
|
325
329
|
.app-exit-button[data-v-42c563b3] {
|
|
326
330
|
color: white;
|
|
@@ -419,33 +423,110 @@ to {
|
|
|
419
423
|
display: none;
|
|
420
424
|
}
|
|
421
425
|
|
|
422
|
-
[data-v-
|
|
423
|
-
|
|
426
|
+
.code-input-lite[data-v-1974e80d] {
|
|
427
|
+
/* Flex so the editor centres vertically in whatever height the cell gives us.
|
|
428
|
+
Font properties inherit so we adopt the surrounding typography. */
|
|
429
|
+
display: flex;
|
|
430
|
+
align-items: center;
|
|
431
|
+
}
|
|
432
|
+
.code-input-lite__editor[data-v-1974e80d] {
|
|
433
|
+
/* Everything font-related inherits from the surrounding context. */
|
|
434
|
+
font: inherit;
|
|
435
|
+
letter-spacing: inherit;
|
|
436
|
+
flex: 1;
|
|
437
|
+
min-width: 0;
|
|
438
|
+
background: transparent;
|
|
439
|
+
outline: none;
|
|
440
|
+
color: var(--scalar-color-1);
|
|
441
|
+
caret-color: var(--scalar-color-1);
|
|
442
|
+
/* Single-line: horizontal scroll keeps the caret visible for long values;
|
|
443
|
+
the scrollbar itself is hidden (would be noisy inside a table cell). */
|
|
444
|
+
white-space: pre;
|
|
445
|
+
overflow-x: auto;
|
|
446
|
+
overflow-y: hidden;
|
|
447
|
+
scrollbar-width: none;
|
|
448
|
+
padding: 0 0.5em;
|
|
449
|
+
box-sizing: border-box;
|
|
450
|
+
line-height: 1.44;
|
|
451
|
+
/* Positioning context for the absolutely positioned placeholder. */
|
|
452
|
+
position: relative;
|
|
424
453
|
}
|
|
425
|
-
[data-v-
|
|
454
|
+
.code-input-lite__editor[data-v-1974e80d]::-webkit-scrollbar {
|
|
455
|
+
display: none;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
/* Absolute so the placeholder does not occupy flow space inside the
|
|
459
|
+
contenteditable; otherwise the caret would land after it on focus.
|
|
460
|
+
`pointer-events: none` lets clicks fall through to focus the editor.
|
|
461
|
+
Hidden on focus so it never renders on top of the text caret. */
|
|
462
|
+
.code-input-lite--empty .code-input-lite__editor[data-v-1974e80d]:not(:focus)::before {
|
|
463
|
+
content: attr(data-placeholder);
|
|
464
|
+
color: var(--scalar-color-3);
|
|
465
|
+
pointer-events: none;
|
|
466
|
+
position: absolute;
|
|
467
|
+
top: 0;
|
|
468
|
+
bottom: 0;
|
|
469
|
+
left: 0.5em;
|
|
470
|
+
display: flex;
|
|
426
471
|
align-items: center;
|
|
472
|
+
}
|
|
473
|
+
.code-input-lite--error .code-input-lite__editor[data-v-1974e80d] {
|
|
474
|
+
outline: 1px solid var(--scalar-color-red);
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
/* Pill styling. Each pill is `<span contenteditable="false">name</span>` —
|
|
478
|
+
an atomic widget; the caret lands before or after it, never inside. */
|
|
479
|
+
.scalar-pill {
|
|
480
|
+
color: var(--scalar-color-2);
|
|
481
|
+
border-radius: 30px;
|
|
482
|
+
display: inline-block;
|
|
483
|
+
font-family: var(--scalar-font-code);
|
|
484
|
+
font-size: 0.9em;
|
|
485
|
+
line-height: 1.4;
|
|
486
|
+
vertical-align: baseline;
|
|
487
|
+
background: var(--scalar-background-3);
|
|
488
|
+
padding: 0.125em 0.6em;
|
|
489
|
+
margin-right: 0.35em;
|
|
490
|
+
cursor: text;
|
|
491
|
+
/* Single click selects the whole pill — chip/mention model, deletes in one go. */
|
|
492
|
+
user-select: all;
|
|
493
|
+
-webkit-user-select: all;
|
|
494
|
+
}
|
|
495
|
+
.dark-mode .scalar-pill {
|
|
496
|
+
background: color-mix(
|
|
497
|
+
in srgb,
|
|
498
|
+
var(--tw-bg-base, var(--scalar-color-1)),
|
|
499
|
+
transparent 90%
|
|
500
|
+
);
|
|
501
|
+
}
|
|
502
|
+
.light-mode .scalar-pill {
|
|
503
|
+
background: var(--scalar-background-3);
|
|
504
|
+
}
|
|
505
|
+
.scalar-pill--context-fn {
|
|
506
|
+
/* Inset box-shadow as a border so the layout box stays identical to plain pills. */
|
|
507
|
+
box-shadow: 0 0 0 1px
|
|
508
|
+
color-mix(in srgb, var(--scalar-color-3), transparent 35%) inset;
|
|
509
|
+
}
|
|
510
|
+
.dark-mode .scalar-pill--context-fn {
|
|
511
|
+
background: color-mix(in srgb, var(--scalar-background-3), transparent 55%);
|
|
512
|
+
}
|
|
513
|
+
.light-mode .scalar-pill--context-fn {
|
|
514
|
+
background: color-mix(in srgb, var(--scalar-background-3), transparent 40%);
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
[data-v-6b2d7899] .code-input-lite__editor {
|
|
427
518
|
background-color: transparent;
|
|
428
|
-
display: flex;
|
|
429
519
|
font-family: var(--scalar-font);
|
|
430
520
|
font-size: var(--scalar-small);
|
|
431
521
|
padding: 5px 8px;
|
|
432
|
-
width: 100%;
|
|
433
522
|
}
|
|
434
|
-
[data-v-
|
|
435
|
-
|
|
436
|
-
}
|
|
437
|
-
[data-v-36811e28] .cm-content .cm-pill:not(:last-of-type) {
|
|
438
|
-
margin-right: 0.5px;
|
|
523
|
+
[data-v-6b2d7899] .scalar-pill:not(:last-of-type) {
|
|
524
|
+
margin-right: 0.15em;
|
|
439
525
|
}
|
|
440
|
-
[data-v-
|
|
526
|
+
[data-v-6b2d7899] .scalar-pill:not(:first-of-type) {
|
|
441
527
|
margin-left: 0.5px;
|
|
442
528
|
}
|
|
443
|
-
[data-v-
|
|
444
|
-
overflow: hidden;
|
|
445
|
-
padding: 0;
|
|
446
|
-
text-overflow: ellipsis;
|
|
447
|
-
}
|
|
448
|
-
.filemask[data-v-36811e28] {
|
|
529
|
+
.filemask[data-v-6b2d7899] {
|
|
449
530
|
mask-image: linear-gradient(
|
|
450
531
|
to right,
|
|
451
532
|
transparent 0,
|
|
@@ -479,61 +560,46 @@ to {
|
|
|
479
560
|
scrollbar-width: none;
|
|
480
561
|
}
|
|
481
562
|
|
|
482
|
-
[data-v-
|
|
483
|
-
padding: 0;
|
|
484
|
-
}
|
|
485
|
-
[data-v-1ee3c31d] .cm-content {
|
|
486
|
-
align-items: center;
|
|
563
|
+
[data-v-a6f4752a] .code-input-lite__editor {
|
|
487
564
|
background-color: transparent;
|
|
488
|
-
display: flex;
|
|
489
565
|
font-family: var(--scalar-font);
|
|
490
566
|
font-size: var(--scalar-small);
|
|
491
567
|
padding: 5px 8px;
|
|
492
|
-
width: 100%;
|
|
493
568
|
}
|
|
494
|
-
[data-v-
|
|
495
|
-
|
|
569
|
+
[data-v-a6f4752a] .scalar-pill:not(:last-of-type) {
|
|
570
|
+
margin-right: 0.15em;
|
|
496
571
|
}
|
|
497
|
-
[data-v-
|
|
498
|
-
margin-right: 0.5px;
|
|
499
|
-
}
|
|
500
|
-
[data-v-1ee3c31d] .cm-content .cm-pill:not(:first-of-type) {
|
|
572
|
+
[data-v-a6f4752a] .scalar-pill:not(:first-of-type) {
|
|
501
573
|
margin-left: 0.5px;
|
|
502
574
|
}
|
|
503
|
-
[data-v-
|
|
504
|
-
overflow: hidden;
|
|
505
|
-
padding: 0;
|
|
506
|
-
text-overflow: ellipsis;
|
|
507
|
-
word-break: break-word;
|
|
508
|
-
}
|
|
509
|
-
.required[data-v-1ee3c31d]::after {
|
|
575
|
+
.required[data-v-a6f4752a]::after {
|
|
510
576
|
content: 'Required';
|
|
511
577
|
}
|
|
512
578
|
/* Tailwind placeholder is busted */
|
|
513
|
-
input[data-v-
|
|
579
|
+
input[data-v-a6f4752a]::placeholder {
|
|
514
580
|
color: var(--scalar-color-3);
|
|
515
581
|
}
|
|
516
582
|
/* we want our inputs to look like a password input but not be one */
|
|
517
|
-
.scalar-password-input[data-v-
|
|
583
|
+
.scalar-password-input[data-v-a6f4752a] {
|
|
518
584
|
text-security: disc;
|
|
519
585
|
-webkit-text-security: disc;
|
|
520
586
|
-moz-text-security: disc;
|
|
521
587
|
}
|
|
522
588
|
|
|
523
|
-
.request-section-content[data-v-
|
|
589
|
+
.request-section-content[data-v-612d194c] {
|
|
524
590
|
--scalar-border-width: 0.5px;
|
|
525
591
|
}
|
|
526
|
-
.request-section-content-filter[data-v-
|
|
592
|
+
.request-section-content-filter[data-v-612d194c] {
|
|
527
593
|
box-shadow: 0 -10px 0 10px var(--scalar-background-1);
|
|
528
594
|
}
|
|
529
|
-
.request-item:focus-within .request-meta-buttons[data-v-
|
|
595
|
+
.request-item:focus-within .request-meta-buttons[data-v-612d194c] {
|
|
530
596
|
opacity: 1;
|
|
531
597
|
}
|
|
532
|
-
.group-hover-input[data-v-
|
|
598
|
+
.group-hover-input[data-v-612d194c] {
|
|
533
599
|
border-width: var(--scalar-border-width);
|
|
534
600
|
border-color: transparent;
|
|
535
601
|
}
|
|
536
|
-
.group:hover .group-hover-input[data-v-
|
|
602
|
+
.group:hover .group-hover-input[data-v-612d194c] {
|
|
537
603
|
background: color-mix(
|
|
538
604
|
in srgb,
|
|
539
605
|
var(--scalar-background-1),
|
|
@@ -541,7 +607,7 @@ input[data-v-1ee3c31d]::placeholder {
|
|
|
541
607
|
);
|
|
542
608
|
border-color: var(--scalar-border-color);
|
|
543
609
|
}
|
|
544
|
-
.group-hover-input[data-v-
|
|
610
|
+
.group-hover-input[data-v-612d194c]:focus {
|
|
545
611
|
background: transparent !important;
|
|
546
612
|
border-color: var(--scalar-border-color) !important;
|
|
547
613
|
}
|
|
@@ -722,32 +788,18 @@ to {
|
|
|
722
788
|
bottom: 0;
|
|
723
789
|
}
|
|
724
790
|
|
|
725
|
-
[data-v-
|
|
726
|
-
padding: 0;
|
|
727
|
-
}
|
|
728
|
-
[data-v-69be2d6c] .cm-content {
|
|
729
|
-
align-items: center;
|
|
791
|
+
[data-v-5b336842] .code-input-lite__editor {
|
|
730
792
|
background-color: transparent;
|
|
731
|
-
display: flex;
|
|
732
793
|
font-family: var(--scalar-font);
|
|
733
794
|
font-size: var(--scalar-small);
|
|
734
795
|
padding: 5px 8px;
|
|
735
|
-
width: 100%;
|
|
736
|
-
}
|
|
737
|
-
[data-v-69be2d6c] .cm-content:has(.cm-pill) {
|
|
738
|
-
padding: 5px 8px;
|
|
739
796
|
}
|
|
740
|
-
[data-v-
|
|
741
|
-
margin-right: 0.
|
|
797
|
+
[data-v-5b336842] .scalar-pill:not(:last-of-type) {
|
|
798
|
+
margin-right: 0.15em;
|
|
742
799
|
}
|
|
743
|
-
[data-v-
|
|
800
|
+
[data-v-5b336842] .scalar-pill:not(:first-of-type) {
|
|
744
801
|
margin-left: 0.5px;
|
|
745
802
|
}
|
|
746
|
-
[data-v-69be2d6c] .cm-line {
|
|
747
|
-
overflow: hidden;
|
|
748
|
-
padding: 0;
|
|
749
|
-
text-overflow: ellipsis;
|
|
750
|
-
}
|
|
751
803
|
/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */
|
|
752
804
|
.scalar .scalar-app-layout[data-v-77897d1c] {
|
|
753
805
|
background: var(--scalar-background-1);
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"rest",
|
|
19
19
|
"testing"
|
|
20
20
|
],
|
|
21
|
-
"version": "3.
|
|
21
|
+
"version": "3.11.0",
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=22"
|
|
24
24
|
},
|
|
@@ -320,20 +320,20 @@
|
|
|
320
320
|
"vue": "^3.5.30",
|
|
321
321
|
"yaml": "^2.8.3",
|
|
322
322
|
"zod": "^4.3.5",
|
|
323
|
-
"@scalar/components": "0.27.
|
|
323
|
+
"@scalar/components": "0.27.3",
|
|
324
324
|
"@scalar/helpers": "0.8.2",
|
|
325
325
|
"@scalar/icons": "0.7.3",
|
|
326
326
|
"@scalar/json-magic": "0.12.16",
|
|
327
|
+
"@scalar/oas-utils": "0.19.0",
|
|
328
|
+
"@scalar/snippetz": "0.9.18",
|
|
329
|
+
"@scalar/sidebar": "0.9.24",
|
|
330
|
+
"@scalar/themes": "0.16.1",
|
|
327
331
|
"@scalar/openapi-types": "0.9.1",
|
|
328
|
-
"@scalar/
|
|
329
|
-
"@scalar/
|
|
330
|
-
"@scalar/
|
|
331
|
-
"@scalar/
|
|
332
|
-
"@scalar/
|
|
333
|
-
"@scalar/types": "0.13.3",
|
|
334
|
-
"@scalar/use-codemirror": "0.14.11",
|
|
335
|
-
"@scalar/workspace-store": "0.54.3",
|
|
336
|
-
"@scalar/use-toasts": "0.10.2"
|
|
332
|
+
"@scalar/types": "0.15.0",
|
|
333
|
+
"@scalar/use-codemirror": "0.14.12",
|
|
334
|
+
"@scalar/use-toasts": "0.10.2",
|
|
335
|
+
"@scalar/use-hooks": "0.4.7",
|
|
336
|
+
"@scalar/workspace-store": "0.54.5"
|
|
337
337
|
},
|
|
338
338
|
"devDependencies": {
|
|
339
339
|
"@tailwindcss/cli": "^4.2.4",
|