@scalar/blocks 0.10.0 → 0.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.
Files changed (27) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/code-example/components/CodeExample.vue.d.ts.map +1 -1
  3. package/dist/code-example/components/CodeExample.vue.js +1 -1
  4. package/dist/code-example/components/CodeExample.vue_vue_type_script_setup_true_lang.js +1 -2
  5. package/dist/code-example/components/CodeExample.vue_vue_type_script_setup_true_lang.js.map +1 -1
  6. package/dist/code-example/helpers/operation-to-har/process-parameters.js +4 -1
  7. package/dist/code-example/helpers/operation-to-har/process-parameters.js.map +1 -1
  8. package/dist/constants.js +1 -1
  9. package/dist/schema/SchemaObjectProperties.vue.d.ts.map +1 -1
  10. package/dist/schema/SchemaObjectProperties.vue_vue_type_script_setup_true_lang.js +30 -22
  11. package/dist/schema/SchemaObjectProperties.vue_vue_type_script_setup_true_lang.js.map +1 -1
  12. package/dist/schema/SchemaProperty.vue.d.ts +5 -0
  13. package/dist/schema/SchemaProperty.vue.d.ts.map +1 -1
  14. package/dist/schema/SchemaProperty.vue.js +1 -1
  15. package/dist/schema/SchemaProperty.vue_vue_type_script_setup_true_lang.js +3 -0
  16. package/dist/schema/SchemaProperty.vue_vue_type_script_setup_true_lang.js.map +1 -1
  17. package/dist/schema/SchemaPropertyHeading.vue.d.ts +6 -4
  18. package/dist/schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  19. package/dist/schema/SchemaPropertyHeading.vue.js +1 -1
  20. package/dist/schema/SchemaPropertyHeading.vue_vue_type_script_setup_true_lang.js +155 -132
  21. package/dist/schema/SchemaPropertyHeading.vue_vue_type_script_setup_true_lang.js.map +1 -1
  22. package/dist/schema/helpers/optimize-value-for-display.d.ts.map +1 -1
  23. package/dist/schema/helpers/optimize-value-for-display.js +11 -11
  24. package/dist/schema/helpers/optimize-value-for-display.js.map +1 -1
  25. package/dist/style.css +65 -40
  26. package/dist/vue-styles.css +1 -1
  27. package/package.json +10 -10
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaPropertyHeading.vue_vue_type_script_setup_true_lang.js","names":["$slots","_openBlock","_createElementBlock","_normalizeClass","_renderSlot","_createBlock","_unref","_withCtx","_createElementVNode","_toDisplayString","_Fragment","SchemaPropertyDetail","_renderList","_createTextVNode","_createVNode","Badge","RenderString","SchemaPropertyDefault","SchemaPropertyPattern","SchemaPropertyExamples","Badge_default","RenderString_default","SchemaPropertyDefault_default","SchemaPropertyDetail_default","SchemaPropertyExamples_default","SchemaPropertyPattern_default","_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","_hoisted_19","SchemaPropertyHeading_vue_vue_type_script_setup_true_lang_default","props","__props","useLocalization","fieldNumber","computed","protobufFieldNumber","recursiveTarget","schemaRecursiveTarget","presence","protobufPresence","presenceDescription","valueRef","toRef","constValue","schema","isArraySchema","items","resolve","isDefined","getLeafConstraints","properties","isStringSchema","translate","isNumberSchema","validationProperties","modelLink","getModelNameWithArray","modelLinkable","isModelLinkable","signatureTokens","getDisplayTypeSignatureTokens","shouldShowType","propertyNamesDetail","parts","getSchemaType","detail","exampleValue","itemsSchema","hasExampleContent","examples","patternValue","openBlock","createElementBlock","_ctx","normalizeClass","renderSlot","createCommentVNode","createBlock","unref","ScalarTooltip","withCtx","createElementVNode","toDisplayString","Fragment","_cache","renderList","index","createTextVNode","token","property","createSlots","createVNode"],"sources":["../../src/schema/SchemaPropertyHeading.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport { ScalarTooltip } from '@scalar/components/tooltip'\nimport { isDefined } from '@scalar/helpers/array/is-defined'\nimport type { WorkspaceEventBus } from '@scalar/workspace-store/events'\nimport { resolve } from '@scalar/workspace-store/resolve'\nimport type { SchemaObject } from '@scalar/workspace-store/schemas/v3.2/strict/openapi-document'\nimport {\n isArraySchema,\n isNumberSchema,\n isStringSchema,\n} from '@scalar/workspace-store/schemas/v3.2/strict/type-guards'\nimport { computed, toRef } from 'vue'\n\nimport Badge from '../shared/Badge.vue'\nimport { getSchemaType } from './helpers/get-schema-type'\nimport { getDisplayTypeSignatureTokens } from './helpers/get-type-signature-tokens'\nimport {\n isModelLinkable,\n type ModelLinkOptions,\n} from './helpers/is-model-linkable'\nimport { getModelNameWithArray } from './helpers/schema-name'\nimport { useLocalization } from './localization'\nimport {\n protobufFieldNumber,\n protobufPresence,\n type ProtobufSchema,\n} from './protobuf-metadata'\nimport {\n schemaRecursiveTarget,\n type RecursiveSchema,\n} from './recursive-metadata'\nimport RenderString from './RenderString.vue'\nimport SchemaPropertyDefault from './SchemaPropertyDefault.vue'\nimport SchemaPropertyDetail from './SchemaPropertyDetail.vue'\nimport SchemaPropertyExamples from './SchemaPropertyExamples.vue'\nimport SchemaPropertyPattern from './SchemaPropertyPattern.vue'\n\nconst props = withDefaults(\n defineProps<{\n value: SchemaObject | undefined\n enum?: boolean\n isDiscriminator?: boolean\n /** Effective AsyncAPI variant value, separate from const/enum constraints. */\n discriminatorValue?: string\n required?: boolean\n additional?: boolean\n withExamples?: boolean\n hideModelNames?: boolean\n /**\n * Config for deciding whether a model name links to the models section. When the section or\n * the referenced model is hidden there is nothing to scroll to, so the name renders as plain text.\n */\n modelLinkOptions?: ModelLinkOptions\n /** When the schema was resolved from a $ref, pass the ref name so it displays as e.g. \"Data\" instead of \"object\". */\n modelName?: string | null\n /** Resolved propertyNames schema, used to surface key constraints like `format` for additional properties. */\n propertyNames?: SchemaObject\n eventBus?: WorkspaceEventBus | null\n /**\n * The row's name is a stand-in for keys the caller chooses\n * (`additionalProperties`) or keys matching a regex (`patternProperties`),\n * not a literal property. The heading says so in the signature line, where\n * the tree already describes shapes, instead of styling the name itself.\n */\n keyKind?: 'additional' | 'pattern'\n /**\n * The name of the schema this row loops back to. A cut cycle is a leaf, so\n * the signature line says why it does not expand; the model link beside it\n * already names the schema the loop returns to.\n */\n recursiveTo?: string\n }>(),\n {\n isDiscriminator: false,\n required: false,\n withExamples: true,\n hideModelNames: false,\n eventBus: null,\n },\n)\nconst { translate } = useLocalization()\n\n// Convert to reactive refs for composables\nconst fieldNumber = computed(\n () => (props.value as ProtobufSchema | undefined)?.[protobufFieldNumber],\n)\n\nconst recursiveTarget = computed(\n () =>\n props.recursiveTo ??\n (props.value as RecursiveSchema | undefined)?.[schemaRecursiveTarget],\n)\n\nconst presence = computed(\n () => (props.value as ProtobufSchema | undefined)?.[protobufPresence],\n)\nconst presenceDescription = computed(() =>\n presence.value === 'explicit'\n ? 'Explicit presence: Protobuf distinguishes an unset field from one set to its default value.'\n : 'Implicit presence: Protobuf does not distinguish an unset field from one set to its default value.',\n)\n\nconst valueRef = toRef(props, 'value')\n\nconst constValue = computed(() => {\n if (!valueRef.value) {\n return undefined\n }\n\n const schema = valueRef.value\n\n // Direct const value\n if (schema.const !== undefined) {\n return schema.const\n }\n\n // Single-item enum acts as const\n if (schema.enum?.length === 1) {\n return schema.enum[0]\n }\n\n // Check items for const values (for arrays)\n if (isArraySchema(schema) && schema.items) {\n const items = resolve.schema(schema.items)\n\n if (isDefined(items.const)) {\n return items.const\n }\n\n if (items.enum?.length === 1) {\n return items.enum[0]\n }\n }\n\n return undefined\n})\n\ntype ValidationProperty = {\n key: string\n value: string | number\n prefix?: string\n code?: boolean\n truncate?: boolean\n}\n\n/**\n * Constraints that live on a leaf (string or number) schema: length, pattern,\n * format and numeric ranges. Extracted so they can be surfaced for a primitive\n * schema as well as for a primitive array's items, which are not rendered on\n * their own. See https://github.com/scalar/scalar/issues/9690\n */\nconst getLeafConstraints = (schema: SchemaObject) => {\n const properties: ValidationProperty[] = []\n\n if (isStringSchema(schema)) {\n if (isDefined(schema.minLength)) {\n properties.push({\n key: 'min-length',\n prefix: `${translate('schema.minLength')}: `,\n value: schema.minLength,\n })\n }\n\n if (isDefined(schema.maxLength)) {\n properties.push({\n key: 'max-length',\n prefix: `${translate('schema.maxLength')}: `,\n value: schema.maxLength,\n })\n }\n\n // pattern is rendered via SchemaPropertyPattern (hover dropdown), skip here\n }\n\n if ((isStringSchema(schema) || isNumberSchema(schema)) && schema.format) {\n properties.push({\n key: 'format',\n value: schema.format,\n truncate: true,\n })\n }\n\n if (isNumberSchema(schema)) {\n if (isDefined(schema.exclusiveMinimum)) {\n properties.push({\n key: 'exclusive-minimum',\n prefix: `${translate('schema.greaterThan')}: `,\n value: schema.exclusiveMinimum,\n })\n }\n\n if (isDefined(schema.minimum)) {\n properties.push({\n key: 'minimum',\n prefix: `${translate('schema.min')}: `,\n value: schema.minimum,\n })\n }\n\n if (isDefined(schema.exclusiveMaximum)) {\n properties.push({\n key: 'exclusive-maximum',\n prefix: `${translate('schema.lessThan')}: `,\n value: schema.exclusiveMaximum,\n })\n }\n\n if (isDefined(schema.maximum)) {\n properties.push({\n key: 'maximum',\n prefix: `${translate('schema.max')}: `,\n value: schema.maximum,\n })\n }\n\n if (isDefined(schema.multipleOf)) {\n properties.push({\n key: 'multiple-of',\n prefix: `${translate('schema.multipleOf')}: `,\n value: schema.multipleOf,\n })\n }\n }\n\n return properties\n}\n\nconst validationProperties = computed(() => {\n if (!valueRef.value) {\n return []\n }\n\n const schema = valueRef.value\n const properties: ValidationProperty[] = []\n\n // Array validation properties\n if (isArraySchema(schema)) {\n if (isDefined(schema.minItems) || isDefined(schema.maxItems)) {\n properties.push({\n key: 'array-range',\n value: `${schema.minItems ?? ''}…${schema.maxItems ?? ''}`,\n })\n }\n\n // Unique items\n if (schema.uniqueItems) {\n properties.push({\n key: 'unique-items',\n value: `${translate('schema.unique')}!`,\n })\n }\n }\n\n properties.push(...getLeafConstraints(schema))\n\n // Primitive array items carry their own constraints (e.g. an array of `uuid`\n // strings) but are not rendered separately, so surface them here.\n if (isArraySchema(schema) && schema.items) {\n properties.push(...getLeafConstraints(resolve.schema(schema.items)))\n }\n\n return properties\n})\n\n/** Link data for navigating to the referenced model in the sidebar. */\nconst modelLink = computed(() => {\n if (!props.value) {\n return null\n }\n\n if (props.hideModelNames) {\n return null\n }\n\n if (props.modelName) {\n return { schemaKey: props.modelName, label: props.modelName }\n }\n\n return getModelNameWithArray(props.value)\n})\n\n/** Whether the model name links to the models section, or renders as plain text. */\nconst modelLinkable = computed(() =>\n isModelLinkable(modelLink.value?.schemaKey, props.modelLinkOptions ?? {}),\n)\n\n/**\n * The type as a run of tokens rather than a single string — identifiers in\n * the code face, English words like `array of` in the sans face, and a muted\n * `|` so `string | null` reads as one type with an alternative.\n *\n * The token run and the screen-reader label are written straight into the\n * template instead of being their own components: the tree mounts one per\n * typed row, and a component instance costs more to create than the span it\n * renders. On a flat object the type cells would be most of the instance\n * count. The linked and the plain copy of the token markup below must stay\n * identical.\n */\nconst signatureTokens = computed(() =>\n getDisplayTypeSignatureTokens(props.value, {\n hideModelNames: props.hideModelNames,\n modelName: modelLink.value?.label,\n }),\n)\n\n/** Check if we should show the type information */\nconst shouldShowType = computed(() => {\n if (!props.value || !('type' in props.value)) {\n return false\n }\n\n // Always show type for arrays, even when items have const values\n if (props.value.type === 'array') {\n return true\n }\n\n // For non-arrays, only show if no const value at the schema level\n return !constValue.value\n})\n\n/**\n * Type and format of the property keys, derived from the propertyNames schema.\n *\n * For a map keyed by UUIDs this renders e.g. \"string · uuid\" so the key\n * constraints are not lost. Returns undefined when there is nothing to show.\n */\nconst propertyNamesDetail = computed(() => {\n const schema = props.propertyNames\n if (!schema) {\n return undefined\n }\n\n const parts = [getSchemaType(schema)]\n if ('format' in schema && typeof schema.format === 'string') {\n parts.push(schema.format)\n }\n\n const detail = parts.filter(Boolean).join(' · ')\n return detail.length > 0 ? detail : undefined\n})\n\nconst exampleValue = computed(() => {\n // Treat only `undefined` as \"not set\" — `null` is a valid example value on a nullable schema.\n if (\n props.value &&\n 'example' in props.value &&\n props.value.example !== undefined\n ) {\n return props.value.example\n }\n\n // An array's own examples take precedence over the fallback from its items.\n if (\n props.value &&\n isArraySchema(props.value) &&\n !props.value.examples?.length\n ) {\n const itemsSchema = resolve.schema(props.value.items)\n if (\n itemsSchema &&\n 'example' in itemsSchema &&\n itemsSchema.example !== undefined\n ) {\n return itemsSchema.example\n }\n }\n\n return undefined\n})\n\n/**\n * Whether the examples chip has anything to render.\n *\n * `SchemaPropertyExamples` already renders nothing without an example, but it\n * still mounts, and mounting is what installs its popup's window-level click\n * and keydown listeners. `withExamples` defaults to true, so without this gate\n * every property row on the page — including a plain `{ type: 'string' }` —\n * pays for a popup it never opens. Mirrors the component's own two branches.\n */\nconst hasExampleContent = computed((): boolean => {\n if (exampleValue.value !== undefined) {\n return true\n }\n\n const examples = props.value?.examples\n\n return (\n !!examples &&\n typeof examples === 'object' &&\n Object.keys(examples).length > 0\n )\n})\n\n/**\n * The regex `pattern` to surface via the hover dropdown. It lives on a string\n * schema, or on the items of a primitive array (which is not rendered on its\n * own, so its constraints are surfaced on the array heading — see\n * https://github.com/scalar/scalar/issues/9690).\n */\nconst patternValue = computed(() => {\n const schema = valueRef.value\n if (!schema) {\n return undefined\n }\n\n if (isStringSchema(schema) && schema.pattern) {\n return schema.pattern\n }\n\n if (isArraySchema(schema) && schema.items) {\n const items = resolve.schema(schema.items)\n if (isStringSchema(items) && items.pattern) {\n return items.pattern\n }\n }\n\n return undefined\n})\n</script>\n<template>\n <div\n class=\"property-heading [&>.property-detail:has(+.property-detail)]:mr-0\">\n <!-- `:has(+.property-detail)`: only a detail FOLLOWED BY another detail\n drops its right margin, because the `·` separator supplies the gap\n there. Not `:not(:last-of-type)`, which matches by element type: the\n collapsed preview and the trailing copy-link are spans as well, so it\n would strip the margin from the final detail and glue \"Addressrequired\"\n together on a collapsed row. -->\n <div\n v-if=\"$slots.name\"\n class=\"property-name\"\n :class=\"{ deprecated: props.value?.deprecated }\">\n <slot name=\"name\" />\n </div>\n <ScalarTooltip\n v-if=\"fieldNumber !== undefined\"\n content=\"Protobuf field number\">\n <span class=\"text-c-3 font-code mr-2 text-xs\">\n <span aria-hidden=\"true\">#{{ fieldNumber }}</span>\n <span class=\"sr-only\">Protobuf field number: {{ fieldNumber }}</span>\n </span>\n </ScalarTooltip>\n <div\n v-if=\"props.isDiscriminator\"\n class=\"property-discriminator\">\n {{ translate('schema.discriminator') }}\n </div>\n <template v-if=\"props.value\">\n <!-- A map key reads `additionalProperty · string`: the keyword leads the\n detail list in the accent colour, like a type word, so the name\n above it can look like every other name. -->\n <SchemaPropertyDetail\n v-if=\"props.keyKind\"\n class=\"property-key-kind\">\n <span class=\"font-code text-c-accent\">{{\n props.keyKind === 'pattern' ? 'patternProperty' : 'additionalProperty'\n }}</span>\n </SchemaPropertyDetail>\n <!-- Type information -->\n <SchemaPropertyDetail\n v-if=\"shouldShowType\"\n truncate>\n <!-- The type is a token run (`array of Planet`) and a $ref link IS the\n type, not an appended `· Account` -->\n <!-- Written across lines on purpose: Vue drops whitespace-only text\n between two elements, so a single-line label would read\n `Type:string`. -->\n <span class=\"screenreader-only\"> {{ translate('schema.type') }}: </span>\n <button\n v-if=\"props.eventBus && modelLink?.schemaKey && modelLinkable\"\n class=\"text-c-2 hover:text-c-1 underline\"\n type=\"button\"\n @click=\"\n props.eventBus.emit('scroll-to:model-by-name', {\n name: modelLink.schemaKey,\n })\n \">\n <span\n v-if=\"signatureTokens.length\"\n class=\"property-type-signature text-c-2 text-(length:--scalar-mini)\">\n <template\n v-for=\"(token, index) in signatureTokens\"\n :key=\"index\">\n {{ index > 0 ? ' ' : ''\n }}<span\n class=\"property-type-token\"\n :class=\"[\n `property-type-token--${token.kind}`,\n token.kind === 'word' ? 'font-sans' : '',\n token.kind === 'ident' || token.kind === 'literal'\n ? 'font-code'\n : '',\n token.kind === 'punctuation' ? 'text-c-2' : '',\n ]\"\n >{{ token.text }}</span\n >\n </template>\n </span>\n </button>\n <span\n v-else-if=\"signatureTokens.length\"\n class=\"property-type-signature text-c-2 text-(length:--scalar-mini)\">\n <template\n v-for=\"(token, index) in signatureTokens\"\n :key=\"index\">\n {{ index > 0 ? ' ' : ''\n }}<span\n class=\"property-type-token\"\n :class=\"[\n `property-type-token--${token.kind}`,\n token.kind === 'word' ? 'font-sans' : '',\n token.kind === 'ident' || token.kind === 'literal'\n ? 'font-code'\n : '',\n token.kind === 'punctuation' ? 'text-c-2' : '',\n ]\"\n >{{ token.text }}</span\n >\n </template>\n </span>\n </SchemaPropertyDetail>\n\n <!-- A cycle reads `array of Satellite · recursive`, a modifier like\n `nullable`; the full sentence rides the tooltip. -->\n <SchemaPropertyDetail\n v-if=\"recursiveTarget\"\n class=\"property-recursive\"\n :title=\"\n translate('schema.recursiveReference', { name: recursiveTarget })\n \">\n {{ translate('schema.recursive') }}\n </SchemaPropertyDetail>\n\n <ScalarTooltip\n v-if=\"presence\"\n :content=\"presenceDescription\">\n <span class=\"text-c-2 mr-2 text-xs\">\n <span aria-hidden=\"true\">optional</span>\n <span class=\"sr-only\"\n >Optional ({{ presence }} presence). {{ presenceDescription }}</span\n >\n </span>\n </ScalarTooltip>\n\n <!-- Key constraints from propertyNames (e.g. \"keys: string · uuid\") -->\n <SchemaPropertyDetail\n v-if=\"propertyNamesDetail\"\n truncate>\n <template #prefix>{{ translate('schema.keys') }}:</template>\n {{ propertyNamesDetail }}\n </SchemaPropertyDetail>\n\n <!-- Dynamic validation properties from composable -->\n <SchemaPropertyDetail\n v-for=\"property in validationProperties\"\n :key=\"property.key\"\n :code=\"property.code\"\n :truncate=\"property.truncate\">\n <span\n v-if=\"property.key === 'format'\"\n class=\"screenreader-only\">\n {{ translate('schema.format') }}:\n </span>\n <template\n v-if=\"property.prefix\"\n #prefix>\n {{ property.prefix }}\n </template>\n {{ property.value }}\n </SchemaPropertyDetail>\n\n <!-- Enum indicator -->\n <SchemaPropertyDetail v-if=\"props.enum\">\n {{ translate('schema.enum') }}\n </SchemaPropertyDetail>\n </template>\n <div\n v-if=\"props.additional\"\n class=\"property-additional\">\n <template v-if=\"props.value?.['x-additionalPropertiesName']\">\n {{ props.value['x-additionalPropertiesName'] }}\n </template>\n <template v-else>{{ translate('schema.additionalProperties') }}</template>\n </div>\n <div\n v-if=\"props.value?.deprecated\"\n class=\"property-deprecated\">\n <Badge>{{ translate('schema.deprecated') }}</Badge>\n </div>\n <span\n v-if=\"discriminatorValue !== undefined\"\n class=\"text-c-2\">\n {{ translate('schema.discriminatorValue') }}:\n <RenderString :value=\"discriminatorValue\" />\n </span>\n <!-- Don't use `isDefined` here, we want to show `const` when the value is `null` -->\n <div\n v-if=\"constValue !== undefined\"\n class=\"property-const\">\n <SchemaPropertyDetail truncate>\n <template #prefix>{{ translate('schema.const') }}: </template>\n <RenderString :value=\"constValue\" />\n </SchemaPropertyDetail>\n </div>\n <template v-else>\n <!-- Shows only when a composition is used (so props.value?.type is undefined) -->\n <SchemaPropertyDetail v-if=\"(props.value as any)?.nullable === true\">\n {{ translate('schema.nullable') }}\n </SchemaPropertyDetail>\n </template>\n <div\n v-if=\"props.value?.writeOnly\"\n class=\"property-write-only\">\n {{ translate('schema.writeOnly') }}\n </div>\n <div\n v-else-if=\"props.value?.readOnly\"\n class=\"property-read-only\">\n {{ translate('schema.readOnly') }}\n </div>\n <div\n v-if=\"props.required\"\n class=\"property-required\">\n {{ translate('schema.required') }}\n </div>\n <!-- Gated here, not only inside the component: each popup instance installs\n window-level click and keydown listeners for its dismissal, so mounting\n one per row costs the page a listener per row it never shows anything\n for. Same reason `SchemaPropertyPattern` below is gated. -->\n <SchemaPropertyDefault\n v-if=\"props.value?.default !== undefined\"\n :value=\"props.value?.default\" />\n <!--\n Pattern is a hover dropdown chip like Examples, not an inline constraint,\n so it sits beside the example. This keeps the real constraints (length,\n nullable, …) together in the dotted list. See #9966.\n -->\n <SchemaPropertyPattern\n v-if=\"patternValue\"\n :pattern=\"patternValue\" />\n <SchemaPropertyExamples\n v-if=\"props.withExamples && hasExampleContent\"\n :example=\"exampleValue\"\n :examples=\"props.value?.examples\" />\n <!-- The collapsed preview rides the end of the heading line -->\n <slot name=\"preview\" />\n <!-- Last so the tab order matches the visual order: the trailing copy-link\n is painted at the row's right edge, after every control to its left -->\n <slot name=\"trailing\" />\n </div>\n</template>\n<style scoped>\n.property-heading {\n display: flex;\n flex-wrap: wrap;\n align-items: baseline;\n row-gap: 9px;\n white-space: nowrap;\n}\n\n.property-heading:has(+ .children),\n.property-heading:has(+ .property-rule) {\n margin-bottom: 9px;\n}\n\n.property-heading > * {\n margin-right: 9px;\n}\n\n.property-heading:last-child {\n margin-right: 0;\n}\n\n.property-name {\n max-width: 100%;\n font-family: var(--scalar-font-code);\n font-weight: var(--scalar-bold);\n font-size: var(--scalar-font-size-4);\n white-space: normal;\n overflow-wrap: break-word;\n}\n\n.property-additional {\n font-family: var(--scalar-font-code);\n}\n\n.property-required,\n.property-optional {\n color: var(--scalar-color-2);\n}\n\n.property-required {\n font-size: var(--scalar-mini);\n color: var(--scalar-color-orange);\n}\n/*\n * Light-mode oranges are too bright on a light page for 13px text (the default\n * #ff5800 is 3.16:1), so blend the theme orange toward the text colour to reach\n * WCAG 1.4.3 (4.5:1) while keeping the hue and letting custom themes flow\n * through. Dark mode already passes (8.37:1) and keeps the plain token.\n */\n.light-mode .property-required {\n color: color-mix(\n in srgb,\n var(--scalar-color-orange),\n var(--scalar-color-1) 32%\n );\n}\n\n.property-read-only {\n font-size: var(--scalar-mini);\n color: var(--scalar-color-blue);\n}\n\n.property-write-only {\n font-size: var(--scalar-mini);\n color: var(--scalar-color-green);\n}\n\n.property-discriminator {\n font-size: var(--scalar-mini);\n color: var(--scalar-color-purple);\n}\n\n.property-detail {\n font-size: var(--scalar-mini);\n color: var(--scalar-color-2);\n display: flex;\n align-items: center;\n\n min-width: 0;\n}\n\n.property-const {\n color: var(--scalar-color-1);\n}\n\n.deprecated {\n text-decoration: line-through;\n}\n</style>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAUpC,EAAM,OAAO;;GAE1B1C,EAAuBqF,EAAA,QAAA,WAAA,CAAA,GAAA,KAAA,GAAA,EAAA;GAGvBrF,EAAwBqF,EAAA,QAAA,YAAA,CAAA,GAAA,KAAA,GAAA,EAAA"}
1
+ {"version":3,"file":"SchemaPropertyHeading.vue_vue_type_script_setup_true_lang.js","names":["$slots","_openBlock","_createElementBlock","_Fragment","_renderList","_createBlock","Badge","_normalizeClass","_withCtx","_createTextVNode","_toDisplayString","_renderSlot","_unref","_createElementVNode","SchemaPropertyDetail","_createVNode","RenderString","SchemaPropertyDefault","SchemaPropertyPattern","SchemaPropertyExamples","Badge_default","RenderString_default","SchemaPropertyDefault_default","SchemaPropertyDetail_default","SchemaPropertyExamples_default","SchemaPropertyPattern_default","_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","_hoisted_19","badgeClass","SchemaPropertyHeading_vue_vue_type_script_setup_true_lang_default","props","__props","useLocalization","fieldNumber","computed","protobufFieldNumber","recursiveTarget","schemaRecursiveTarget","presence","protobufPresence","presenceDescription","valueRef","toRef","positionedBadges","entries","badge","constValue","schema","isArraySchema","items","resolve","isDefined","getLeafConstraints","properties","isStringSchema","translate","isNumberSchema","validationProperties","modelLink","getModelNameWithArray","modelLinkable","isModelLinkable","signatureTokens","getDisplayTypeSignatureTokens","shouldShowType","propertyNamesDetail","parts","getSchemaType","detail","exampleValue","itemsSchema","hasExampleContent","examples","patternValue","openBlock","createElementBlock","Fragment","renderList","createBlock","index","normalizeClass","withCtx","createTextVNode","toDisplayString","_ctx","renderSlot","createCommentVNode","unref","ScalarTooltip","createElementVNode","_cache","token","property","createSlots","createVNode"],"sources":["../../src/schema/SchemaPropertyHeading.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport { ScalarTooltip } from '@scalar/components/tooltip'\nimport { isDefined } from '@scalar/helpers/array/is-defined'\nimport type { WorkspaceEventBus } from '@scalar/workspace-store/events'\nimport { resolve } from '@scalar/workspace-store/resolve'\nimport type { XBadge } from '@scalar/workspace-store/schemas/extensions/operation'\nimport type { SchemaObject } from '@scalar/workspace-store/schemas/v3.2/strict/openapi-document'\nimport {\n isArraySchema,\n isNumberSchema,\n isStringSchema,\n} from '@scalar/workspace-store/schemas/v3.2/strict/type-guards'\nimport { computed, toRef } from 'vue'\n\nimport Badge from '../shared/Badge.vue'\nimport { getSchemaType } from './helpers/get-schema-type'\nimport { getDisplayTypeSignatureTokens } from './helpers/get-type-signature-tokens'\nimport {\n isModelLinkable,\n type ModelLinkOptions,\n} from './helpers/is-model-linkable'\nimport { getModelNameWithArray } from './helpers/schema-name'\nimport { useLocalization } from './localization'\nimport {\n protobufFieldNumber,\n protobufPresence,\n type ProtobufSchema,\n} from './protobuf-metadata'\nimport {\n schemaRecursiveTarget,\n type RecursiveSchema,\n} from './recursive-metadata'\nimport RenderString from './RenderString.vue'\nimport SchemaPropertyDefault from './SchemaPropertyDefault.vue'\nimport SchemaPropertyDetail from './SchemaPropertyDetail.vue'\nimport SchemaPropertyExamples from './SchemaPropertyExamples.vue'\nimport SchemaPropertyPattern from './SchemaPropertyPattern.vue'\n\nconst props = withDefaults(\n defineProps<{\n value: SchemaObject | undefined\n badges?: XBadge[]\n enum?: boolean\n isDiscriminator?: boolean\n /** Effective AsyncAPI variant value, separate from const/enum constraints. */\n discriminatorValue?: string\n required?: boolean\n additional?: boolean\n withExamples?: boolean\n hideModelNames?: boolean\n /**\n * Config for deciding whether a model name links to the models section. When the section or\n * the referenced model is hidden there is nothing to scroll to, so the name renders as plain text.\n */\n modelLinkOptions?: ModelLinkOptions\n /** When the schema was resolved from a $ref, pass the ref name so it displays as e.g. \"Data\" instead of \"object\". */\n modelName?: string | null\n /** Resolved propertyNames schema, used to surface key constraints like `format` for additional properties. */\n propertyNames?: SchemaObject\n eventBus?: WorkspaceEventBus | null\n /**\n * The row's name is a stand-in for keys the caller chooses\n * (`additionalProperties`) or keys matching a regex (`patternProperties`),\n * not a literal property. The heading says so in the signature line, where\n * the tree already describes shapes, instead of styling the name itself.\n */\n keyKind?: 'additional' | 'pattern'\n /**\n * The name of the schema this row loops back to. A cut cycle is a leaf, so\n * the signature line says why it does not expand; the model link beside it\n * already names the schema the loop returns to.\n */\n recursiveTo?: string\n }>(),\n {\n isDiscriminator: false,\n required: false,\n withExamples: true,\n hideModelNames: false,\n eventBus: null,\n },\n)\nconst { translate } = useLocalization()\n\n// Convert to reactive refs for composables\nconst fieldNumber = computed(\n () => (props.value as ProtobufSchema | undefined)?.[protobufFieldNumber],\n)\n\nconst recursiveTarget = computed(\n () =>\n props.recursiveTo ??\n (props.value as RecursiveSchema | undefined)?.[schemaRecursiveTarget],\n)\n\nconst presence = computed(\n () => (props.value as ProtobufSchema | undefined)?.[protobufPresence],\n)\nconst presenceDescription = computed(() =>\n presence.value === 'explicit'\n ? 'Explicit presence: Protobuf distinguishes an unset field from one set to its default value.'\n : 'Implicit presence: Protobuf does not distinguish an unset field from one set to its default value.',\n)\n\nconst valueRef = toRef(props, 'value')\nconst badgeClass = 'min-w-0 wrap-anywhere whitespace-normal'\n\nconst positionedBadges = computed<\n { before: XBadge[]; after: XBadge[] } | undefined\n>(() => {\n const entries = props.badges\n if (!entries) {\n return undefined\n }\n\n return {\n before: entries.filter((badge) => badge.position === 'before'),\n after: entries.filter((badge) => badge.position !== 'before'),\n }\n})\n\nconst constValue = computed(() => {\n if (!valueRef.value) {\n return undefined\n }\n\n const schema = valueRef.value\n\n // Direct const value\n if (schema.const !== undefined) {\n return schema.const\n }\n\n // Single-item enum acts as const\n if (schema.enum?.length === 1) {\n return schema.enum[0]\n }\n\n // Check items for const values (for arrays)\n if (isArraySchema(schema) && schema.items) {\n const items = resolve.schema(schema.items)\n\n if (isDefined(items.const)) {\n return items.const\n }\n\n if (items.enum?.length === 1) {\n return items.enum[0]\n }\n }\n\n return undefined\n})\n\ntype ValidationProperty = {\n key: string\n value: string | number\n prefix?: string\n code?: boolean\n truncate?: boolean\n}\n\n/**\n * Constraints that live on a leaf (string or number) schema: length, pattern,\n * format and numeric ranges. Extracted so they can be surfaced for a primitive\n * schema as well as for a primitive array's items, which are not rendered on\n * their own. See https://github.com/scalar/scalar/issues/9690\n */\nconst getLeafConstraints = (schema: SchemaObject) => {\n const properties: ValidationProperty[] = []\n\n if (isStringSchema(schema)) {\n if (isDefined(schema.minLength)) {\n properties.push({\n key: 'min-length',\n prefix: `${translate('schema.minLength')}: `,\n value: schema.minLength,\n })\n }\n\n if (isDefined(schema.maxLength)) {\n properties.push({\n key: 'max-length',\n prefix: `${translate('schema.maxLength')}: `,\n value: schema.maxLength,\n })\n }\n\n // pattern is rendered via SchemaPropertyPattern (hover dropdown), skip here\n }\n\n if ((isStringSchema(schema) || isNumberSchema(schema)) && schema.format) {\n properties.push({\n key: 'format',\n value: schema.format,\n truncate: true,\n })\n }\n\n if (isNumberSchema(schema)) {\n if (isDefined(schema.exclusiveMinimum)) {\n properties.push({\n key: 'exclusive-minimum',\n prefix: `${translate('schema.greaterThan')}: `,\n value: schema.exclusiveMinimum,\n })\n }\n\n if (isDefined(schema.minimum)) {\n properties.push({\n key: 'minimum',\n prefix: `${translate('schema.min')}: `,\n value: schema.minimum,\n })\n }\n\n if (isDefined(schema.exclusiveMaximum)) {\n properties.push({\n key: 'exclusive-maximum',\n prefix: `${translate('schema.lessThan')}: `,\n value: schema.exclusiveMaximum,\n })\n }\n\n if (isDefined(schema.maximum)) {\n properties.push({\n key: 'maximum',\n prefix: `${translate('schema.max')}: `,\n value: schema.maximum,\n })\n }\n\n if (isDefined(schema.multipleOf)) {\n properties.push({\n key: 'multiple-of',\n prefix: `${translate('schema.multipleOf')}: `,\n value: schema.multipleOf,\n })\n }\n }\n\n return properties\n}\n\nconst validationProperties = computed(() => {\n if (!valueRef.value) {\n return []\n }\n\n const schema = valueRef.value\n const properties: ValidationProperty[] = []\n\n // Array validation properties\n if (isArraySchema(schema)) {\n if (isDefined(schema.minItems) || isDefined(schema.maxItems)) {\n properties.push({\n key: 'array-range',\n value: `${schema.minItems ?? ''}…${schema.maxItems ?? ''}`,\n })\n }\n\n // Unique items\n if (schema.uniqueItems) {\n properties.push({\n key: 'unique-items',\n value: `${translate('schema.unique')}!`,\n })\n }\n }\n\n properties.push(...getLeafConstraints(schema))\n\n // Primitive array items carry their own constraints (e.g. an array of `uuid`\n // strings) but are not rendered separately, so surface them here.\n if (isArraySchema(schema) && schema.items) {\n properties.push(...getLeafConstraints(resolve.schema(schema.items)))\n }\n\n return properties\n})\n\n/** Link data for navigating to the referenced model in the sidebar. */\nconst modelLink = computed(() => {\n if (!props.value) {\n return null\n }\n\n if (props.hideModelNames) {\n return null\n }\n\n if (props.modelName) {\n return { schemaKey: props.modelName, label: props.modelName }\n }\n\n return getModelNameWithArray(props.value)\n})\n\n/** Whether the model name links to the models section, or renders as plain text. */\nconst modelLinkable = computed(() =>\n isModelLinkable(modelLink.value?.schemaKey, props.modelLinkOptions ?? {}),\n)\n\n/**\n * The type as a run of tokens rather than a single string — identifiers in\n * the code face, English words like `array of` in the sans face, and a muted\n * `|` so `string | null` reads as one type with an alternative.\n *\n * The token run and the screen-reader label are written straight into the\n * template instead of being their own components: the tree mounts one per\n * typed row, and a component instance costs more to create than the span it\n * renders. On a flat object the type cells would be most of the instance\n * count. The linked and the plain copy of the token markup below must stay\n * identical.\n */\nconst signatureTokens = computed(() =>\n getDisplayTypeSignatureTokens(props.value, {\n hideModelNames: props.hideModelNames,\n modelName: modelLink.value?.label,\n }),\n)\n\n/** Check if we should show the type information */\nconst shouldShowType = computed(() => {\n if (!props.value || !('type' in props.value)) {\n return false\n }\n\n // Always show type for arrays, even when items have const values\n if (props.value.type === 'array') {\n return true\n }\n\n // For non-arrays, only show if no const value at the schema level\n return !constValue.value\n})\n\n/**\n * Type and format of the property keys, derived from the propertyNames schema.\n *\n * For a map keyed by UUIDs this renders e.g. \"string · uuid\" so the key\n * constraints are not lost. Returns undefined when there is nothing to show.\n */\nconst propertyNamesDetail = computed(() => {\n const schema = props.propertyNames\n if (!schema) {\n return undefined\n }\n\n const parts = [getSchemaType(schema)]\n if ('format' in schema && typeof schema.format === 'string') {\n parts.push(schema.format)\n }\n\n const detail = parts.filter(Boolean).join(' · ')\n return detail.length > 0 ? detail : undefined\n})\n\nconst exampleValue = computed(() => {\n // Treat only `undefined` as \"not set\" — `null` is a valid example value on a nullable schema.\n if (\n props.value &&\n 'example' in props.value &&\n props.value.example !== undefined\n ) {\n return props.value.example\n }\n\n // An array's own examples take precedence over the fallback from its items.\n if (\n props.value &&\n isArraySchema(props.value) &&\n !props.value.examples?.length\n ) {\n const itemsSchema = resolve.schema(props.value.items)\n if (\n itemsSchema &&\n 'example' in itemsSchema &&\n itemsSchema.example !== undefined\n ) {\n return itemsSchema.example\n }\n }\n\n return undefined\n})\n\n/**\n * Whether the examples chip has anything to render.\n *\n * `SchemaPropertyExamples` already renders nothing without an example, but it\n * still mounts, and mounting is what installs its popup's window-level click\n * and keydown listeners. `withExamples` defaults to true, so without this gate\n * every property row on the page — including a plain `{ type: 'string' }` —\n * pays for a popup it never opens. Mirrors the component's own two branches.\n */\nconst hasExampleContent = computed((): boolean => {\n if (exampleValue.value !== undefined) {\n return true\n }\n\n const examples = props.value?.examples\n\n return (\n !!examples &&\n typeof examples === 'object' &&\n Object.keys(examples).length > 0\n )\n})\n\n/**\n * The regex `pattern` to surface via the hover dropdown. It lives on a string\n * schema, or on the items of a primitive array (which is not rendered on its\n * own, so its constraints are surfaced on the array heading — see\n * https://github.com/scalar/scalar/issues/9690).\n */\nconst patternValue = computed(() => {\n const schema = valueRef.value\n if (!schema) {\n return undefined\n }\n\n if (isStringSchema(schema) && schema.pattern) {\n return schema.pattern\n }\n\n if (isArraySchema(schema) && schema.items) {\n const items = resolve.schema(schema.items)\n if (isStringSchema(items) && items.pattern) {\n return items.pattern\n }\n }\n\n return undefined\n})\n</script>\n<template>\n <div\n class=\"property-heading [&>.property-detail:has(+.property-detail)]:mr-0\">\n <!-- `:has(+.property-detail)`: only a detail FOLLOWED BY another detail\n drops its right margin, because the `·` separator supplies the gap\n there. Not `:not(:last-of-type)`, which matches by element type: the\n collapsed preview and the trailing copy-link are spans as well, so it\n would strip the margin from the final detail and glue \"Addressrequired\"\n together on a collapsed row. -->\n <Badge\n v-for=\"(badge, index) in positionedBadges?.before\"\n :key=\"index\"\n :class=\"badgeClass\"\n :color=\"badge.color\">\n {{ badge.name }}\n </Badge>\n <div\n v-if=\"$slots.name\"\n class=\"property-name\"\n :class=\"{ deprecated: props.value?.deprecated }\">\n <slot name=\"name\" />\n </div>\n <ScalarTooltip\n v-if=\"fieldNumber !== undefined\"\n content=\"Protobuf field number\">\n <span class=\"text-c-3 font-code mr-2 text-xs\">\n <span aria-hidden=\"true\">#{{ fieldNumber }}</span>\n <span class=\"sr-only\">Protobuf field number: {{ fieldNumber }}</span>\n </span>\n </ScalarTooltip>\n <div\n v-if=\"props.isDiscriminator\"\n class=\"property-discriminator\">\n {{ translate('schema.discriminator') }}\n </div>\n <template v-if=\"props.value\">\n <!-- A map key reads `additionalProperty · string`: the keyword leads the\n detail list in the accent colour, like a type word, so the name\n above it can look like every other name. -->\n <SchemaPropertyDetail\n v-if=\"props.keyKind\"\n class=\"property-key-kind\">\n <span class=\"font-code text-c-accent\">{{\n props.keyKind === 'pattern' ? 'patternProperty' : 'additionalProperty'\n }}</span>\n </SchemaPropertyDetail>\n <!-- Type information -->\n <SchemaPropertyDetail\n v-if=\"shouldShowType\"\n truncate>\n <!-- The type is a token run (`array of Planet`) and a $ref link IS the\n type, not an appended `· Account` -->\n <!-- Written across lines on purpose: Vue drops whitespace-only text\n between two elements, so a single-line label would read\n `Type:string`. -->\n <span class=\"screenreader-only\"> {{ translate('schema.type') }}: </span>\n <button\n v-if=\"props.eventBus && modelLink?.schemaKey && modelLinkable\"\n class=\"text-c-2 hover:text-c-1 underline\"\n type=\"button\"\n @click=\"\n props.eventBus.emit('scroll-to:model-by-name', {\n name: modelLink.schemaKey,\n })\n \">\n <span\n v-if=\"signatureTokens.length\"\n class=\"property-type-signature text-c-2 text-(length:--scalar-mini)\">\n <template\n v-for=\"(token, index) in signatureTokens\"\n :key=\"index\">\n {{ index > 0 ? ' ' : ''\n }}<span\n class=\"property-type-token\"\n :class=\"[\n `property-type-token--${token.kind}`,\n token.kind === 'word' ? 'font-sans' : '',\n token.kind === 'ident' || token.kind === 'literal'\n ? 'font-code'\n : '',\n token.kind === 'punctuation' ? 'text-c-2' : '',\n ]\"\n >{{ token.text }}</span\n >\n </template>\n </span>\n </button>\n <span\n v-else-if=\"signatureTokens.length\"\n class=\"property-type-signature text-c-2 text-(length:--scalar-mini)\">\n <template\n v-for=\"(token, index) in signatureTokens\"\n :key=\"index\">\n {{ index > 0 ? ' ' : ''\n }}<span\n class=\"property-type-token\"\n :class=\"[\n `property-type-token--${token.kind}`,\n token.kind === 'word' ? 'font-sans' : '',\n token.kind === 'ident' || token.kind === 'literal'\n ? 'font-code'\n : '',\n token.kind === 'punctuation' ? 'text-c-2' : '',\n ]\"\n >{{ token.text }}</span\n >\n </template>\n </span>\n </SchemaPropertyDetail>\n\n <!-- A cycle reads `array of Satellite · recursive`, a modifier like\n `nullable`; the full sentence rides the tooltip. -->\n <SchemaPropertyDetail\n v-if=\"recursiveTarget\"\n class=\"property-recursive\"\n :title=\"\n translate('schema.recursiveReference', { name: recursiveTarget })\n \">\n {{ translate('schema.recursive') }}\n </SchemaPropertyDetail>\n\n <ScalarTooltip\n v-if=\"presence\"\n :content=\"presenceDescription\">\n <span class=\"text-c-2 mr-2 text-xs\">\n <span aria-hidden=\"true\">optional</span>\n <span class=\"sr-only\"\n >Optional ({{ presence }} presence). {{ presenceDescription }}</span\n >\n </span>\n </ScalarTooltip>\n\n <!-- Key constraints from propertyNames (e.g. \"keys: string · uuid\") -->\n <SchemaPropertyDetail\n v-if=\"propertyNamesDetail\"\n truncate>\n <template #prefix>{{ translate('schema.keys') }}:</template>\n {{ propertyNamesDetail }}\n </SchemaPropertyDetail>\n\n <!-- Dynamic validation properties from composable -->\n <SchemaPropertyDetail\n v-for=\"property in validationProperties\"\n :key=\"property.key\"\n :code=\"property.code\"\n :truncate=\"property.truncate\">\n <span\n v-if=\"property.key === 'format'\"\n class=\"screenreader-only\">\n {{ translate('schema.format') }}:\n </span>\n <template\n v-if=\"property.prefix\"\n #prefix>\n {{ property.prefix }}\n </template>\n {{ property.value }}\n </SchemaPropertyDetail>\n\n <!-- Enum indicator -->\n <SchemaPropertyDetail v-if=\"props.enum\">\n {{ translate('schema.enum') }}\n </SchemaPropertyDetail>\n </template>\n <div\n v-if=\"props.additional\"\n class=\"property-additional\">\n <template v-if=\"props.value?.['x-additionalPropertiesName']\">\n {{ props.value['x-additionalPropertiesName'] }}\n </template>\n <template v-else>{{ translate('schema.additionalProperties') }}</template>\n </div>\n <div\n v-if=\"props.value?.deprecated\"\n class=\"property-deprecated\">\n <Badge>{{ translate('schema.deprecated') }}</Badge>\n </div>\n <Badge\n v-for=\"(badge, index) in positionedBadges?.after\"\n :key=\"index\"\n :class=\"badgeClass\"\n :color=\"badge.color\">\n {{ badge.name }}\n </Badge>\n <span\n v-if=\"discriminatorValue !== undefined\"\n class=\"text-c-2\">\n {{ translate('schema.discriminatorValue') }}:\n <RenderString :value=\"discriminatorValue\" />\n </span>\n <!-- Don't use `isDefined` here, we want to show `const` when the value is `null` -->\n <div\n v-if=\"constValue !== undefined\"\n class=\"property-const\">\n <SchemaPropertyDetail truncate>\n <template #prefix>{{ translate('schema.const') }}: </template>\n <RenderString :value=\"constValue\" />\n </SchemaPropertyDetail>\n </div>\n <template v-else>\n <!-- Shows only when a composition is used (so props.value?.type is undefined) -->\n <SchemaPropertyDetail v-if=\"(props.value as any)?.nullable === true\">\n {{ translate('schema.nullable') }}\n </SchemaPropertyDetail>\n </template>\n <div\n v-if=\"props.value?.writeOnly\"\n class=\"property-write-only\">\n {{ translate('schema.writeOnly') }}\n </div>\n <div\n v-else-if=\"props.value?.readOnly\"\n class=\"property-read-only\">\n {{ translate('schema.readOnly') }}\n </div>\n <div\n v-if=\"props.required\"\n class=\"property-required\">\n {{ translate('schema.required') }}\n </div>\n <!-- Gated here, not only inside the component: each popup instance installs\n window-level click and keydown listeners for its dismissal, so mounting\n one per row costs the page a listener per row it never shows anything\n for. Same reason `SchemaPropertyPattern` below is gated. -->\n <SchemaPropertyDefault\n v-if=\"props.value?.default !== undefined\"\n :value=\"props.value?.default\" />\n <!--\n Pattern is a hover dropdown chip like Examples, not an inline constraint,\n so it sits beside the example. This keeps the real constraints (length,\n nullable, …) together in the dotted list. See #9966.\n -->\n <SchemaPropertyPattern\n v-if=\"patternValue\"\n :pattern=\"patternValue\" />\n <SchemaPropertyExamples\n v-if=\"props.withExamples && hasExampleContent\"\n :example=\"exampleValue\"\n :examples=\"props.value?.examples\" />\n <!-- The collapsed preview rides the end of the heading line -->\n <slot name=\"preview\" />\n <!-- Last so the tab order matches the visual order: the trailing copy-link\n is painted at the row's right edge, after every control to its left -->\n <slot name=\"trailing\" />\n </div>\n</template>\n<style scoped>\n.property-heading {\n display: flex;\n flex-wrap: wrap;\n align-items: baseline;\n row-gap: 9px;\n white-space: nowrap;\n}\n\n.property-heading:has(+ .children),\n.property-heading:has(+ .property-rule) {\n margin-bottom: 9px;\n}\n\n.property-heading > * {\n margin-right: 9px;\n}\n\n.property-heading:last-child {\n margin-right: 0;\n}\n\n.property-name {\n max-width: 100%;\n font-family: var(--scalar-font-code);\n font-weight: var(--scalar-bold);\n font-size: var(--scalar-font-size-4);\n white-space: normal;\n overflow-wrap: break-word;\n}\n\n.property-additional {\n font-family: var(--scalar-font-code);\n}\n\n.property-required,\n.property-optional {\n color: var(--scalar-color-2);\n}\n\n.property-required {\n font-size: var(--scalar-mini);\n color: var(--scalar-color-orange);\n}\n/*\n * Light-mode oranges are too bright on a light page for 13px text (the default\n * #ff5800 is 3.16:1), so blend the theme orange toward the text colour to reach\n * WCAG 1.4.3 (4.5:1) while keeping the hue and letting custom themes flow\n * through. Dark mode already passes (8.37:1) and keeps the plain token.\n */\n.light-mode .property-required {\n color: color-mix(\n in srgb,\n var(--scalar-color-orange),\n var(--scalar-color-1) 32%\n );\n}\n\n.property-read-only {\n font-size: var(--scalar-mini);\n color: var(--scalar-color-blue);\n}\n\n.property-write-only {\n font-size: var(--scalar-mini);\n color: var(--scalar-color-green);\n}\n\n.property-discriminator {\n font-size: var(--scalar-mini);\n color: var(--scalar-color-purple);\n}\n\n.property-detail {\n font-size: var(--scalar-mini);\n color: var(--scalar-color-2);\n display: flex;\n align-items: center;\n\n min-width: 0;\n}\n\n.property-const {\n color: var(--scalar-color-1);\n}\n\n.deprecated {\n text-decoration: line-through;\n}\n</style>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;A,GAyGM6C,IAAa,2C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAnEnB,IAAME,IAAQC,GA4CR,EAAE,iBAAcC,GAAgB,GAGhCC,IAAcC,QACXJ,EAAM,QAAuCK,GACtD,GAEMC,IAAkBF,QAEpBJ,EAAM,eACLA,EAAM,QAAwCO,GACnD,GAEMC,IAAWJ,QACRJ,EAAM,QAAuCS,GACtD,GACMC,IAAsBN,QAC1BI,EAAS,UAAU,aACf,gGACA,oGACN,GAEMG,IAAWC,GAAMZ,GAAO,OAAO,GAG/Ba,IAAmBT,QAEjB;GACN,IAAMU,IAAUd,EAAM;GACtB,IAAKc,GAIL,OAAO;IACL,QAAQA,EAAQ,QAAQ,MAAUC,EAAM,aAAa,QAAQ;IAC7D,OAAOD,EAAQ,QAAQ,MAAUC,EAAM,aAAa,QAAQ;GAC9D;EACF,CAAC,GAEKC,IAAaZ,QAAe;GAChC,IAAI,CAACO,EAAS,OACZ;GAGF,IAAMM,IAASN,EAAS;GAGxB,IAAIM,EAAO,UAAU,KAA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,GAAA,SAD9BvF,EAAA,GAAAI,EAGsCc,IAAA;;IADnC,SAASmE,EAAA;IACT,UAAUvC,EAAM,OAAO;;GAE1BpC,EAAuB0F,EAAA,QAAA,WAAA,CAAA,GAAA,KAAA,GAAA,EAAA;GAGvB1F,EAAwB0F,EAAA,QAAA,YAAA,CAAA,GAAA,KAAA,GAAA,EAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"optimize-value-for-display.d.ts","sourceRoot":"","sources":["../../../src/schema/helpers/optimize-value-for-display.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAKhG,6FAA6F;AAC7F,KAAK,aAAa,GAAG,YAAY,GAAG;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,CAAA;AAwD1D;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,aAAa,GAAG,SAAS,GAAG,aAAa,GAAG,SAAS,CAyHnG"}
1
+ {"version":3,"file":"optimize-value-for-display.d.ts","sourceRoot":"","sources":["../../../src/schema/helpers/optimize-value-for-display.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAKhG,6FAA6F;AAC7F,KAAK,aAAa,GAAG,YAAY,GAAG;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,CAAA;AAwD1D;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,aAAa,GAAG,SAAS,GAAG,aAAa,GAAG,SAAS,CA6HnG"}
@@ -32,19 +32,19 @@ function i(i) {
32
32
  return p && (e.nullable = !0), e;
33
33
  }
34
34
  if ((a === "oneOf" || a === "anyOf") && (u || d.some((e) => e.allOf))) {
35
- let { discriminator: e, ...t } = l, o = d.map((e) => {
36
- let i = n.schema(e);
37
- if (i.allOf?.length === 1) {
38
- let { allOf: e, ...a } = i, o = n.schema(e[0]);
39
- if ("properties" in a || "required" in a || "$ref" in a) {
40
- let { $ref: e, title: n, name: i, ...s } = o;
41
- return r(t, a, s);
35
+ let { discriminator: e, "x-badges": t, ...o } = l, s = d.map((e) => {
36
+ let t = n.schema(e);
37
+ if (t.allOf?.length === 1) {
38
+ let { allOf: e, ...i } = t, a = n.schema(e[0]);
39
+ if ("properties" in i || "required" in i || "$ref" in i) {
40
+ let { $ref: e, title: t, name: n, ...s } = a;
41
+ return r(o, i, s);
42
42
  }
43
- return r(t, a, o);
43
+ return r(o, i, a);
44
44
  }
45
- return r(t, i);
46
- }), s = { [a]: o };
47
- return typeof i.description == "string" && (s.description = i.description), p && (s.nullable = !0), s;
45
+ return r(o, t);
46
+ }), c = { [a]: s };
47
+ return t !== void 0 && (c["x-badges"] = t), typeof i.description == "string" && (c.description = i.description), p && (c.nullable = !0), c;
48
48
  }
49
49
  if (d.length !== o.length) {
50
50
  let e = {
@@ -1 +1 @@
1
- {"version":3,"file":"optimize-value-for-display.js","names":["mergeSchemaProperties","objects","merged","properties","required","hasProperties","hasRequired","object","key","val","name","optimizeValueForDisplay","value","schemaDiscriminator","composition","compositions","keyword","schemas","_","originalNullable","rootProperties","hasRootProperties","schema","resolve","_schema","acc","shouldBeNullable","hasNullSchema","filteredSchemas","mergedSchema","_discriminator","variantRootProperties","mergedSchemas","otherProps","allOfMember","allOf","_ref","_title","_name","allOfMemberWithoutIdentity","result"],"sources":["../../../src/schema/helpers/optimize-value-for-display.ts"],"sourcesContent":["import { resolve } from '@scalar/workspace-store/resolve'\nimport type { SchemaObject } from '@scalar/workspace-store/schemas/v3.2/strict/openapi-document'\n\nimport { type DiscriminatorSchema, schemaDiscriminator } from '../discriminator-metadata'\nimport { compositions } from './schema-composition'\n\n/** Display normalization tracks null branches without changing the stored OpenAPI schema. */\ntype DisplaySchema = SchemaObject & { nullable?: boolean }\n\n/**\n * Shallow-merges schema-like objects, but unions `properties` and `required`\n * instead of letting a later object's `properties`/`required` completely\n * overwrite an earlier one's. Without this, a variant schema (e.g. a `oneOf`\n * branch) that declares its own `properties`/`required` would wipe out the\n * shared base fields factored out at the root (or via a sibling `allOf`)\n * instead of being combined with them (#9657).\n */\nfunction mergeSchemaProperties(...objects: (Record<string, unknown> | undefined)[]): Record<string, unknown> {\n const merged: Record<PropertyKey, unknown> = {}\n const properties: Record<string, unknown> = {}\n const required = new Set<string>()\n let hasProperties = false\n let hasRequired = false\n\n for (const object of objects) {\n if (!object) {\n continue\n }\n\n // Renderer-only symbols must survive flattening nullable and single-branch compositions.\n for (const key of Object.getOwnPropertySymbols(object)) {\n merged[key] = (object as Record<PropertyKey, unknown>)[key]\n }\n\n for (const [key, val] of Object.entries(object)) {\n if (key === 'properties' && val && typeof val === 'object') {\n Object.assign(properties, val)\n hasProperties = true\n continue\n }\n\n if (key === 'required' && Array.isArray(val)) {\n for (const name of val) {\n required.add(name)\n }\n hasRequired = true\n continue\n }\n\n merged[key] = val\n }\n }\n\n if (hasProperties) {\n merged.properties = properties\n }\n if (hasRequired) {\n merged.required = [...required]\n }\n\n return merged\n}\n\n/**\n * Normalize compositions for display without changing the source schema. Null branches\n * become nullable state, single branches are flattened, and shared properties and\n * required fields are merged into variants so the renderer keeps their full context.\n */\nexport function optimizeValueForDisplay(value: DisplaySchema | undefined): DisplaySchema | undefined {\n if (!value || typeof value !== 'object') {\n return value\n }\n\n // Inferred AsyncAPI variants already carry complete concrete schemas. Flattening\n // them would lose reference identities and merge the base identity into descendants.\n if ((value as DiscriminatorSchema)[schemaDiscriminator]?.inheritedVariants) {\n return value\n }\n\n // Find the composition keyword early to avoid unnecessary work\n const composition = compositions.find((keyword) => keyword in value && keyword !== 'not')\n\n // If there's no relevant composition keyword, return a shallow copy\n if (!composition) {\n return { ...value }\n }\n\n const schemas = value[composition]\n if (!Array.isArray(schemas)) {\n return { ...value }\n }\n\n // Extract root properties efficiently (excluding composition and nullable)\n const { [composition]: _, nullable: originalNullable, ...rootProperties } = value\n const hasRootProperties = Object.keys(rootProperties).length > 0\n\n // Check for null schemas and filter them out in one pass\n const { filteredSchemas, hasNullSchema } = schemas.reduce<{\n filteredSchemas: SchemaObject[]\n hasNullSchema: boolean\n }>(\n (acc, _schema) => {\n const schema = resolve.schema(_schema)\n\n if ('type' in schema && schema.type === 'null') {\n acc.hasNullSchema = true\n } else {\n acc.filteredSchemas.push(schema)\n }\n return acc\n },\n { filteredSchemas: [], hasNullSchema: false },\n )\n\n // Determine if nullable should be set\n const shouldBeNullable = hasNullSchema || originalNullable === true\n\n // If only one schema remains after filtering, merge with root properties.\n // `properties`/`required` are unioned so sibling properties declared next to\n // the composition (e.g. `properties` alongside a single-`$ref` `allOf`) are\n // kept instead of being overwritten by the member schema's own `properties`.\n // Root-level annotations (title, description, …) win over the member's: they\n // describe the combined schema, not the base it extends.\n if (filteredSchemas.length === 1) {\n const mergedSchema = mergeSchemaProperties(filteredSchemas[0], rootProperties) as DisplaySchema\n if (shouldBeNullable) {\n mergedSchema.nullable = true\n }\n return mergedSchema\n }\n\n // Check if root properties should be merged into schemas\n const shouldMergeRootProperties =\n (composition === 'oneOf' || composition === 'anyOf') &&\n (hasRootProperties || filteredSchemas.some((schema) => schema.allOf))\n\n if (shouldMergeRootProperties) {\n // The discriminator belongs to the union, not to its variants. Copied into a variant, it\n // makes the variant look like a bare `discriminator.mapping` base, which then infers a\n // second selector inside the variant.\n const { discriminator: _discriminator, ...variantRootProperties } = rootProperties\n\n const mergedSchemas = filteredSchemas.map((_schema) => {\n const schema = resolve.schema(_schema)\n\n // Flatten single-item allOf and merge with root properties. If the\n // variant has its own properties/required/$ref, the allOf member's own\n // identity (`$ref`, `title`, `name`) is dropped before merging so it\n // cannot overwrite the variant's, which would otherwise mislabel the\n // flattened schema as the base it extends instead of the variant itself\n // (#9964). `getModelNameFromSchema` labels a variant by title → name →\n // $ref, so any of those leaking from the base is enough to mislabel it.\n // A variant that is a bare wrapper around the allOf member has no\n // identity of its own to protect, so the base's identity is kept as a\n // fallback label.\n if (schema.allOf?.length === 1) {\n const { allOf, ...otherProps } = schema\n const allOfMember = resolve.schema(allOf[0])!\n const variantHasOwnIdentity = 'properties' in otherProps || 'required' in otherProps || '$ref' in otherProps\n if (variantHasOwnIdentity) {\n const { $ref: _ref, title: _title, name: _name, ...allOfMemberWithoutIdentity } = allOfMember\n return mergeSchemaProperties(variantRootProperties, otherProps, allOfMemberWithoutIdentity)\n }\n return mergeSchemaProperties(variantRootProperties, otherProps, allOfMember)\n }\n return mergeSchemaProperties(variantRootProperties, schema)\n })\n\n // @ts-expect-error - We avoid using coerceValue here as it may be dangerous, so we type cast\n const result = { [composition]: mergedSchemas } as DisplaySchema\n if (typeof value.description === 'string') {\n result.description = value.description\n }\n if (shouldBeNullable) {\n result.nullable = true\n }\n return result\n }\n\n // Return with filtered schemas if any nulls were removed\n if (filteredSchemas.length !== schemas.length) {\n const result: DisplaySchema = { ...value, [composition]: filteredSchemas }\n if (shouldBeNullable) {\n result.nullable = true\n }\n return result\n }\n\n return { ...value }\n}\n"],"mappings":";;;;AAiBA,SAASA,EAAsB,GAAGC,GAA2E;CAC3G,IAAMC,IAAuC,CAAC,GACxCC,IAAsC,CAAC,GACvCC,oBAAW,IAAI,IAAY,GAC7BC,IAAgB,IAChBC,IAAc;CAElB,KAAK,IAAMC,KAAUN,GACnB,IAAKM,GAKL;OAAK,IAAMC,KAAO,OAAO,sBAAsBD,CAAM,GACnD,EAAOC,KAAQD,EAAwCC;EAGzD,KAAK,IAAM,CAACA,GAAKC,MAAQ,OAAO,QAAQF,CAAM,GAC5C,IAAIC,MAAQ,gBAAgBC,KAAO,OAAOA,KAAQ,UAEhD,AADA,OAAO,OAAON,GAAYM,CAAG,GAC7B,IAAgB;OAIlB,IAAID,MAAQ,cAAc,MAAM,QAAQC,CAAG,GAAG;GAC5C,KAAK,IAAMC,KAAQD,GACjB,EAAS,IAAIC,CAAI;GAEnB,IAAc;EAEhB,OAEA,EAAOF,KAAOC;CAlByC;CA6B3D,OAPIJ,MACF,EAAO,aAAaF,IAElBG,MACF,EAAO,WAAW,CAAC,GAA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gBAAgBF,KAAc,cAAcA,KAAc,UAAUA,GACvE;KACzB,IAAM,EAAE,MAAMG,GAAM,OAAOC,GAAQ,MAAMC,GAAO,GAAGC,MAA+BL;KAClF,OAAOlC,EAAsB+B,GAAuBE,GAAYM,CAA0B;IAC5F;IACA,OAAOvC,EAAsB+B,GAAuBE,GAAYC,CAAW;GAC7E;GACA,OAAOlC,EAAsB+B,GAAuBT,CAAM;EAC5D,CAAC,GAGKkB,IAAS,GAAG1B,IAAckB,EAAc;EAO9C,OANI,OAAOpB,EAAM,eAAgB,aAC/B,EAAO,cAAcA,EAAM,cAEzBc,MACF,EAAO,WAAW,KAEbc;CACT;CAGA,IAAIZ,EAAgB,WAAWX,EAAQ,QAAQ;EAC7C,IAAMuB,IAAwB;GAAE,GAAG5B;IAAQE,IAAcc;EAAgB;EAIzE,OAHIF,MACF,EAAO,WAAW,KAEbc;CACT;CAEA,OAAO,EAAE,GAAG5B,EAAM;AACpB"}
1
+ {"version":3,"file":"optimize-value-for-display.js","names":["mergeSchemaProperties","objects","merged","properties","required","hasProperties","hasRequired","object","key","val","name","optimizeValueForDisplay","value","schemaDiscriminator","composition","compositions","keyword","schemas","_","originalNullable","rootProperties","hasRootProperties","schema","resolve","_schema","acc","shouldBeNullable","hasNullSchema","filteredSchemas","mergedSchema","_discriminator","badges","variantRootProperties","mergedSchemas","otherProps","allOfMember","allOf","_ref","_title","_name","allOfMemberWithoutIdentity","result"],"sources":["../../../src/schema/helpers/optimize-value-for-display.ts"],"sourcesContent":["import { resolve } from '@scalar/workspace-store/resolve'\nimport type { SchemaObject } from '@scalar/workspace-store/schemas/v3.2/strict/openapi-document'\n\nimport { type DiscriminatorSchema, schemaDiscriminator } from '../discriminator-metadata'\nimport { compositions } from './schema-composition'\n\n/** Display normalization tracks null branches without changing the stored OpenAPI schema. */\ntype DisplaySchema = SchemaObject & { nullable?: boolean }\n\n/**\n * Shallow-merges schema-like objects, but unions `properties` and `required`\n * instead of letting a later object's `properties`/`required` completely\n * overwrite an earlier one's. Without this, a variant schema (e.g. a `oneOf`\n * branch) that declares its own `properties`/`required` would wipe out the\n * shared base fields factored out at the root (or via a sibling `allOf`)\n * instead of being combined with them (#9657).\n */\nfunction mergeSchemaProperties(...objects: (Record<string, unknown> | undefined)[]): Record<string, unknown> {\n const merged: Record<PropertyKey, unknown> = {}\n const properties: Record<string, unknown> = {}\n const required = new Set<string>()\n let hasProperties = false\n let hasRequired = false\n\n for (const object of objects) {\n if (!object) {\n continue\n }\n\n // Renderer-only symbols must survive flattening nullable and single-branch compositions.\n for (const key of Object.getOwnPropertySymbols(object)) {\n merged[key] = (object as Record<PropertyKey, unknown>)[key]\n }\n\n for (const [key, val] of Object.entries(object)) {\n if (key === 'properties' && val && typeof val === 'object') {\n Object.assign(properties, val)\n hasProperties = true\n continue\n }\n\n if (key === 'required' && Array.isArray(val)) {\n for (const name of val) {\n required.add(name)\n }\n hasRequired = true\n continue\n }\n\n merged[key] = val\n }\n }\n\n if (hasProperties) {\n merged.properties = properties\n }\n if (hasRequired) {\n merged.required = [...required]\n }\n\n return merged\n}\n\n/**\n * Normalize compositions for display without changing the source schema. Null branches\n * become nullable state, single branches are flattened, and shared properties and\n * required fields are merged into variants so the renderer keeps their full context.\n */\nexport function optimizeValueForDisplay(value: DisplaySchema | undefined): DisplaySchema | undefined {\n if (!value || typeof value !== 'object') {\n return value\n }\n\n // Inferred AsyncAPI variants already carry complete concrete schemas. Flattening\n // them would lose reference identities and merge the base identity into descendants.\n if ((value as DiscriminatorSchema)[schemaDiscriminator]?.inheritedVariants) {\n return value\n }\n\n // Find the composition keyword early to avoid unnecessary work\n const composition = compositions.find((keyword) => keyword in value && keyword !== 'not')\n\n // If there's no relevant composition keyword, return a shallow copy\n if (!composition) {\n return { ...value }\n }\n\n const schemas = value[composition]\n if (!Array.isArray(schemas)) {\n return { ...value }\n }\n\n // Extract root properties efficiently (excluding composition and nullable)\n const { [composition]: _, nullable: originalNullable, ...rootProperties } = value\n const hasRootProperties = Object.keys(rootProperties).length > 0\n\n // Check for null schemas and filter them out in one pass\n const { filteredSchemas, hasNullSchema } = schemas.reduce<{\n filteredSchemas: SchemaObject[]\n hasNullSchema: boolean\n }>(\n (acc, _schema) => {\n const schema = resolve.schema(_schema)\n\n if ('type' in schema && schema.type === 'null') {\n acc.hasNullSchema = true\n } else {\n acc.filteredSchemas.push(schema)\n }\n return acc\n },\n { filteredSchemas: [], hasNullSchema: false },\n )\n\n // Determine if nullable should be set\n const shouldBeNullable = hasNullSchema || originalNullable === true\n\n // If only one schema remains after filtering, merge with root properties.\n // `properties`/`required` are unioned so sibling properties declared next to\n // the composition (e.g. `properties` alongside a single-`$ref` `allOf`) are\n // kept instead of being overwritten by the member schema's own `properties`.\n // Root-level annotations (title, description, …) win over the member's: they\n // describe the combined schema, not the base it extends.\n if (filteredSchemas.length === 1) {\n const mergedSchema = mergeSchemaProperties(filteredSchemas[0], rootProperties) as DisplaySchema\n if (shouldBeNullable) {\n mergedSchema.nullable = true\n }\n return mergedSchema\n }\n\n // Check if root properties should be merged into schemas\n const shouldMergeRootProperties =\n (composition === 'oneOf' || composition === 'anyOf') &&\n (hasRootProperties || filteredSchemas.some((schema) => schema.allOf))\n\n if (shouldMergeRootProperties) {\n // The discriminator belongs to the union, not to its variants. Copied into a variant, it\n // makes the variant look like a bare `discriminator.mapping` base, which then infers a\n // second selector inside the variant.\n // The property's badges also belong to the union, while variants can define their own.\n const { discriminator: _discriminator, 'x-badges': badges, ...variantRootProperties } = rootProperties\n\n const mergedSchemas = filteredSchemas.map((_schema) => {\n const schema = resolve.schema(_schema)\n\n // Flatten single-item allOf and merge with root properties. If the\n // variant has its own properties/required/$ref, the allOf member's own\n // identity (`$ref`, `title`, `name`) is dropped before merging so it\n // cannot overwrite the variant's, which would otherwise mislabel the\n // flattened schema as the base it extends instead of the variant itself\n // (#9964). `getModelNameFromSchema` labels a variant by title → name →\n // $ref, so any of those leaking from the base is enough to mislabel it.\n // A variant that is a bare wrapper around the allOf member has no\n // identity of its own to protect, so the base's identity is kept as a\n // fallback label.\n if (schema.allOf?.length === 1) {\n const { allOf, ...otherProps } = schema\n const allOfMember = resolve.schema(allOf[0])!\n const variantHasOwnIdentity = 'properties' in otherProps || 'required' in otherProps || '$ref' in otherProps\n if (variantHasOwnIdentity) {\n const { $ref: _ref, title: _title, name: _name, ...allOfMemberWithoutIdentity } = allOfMember\n return mergeSchemaProperties(variantRootProperties, otherProps, allOfMemberWithoutIdentity)\n }\n return mergeSchemaProperties(variantRootProperties, otherProps, allOfMember)\n }\n return mergeSchemaProperties(variantRootProperties, schema)\n })\n\n // @ts-expect-error - We avoid using coerceValue here as it may be dangerous, so we type cast\n const result = { [composition]: mergedSchemas } as DisplaySchema\n if (badges !== undefined) {\n result['x-badges'] = badges\n }\n if (typeof value.description === 'string') {\n result.description = value.description\n }\n if (shouldBeNullable) {\n result.nullable = true\n }\n return result\n }\n\n // Return with filtered schemas if any nulls were removed\n if (filteredSchemas.length !== schemas.length) {\n const result: DisplaySchema = { ...value, [composition]: filteredSchemas }\n if (shouldBeNullable) {\n result.nullable = true\n }\n return result\n }\n\n return { ...value }\n}\n"],"mappings":";;;;AAiBA,SAASA,EAAsB,GAAGC,GAA2E;CAC3G,IAAMC,IAAuC,CAAC,GACxCC,IAAsC,CAAC,GACvCC,oBAAW,IAAI,IAAY,GAC7BC,IAAgB,IAChBC,IAAc;CAElB,KAAK,IAAMC,KAAUN,GACnB,IAAKM,GAKL;OAAK,IAAMC,KAAO,OAAO,sBAAsBD,CAAM,GACnD,EAAOC,KAAQD,EAAwCC;EAGzD,KAAK,IAAM,CAACA,GAAKC,MAAQ,OAAO,QAAQF,CAAM,GAC5C,IAAIC,MAAQ,gBAAgBC,KAAO,OAAOA,KAAQ,UAEhD,AADA,OAAO,OAAON,GAAYM,CAAG,GAC7B,IAAgB;OAIlB,IAAID,MAAQ,cAAc,MAAM,QAAQC,CAAG,GAAG;GAC5C,KAAK,IAAMC,KAAQD,GACjB,EAAS,IAAIC,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;GAYrC,IAAIF,EAAO,OAAO,WAAW,GAAG;IAC9B,IAAM,EAAE,UAAO,GAAGY,MAAeZ,GAC3Ba,IAAcZ,EAAQ,OAAOa,EAAM,EAAE;IAE3C,IAD8B,gBAAgBF,KAAc,cAAcA,KAAc,UAAUA,GACvE;KACzB,IAAM,EAAE,MAAMG,GAAM,OAAOC,GAAQ,MAAMC,GAAO,GAAGC,MAA+BL;KAClF,OAAOnC,EAAsBgC,GAAuBE,GAAYM,CAA0B;IAC5F;IACA,OAAOxC,EAAsBgC,GAAuBE,GAAYC,CAAW;GAC7E;GACA,OAAOnC,EAAsBgC,GAAuBV,CAAM;EAC5D,CAAC,GAGKmB,IAAS,GAAG3B,IAAcmB,EAAc;EAU9C,OATIF,MAAW,KAAA,MACb,EAAO,cAAcA,IAEnB,OAAOnB,EAAM,eAAgB,aAC/B,EAAO,cAAcA,EAAM,cAEzBc,MACF,EAAO,WAAW,KAEbe;CACT;CAGA,IAAIb,EAAgB,WAAWX,EAAQ,QAAQ;EAC7C,IAAMwB,IAAwB;GAAE,GAAG7B;IAAQE,IAAcc;EAAgB;EAIzE,OAHIF,MACF,EAAO,WAAW,KAEbe;CACT;CAEA,OAAO,EAAE,GAAG7B,EAAM;AACpB"}
package/dist/style.css CHANGED
@@ -106,9 +106,9 @@
106
106
  --scalar-radius-2xl: min(calc(var(--scalar-radius) * 4), var(--scalar-radius-max));
107
107
  --scalar-radius-3xl: min(calc(var(--scalar-radius) * 16 / 3), var(--scalar-radius-max));
108
108
  --scalar-radius-full: calc(var(--scalar-radius) * 9999);
109
- --scalar-font: "Inter", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
110
- "Noto Color Emoji";
111
- --scalar-font-code: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
109
+ --scalar-font: -apple-system-body, ui-sans-serif, -apple-system, system-ui, "Segoe UI", "Helvetica", "Apple Color Emoji", "Arial",
110
+ sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
111
+ --scalar-font-code: ui-monospace, "SFMono-Regular", "SF Mono", menlo, consolas, "Liberation Mono", monospace;
112
112
  --scalar-heading-1: 24px;
113
113
  --scalar-page-description: 16px;
114
114
  --scalar-heading-2: 20px;
@@ -146,7 +146,6 @@
146
146
  }
147
147
 
148
148
  .dark-mode {
149
- color-scheme: dark;
150
149
  --scalar-scrollbar-color: #ffffff2e;
151
150
  --scalar-scrollbar-color-active: #ffffff5c;
152
151
  --scalar-button-1: #fff;
@@ -161,7 +160,6 @@
161
160
  }
162
161
 
163
162
  .light-mode {
164
- color-scheme: light;
165
163
  --scalar-scrollbar-color-active: #0000005c;
166
164
  --scalar-scrollbar-color: #0000002e;
167
165
  --scalar-button-1: #000;
@@ -175,8 +173,24 @@
175
173
  --scalar-text-decoration-color-hover: currentColor;
176
174
  }
177
175
 
178
- .light-mode .dark-mode {
179
- color-scheme: dark !important;
176
+ .dark-mode .scalar-app {
177
+ color-scheme: dark;
178
+ }
179
+
180
+ .light-mode .scalar-app {
181
+ color-scheme: light;
182
+ }
183
+
184
+ .scalar-app .scalar-app {
185
+ color-scheme: inherit;
186
+ }
187
+
188
+ .scalar-app.dark-mode, .scalar-app .dark-mode {
189
+ color-scheme: dark;
190
+ }
191
+
192
+ .scalar-app.light-mode, .scalar-app .light-mode {
193
+ color-scheme: light;
180
194
  }
181
195
 
182
196
  @media (max-width: 460px) {
@@ -758,9 +772,9 @@
758
772
  0 0 0 var(--scalar-border-width) var(--scalar-border-color);
759
773
  }
760
774
 
761
- @supports (color: oklch(from white l c h)) {
775
+ @supports (color: oklab(from white l a b)) {
762
776
  .scalar-card {
763
- --scalar-card-surface: oklch(from var(--scalar-background-2) calc(l + .055) c h);
777
+ --scalar-card-surface: oklab(from var(--scalar-background-2) calc(l + .055) a b);
764
778
  --scalar-card-surface-raised: var(--scalar-card-surface);
765
779
  }
766
780
 
@@ -1648,22 +1662,17 @@
1648
1662
  display: none;
1649
1663
  }
1650
1664
 
1651
- .scalar-modal-layout[data-v-b002945c] {
1652
- animation: .3s ease-in-out forwards fadein-layout-b002945c;
1665
+ .scalar-modal[data-v-09866bb7]::backdrop {
1666
+ animation: .3s ease-in-out forwards fadein-layout-09866bb7;
1653
1667
  }
1654
1668
 
1655
- .scalar-modal[data-v-b002945c] {
1669
+ .scalar-modal[data-v-09866bb7] {
1656
1670
  box-shadow: var(--scalar-shadow-2);
1657
- animation: .3s ease-in-out .1s forwards fadein-modal-b002945c;
1671
+ animation: .3s ease-in-out .1s forwards fadein-modal-09866bb7;
1658
1672
  transform: translate3d(0, 10px, 0);
1659
1673
  }
1660
1674
 
1661
- .scalar-modal-layout-full[data-v-b002945c] {
1662
- opacity: 1 !important;
1663
- background: none !important;
1664
- }
1665
-
1666
- .modal-content-search .modal-body[data-v-b002945c] {
1675
+ .modal-content-search .modal-body[data-v-09866bb7] {
1667
1676
  flex-direction: column;
1668
1677
  max-height: 440px;
1669
1678
  padding: 0;
@@ -1672,13 +1681,13 @@
1672
1681
  }
1673
1682
 
1674
1683
  @media (max-width: 720px) and (max-height: 480px) {
1675
- .scalar-modal-layout .scalar-modal[data-v-b002945c] {
1684
+ .scalar-modal[data-v-09866bb7]:not(.full-size-styles) {
1676
1685
  max-height: 90svh;
1677
1686
  margin-top: 5svh;
1678
1687
  }
1679
1688
  }
1680
1689
 
1681
- @keyframes fadein-layout-b002945c {
1690
+ @keyframes fadein-layout-09866bb7 {
1682
1691
  0% {
1683
1692
  opacity: 0;
1684
1693
  }
@@ -1688,7 +1697,7 @@
1688
1697
  }
1689
1698
  }
1690
1699
 
1691
- @keyframes fadein-modal-b002945c {
1700
+ @keyframes fadein-modal-09866bb7 {
1692
1701
  0% {
1693
1702
  opacity: 0;
1694
1703
  transform: translate3d(0, 10px, 0);
@@ -1700,10 +1709,10 @@
1700
1709
  }
1701
1710
  }
1702
1711
 
1703
- .full-size-styles[data-v-b002945c] {
1712
+ .full-size-styles[data-v-09866bb7] {
1704
1713
  margin: initial;
1705
1714
  border-right: var(--scalar-border-width) solid var(--scalar-border-color);
1706
- animation: .3s ease-in-out forwards fadein-layout-b002945c;
1715
+ animation: .3s ease-in-out forwards fadein-layout-09866bb7;
1707
1716
  left: 0;
1708
1717
  transform: translate3d(0, 0, 0);
1709
1718
  background-color: var(--scalar-background-1) !important;
@@ -1715,12 +1724,12 @@
1715
1724
  }
1716
1725
 
1717
1726
  @media (min-width: 800px) {
1718
- .full-size-styles[data-v-b002945c] {
1727
+ .full-size-styles[data-v-09866bb7] {
1719
1728
  width: 50dvw !important;
1720
1729
  }
1721
1730
  }
1722
1731
 
1723
- .full-size-styles[data-v-b002945c]:after {
1732
+ .full-size-styles[data-v-09866bb7]:after {
1724
1733
  content: "";
1725
1734
  width: 50dvw;
1726
1735
  height: 100dvh;
@@ -2256,10 +2265,6 @@
2256
2265
  z-index: 1001;
2257
2266
  }
2258
2267
 
2259
- .scalar-app .z-overlay {
2260
- z-index: 10000;
2261
- }
2262
-
2263
2268
  .scalar-app .z-tooltip {
2264
2269
  z-index: 99999;
2265
2270
  }
@@ -2941,6 +2946,10 @@
2941
2946
  max-width: 448px;
2942
2947
  }
2943
2948
 
2949
+ .scalar-app .max-w-none {
2950
+ max-width: none;
2951
+ }
2952
+
2944
2953
  .scalar-app .max-w-screen-padded-4 {
2945
2954
  max-width: calc(100vw - 32px);
2946
2955
  }
@@ -3472,10 +3481,6 @@
3472
3481
  background-color: var(--scalar-tooltip-background);
3473
3482
  }
3474
3483
 
3475
- .scalar-app .bg-backdrop {
3476
- background-color: #00000038;
3477
- }
3478
-
3479
3484
  .scalar-app .bg-border {
3480
3485
  background-color: var(--scalar-border-color);
3481
3486
  }
@@ -3968,10 +3973,22 @@
3968
3973
  text-wrap: nowrap;
3969
3974
  }
3970
3975
 
3971
- .scalar-app .break-words, .scalar-app .wrap-break-word {
3976
+ .scalar-app .break-words {
3977
+ overflow-wrap: break-word;
3978
+ }
3979
+
3980
+ .scalar-app .wrap-anywhere {
3981
+ overflow-wrap: anywhere;
3982
+ }
3983
+
3984
+ .scalar-app .wrap-break-word {
3972
3985
  overflow-wrap: break-word;
3973
3986
  }
3974
3987
 
3988
+ .scalar-app .whitespace-normal {
3989
+ white-space: normal;
3990
+ }
3991
+
3975
3992
  .scalar-app .whitespace-nowrap {
3976
3993
  white-space: nowrap;
3977
3994
  }
@@ -4397,6 +4414,10 @@
4397
4414
  padding-inline: 4px;
4398
4415
  }
4399
4416
 
4417
+ .scalar-app .not-open\:hidden:not(:is([open], :popover-open, :open)) {
4418
+ display: none;
4419
+ }
4420
+
4400
4421
  :is(:where(.group):last-child :is(.scalar-app .group-last\:mr-0)) {
4401
4422
  margin-right: 0;
4402
4423
  }
@@ -4481,6 +4502,10 @@
4481
4502
  background-color: #00000038;
4482
4503
  }
4483
4504
 
4505
+ .scalar-app .backdrop\:bg-transparent::backdrop {
4506
+ background-color: #0000;
4507
+ }
4508
+
4484
4509
  .scalar-app .before\:hidden\!:before {
4485
4510
  content: var(--tw-content);
4486
4511
  display: none !important;
@@ -4709,10 +4734,6 @@
4709
4734
  background-color: var(--scalar-background-3);
4710
4735
  }
4711
4736
 
4712
- .scalar-app .dark\:bg-backdrop-dark:where(.dark-mode, .dark-mode *) {
4713
- background-color: #00000073;
4714
- }
4715
-
4716
4737
  .scalar-app .dark\:bg-linear-to-t:where(.dark-mode, .dark-mode *) {
4717
4738
  --tw-gradient-position: to top;
4718
4739
  }
@@ -4743,6 +4764,10 @@
4743
4764
  background-color: #00000073;
4744
4765
  }
4745
4766
 
4767
+ .scalar-app .dark\:backdrop\:bg-transparent:where(.dark-mode, .dark-mode *)::backdrop {
4768
+ background-color: #0000;
4769
+ }
4770
+
4746
4771
  @media (hover: hover) {
4747
4772
  .scalar-app .dark\:hover\:bg-b-2:where(.dark-mode, .dark-mode *):hover {
4748
4773
  background-color: var(--scalar-background-2);
@@ -5251,5 +5276,5 @@
5251
5276
  opacity: .5;
5252
5277
  }
5253
5278
  }
5254
- .request-card[data-v-aaf1efda],.request-card[data-v-f11de264]{color:var(--scalar-color-1);font-size:var(--scalar-font-size-3)}.request-method[data-v-f11de264]{font-family:var(--scalar-font-code);margin-right:6px}.request-card-footer[data-v-f11de264]{flex-shrink:0;justify-content:flex-end;padding:6px;display:flex;position:relative}.request-card-footer--wraps[data-v-f11de264]{flex-wrap:wrap;row-gap:4px}.request-card-footer-start[data-v-f11de264]{flex:1 0 auto;align-items:center;display:flex}.request-card-footer-addon[data-v-f11de264]{flex:7em;align-items:center;min-width:0;max-width:max-content;margin-inline-end:auto;display:flex}.request-editor-section[data-v-f11de264]{flex:1;display:flex}.code-snippet>.scalar-code-copy[data-v-f11de264]{background:var(--scalar-card-surface-raised,var(--scalar-background-2))}.request-card-simple[data-v-f11de264]{font-size:var(--scalar-small);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;padding:8px 8px 8px 12px;display:flex}.request-header[data-v-f11de264]{overflow-wrap:anywhere;flex:999 auto;min-width:0}.request-card-actions[data-v-f11de264]{flex:1 0 auto}.code-snippet[data-v-f11de264]{flex-direction:column;width:100%;display:flex}.property-rule[data-v-e22666da] .composition-panel>.schema-card>.schema-properties>ul>li.property.property--tree-container{padding-top:0!important}.property-heading:empty+.property-description[data-v-1b21ab2e]:last-of-type,.property-description[data-v-1b21ab2e]:first-of-type:last-of-type{margin-top:0}.property-list[data-v-1b21ab2e]{border:var(--scalar-border-width) solid var(--scalar-border-color);border-radius:var(--scalar-radius);margin-top:10px}.property-list .property[data-v-1b21ab2e]:last-of-type{padding-bottom:10px}.enum-toggle-button[data-v-1b21ab2e]:hover{color:var(--scalar-color-1)}.badge.text-orange[data-v-7a577ad4]{background:color-mix(in srgb, var(--scalar-color-orange), transparent 90%);border:#0000}.badge.text-yellow[data-v-7a577ad4]{background:color-mix(in srgb, var(--scalar-color-yellow), transparent 90%);border:#0000}.badge.text-red[data-v-7a577ad4]{background:color-mix(in srgb, var(--scalar-color-red), transparent 90%);border:#0000}.badge.text-purple[data-v-7a577ad4]{background:color-mix(in srgb, var(--scalar-color-purple), transparent 90%);border:#0000}.badge.text-green[data-v-7a577ad4]{background:color-mix(in srgb, var(--scalar-color-green), transparent 90%);border:#0000}.property-default[data-v-46973243]{font-size:var(--scalar-mini);flex-direction:column;display:flex;position:relative}.property-default[data-v-46973243]:hover:before{content:"";border-radius:var(--scalar-radius);width:100%;height:20px;position:absolute;top:0;left:0}.property-default:hover .property-default-label span[data-v-46973243]{color:var(--scalar-color-1)}.property-default-label span[data-v-46973243]{color:var(--scalar-color-2);border-bottom:var(--scalar-border-width) dotted currentColor;position:relative}.property-default-value[data-v-46973243]{font-family:var(--scalar-font-code);align-items:center;gap:8px;width:100%;padding:6px;display:flex}.property-default-value span[data-v-46973243]{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.property-default-value[data-v-46973243] svg{color:var(--scalar-color-3)}.property-default-value[data-v-46973243]:hover svg{color:var(--scalar-color-1)}.property-default-value[data-v-46973243]{background:var(--scalar-background-2);border:var(--scalar-border-width) solid var(--scalar-border-color);border-radius:var(--scalar-radius)}.property-default-value-list[data-v-46973243]{background-color:var(--scalar-background-1);box-shadow:var(--scalar-shadow-1);border-radius:var(--scalar-radius-lg);border:var(--scalar-border-width) solid var(--scalar-border-color);z-index:2;flex-direction:column;gap:3px;min-width:200px;max-width:300px;padding:9px;display:none;position:absolute;top:18px;left:50%;overflow:auto;transform:translate(-50%)}.property-default:hover .property-default-value-list[data-v-46973243]{display:flex}.property-detail[data-v-8b57daa7]{display:inline-flex}.property-detail+.property-detail[data-v-8b57daa7]:before{content:"·";margin:0 .5ch;display:block}.property-detail-truncate[data-v-8b57daa7]{overflow:hidden}.property-detail-truncate>.property-detail-value[data-v-8b57daa7]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.property-detail-prefix[data-v-8b57daa7]{color:var(--scalar-color-2)}code.property-detail-value[data-v-8b57daa7]{font-family:var(--scalar-font-code);font-size:var(--scalar-font-size-3);color:var(--scalar-color-2);background:color-mix(in srgb, var(--scalar-background-2), var(--scalar-background-1));border:var(--scalar-border-width) solid var(--scalar-border-color);border-radius:var(--scalar-radius);padding:0 4px}.property-example[data-v-72248a2e]{font-size:var(--scalar-mini);flex-direction:column;display:flex;position:relative}.property-example[data-v-72248a2e]:hover:before{pointer-events:none;content:"";border-radius:var(--scalar-radius);width:100%;height:20px;position:absolute;top:0;left:0}.property-example-value[data-v-72248a2e]{font-family:var(--scalar-font-code);align-items:center;gap:8px;width:100%;padding:6px;display:flex}.property-example-value span[data-v-72248a2e]{text-overflow:ellipsis;white-space:pre;display:block;overflow:hidden}.property-example-value[data-v-72248a2e] svg{color:var(--scalar-color-3)}.property-example-value[data-v-72248a2e]:hover svg{color:var(--scalar-color-1)}.property-example-value[data-v-72248a2e]{background:var(--scalar-background-2);border:var(--scalar-border-width) solid var(--scalar-border-color);border-radius:var(--scalar-radius)}.property-example-value-list[data-v-72248a2e]{background-color:var(--scalar-background-1);box-shadow:var(--scalar-shadow-1);border-radius:var(--scalar-radius-lg);border:var(--scalar-border-width) solid var(--scalar-border-color);z-index:1000;flex-direction:column;gap:3px;min-width:200px;max-width:300px;padding:9px;display:none;position:absolute;top:18px;left:50%;overflow:auto;transform:translate(-50%)}.property-example-value-list-start[data-v-72248a2e]{left:0;transform:none}.property-example:hover .property-example-value-list[data-v-72248a2e]{display:flex}.property-pattern[data-v-e8f7b07b]{font-size:var(--scalar-mini);flex-direction:column;display:flex;position:relative}.property-pattern[data-v-e8f7b07b]:hover:before{content:"";border-radius:var(--scalar-radius);width:100%;height:20px;position:absolute;top:0;left:0}.property-pattern-popup[data-v-e8f7b07b]{background-color:var(--scalar-background-1);box-shadow:var(--scalar-shadow-1);border-radius:var(--scalar-radius-lg);border:var(--scalar-border-width) solid var(--scalar-border-color);z-index:1000;min-width:200px;max-width:min(500px,100vw - 32px);max-height:min(400px,100vh - 32px);padding:9px;display:none;position:absolute;top:18px;left:50%;overflow-y:auto;transform:translate(-50%)}.property-pattern:hover .property-pattern-popup[data-v-e8f7b07b],.property-pattern:focus-within .property-pattern-popup[data-v-e8f7b07b],.property-pattern.is-open .property-pattern-popup[data-v-e8f7b07b]{display:flex}.property-pattern-value[data-v-e8f7b07b]{font-family:var(--scalar-font-code);background:var(--scalar-background-2);border:var(--scalar-border-width) solid var(--scalar-border-color);border-radius:var(--scalar-radius);align-items:flex-start;gap:8px;width:100%;padding:6px;display:flex}.property-pattern-value code[data-v-e8f7b07b]{font-family:var(--scalar-font-code);font-size:var(--scalar-font-size-3);color:var(--scalar-color-2);white-space:pre-wrap;word-break:break-word;overflow-wrap:anywhere;text-align:left;flex:1}.property-heading[data-v-8d6403f4]{white-space:nowrap;flex-wrap:wrap;align-items:baseline;row-gap:9px;display:flex}:is(.property-heading[data-v-8d6403f4]:has(+.children),.property-heading[data-v-8d6403f4]:has(+.property-rule)){margin-bottom:9px}.property-heading[data-v-8d6403f4]>*{margin-right:9px}.property-heading[data-v-8d6403f4]:last-child{margin-right:0}.property-name[data-v-8d6403f4]{max-width:100%;font-family:var(--scalar-font-code);font-weight:var(--scalar-bold);font-size:var(--scalar-font-size-4);white-space:normal;overflow-wrap:break-word}.property-additional[data-v-8d6403f4]{font-family:var(--scalar-font-code)}.property-required[data-v-8d6403f4],.property-optional[data-v-8d6403f4]{color:var(--scalar-color-2)}.property-required[data-v-8d6403f4]{font-size:var(--scalar-mini);color:var(--scalar-color-orange)}.light-mode .property-required[data-v-8d6403f4]{color:color-mix(in srgb, var(--scalar-color-orange), var(--scalar-color-1) 32%)}.property-read-only[data-v-8d6403f4]{font-size:var(--scalar-mini);color:var(--scalar-color-blue)}.property-write-only[data-v-8d6403f4]{font-size:var(--scalar-mini);color:var(--scalar-color-green)}.property-discriminator[data-v-8d6403f4]{font-size:var(--scalar-mini);color:var(--scalar-color-purple)}.property-detail[data-v-8d6403f4]{font-size:var(--scalar-mini);color:var(--scalar-color-2);align-items:center;min-width:0;display:flex}.property-const[data-v-8d6403f4]{color:var(--scalar-color-1)}.deprecated[data-v-8d6403f4]{text-decoration:line-through}.property[data-v-ae49201c]{color:var(--scalar-color-1);font-size:var(--scalar-small);flex-direction:column;padding:10px;display:flex;position:relative}.property[data-v-ae49201c]:has(>.property-rule:first-of-type):not(.property--compact){padding-top:8px;padding-bottom:8px}.property--deprecated[data-v-ae49201c]{background:repeating-linear-gradient(-45deg, var(--scalar-background-2) 0, var(--scalar-background-2) 2px, transparent 2px, transparent 5px);background-size:100%}.property-description[data-v-ae49201c]{line-height:1.4;font-size:var(--scalar-small);margin-top:6px}.property-description[data-v-ae49201c]:has(+.property-rule){margin-bottom:9px}[data-v-ae49201c] .property-description :not(:where(pre,pre *)){color:var(--scalar-color-2)!important}.property[data-v-ae49201c]:not(:last-of-type){border-bottom:var(--scalar-border-width) solid var(--scalar-border-color)}.property-description+.children[data-v-ae49201c],.children+.property-rule[data-v-ae49201c]{margin-top:9px}.children[data-v-ae49201c]{flex-direction:column;display:flex}.children .property--compact.property--level-1[data-v-ae49201c]{padding:12px}.property-example-value[data-v-ae49201c]{all:unset;font-family:var(--scalar-font-code);border-top:var(--scalar-border-width) solid var(--scalar-border-color);padding:6px}.property-rule[data-v-ae49201c]{border-radius:var(--scalar-radius-lg);flex-direction:column;display:flex}.property-example[data-v-ae49201c]{background:0 0;border:none;flex-direction:row;gap:8px;display:flex}.property-example-label[data-v-ae49201c],.property-example-value[data-v-ae49201c]{padding:3px 0 0}.property-example-value[data-v-ae49201c]{background:var(--scalar-background-2);border-radius:var(--scalar-radius);border-top:0;padding:3px 4px}.property-name[data-v-ae49201c]{font-family:var(--scalar-font-code);font-weight:var(--scalar-semibold)}.property-name-additional-properties[data-v-ae49201c]:before,.property-name-pattern-properties[data-v-ae49201c]:before{text-transform:uppercase;font-size:var(--scalar-micro);border-radius:var(--scalar-radius);color:var(--scalar-color-1);border:var(--scalar-border-width) solid var(--scalar-border-color);background-color:var(--scalar-background-2);margin-right:4px;padding:2px 4px;display:inline-block}.property-name-pattern-properties[data-v-ae49201c]:before{content:"regex"}.property-name-additional-properties[data-v-ae49201c],.property-name-pattern-properties[data-v-ae49201c]{border:1px dashed var(--scalar-border-color);color:var(--scalar-color-accent);border-radius:var(--scalar-radius);padding:2px;display:inline-block}.error[data-v-d72dd68d]{background-color:var(--scalar-color-red)}.schema-card[data-v-d72dd68d]{font-size:var(--scalar-font-size-4);color:var(--scalar-color-1)}.schema-card-title[data-v-d72dd68d]{height:var(--schema-title-height);color:var(--scalar-color-2);font-weight:var(--scalar-semibold);font-size:var(--scalar-mini);border-bottom:var(--scalar-border-width) solid transparent;align-items:center;gap:4px;padding:6px 8px;display:flex}button.schema-card-title[data-v-d72dd68d]{cursor:pointer}button.schema-card-title[data-v-d72dd68d]:hover{color:var(--scalar-color-1)}.schema-properties-open>.schema-card-title[data-v-d72dd68d]{border-bottom:var(--scalar-border-width) solid var(--scalar-border-color);border-bottom-right-radius:0;border-bottom-left-radius:0}.schema-properties-open>.schema-properties[data-v-d72dd68d]{width:fit-content}.schema-card-description[data-v-d72dd68d]{color:var(--scalar-color-2)}.schema-card-description+.schema-properties[data-v-d72dd68d]{width:fit-content;margin-top:8px}.schema-card--level-0:first-of-type>.schema-card-description[data-v-d72dd68d]:has(+.schema-properties){border-bottom:var(--scalar-border-width) solid var(--scalar-border-color);margin-bottom:-8px;padding-bottom:8px}.schema-card--level-0~.schema-card--level-0>.schema-card-description[data-v-d72dd68d]:has(+.schema-properties){padding-top:8px}.schema-properties-open.schema-properties[data-v-d72dd68d],.schema-properties-open>.schema-card--open[data-v-d72dd68d]{width:100%}.schema-properties[data-v-d72dd68d]{border:var(--scalar-border-width) solid var(--scalar-border-color);border-radius:var(--scalar-radius-lg);flex-direction:column;width:fit-content;display:flex}.schema-properties-name[data-v-d72dd68d]{width:100%}.schema-properties .schema-properties[data-v-d72dd68d]{border-radius:13.5px}.schema-properties .schema-properties.schema-properties-open[data-v-d72dd68d]{border-radius:var(--scalar-radius-lg)}.schema-properties-open[data-v-d72dd68d]{width:100%}.schema-card--compact[data-v-d72dd68d]{align-self:flex-start}.schema-card--compact.schema-card--open[data-v-d72dd68d]{align-self:initial}.schema-card-title--compact[data-v-d72dd68d]{color:var(--scalar-color-2);border-bottom:none;height:auto;padding:6px 10px 6px 8px}.schema-properties-open>.schema-card-title--compact[data-v-d72dd68d]{position:static}.property--level-0>.schema-properties>.schema-card--level-0>.schema-properties[data-v-d72dd68d]{border:none}.property--level-0 .schema-card--level-0:not(.schema-card--compact) .property--level-1[data-v-d72dd68d]{padding:0 0 8px}:not(.composition-panel)>.schema-card--compact.schema-card--level-0>.schema-properties[data-v-d72dd68d]{border:none}[data-v-d72dd68d] .schema-card-description p{font-size:var(--scalar-small,var(--scalar-paragraph));color:var(--scalar-color-2);margin-bottom:6px;display:block}.children .schema-card-description[data-v-d72dd68d]:first-of-type{padding-top:0}.schema-type-icon[data-v-39d4fd7f]{color:var(--scalar-color-1);display:none}.schema-type[data-v-39d4fd7f]{font-family:var(--scalar-font-code);color:var(--scalar-color-1)}
5279
+ .request-card[data-v-aaf1efda],.request-card[data-v-f89257ff]{color:var(--scalar-color-1);font-size:var(--scalar-font-size-3)}.request-method[data-v-f89257ff]{font-family:var(--scalar-font-code);margin-right:6px}.request-card-footer[data-v-f89257ff]{flex-shrink:0;justify-content:flex-end;padding:6px;display:flex;position:relative}.request-card-footer--wraps[data-v-f89257ff]{flex-wrap:wrap;row-gap:4px}.request-card-footer-start[data-v-f89257ff]{flex:1 0 auto;align-items:center;display:flex}.request-card-footer-addon[data-v-f89257ff]{flex:7em;align-items:center;min-width:0;max-width:max-content;margin-inline-end:auto;display:flex}.request-editor-section[data-v-f89257ff]{flex:1;display:flex}.code-snippet>.scalar-code-copy[data-v-f89257ff]{background:var(--scalar-card-surface-raised,var(--scalar-background-2))}.request-card-simple[data-v-f89257ff]{font-size:var(--scalar-small);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;padding:8px 8px 8px 12px;display:flex}.request-header[data-v-f89257ff]{overflow-wrap:anywhere;flex:999 auto;min-width:0}.request-card-actions[data-v-f89257ff]{flex:1 0 auto}.code-snippet[data-v-f89257ff]{flex-direction:column;width:100%;display:flex}.property-rule[data-v-e22666da] .composition-panel>.schema-card>.schema-properties>ul>li.property.property--tree-container{padding-top:0!important}.property-heading:empty+.property-description[data-v-1b21ab2e]:last-of-type,.property-description[data-v-1b21ab2e]:first-of-type:last-of-type{margin-top:0}.property-list[data-v-1b21ab2e]{border:var(--scalar-border-width) solid var(--scalar-border-color);border-radius:var(--scalar-radius);margin-top:10px}.property-list .property[data-v-1b21ab2e]:last-of-type{padding-bottom:10px}.enum-toggle-button[data-v-1b21ab2e]:hover{color:var(--scalar-color-1)}.badge.text-orange[data-v-7a577ad4]{background:color-mix(in srgb, var(--scalar-color-orange), transparent 90%);border:#0000}.badge.text-yellow[data-v-7a577ad4]{background:color-mix(in srgb, var(--scalar-color-yellow), transparent 90%);border:#0000}.badge.text-red[data-v-7a577ad4]{background:color-mix(in srgb, var(--scalar-color-red), transparent 90%);border:#0000}.badge.text-purple[data-v-7a577ad4]{background:color-mix(in srgb, var(--scalar-color-purple), transparent 90%);border:#0000}.badge.text-green[data-v-7a577ad4]{background:color-mix(in srgb, var(--scalar-color-green), transparent 90%);border:#0000}.property-default[data-v-46973243]{font-size:var(--scalar-mini);flex-direction:column;display:flex;position:relative}.property-default[data-v-46973243]:hover:before{content:"";border-radius:var(--scalar-radius);width:100%;height:20px;position:absolute;top:0;left:0}.property-default:hover .property-default-label span[data-v-46973243]{color:var(--scalar-color-1)}.property-default-label span[data-v-46973243]{color:var(--scalar-color-2);border-bottom:var(--scalar-border-width) dotted currentColor;position:relative}.property-default-value[data-v-46973243]{font-family:var(--scalar-font-code);align-items:center;gap:8px;width:100%;padding:6px;display:flex}.property-default-value span[data-v-46973243]{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.property-default-value[data-v-46973243] svg{color:var(--scalar-color-3)}.property-default-value[data-v-46973243]:hover svg{color:var(--scalar-color-1)}.property-default-value[data-v-46973243]{background:var(--scalar-background-2);border:var(--scalar-border-width) solid var(--scalar-border-color);border-radius:var(--scalar-radius)}.property-default-value-list[data-v-46973243]{background-color:var(--scalar-background-1);box-shadow:var(--scalar-shadow-1);border-radius:var(--scalar-radius-lg);border:var(--scalar-border-width) solid var(--scalar-border-color);z-index:2;flex-direction:column;gap:3px;min-width:200px;max-width:300px;padding:9px;display:none;position:absolute;top:18px;left:50%;overflow:auto;transform:translate(-50%)}.property-default:hover .property-default-value-list[data-v-46973243]{display:flex}.property-detail[data-v-8b57daa7]{display:inline-flex}.property-detail+.property-detail[data-v-8b57daa7]:before{content:"·";margin:0 .5ch;display:block}.property-detail-truncate[data-v-8b57daa7]{overflow:hidden}.property-detail-truncate>.property-detail-value[data-v-8b57daa7]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.property-detail-prefix[data-v-8b57daa7]{color:var(--scalar-color-2)}code.property-detail-value[data-v-8b57daa7]{font-family:var(--scalar-font-code);font-size:var(--scalar-font-size-3);color:var(--scalar-color-2);background:color-mix(in srgb, var(--scalar-background-2), var(--scalar-background-1));border:var(--scalar-border-width) solid var(--scalar-border-color);border-radius:var(--scalar-radius);padding:0 4px}.property-example[data-v-72248a2e]{font-size:var(--scalar-mini);flex-direction:column;display:flex;position:relative}.property-example[data-v-72248a2e]:hover:before{pointer-events:none;content:"";border-radius:var(--scalar-radius);width:100%;height:20px;position:absolute;top:0;left:0}.property-example-value[data-v-72248a2e]{font-family:var(--scalar-font-code);align-items:center;gap:8px;width:100%;padding:6px;display:flex}.property-example-value span[data-v-72248a2e]{text-overflow:ellipsis;white-space:pre;display:block;overflow:hidden}.property-example-value[data-v-72248a2e] svg{color:var(--scalar-color-3)}.property-example-value[data-v-72248a2e]:hover svg{color:var(--scalar-color-1)}.property-example-value[data-v-72248a2e]{background:var(--scalar-background-2);border:var(--scalar-border-width) solid var(--scalar-border-color);border-radius:var(--scalar-radius)}.property-example-value-list[data-v-72248a2e]{background-color:var(--scalar-background-1);box-shadow:var(--scalar-shadow-1);border-radius:var(--scalar-radius-lg);border:var(--scalar-border-width) solid var(--scalar-border-color);z-index:1000;flex-direction:column;gap:3px;min-width:200px;max-width:300px;padding:9px;display:none;position:absolute;top:18px;left:50%;overflow:auto;transform:translate(-50%)}.property-example-value-list-start[data-v-72248a2e]{left:0;transform:none}.property-example:hover .property-example-value-list[data-v-72248a2e]{display:flex}.property-pattern[data-v-e8f7b07b]{font-size:var(--scalar-mini);flex-direction:column;display:flex;position:relative}.property-pattern[data-v-e8f7b07b]:hover:before{content:"";border-radius:var(--scalar-radius);width:100%;height:20px;position:absolute;top:0;left:0}.property-pattern-popup[data-v-e8f7b07b]{background-color:var(--scalar-background-1);box-shadow:var(--scalar-shadow-1);border-radius:var(--scalar-radius-lg);border:var(--scalar-border-width) solid var(--scalar-border-color);z-index:1000;min-width:200px;max-width:min(500px,100vw - 32px);max-height:min(400px,100vh - 32px);padding:9px;display:none;position:absolute;top:18px;left:50%;overflow-y:auto;transform:translate(-50%)}.property-pattern:hover .property-pattern-popup[data-v-e8f7b07b],.property-pattern:focus-within .property-pattern-popup[data-v-e8f7b07b],.property-pattern.is-open .property-pattern-popup[data-v-e8f7b07b]{display:flex}.property-pattern-value[data-v-e8f7b07b]{font-family:var(--scalar-font-code);background:var(--scalar-background-2);border:var(--scalar-border-width) solid var(--scalar-border-color);border-radius:var(--scalar-radius);align-items:flex-start;gap:8px;width:100%;padding:6px;display:flex}.property-pattern-value code[data-v-e8f7b07b]{font-family:var(--scalar-font-code);font-size:var(--scalar-font-size-3);color:var(--scalar-color-2);white-space:pre-wrap;word-break:break-word;overflow-wrap:anywhere;text-align:left;flex:1}.property-heading[data-v-789cea33]{white-space:nowrap;flex-wrap:wrap;align-items:baseline;row-gap:9px;display:flex}:is(.property-heading[data-v-789cea33]:has(+.children),.property-heading[data-v-789cea33]:has(+.property-rule)){margin-bottom:9px}.property-heading[data-v-789cea33]>*{margin-right:9px}.property-heading[data-v-789cea33]:last-child{margin-right:0}.property-name[data-v-789cea33]{max-width:100%;font-family:var(--scalar-font-code);font-weight:var(--scalar-bold);font-size:var(--scalar-font-size-4);white-space:normal;overflow-wrap:break-word}.property-additional[data-v-789cea33]{font-family:var(--scalar-font-code)}.property-required[data-v-789cea33],.property-optional[data-v-789cea33]{color:var(--scalar-color-2)}.property-required[data-v-789cea33]{font-size:var(--scalar-mini);color:var(--scalar-color-orange)}.light-mode .property-required[data-v-789cea33]{color:color-mix(in srgb, var(--scalar-color-orange), var(--scalar-color-1) 32%)}.property-read-only[data-v-789cea33]{font-size:var(--scalar-mini);color:var(--scalar-color-blue)}.property-write-only[data-v-789cea33]{font-size:var(--scalar-mini);color:var(--scalar-color-green)}.property-discriminator[data-v-789cea33]{font-size:var(--scalar-mini);color:var(--scalar-color-purple)}.property-detail[data-v-789cea33]{font-size:var(--scalar-mini);color:var(--scalar-color-2);align-items:center;min-width:0;display:flex}.property-const[data-v-789cea33]{color:var(--scalar-color-1)}.deprecated[data-v-789cea33]{text-decoration:line-through}.property[data-v-171bc332]{color:var(--scalar-color-1);font-size:var(--scalar-small);flex-direction:column;padding:10px;display:flex;position:relative}.property[data-v-171bc332]:has(>.property-rule:first-of-type):not(.property--compact){padding-top:8px;padding-bottom:8px}.property--deprecated[data-v-171bc332]{background:repeating-linear-gradient(-45deg, var(--scalar-background-2) 0, var(--scalar-background-2) 2px, transparent 2px, transparent 5px);background-size:100%}.property-description[data-v-171bc332]{line-height:1.4;font-size:var(--scalar-small);margin-top:6px}.property-description[data-v-171bc332]:has(+.property-rule){margin-bottom:9px}[data-v-171bc332] .property-description :not(:where(pre,pre *)){color:var(--scalar-color-2)!important}.property[data-v-171bc332]:not(:last-of-type){border-bottom:var(--scalar-border-width) solid var(--scalar-border-color)}.property-description+.children[data-v-171bc332],.children+.property-rule[data-v-171bc332]{margin-top:9px}.children[data-v-171bc332]{flex-direction:column;display:flex}.children .property--compact.property--level-1[data-v-171bc332]{padding:12px}.property-example-value[data-v-171bc332]{all:unset;font-family:var(--scalar-font-code);border-top:var(--scalar-border-width) solid var(--scalar-border-color);padding:6px}.property-rule[data-v-171bc332]{border-radius:var(--scalar-radius-lg);flex-direction:column;display:flex}.property-example[data-v-171bc332]{background:0 0;border:none;flex-direction:row;gap:8px;display:flex}.property-example-label[data-v-171bc332],.property-example-value[data-v-171bc332]{padding:3px 0 0}.property-example-value[data-v-171bc332]{background:var(--scalar-background-2);border-radius:var(--scalar-radius);border-top:0;padding:3px 4px}.property-name[data-v-171bc332]{font-family:var(--scalar-font-code);font-weight:var(--scalar-semibold)}.property-name-additional-properties[data-v-171bc332]:before,.property-name-pattern-properties[data-v-171bc332]:before{text-transform:uppercase;font-size:var(--scalar-micro);border-radius:var(--scalar-radius);color:var(--scalar-color-1);border:var(--scalar-border-width) solid var(--scalar-border-color);background-color:var(--scalar-background-2);margin-right:4px;padding:2px 4px;display:inline-block}.property-name-pattern-properties[data-v-171bc332]:before{content:"regex"}.property-name-additional-properties[data-v-171bc332],.property-name-pattern-properties[data-v-171bc332]{border:1px dashed var(--scalar-border-color);color:var(--scalar-color-accent);border-radius:var(--scalar-radius);padding:2px;display:inline-block}.error[data-v-d72dd68d]{background-color:var(--scalar-color-red)}.schema-card[data-v-d72dd68d]{font-size:var(--scalar-font-size-4);color:var(--scalar-color-1)}.schema-card-title[data-v-d72dd68d]{height:var(--schema-title-height);color:var(--scalar-color-2);font-weight:var(--scalar-semibold);font-size:var(--scalar-mini);border-bottom:var(--scalar-border-width) solid transparent;align-items:center;gap:4px;padding:6px 8px;display:flex}button.schema-card-title[data-v-d72dd68d]{cursor:pointer}button.schema-card-title[data-v-d72dd68d]:hover{color:var(--scalar-color-1)}.schema-properties-open>.schema-card-title[data-v-d72dd68d]{border-bottom:var(--scalar-border-width) solid var(--scalar-border-color);border-bottom-right-radius:0;border-bottom-left-radius:0}.schema-properties-open>.schema-properties[data-v-d72dd68d]{width:fit-content}.schema-card-description[data-v-d72dd68d]{color:var(--scalar-color-2)}.schema-card-description+.schema-properties[data-v-d72dd68d]{width:fit-content;margin-top:8px}.schema-card--level-0:first-of-type>.schema-card-description[data-v-d72dd68d]:has(+.schema-properties){border-bottom:var(--scalar-border-width) solid var(--scalar-border-color);margin-bottom:-8px;padding-bottom:8px}.schema-card--level-0~.schema-card--level-0>.schema-card-description[data-v-d72dd68d]:has(+.schema-properties){padding-top:8px}.schema-properties-open.schema-properties[data-v-d72dd68d],.schema-properties-open>.schema-card--open[data-v-d72dd68d]{width:100%}.schema-properties[data-v-d72dd68d]{border:var(--scalar-border-width) solid var(--scalar-border-color);border-radius:var(--scalar-radius-lg);flex-direction:column;width:fit-content;display:flex}.schema-properties-name[data-v-d72dd68d]{width:100%}.schema-properties .schema-properties[data-v-d72dd68d]{border-radius:13.5px}.schema-properties .schema-properties.schema-properties-open[data-v-d72dd68d]{border-radius:var(--scalar-radius-lg)}.schema-properties-open[data-v-d72dd68d]{width:100%}.schema-card--compact[data-v-d72dd68d]{align-self:flex-start}.schema-card--compact.schema-card--open[data-v-d72dd68d]{align-self:initial}.schema-card-title--compact[data-v-d72dd68d]{color:var(--scalar-color-2);border-bottom:none;height:auto;padding:6px 10px 6px 8px}.schema-properties-open>.schema-card-title--compact[data-v-d72dd68d]{position:static}.property--level-0>.schema-properties>.schema-card--level-0>.schema-properties[data-v-d72dd68d]{border:none}.property--level-0 .schema-card--level-0:not(.schema-card--compact) .property--level-1[data-v-d72dd68d]{padding:0 0 8px}:not(.composition-panel)>.schema-card--compact.schema-card--level-0>.schema-properties[data-v-d72dd68d]{border:none}[data-v-d72dd68d] .schema-card-description p{font-size:var(--scalar-small,var(--scalar-paragraph));color:var(--scalar-color-2);margin-bottom:6px;display:block}.children .schema-card-description[data-v-d72dd68d]:first-of-type{padding-top:0}.schema-type-icon[data-v-39d4fd7f]{color:var(--scalar-color-1);display:none}.schema-type[data-v-39d4fd7f]{font-family:var(--scalar-font-code);color:var(--scalar-color-1)}
5255
5280
  /*$vite$:1*/