@scalar/blocks 0.5.4 → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/README.md +13 -29
- package/dist/code-example/components/AsyncApiCodeExample.vue.d.ts +19 -0
- package/dist/code-example/components/AsyncApiCodeExample.vue.d.ts.map +1 -0
- package/dist/code-example/components/AsyncApiCodeExample.vue.js +9 -0
- package/dist/code-example/components/AsyncApiCodeExample.vue.js.map +1 -0
- package/dist/code-example/components/AsyncApiCodeExample.vue_vue_type_script_setup_true_lang.js +114 -0
- package/dist/code-example/components/AsyncApiCodeExample.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/code-example/components/CodeExample.vue.js +4 -4
- package/dist/code-example/components/CodeExample.vue.js.map +1 -1
- package/dist/code-example/components/CodeExample.vue_vue_type_script_setup_true_lang.js +258 -0
- package/dist/code-example/components/CodeExample.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/code-example/components/ExamplePicker.vue.js +1 -1
- package/dist/code-example/components/ExamplePicker.vue.js.map +1 -1
- package/dist/code-example/components/{ExamplePicker.vue.script.js → ExamplePicker.vue_vue_type_script_setup_true_lang.js} +5 -5
- package/dist/code-example/components/ExamplePicker.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/code-example/components/HttpMethod.vue.js +1 -1
- package/dist/code-example/components/HttpMethod.vue.js.map +1 -1
- package/dist/code-example/components/{HttpMethod.vue.script.js → HttpMethod.vue_vue_type_script_setup_true_lang.js} +1 -1
- package/dist/code-example/components/HttpMethod.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/code-example/helpers/filter-clients-by-query.js.map +1 -1
- package/dist/code-example/helpers/find-client.js.map +1 -1
- package/dist/code-example/helpers/format-language.js.map +1 -1
- package/dist/code-example/helpers/generate-client-options.js.map +1 -1
- package/dist/code-example/helpers/generate-code-snippet.js.map +1 -1
- package/dist/code-example/helpers/get-asyncapi-example-context.d.ts +12 -0
- package/dist/code-example/helpers/get-asyncapi-example-context.d.ts.map +1 -0
- package/dist/code-example/helpers/get-asyncapi-example-context.js +33 -0
- package/dist/code-example/helpers/get-asyncapi-example-context.js.map +1 -0
- package/dist/code-example/helpers/get-clients.js.map +1 -1
- package/dist/code-example/helpers/get-custom-code-samples.js.map +1 -1
- package/dist/code-example/helpers/get-generated-payload-example.d.ts +4 -0
- package/dist/code-example/helpers/get-generated-payload-example.d.ts.map +1 -0
- package/dist/code-example/helpers/get-generated-payload-example.js +25 -0
- package/dist/code-example/helpers/get-generated-payload-example.js.map +1 -0
- package/dist/code-example/helpers/get-message-example-content.d.ts +10 -0
- package/dist/code-example/helpers/get-message-example-content.d.ts.map +1 -0
- package/dist/code-example/helpers/get-message-example-content.js +29 -0
- package/dist/code-example/helpers/get-message-example-content.js.map +1 -0
- package/dist/code-example/helpers/get-secrets.js.map +1 -1
- package/dist/code-example/helpers/get-snippet.js.map +1 -1
- package/dist/code-example/helpers/operation-to-har/operation-to-har.js +32 -32
- package/dist/code-example/helpers/operation-to-har/operation-to-har.js.map +1 -1
- package/dist/code-example/helpers/operation-to-har/process-body.js +41 -47
- package/dist/code-example/helpers/operation-to-har/process-body.js.map +1 -1
- package/dist/code-example/helpers/operation-to-har/process-parameters.js +51 -55
- package/dist/code-example/helpers/operation-to-har/process-parameters.js.map +1 -1
- package/dist/code-example/helpers/operation-to-har/process-security-schemes.js +30 -38
- package/dist/code-example/helpers/operation-to-har/process-security-schemes.js.map +1 -1
- package/dist/code-example/helpers/operation-to-har/process-server-url.js +5 -1
- package/dist/code-example/helpers/operation-to-har/process-server-url.js.map +1 -1
- package/dist/code-example/index.d.ts +4 -0
- package/dist/code-example/index.d.ts.map +1 -1
- package/dist/code-example/index.js +17 -14
- package/dist/code-example/mount-asyncapi.d.ts +14 -0
- package/dist/code-example/mount-asyncapi.d.ts.map +1 -0
- package/dist/code-example/mount-asyncapi.js +27 -0
- package/dist/code-example/mount-asyncapi.js.map +1 -0
- package/dist/code-example/mount.d.ts +4 -2
- package/dist/code-example/mount.d.ts.map +1 -1
- package/dist/code-example/mount.js +39 -37
- package/dist/code-example/mount.js.map +1 -1
- package/dist/constants.js +1 -1
- package/dist/constants.js.map +1 -1
- package/dist/schema/LinkButton.vue.js.map +1 -1
- package/dist/schema/RenderString.vue.js +1 -1
- package/dist/schema/RenderString.vue.js.map +1 -1
- package/dist/schema/{RenderString.vue.script.js → RenderString.vue_vue_type_script_setup_true_lang.js} +1 -1
- package/dist/schema/RenderString.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/schema/Schema.vue.js +2 -2
- package/dist/schema/Schema.vue.js.map +1 -1
- package/dist/schema/{Schema.vue.script.js → Schema.vue_vue_type_script_setup_true_lang.js} +1 -1
- package/dist/schema/Schema.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/schema/SchemaCollapsedPreview.vue.js +1 -1
- package/dist/schema/SchemaCollapsedPreview.vue.js.map +1 -1
- package/dist/schema/{SchemaCollapsedPreview.vue.script.js → SchemaCollapsedPreview.vue_vue_type_script_setup_true_lang.js} +1 -1
- package/dist/schema/SchemaCollapsedPreview.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/schema/SchemaComposition.vue.js +2 -2
- package/dist/schema/SchemaComposition.vue.js.map +1 -1
- package/dist/schema/{SchemaComposition.vue.script.js → SchemaComposition.vue_vue_type_script_setup_true_lang.js} +5 -5
- package/dist/schema/SchemaComposition.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/schema/SchemaEnumPropertyItem.vue.js +1 -1
- package/dist/schema/SchemaEnumPropertyItem.vue.js.map +1 -1
- package/dist/schema/{SchemaEnumPropertyItem.vue.script.js → SchemaEnumPropertyItem.vue_vue_type_script_setup_true_lang.js} +1 -1
- package/dist/schema/SchemaEnumPropertyItem.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/schema/SchemaEnums.vue.js +2 -2
- package/dist/schema/SchemaEnums.vue.js.map +1 -1
- package/dist/schema/{SchemaEnums.vue.script.js → SchemaEnums.vue_vue_type_script_setup_true_lang.js} +1 -1
- package/dist/schema/SchemaEnums.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/schema/SchemaGlyphPuck.vue.js +1 -1
- package/dist/schema/SchemaGlyphPuck.vue.js.map +1 -1
- package/dist/schema/{SchemaGlyphPuck.vue.script.js → SchemaGlyphPuck.vue_vue_type_script_setup_true_lang.js} +1 -1
- package/dist/schema/SchemaGlyphPuck.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/schema/SchemaGutterToggle.vue.js +1 -1
- package/dist/schema/SchemaGutterToggle.vue.js.map +1 -1
- package/dist/schema/{SchemaGutterToggle.vue.script.js → SchemaGutterToggle.vue_vue_type_script_setup_true_lang.js} +1 -1
- package/dist/schema/SchemaGutterToggle.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/schema/SchemaHeading.vue.js +2 -2
- package/dist/schema/SchemaHeading.vue.js.map +1 -1
- package/dist/schema/{SchemaHeading.vue.script.js → SchemaHeading.vue_vue_type_script_setup_true_lang.js} +1 -1
- package/dist/schema/SchemaHeading.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/schema/SchemaObjectExampleCodeBlock.vue.js +1 -1
- package/dist/schema/SchemaObjectExampleCodeBlock.vue.js.map +1 -1
- package/dist/schema/{SchemaObjectExampleCodeBlock.vue.script.js → SchemaObjectExampleCodeBlock.vue_vue_type_script_setup_true_lang.js} +1 -1
- package/dist/schema/SchemaObjectExampleCodeBlock.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/schema/SchemaObjectProperties.vue.js +1 -1
- package/dist/schema/SchemaObjectProperties.vue.js.map +1 -1
- package/dist/schema/{SchemaObjectProperties.vue.script.js → SchemaObjectProperties.vue_vue_type_script_setup_true_lang.js} +3 -3
- package/dist/schema/{SchemaObjectProperties.vue.script.js.map → SchemaObjectProperties.vue_vue_type_script_setup_true_lang.js.map} +1 -1
- package/dist/schema/SchemaProperty.vue.js +2 -2
- package/dist/schema/SchemaProperty.vue.js.map +1 -1
- package/dist/schema/{SchemaProperty.vue.script.js → SchemaProperty.vue_vue_type_script_setup_true_lang.js} +3 -7
- package/dist/schema/SchemaProperty.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/schema/SchemaPropertyDefault.vue.js +2 -2
- package/dist/schema/SchemaPropertyDefault.vue.js.map +1 -1
- package/dist/schema/{SchemaPropertyDefault.vue.script.js → SchemaPropertyDefault.vue_vue_type_script_setup_true_lang.js} +1 -1
- package/dist/schema/SchemaPropertyDefault.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/schema/SchemaPropertyDetail.vue.js +2 -2
- package/dist/schema/SchemaPropertyDetail.vue.js.map +1 -1
- package/dist/schema/{SchemaPropertyDetail.vue.script.js → SchemaPropertyDetail.vue_vue_type_script_setup_true_lang.js} +1 -1
- package/dist/schema/SchemaPropertyDetail.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/schema/SchemaPropertyExamples.vue.d.ts +2 -0
- package/dist/schema/SchemaPropertyExamples.vue.d.ts.map +1 -1
- package/dist/schema/SchemaPropertyExamples.vue.js +3 -3
- package/dist/schema/SchemaPropertyExamples.vue.js.map +1 -1
- package/dist/schema/{SchemaPropertyExamples.vue.script.js → SchemaPropertyExamples.vue_vue_type_script_setup_true_lang.js} +10 -3
- package/dist/schema/SchemaPropertyExamples.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/schema/SchemaPropertyHeading.vue.js +2 -2
- package/dist/schema/SchemaPropertyHeading.vue.js.map +1 -1
- package/dist/schema/{SchemaPropertyHeading.vue.script.js → SchemaPropertyHeading.vue_vue_type_script_setup_true_lang.js} +1 -1
- package/dist/schema/SchemaPropertyHeading.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/schema/SchemaPropertyPattern.vue.js +2 -2
- package/dist/schema/SchemaPropertyPattern.vue.js.map +1 -1
- package/dist/schema/{SchemaPropertyPattern.vue.script.js → SchemaPropertyPattern.vue_vue_type_script_setup_true_lang.js} +1 -1
- package/dist/schema/SchemaPropertyPattern.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/schema/SchemaRailPanel.vue.js +1 -1
- package/dist/schema/SchemaRailPanel.vue.js.map +1 -1
- package/dist/schema/{SchemaRailPanel.vue.script.js → SchemaRailPanel.vue_vue_type_script_setup_true_lang.js} +1 -1
- package/dist/schema/SchemaRailPanel.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/schema/components/CopyLinkButton.vue.js +1 -1
- package/dist/schema/components/CopyLinkButton.vue.js.map +1 -1
- package/dist/schema/components/{CopyLinkButton.vue.script.js → CopyLinkButton.vue_vue_type_script_setup_true_lang.js} +1 -1
- package/dist/schema/components/CopyLinkButton.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/schema/components/WithBreadcrumb.vue.js +1 -1
- package/dist/schema/components/WithBreadcrumb.vue.js.map +1 -1
- package/dist/schema/components/{WithBreadcrumb.vue.script.js → WithBreadcrumb.vue_vue_type_script_setup_true_lang.js} +1 -1
- package/dist/schema/components/WithBreadcrumb.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/schema/discriminator-metadata.js.map +1 -1
- package/dist/schema/expansion/index.js +1 -2
- package/dist/schema/helpers/dynamic-scope.js.map +1 -1
- package/dist/schema/helpers/format-example.js.map +1 -1
- package/dist/schema/helpers/format-value.js.map +1 -1
- package/dist/schema/helpers/get-compositions-to-render.js.map +1 -1
- package/dist/schema/helpers/get-discriminator-values.js.map +1 -1
- package/dist/schema/helpers/get-enum-values.js.map +1 -1
- package/dist/schema/helpers/get-property-description.js.map +1 -1
- package/dist/schema/helpers/get-ref-name.js.map +1 -1
- package/dist/schema/helpers/get-schema-type.js.map +1 -1
- package/dist/schema/helpers/get-type-signature-tokens.js.map +1 -1
- package/dist/schema/helpers/has-complex-array-items.js.map +1 -1
- package/dist/schema/helpers/is-empty-schema-object.js.map +1 -1
- package/dist/schema/helpers/is-model-linkable.js.map +1 -1
- package/dist/schema/helpers/is-on-schema-target-path.js.map +1 -1
- package/dist/schema/helpers/is-type-object.js.map +1 -1
- package/dist/schema/helpers/merge-all-of-schemas.js +24 -25
- package/dist/schema/helpers/merge-all-of-schemas.js.map +1 -1
- package/dist/schema/helpers/normalize-object-composition.js.map +1 -1
- package/dist/schema/helpers/optimize-value-for-display.js +5 -12
- package/dist/schema/helpers/optimize-value-for-display.js.map +1 -1
- package/dist/schema/helpers/partition-all-of-compositions.js.map +1 -1
- package/dist/schema/helpers/schema-composition.js.map +1 -1
- package/dist/schema/helpers/schema-cycle.js.map +1 -1
- package/dist/schema/helpers/schema-expansion.js +4 -5
- package/dist/schema/helpers/schema-expansion.js.map +1 -1
- package/dist/schema/helpers/schema-keyboard-nav.js.map +1 -1
- package/dist/schema/helpers/schema-name.js.map +1 -1
- package/dist/schema/helpers/should-display-description.js.map +1 -1
- package/dist/schema/helpers/should-display-heading.js.map +1 -1
- package/dist/schema/helpers/should-render-array-item-composition.js.map +1 -1
- package/dist/schema/helpers/sort-property-names.js.map +1 -1
- package/dist/schema/helpers/unwrap-for-read.js.map +1 -1
- package/dist/schema/index.d.ts +1 -0
- package/dist/schema/index.d.ts.map +1 -1
- package/dist/schema/index.js +6 -5
- package/dist/schema/localization/index.d.ts +1 -1
- package/dist/schema/localization/index.js.map +1 -1
- package/dist/schema/localization/locales/ar.js.map +1 -1
- package/dist/schema/localization/locales/de.js.map +1 -1
- package/dist/schema/localization/locales/en.js.map +1 -1
- package/dist/schema/localization/locales/es.js.map +1 -1
- package/dist/schema/localization/locales/fr.js.map +1 -1
- package/dist/schema/localization/locales/pt.js.map +1 -1
- package/dist/schema/localization/locales/ru.js.map +1 -1
- package/dist/schema/localization/locales/zh-cn.js.map +1 -1
- package/dist/schema/localization/locales/zh-tw.js.map +1 -1
- package/dist/schema/localization/translations.js.map +1 -1
- package/dist/schema/request-body-composition-index.js.map +1 -1
- package/dist/shared/Badge.vue.js +2 -2
- package/dist/shared/Badge.vue.js.map +1 -1
- package/dist/shared/{Badge.vue.script.js → Badge.vue_vue_type_script_setup_true_lang.js} +1 -1
- package/dist/shared/Badge.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/shared/ExternalDocs.vue.js +1 -1
- package/dist/shared/ExternalDocs.vue.js.map +1 -1
- package/dist/shared/{ExternalDocs.vue.script.js → ExternalDocs.vue_vue_type_script_setup_true_lang.js} +1 -1
- package/dist/shared/ExternalDocs.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/shared/ScreenReader.vue.js +1 -1
- package/dist/shared/ScreenReader.vue.js.map +1 -1
- package/dist/shared/{ScreenReader.vue.script.js → ScreenReader.vue_vue_type_script_setup_true_lang.js} +1 -1
- package/dist/shared/ScreenReader.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/specification-extensions/ExtensionValue.vue.js +1 -1
- package/dist/specification-extensions/ExtensionValue.vue.js.map +1 -1
- package/dist/specification-extensions/{ExtensionValue.vue.script.js → ExtensionValue.vue_vue_type_script_setup_true_lang.js} +1 -1
- package/dist/specification-extensions/ExtensionValue.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/specification-extensions/SpecificationExtensions.vue.js +1 -1
- package/dist/specification-extensions/SpecificationExtensions.vue.js.map +1 -1
- package/dist/specification-extensions/{SpecificationExtensions.vue.script.js → SpecificationExtensions.vue_vue_type_script_setup_true_lang.js} +1 -1
- package/dist/specification-extensions/SpecificationExtensions.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/specification-extensions/index.js +1 -2
- package/dist/style.css +68 -31
- package/dist/vue-styles.css +1 -1
- package/package.json +23 -23
- package/dist/code-example/components/CodeExample.vue.script.js +0 -258
- package/dist/code-example/components/CodeExample.vue.script.js.map +0 -1
- package/dist/code-example/components/ExamplePicker.vue.script.js.map +0 -1
- package/dist/code-example/components/HttpMethod.vue.script.js.map +0 -1
- package/dist/schema/RenderString.vue.script.js.map +0 -1
- package/dist/schema/Schema.vue.script.js.map +0 -1
- package/dist/schema/SchemaCollapsedPreview.vue.script.js.map +0 -1
- package/dist/schema/SchemaComposition.vue.script.js.map +0 -1
- package/dist/schema/SchemaEnumPropertyItem.vue.script.js.map +0 -1
- package/dist/schema/SchemaEnums.vue.script.js.map +0 -1
- package/dist/schema/SchemaGlyphPuck.vue.script.js.map +0 -1
- package/dist/schema/SchemaGutterToggle.vue.script.js.map +0 -1
- package/dist/schema/SchemaHeading.vue.script.js.map +0 -1
- package/dist/schema/SchemaObjectExampleCodeBlock.vue.script.js.map +0 -1
- package/dist/schema/SchemaProperty.vue.script.js.map +0 -1
- package/dist/schema/SchemaPropertyDefault.vue.script.js.map +0 -1
- package/dist/schema/SchemaPropertyDetail.vue.script.js.map +0 -1
- package/dist/schema/SchemaPropertyExamples.vue.script.js.map +0 -1
- package/dist/schema/SchemaPropertyHeading.vue.script.js.map +0 -1
- package/dist/schema/SchemaPropertyPattern.vue.script.js.map +0 -1
- package/dist/schema/SchemaRailPanel.vue.script.js.map +0 -1
- package/dist/schema/components/CopyLinkButton.vue.script.js.map +0 -1
- package/dist/schema/components/WithBreadcrumb.vue.script.js.map +0 -1
- package/dist/shared/Badge.vue.script.js.map +0 -1
- package/dist/shared/ExternalDocs.vue.script.js.map +0 -1
- package/dist/shared/ScreenReader.vue.script.js.map +0 -1
- package/dist/specification-extensions/ExtensionValue.vue.script.js.map +0 -1
- package/dist/specification-extensions/SpecificationExtensions.vue.script.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sort-property-names.js","names":[],"sources":["../../../src/schema/helpers/sort-property-names.ts"],"sourcesContent":["import type { ApiReferenceConfiguration } from '@scalar/types/api-reference'\nimport { resolve } from '@scalar/workspace-store/resolve'\nimport type { DiscriminatorObject, SchemaObject } from '@scalar/workspace-store/schemas/v3.2/strict/openapi-document'\n\nimport { isTypeObject } from './is-type-object'\n\n/** Extract the type of properties */\ntype Properties = NonNullable<Extract<SchemaObject, { type: 'object' }>['properties']>\n\ntype Options = Partial<\n Pick<ApiReferenceConfiguration, 'orderSchemaPropertiesBy' | 'orderRequiredPropertiesFirst'> & {\n hideReadOnly: boolean\n hideWriteOnly: boolean\n }\n>\n\n/** Take a list of property names and reduce it back into an object */\nexport const reduceNamesToObject = (names: string[], properties: Properties): Properties =>\n names.reduce<Properties>((acc, name) => {\n const prop = properties?.[name]\n if (prop) {\n acc[name] = prop\n }\n return acc\n }, {})\n\n/**\n * One collator for every sort, rather than a fresh locale lookup per comparison.\n * `String.localeCompare` builds its collator on each call, which dominates the\n * comparator on schemas with many properties; `Intl.Collator` is the same\n * ordering with the setup hoisted out of the loop.\n */\nconst collator = new Intl.Collator(undefined)\n\n/**\n * Everything the comparator needs to know about one property, read once.\n *\n * The comparator used to fetch `schema.properties[name]` and probe it for\n * `x-order` on every comparison. In the app the document is a stack of proxies\n * (reactive, change detection, overrides, `$ref` magic), so each of those reads\n * costs microseconds and a sort makes `n log n` of them: a 60-property object\n * took milliseconds per sort. With the inputs hoisted the comparator only reads\n * plain fields. It makes the same decisions in the same order on the same\n * values, and `Array.prototype.sort` is stable, so the result is identical.\n */\ntype PropertyRecord = {\n name: string\n /** The `x-order` extension value, `undefined` when the property does not carry one */\n order: unknown\n required: boolean\n discriminator: boolean\n}\n\n/**\n * Sorted names, memoised per `properties` object.\n *\n * A row sorts its children while it is collapsed (for the preview) and again\n * when it opens (for the panel), and every row that `$ref`s the same schema\n * sorts the same `properties` object over again. That object's identity\n * survives each copy on the render path (the display-time spreads keep the\n * reference, and every proxy layer caches its child proxies per target), so it\n * is a stable key, and a `WeakMap` lets the entries die with the document.\n *\n * An entry is valid only while `schema.required` is the same array: the\n * composition path builds a fresh `properties` AND a fresh `required` when it\n * merges variants, so a merged schema never hits a stale entry. Every option\n * that affects the order is part of the inner key. Nothing else the sort reads\n * changes while a document is rendered: api-reference never rewrites a schema\n * subtree in place, it swaps whole documents.\n */\ntype SortCacheEntry = {\n required: unknown\n names: readonly string[]\n}\nconst sortCache = new WeakMap<object, Map<string, SortCacheEntry>>()\n\n/** The one array every \"nothing to sort\" answer returns, frozen like the sorted ones. */\nconst EMPTY_NAMES: readonly string[] = Object.freeze([])\n\n/**\n * Sort property names in an object schema.\n *\n * The returned array is shared with later calls for the same schema and options,\n * so it is frozen: an in-place `sort` / `reverse` / `splice` by one caller would\n * otherwise silently reorder every other consumer of the same schema. Callers\n * that need a mutable list copy it first (`slice`).\n */\nexport const sortPropertyNames = (\n schema: SchemaObject,\n discriminator?: DiscriminatorObject,\n {\n hideReadOnly = false,\n hideWriteOnly = false,\n orderSchemaPropertiesBy = 'alpha',\n orderRequiredPropertiesFirst = true,\n }: Options = {},\n): readonly string[] => {\n if (!isTypeObject(schema) || !schema.properties) {\n return EMPTY_NAMES\n }\n\n const properties = schema.properties\n const required = schema.required\n const discriminatorName = discriminator?.propertyName\n\n // A `!` marks a present discriminator so an absent one can never collide with\n // a property literally named like the placeholder.\n const cacheKey = [\n discriminatorName === undefined ? '' : `!${discriminatorName}`,\n hideReadOnly,\n hideWriteOnly,\n orderSchemaPropertiesBy,\n orderRequiredPropertiesFirst,\n ].join('|')\n\n const bucket = sortCache.get(properties)\n const cached = bucket?.get(cacheKey)\n if (cached && cached.required === required) {\n return cached.names\n }\n\n const requiredPropertiesSet = new Set(required || [])\n\n /*\n * Filter BEFORE sorting, and only when something is actually hidden.\n *\n * The filter resolves every property through `resolve.schema` to read\n * `readOnly`/`writeOnly`; with neither flag set that is a full resolve pass\n * per schema whose result is always \"keep\". Skipping it there, and shrinking\n * the array the comparator runs over when it does apply, leaves the ordering\n * identical — the filter is order-preserving and independent of the compare.\n * It shares the single read of each property with the record below.\n */\n const shouldFilter = hideReadOnly || hideWriteOnly\n const records: PropertyRecord[] = []\n\n for (const name of Object.keys(properties)) {\n const propertySchema = properties[name]\n\n if (shouldFilter) {\n const resolved = resolve.schema(propertySchema)\n\n if (hideReadOnly && resolved?.readOnly === true) {\n continue\n }\n if (hideWriteOnly && resolved?.writeOnly === true) {\n continue\n }\n }\n\n records.push({\n name,\n order:\n propertySchema && typeof propertySchema === 'object' && 'x-order' in propertySchema\n ? propertySchema['x-order']\n : undefined,\n required: requiredPropertiesSet.has(name),\n discriminator: name === discriminatorName,\n })\n }\n\n records.sort((a, b) => {\n // Discriminator comes first always\n if (a.discriminator && !b.discriminator) {\n return -1\n }\n if (!a.discriminator && b.discriminator) {\n return 1\n }\n\n // Sort by x-order specification extension when present\n if (a.order !== undefined && b.order !== undefined) {\n return Number(a.order) - Number(b.order)\n }\n if (a.order !== undefined && b.order === undefined) {\n return -1\n }\n if (a.order === undefined && b.order !== undefined) {\n return 1\n }\n\n // Order required properties first\n if (orderRequiredPropertiesFirst) {\n // If one is required and the other isn't, required comes first\n if (a.required && !b.required) {\n return -1\n }\n if (!a.required && b.required) {\n return 1\n }\n }\n\n // If both have the same required status, sort alphabetically\n if (orderSchemaPropertiesBy === 'alpha') {\n return collator.compare(a.name, b.name)\n }\n\n return 0\n })\n\n // Frozen before it is shared, so a caller that sorts or splices it in place\n // fails loudly here instead of corrupting every other reader of this schema.\n const names = Object.freeze(records.map((record) => record.name))\n\n // A malformed document can carry a non-object `properties`; that cannot key\n // a WeakMap, so it simply goes uncached.\n if (typeof properties === 'object' && properties !== null) {\n if (bucket) {\n bucket.set(cacheKey, { required, names })\n } else {\n sortCache.set(properties, new Map([[cacheKey, { required, names }]]))\n }\n }\n\n return names\n}\n"],"mappings":";;;AAiBA,IAAa,KAAuB,GAAiB,MACnD,EAAM,QAAoB,GAAK,MAAS;CACtC,IAAM,IAAO,IAAa;CAI1B,OAHI,MACF,EAAI,KAAQ,IAEP;AACT,GAAG,CAAC,CAAC,GAQD,IAAW,IAAI,KAAK,SAAS,KAAA,CAAS,GA0CtC,oBAAY,IAAI,QAA6C,GAG7D,IAAiC,OAAO,OAAO,CAAC,CAAC,GAU1C,KACX,GACA,GACA,EACE,kBAAe,IACf,mBAAgB,IAChB,6BAA0B,SAC1B,kCAA+B,OACpB,CAAC,MACQ;CACtB,IAAI,CAAC,EAAa,CAAM,KAAK,CAAC,EAAO,YACnC,OAAO;CAGT,IAAM,IAAa,EAAO,YACpB,IAAW,EAAO,UAClB,IAAoB,GAAe,cAInC,IAAW;EACf,MAAsB,KAAA,IAAY,KAAK,IAAI;EAC3C;EACA;EACA;EACA;CACF,CAAC,CAAC,KAAK,GAAG,GAEJ,IAAS,EAAU,IAAI,CAAU,GACjC,IAAS,GAAQ,IAAI,CAAQ;CACnC,IAAI,KAAU,EAAO,aAAa,GAChC,OAAO,EAAO;CAGhB,IAAM,IAAwB,IAAI,IAAI,KAAY,CAAC,CAAC,GAY9C,IAAe,KAAgB,GAC/B,IAA4B,CAAC;CAEnC,KAAK,IAAM,KAAQ,OAAO,KAAK,CAAU,GAAG;EAC1C,IAAM,IAAiB,EAAW;EAElC,IAAI,GAAc;GAChB,IAAM,IAAW,EAAQ,OAAO,CAAc;GAK9C,IAHI,KAAgB,GAAU,aAAa,MAGvC,KAAiB,GAAU,cAAc,IAC3C;EAEJ;EAEA,EAAQ,KAAK;GACX;GACA,OACE,KAAkB,OAAO,KAAmB,YAAY,aAAa,IACjE,EAAe,aACf,KAAA;GACN,UAAU,EAAsB,IAAI,CAAI;GACxC,eAAe,MAAS;EAC1B,CAAC;CACH;CAEA,EAAQ,MAAM,GAAG,MAAM;EAErB,IAAI,EAAE,iBAAiB,CAAC,EAAE,eACxB,OAAO;EAET,IAAI,CAAC,EAAE,iBAAiB,EAAE,eACxB,OAAO;EAIT,IAAI,EAAE,UAAU,KAAA,KAAa,EAAE,UAAU,KAAA,GACvC,OAAO,OAAO,EAAE,KAAK,IAAI,OAAO,EAAE,KAAK;EAEzC,IAAI,EAAE,UAAU,KAAA,KAAa,EAAE,UAAU,KAAA,GACvC,OAAO;EAET,IAAI,EAAE,UAAU,KAAA,KAAa,EAAE,UAAU,KAAA,GACvC,OAAO;EAIT,IAAI,GAA8B;GAEhC,IAAI,EAAE,YAAY,CAAC,EAAE,UACnB,OAAO;GAET,IAAI,CAAC,EAAE,YAAY,EAAE,UACnB,OAAO;EAEX;EAOA,OAJI,MAA4B,UACvB,EAAS,QAAQ,EAAE,MAAM,EAAE,IAAI,IAGjC;CACT,CAAC;CAID,IAAM,IAAQ,OAAO,OAAO,EAAQ,KAAK,MAAW,EAAO,IAAI,CAAC;CAYhE,OARI,OAAO,KAAe,YAAY,MAChC,IACF,EAAO,IAAI,GAAU;EAAE;EAAU;CAAM,CAAC,IAExC,EAAU,IAAI,mBAAY,IAAI,IAAI,CAAC,CAAC,GAAU;EAAE;EAAU;CAAM,CAAC,CAAC,CAAC,CAAC,IAIjE;AACT"}
|
|
1
|
+
{"version":3,"file":"sort-property-names.js","names":["reduceNamesToObject","names","prop","properties","name","acc","collator","sortCache","EMPTY_NAMES","sortPropertyNames","isTypeObject","schema","required","discriminatorName","discriminator","cacheKey","hideReadOnly","hideWriteOnly","orderSchemaPropertiesBy","orderRequiredPropertiesFirst","bucket","cached","requiredPropertiesSet","shouldFilter","records","propertySchema","resolved","resolve","a","b","record"],"sources":["../../../src/schema/helpers/sort-property-names.ts"],"sourcesContent":["import type { ApiReferenceConfiguration } from '@scalar/types/api-reference'\nimport { resolve } from '@scalar/workspace-store/resolve'\nimport type { DiscriminatorObject, SchemaObject } from '@scalar/workspace-store/schemas/v3.2/strict/openapi-document'\n\nimport { isTypeObject } from './is-type-object'\n\n/** Extract the type of properties */\ntype Properties = NonNullable<Extract<SchemaObject, { type: 'object' }>['properties']>\n\ntype Options = Partial<\n Pick<ApiReferenceConfiguration, 'orderSchemaPropertiesBy' | 'orderRequiredPropertiesFirst'> & {\n hideReadOnly: boolean\n hideWriteOnly: boolean\n }\n>\n\n/** Take a list of property names and reduce it back into an object */\nexport const reduceNamesToObject = (names: string[], properties: Properties): Properties =>\n names.reduce<Properties>((acc, name) => {\n const prop = properties?.[name]\n if (prop) {\n acc[name] = prop\n }\n return acc\n }, {})\n\n/**\n * One collator for every sort, rather than a fresh locale lookup per comparison.\n * `String.localeCompare` builds its collator on each call, which dominates the\n * comparator on schemas with many properties; `Intl.Collator` is the same\n * ordering with the setup hoisted out of the loop.\n */\nconst collator = new Intl.Collator(undefined)\n\n/**\n * Everything the comparator needs to know about one property, read once.\n *\n * The comparator used to fetch `schema.properties[name]` and probe it for\n * `x-order` on every comparison. In the app the document is a stack of proxies\n * (reactive, change detection, overrides, `$ref` magic), so each of those reads\n * costs microseconds and a sort makes `n log n` of them: a 60-property object\n * took milliseconds per sort. With the inputs hoisted the comparator only reads\n * plain fields. It makes the same decisions in the same order on the same\n * values, and `Array.prototype.sort` is stable, so the result is identical.\n */\ntype PropertyRecord = {\n name: string\n /** The `x-order` extension value, `undefined` when the property does not carry one */\n order: unknown\n required: boolean\n discriminator: boolean\n}\n\n/**\n * Sorted names, memoised per `properties` object.\n *\n * A row sorts its children while it is collapsed (for the preview) and again\n * when it opens (for the panel), and every row that `$ref`s the same schema\n * sorts the same `properties` object over again. That object's identity\n * survives each copy on the render path (the display-time spreads keep the\n * reference, and every proxy layer caches its child proxies per target), so it\n * is a stable key, and a `WeakMap` lets the entries die with the document.\n *\n * An entry is valid only while `schema.required` is the same array: the\n * composition path builds a fresh `properties` AND a fresh `required` when it\n * merges variants, so a merged schema never hits a stale entry. Every option\n * that affects the order is part of the inner key. Nothing else the sort reads\n * changes while a document is rendered: api-reference never rewrites a schema\n * subtree in place, it swaps whole documents.\n */\ntype SortCacheEntry = {\n required: unknown\n names: readonly string[]\n}\nconst sortCache = new WeakMap<object, Map<string, SortCacheEntry>>()\n\n/** The one array every \"nothing to sort\" answer returns, frozen like the sorted ones. */\nconst EMPTY_NAMES: readonly string[] = Object.freeze([])\n\n/**\n * Sort property names in an object schema.\n *\n * The returned array is shared with later calls for the same schema and options,\n * so it is frozen: an in-place `sort` / `reverse` / `splice` by one caller would\n * otherwise silently reorder every other consumer of the same schema. Callers\n * that need a mutable list copy it first (`slice`).\n */\nexport const sortPropertyNames = (\n schema: SchemaObject,\n discriminator?: DiscriminatorObject,\n {\n hideReadOnly = false,\n hideWriteOnly = false,\n orderSchemaPropertiesBy = 'alpha',\n orderRequiredPropertiesFirst = true,\n }: Options = {},\n): readonly string[] => {\n if (!isTypeObject(schema) || !schema.properties) {\n return EMPTY_NAMES\n }\n\n const properties = schema.properties\n const required = schema.required\n const discriminatorName = discriminator?.propertyName\n\n // A `!` marks a present discriminator so an absent one can never collide with\n // a property literally named like the placeholder.\n const cacheKey = [\n discriminatorName === undefined ? '' : `!${discriminatorName}`,\n hideReadOnly,\n hideWriteOnly,\n orderSchemaPropertiesBy,\n orderRequiredPropertiesFirst,\n ].join('|')\n\n const bucket = sortCache.get(properties)\n const cached = bucket?.get(cacheKey)\n if (cached && cached.required === required) {\n return cached.names\n }\n\n const requiredPropertiesSet = new Set(required || [])\n\n /*\n * Filter BEFORE sorting, and only when something is actually hidden.\n *\n * The filter resolves every property through `resolve.schema` to read\n * `readOnly`/`writeOnly`; with neither flag set that is a full resolve pass\n * per schema whose result is always \"keep\". Skipping it there, and shrinking\n * the array the comparator runs over when it does apply, leaves the ordering\n * identical — the filter is order-preserving and independent of the compare.\n * It shares the single read of each property with the record below.\n */\n const shouldFilter = hideReadOnly || hideWriteOnly\n const records: PropertyRecord[] = []\n\n for (const name of Object.keys(properties)) {\n const propertySchema = properties[name]\n\n if (shouldFilter) {\n const resolved = resolve.schema(propertySchema)\n\n if (hideReadOnly && resolved?.readOnly === true) {\n continue\n }\n if (hideWriteOnly && resolved?.writeOnly === true) {\n continue\n }\n }\n\n records.push({\n name,\n order:\n propertySchema && typeof propertySchema === 'object' && 'x-order' in propertySchema\n ? propertySchema['x-order']\n : undefined,\n required: requiredPropertiesSet.has(name),\n discriminator: name === discriminatorName,\n })\n }\n\n records.sort((a, b) => {\n // Discriminator comes first always\n if (a.discriminator && !b.discriminator) {\n return -1\n }\n if (!a.discriminator && b.discriminator) {\n return 1\n }\n\n // Sort by x-order specification extension when present\n if (a.order !== undefined && b.order !== undefined) {\n return Number(a.order) - Number(b.order)\n }\n if (a.order !== undefined && b.order === undefined) {\n return -1\n }\n if (a.order === undefined && b.order !== undefined) {\n return 1\n }\n\n // Order required properties first\n if (orderRequiredPropertiesFirst) {\n // If one is required and the other isn't, required comes first\n if (a.required && !b.required) {\n return -1\n }\n if (!a.required && b.required) {\n return 1\n }\n }\n\n // If both have the same required status, sort alphabetically\n if (orderSchemaPropertiesBy === 'alpha') {\n return collator.compare(a.name, b.name)\n }\n\n return 0\n })\n\n // Frozen before it is shared, so a caller that sorts or splices it in place\n // fails loudly here instead of corrupting every other reader of this schema.\n const names = Object.freeze(records.map((record) => record.name))\n\n // A malformed document can carry a non-object `properties`; that cannot key\n // a WeakMap, so it simply goes uncached.\n if (typeof properties === 'object' && properties !== null) {\n if (bucket) {\n bucket.set(cacheKey, { required, names })\n } else {\n sortCache.set(properties, new Map([[cacheKey, { required, names }]]))\n }\n }\n\n return names\n}\n"],"mappings":";;;AAiBA,IAAaA,KAAuB,GAAiB,MACnDC,EAAM,QAAoB,GAAK,MAAS;CACtC,IAAMC,IAAOC,IAAaC;CAI1B,OAHIF,MACF,EAAIE,KAAQF,IAEPG;AACT,GAAG,CAAC,CAAC,GAQDC,IAAW,IAAI,KAAK,SAAS,KAAA,CAAS,GA0CtCC,oBAAY,IAAI,QAA6C,GAG7DC,IAAiC,OAAO,OAAO,CAAC,CAAC,GAU1CC,KACX,GACA,GACA,EACE,kBAAe,IACf,mBAAgB,IAChB,6BAA0B,SAC1B,kCAA+B,OACpB,CAAC,MACQ;CACtB,IAAI,CAACC,EAAaC,CAAM,KAAK,CAACA,EAAO,YACnC,OAAOH;CAGT,IAAML,IAAaQ,EAAO,YACpBC,IAAWD,EAAO,UAClBE,IAAoBC,GAAe,cAInCC,IAAW;EACfF,MAAsB,KAAA,IAAY,KAAK,IAAIA;EAC3CG;EACAC;EACAC;EACAC;CACF,CAAC,CAAC,KAAK,GAAG,GAEJC,IAASb,EAAU,IAAIJ,CAAU,GACjCkB,IAASD,GAAQ,IAAIL,CAAQ;CACnC,IAAIM,KAAUA,EAAO,aAAaT,GAChC,OAAOS,EAAO;CAGhB,IAAMC,IAAwB,IAAI,IAAIV,KAAY,CAAC,CAAC,GAY9CW,IAAeP,KAAgBC,GAC/BO,IAA4B,CAAC;CAEnC,KAAK,IAAMpB,KAAQ,OAAO,KAAKD,CAAU,GAAG;EAC1C,IAAMsB,IAAiBtB,EAAWC;EAElC,IAAImB,GAAc;GAChB,IAAMG,IAAWC,EAAQ,OAAOF,CAAc;GAK9C,IAHIT,KAAgBU,GAAU,aAAa,MAGvCT,KAAiBS,GAAU,cAAc,IAC3C;EAEJ;EAEA,EAAQ,KAAK;GACX;GACA,OACED,KAAkB,OAAOA,KAAmB,YAAY,aAAaA,IACjEA,EAAe,aACf,KAAA;GACN,UAAUH,EAAsB,IAAIlB,CAAI;GACxC,eAAeA,MAASS;EAC1B,CAAC;CACH;CAEA,EAAQ,MAAM,GAAG,MAAM;EAErB,IAAIe,EAAE,iBAAiB,CAACC,EAAE,eACxB,OAAO;EAET,IAAI,CAACD,EAAE,iBAAiBC,EAAE,eACxB,OAAO;EAIT,IAAID,EAAE,UAAU,KAAA,KAAaC,EAAE,UAAU,KAAA,GACvC,OAAO,OAAOD,EAAE,KAAK,IAAI,OAAOC,EAAE,KAAK;EAEzC,IAAID,EAAE,UAAU,KAAA,KAAaC,EAAE,UAAU,KAAA,GACvC,OAAO;EAET,IAAID,EAAE,UAAU,KAAA,KAAaC,EAAE,UAAU,KAAA,GACvC,OAAO;EAIT,IAAIV,GAA8B;GAEhC,IAAIS,EAAE,YAAY,CAACC,EAAE,UACnB,OAAO;GAET,IAAI,CAACD,EAAE,YAAYC,EAAE,UACnB,OAAO;EAEX;EAOA,OAJIX,MAA4B,UACvBZ,EAAS,QAAQsB,EAAE,MAAMC,EAAE,IAAI,IAGjC;CACT,CAAC;CAID,IAAM5B,IAAQ,OAAO,OAAOuB,EAAQ,KAAK,MAAWM,EAAO,IAAI,CAAC;CAYhE,OARI,OAAO3B,KAAe,YAAYA,MAChCiB,IACFA,EAAO,IAAIL,GAAU;EAAE;EAAU;CAAM,CAAC,IAExCR,EAAU,IAAIJ,mBAAY,IAAI,IAAI,CAAC,CAACY,GAAU;EAAE;EAAU;CAAM,CAAC,CAAC,CAAC,CAAC,IAIjEd;AACT"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unwrap-for-read.js","names":[],"sources":["../../../src/schema/helpers/unwrap-for-read.ts"],"sourcesContent":["import { unpackDetectChangesProxy } from '@scalar/workspace-store/helpers/detect-changes-proxy'\nimport { toRaw } from 'vue'\n\n/**\n * Peel the two write-oriented layers off a workspace value so the schema tree reads it\n * through the magic and overrides proxies only.\n *\n * In the app a document sits under four proxies: Vue's `reactive` wraps a detect-changes\n * proxy (see `createWorkspaceStore`), which wraps `createOverridesProxy(createMagicProxy(raw))`.\n * Rendering a schema is read-only, but every property access still pays for all four: the\n * reactive layer tracks a dependency and lazily wraps the child, and the detect-changes `get`\n * allocates a fresh `{ ...args, path: [...args.path, prop] }` for every object-valued read.\n * Together they make a nested read roughly sixteen times more expensive than the same read\n * through the magic layer alone.\n *\n * Only the outer two layers are removed. The magic layer must stay, because every resolver in\n * this directory reads the virtual `$ref-value` property it synthesises, and the overrides\n * layer must stay so `x-scalar-*` overrides keep resolving. That rules out the store's own\n * `getRaw` / `unpackProxyObject` helpers (they strip the magic layer, and `unpackProxyObject`\n * writes unpacked children back onto the raw document) as well as `markRaw` (it would write\n * `__v_skip` through the detect-changes set hooks).\n *\n * What this gives up is Vue dependency tracking on reads *inside* a schema subtree. That is\n * safe here because the API reference never mutates a schema node in place: documents are\n * added or replaced whole and switched by name, so a `Schema` root always receives a new\n * object and re-renders from the prop identity, and the in-place writes that do exist\n * (`x-scalar-active-document`, `x-scalar-is-dirty`) are document-level keys no schema\n * component reads.\n *\n * That invariant is the precondition, so here is what would break it. Anything that fills an\n * existing schema node in place, rather than handing the tree a new object, becomes invisible\n * to every component below a `Schema` root and the stale subtree stays on screen:\n *\n * - `store.resolve(path)` in `@scalar/workspace-store` (see `client.ts`) bundles lazily and\n * populates the node already at `path`. The API reference does not call it today. Wiring up\n * lazy `$ref` bundling means this unwrap has to go, or the resolved subtree has to arrive as\n * a new object the `Schema` prop can be swapped to.\n * - `merge-all-of-schemas.ts` reaches one in-place write of its own: when a merged `items` was\n * itself taken from the document (`result.items = items`), a later pass `Object.assign`s onto\n * that document node. It is idempotent and runs while the same render is still computing, so\n * nothing re-reads it afterwards, but it is the shape to watch for.\n *\n * There is deliberately no runtime guard. Catching these writes would mean proxying the whole\n * subtree again — the exact per-read cost this removes — and the writes above happen on nodes\n * reached through `resolve.schema`, not through the value returned here, so a shallow proxy on\n * the root would catch none of them.\n *\n * Idempotent: a plain object (unit tests, stories, static documents) is returned unchanged.\n */\nexport const unwrapForRead = <T>(value: T): T => unpackDetectChangesProxy(toRaw(value))\n"],"mappings":";;;AAiDA,
|
|
1
|
+
{"version":3,"file":"unwrap-for-read.js","names":["unwrapForRead","unpackDetectChangesProxy","toRaw","value"],"sources":["../../../src/schema/helpers/unwrap-for-read.ts"],"sourcesContent":["import { unpackDetectChangesProxy } from '@scalar/workspace-store/helpers/detect-changes-proxy'\nimport { toRaw } from 'vue'\n\n/**\n * Peel the two write-oriented layers off a workspace value so the schema tree reads it\n * through the magic and overrides proxies only.\n *\n * In the app a document sits under four proxies: Vue's `reactive` wraps a detect-changes\n * proxy (see `createWorkspaceStore`), which wraps `createOverridesProxy(createMagicProxy(raw))`.\n * Rendering a schema is read-only, but every property access still pays for all four: the\n * reactive layer tracks a dependency and lazily wraps the child, and the detect-changes `get`\n * allocates a fresh `{ ...args, path: [...args.path, prop] }` for every object-valued read.\n * Together they make a nested read roughly sixteen times more expensive than the same read\n * through the magic layer alone.\n *\n * Only the outer two layers are removed. The magic layer must stay, because every resolver in\n * this directory reads the virtual `$ref-value` property it synthesises, and the overrides\n * layer must stay so `x-scalar-*` overrides keep resolving. That rules out the store's own\n * `getRaw` / `unpackProxyObject` helpers (they strip the magic layer, and `unpackProxyObject`\n * writes unpacked children back onto the raw document) as well as `markRaw` (it would write\n * `__v_skip` through the detect-changes set hooks).\n *\n * What this gives up is Vue dependency tracking on reads *inside* a schema subtree. That is\n * safe here because the API reference never mutates a schema node in place: documents are\n * added or replaced whole and switched by name, so a `Schema` root always receives a new\n * object and re-renders from the prop identity, and the in-place writes that do exist\n * (`x-scalar-active-document`, `x-scalar-is-dirty`) are document-level keys no schema\n * component reads.\n *\n * That invariant is the precondition, so here is what would break it. Anything that fills an\n * existing schema node in place, rather than handing the tree a new object, becomes invisible\n * to every component below a `Schema` root and the stale subtree stays on screen:\n *\n * - `store.resolve(path)` in `@scalar/workspace-store` (see `client.ts`) bundles lazily and\n * populates the node already at `path`. The API reference does not call it today. Wiring up\n * lazy `$ref` bundling means this unwrap has to go, or the resolved subtree has to arrive as\n * a new object the `Schema` prop can be swapped to.\n * - `merge-all-of-schemas.ts` reaches one in-place write of its own: when a merged `items` was\n * itself taken from the document (`result.items = items`), a later pass `Object.assign`s onto\n * that document node. It is idempotent and runs while the same render is still computing, so\n * nothing re-reads it afterwards, but it is the shape to watch for.\n *\n * There is deliberately no runtime guard. Catching these writes would mean proxying the whole\n * subtree again — the exact per-read cost this removes — and the writes above happen on nodes\n * reached through `resolve.schema`, not through the value returned here, so a shallow proxy on\n * the root would catch none of them.\n *\n * Idempotent: a plain object (unit tests, stories, static documents) is returned unchanged.\n */\nexport const unwrapForRead = <T>(value: T): T => unpackDetectChangesProxy(toRaw(value))\n"],"mappings":";;;AAiDA,IAAaA,KAAoB,MAAgBC,EAAyBC,EAAMC,CAAK,CAAC"}
|
package/dist/schema/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export { default as SchemaGutterToggle } from './SchemaGutterToggle.vue';
|
|
|
9
9
|
export { default as SchemaHeading } from './SchemaHeading.vue';
|
|
10
10
|
export { default as SchemaObjectExampleCodeBlock } from './SchemaObjectExampleCodeBlock.vue';
|
|
11
11
|
export { default as SchemaProperty } from './SchemaProperty.vue';
|
|
12
|
+
export { default as SchemaPropertyExamples } from './SchemaPropertyExamples.vue';
|
|
12
13
|
export { default as SchemaRailPanel } from './SchemaRailPanel.vue';
|
|
13
14
|
export type { SchemaOptions, SchemaRenderingProps } from './types';
|
|
14
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schema/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AACxF,OAAO,EAAE,oCAAoC,EAAE,MAAM,sCAAsC,CAAA;AAC3F,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAA;AAChE,OAAO,EACL,qCAAqC,EACrC,KAAK,+BAA+B,GACrC,MAAM,kCAAkC,CAAA;AACzC,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,cAAc,CAAA;AAChD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAClE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AACxE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAC9D,OAAO,EAAE,OAAO,IAAI,4BAA4B,EAAE,MAAM,oCAAoC,CAAA;AAC5F,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAChE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAClE,YAAY,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schema/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AACxF,OAAO,EAAE,oCAAoC,EAAE,MAAM,sCAAsC,CAAA;AAC3F,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAA;AAChE,OAAO,EACL,qCAAqC,EACrC,KAAK,+BAA+B,GACrC,MAAM,kCAAkC,CAAA;AACzC,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,cAAc,CAAA;AAChD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAClE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AACxE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAC9D,OAAO,EAAE,OAAO,IAAI,4BAA4B,EAAE,MAAM,oCAAoC,CAAA;AAC5F,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAChE,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,8BAA8B,CAAA;AAChF,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAClE,YAAY,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA"}
|
package/dist/schema/index.js
CHANGED
|
@@ -6,8 +6,9 @@ import { REQUEST_BODY_COMPOSITION_INDEX_SYMBOL as i } from "./request-body-compo
|
|
|
6
6
|
import a from "./SchemaGlyphPuck.vue.js";
|
|
7
7
|
import o from "./SchemaRailPanel.vue.js";
|
|
8
8
|
import s from "./SchemaGutterToggle.vue.js";
|
|
9
|
-
import c from "./
|
|
10
|
-
import l from "./
|
|
11
|
-
import u from "./
|
|
12
|
-
import d from "./
|
|
13
|
-
|
|
9
|
+
import c from "./SchemaPropertyExamples.vue.js";
|
|
10
|
+
import l from "./SchemaProperty.vue.js";
|
|
11
|
+
import u from "./Schema.vue.js";
|
|
12
|
+
import d from "./SchemaHeading.vue.js";
|
|
13
|
+
import f from "./SchemaObjectExampleCodeBlock.vue.js";
|
|
14
|
+
export { n as LinkButton, i as REQUEST_BODY_COMPOSITION_INDEX_SYMBOL, u as Schema, a as SchemaGlyphPuck, s as SchemaGutterToggle, d as SchemaHeading, f as SchemaObjectExampleCodeBlock, l as SchemaProperty, c as SchemaPropertyExamples, o as SchemaRailPanel, t as inferDiscriminatorMappingComposition, e as schemaDiscriminator, r as schemaTranslations };
|
|
@@ -65,5 +65,5 @@ export declare const useLocalization: () => import("@scalar/localization").Local
|
|
|
65
65
|
actions: {
|
|
66
66
|
copyLinkTo: string;
|
|
67
67
|
};
|
|
68
|
-
}, ("schema.keys" | "schema.values" | "schema.
|
|
68
|
+
}, ("schema.keys" | "schema.values" | "schema.allOf" | "schema.schema" | "schema.default" | "schema.enum" | "schema.const" | "schema.deprecated" | "schema.discriminator" | "schema.readOnly" | "schema.writeOnly" | "schema.example" | "schema.examples" | "schema.oneOf" | "schema.anyOf" | "schema.not" | "schema.type" | "schema.format" | "schema.multipleOf" | "schema.maxLength" | "schema.minLength" | "schema.pattern" | "schema.required" | "schema.additionalProperties" | "schema.propertyNames" | "schema.nullable" | "schema.recursive" | "schema.max" | "schema.min" | "schema.unique" | "schema.variants" | "schema.discriminatorValue" | "schema.noAllowedValues" | "schema.emptyObject" | "schema.showAdditionalProperties" | "schema.showOneMoreProperty" | "schema.showMoreProperties" | "schema.forName" | "schema.showSchemaDetails" | "schema.unknownType" | "schema.propertyCount" | "schema.headerCount" | "schema.recursiveReference" | "schema.greaterThan" | "schema.lessThan" | "schema.copyPattern" | "schema.hideValues" | "schema.showAllValues" | "schema.typeInteger" | "schema.formatInt32" | "schema.formatInt64" | "schema.formatDate" | "schema.formatDateTime" | "schema.formatPassword" | "schema.formatBase64" | "schema.formatBinary") | "actions.copyLinkTo" | "common.copyDefault" | "common.copyExample">;
|
|
69
69
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../src/schema/localization/index.ts"],"sourcesContent":["import { createLocalization } from '@scalar/localization'\nimport type { ApiReferenceTranslationKey } from '@scalar/types/api-reference'\n\nimport { schemaTranslations } from './translations'\n\n/** Schema translations inherit the host locale and custom overrides through the shared context. */\nexport const { useLocalization } = createLocalization<\n typeof schemaTranslations.en,\n Extract<\n ApiReferenceTranslationKey,\n `schema.${string}` | 'common.copyDefault' | 'common.copyExample' | 'actions.copyLinkTo'\n >\n>({\n localeTranslations: schemaTranslations,\n defaultLocale: 'en',\n rtlLocales: new Set(['ar', 'fa', 'he', 'ur']),\n logPrefix: '[@scalar/blocks/schema]',\n})\n"],"mappings":";;;AAMA,IAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","names":["createLocalization","schemaTranslations","useLocalization"],"sources":["../../../src/schema/localization/index.ts"],"sourcesContent":["import { createLocalization } from '@scalar/localization'\nimport type { ApiReferenceTranslationKey } from '@scalar/types/api-reference'\n\nimport { schemaTranslations } from './translations'\n\n/** Schema translations inherit the host locale and custom overrides through the shared context. */\nexport const { useLocalization } = createLocalization<\n typeof schemaTranslations.en,\n Extract<\n ApiReferenceTranslationKey,\n `schema.${string}` | 'common.copyDefault' | 'common.copyExample' | 'actions.copyLinkTo'\n >\n>({\n localeTranslations: schemaTranslations,\n defaultLocale: 'en',\n rtlLocales: new Set(['ar', 'fa', 'he', 'ur']),\n logPrefix: '[@scalar/blocks/schema]',\n})\n"],"mappings":";;;AAMA,IAAa,EAAE,uBAAoBA,EAMjC;CACA,oBAAoBC;CACpB,eAAe;CACf,4BAAY,IAAI,IAAI;EAAC;EAAM;EAAM;EAAM;CAAI,CAAC;CAC5C,WAAW;AACb,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ar.js","names":[],"sources":["../../../../src/schema/localization/locales/ar.ts"],"sourcesContent":["export const ar = {\n schema: {\n variants: 'المتغيرات',\n discriminatorValue: 'قيمة المميز',\n noAllowedValues: 'لا توجد قيم تستوفي قيد التعداد هذا.',\n example: 'مثال',\n examples: 'أمثلة',\n default: 'الافتراضي',\n schema: 'المخطط',\n emptyObject: 'كائن فارغ',\n showAdditionalProperties: 'إظهار الخصائص الإضافية',\n showOneMoreProperty: 'إظهار خاصية إضافية واحدة',\n showMoreProperties: 'إظهار المزيد من الخصائص ({count})',\n forName: 'لـ {name}',\n showSchemaDetails: 'إظهار تفاصيل المخطط',\n oneOf: 'واحد من',\n anyOf: 'أي من',\n allOf: 'كل من',\n not: 'ليس',\n unknownType: 'نوع غير معروف',\n propertyCount: 'الخصائص: {count}',\n headerCount: 'الترويسات: {count}',\n recursiveReference: 'مرجع تكراري إلى {name}',\n recursive: 'تكراري',\n additionalProperties: 'خصائص إضافية',\n const: 'ثابت',\n deprecated: 'مهمل',\n discriminator: 'المميّز',\n enum: 'تعداد',\n format: 'التنسيق',\n greaterThan: 'أكبر من',\n keys: 'المفاتيح',\n lessThan: 'أقل من',\n max: 'الحد الأقصى',\n min: 'الحد الأدنى',\n maxLength: 'أقصى طول',\n minLength: 'أدنى طول',\n multipleOf: 'مضاعف لـ',\n nullable: 'يقبل null',\n propertyNames: 'أسماء الخصائص',\n pattern: 'النمط',\n copyPattern: 'نسخ النمط',\n readOnly: 'قراءة فقط',\n required: 'مطلوب',\n hideValues: 'إخفاء القيم',\n showAllValues: 'عرض كل القيم',\n type: 'النوع',\n unique: 'فريد',\n values: 'القيم',\n writeOnly: 'كتابة فقط',\n typeInteger: 'أعداد صحيحة.',\n formatInt32: 'أعداد صحيحة بإشارة بطول 32 بت (نوع الأعداد الصحيحة الشائع).',\n formatInt64: 'أعداد صحيحة بإشارة بطول 64 بت (النوع long).',\n formatDate: 'تدوين full-date وفق RFC 3339، القسم 5.6، مثلًا 2017-07-21',\n formatDateTime: 'تدوين date-time وفق RFC 3339، القسم 5.6، مثلًا 2017-07-21T17:32:28Z',\n formatPassword: 'تلميح للواجهات بإخفاء الإدخال',\n formatBase64: 'أحرف بترميز base64، مثلًا U3dhZ2dlciByb2Nrcw==',\n formatBinary: 'بيانات ثنائية لوصف الملفات',\n },\n common: { copyDefault: 'نسخ القيمة الافتراضية', copyExample: 'نسخ القيمة النموذجية' },\n actions: { copyLinkTo: 'نسخ الرابط إلى {name}' },\n}\n"],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"ar.js","names":["ar"],"sources":["../../../../src/schema/localization/locales/ar.ts"],"sourcesContent":["export const ar = {\n schema: {\n variants: 'المتغيرات',\n discriminatorValue: 'قيمة المميز',\n noAllowedValues: 'لا توجد قيم تستوفي قيد التعداد هذا.',\n example: 'مثال',\n examples: 'أمثلة',\n default: 'الافتراضي',\n schema: 'المخطط',\n emptyObject: 'كائن فارغ',\n showAdditionalProperties: 'إظهار الخصائص الإضافية',\n showOneMoreProperty: 'إظهار خاصية إضافية واحدة',\n showMoreProperties: 'إظهار المزيد من الخصائص ({count})',\n forName: 'لـ {name}',\n showSchemaDetails: 'إظهار تفاصيل المخطط',\n oneOf: 'واحد من',\n anyOf: 'أي من',\n allOf: 'كل من',\n not: 'ليس',\n unknownType: 'نوع غير معروف',\n propertyCount: 'الخصائص: {count}',\n headerCount: 'الترويسات: {count}',\n recursiveReference: 'مرجع تكراري إلى {name}',\n recursive: 'تكراري',\n additionalProperties: 'خصائص إضافية',\n const: 'ثابت',\n deprecated: 'مهمل',\n discriminator: 'المميّز',\n enum: 'تعداد',\n format: 'التنسيق',\n greaterThan: 'أكبر من',\n keys: 'المفاتيح',\n lessThan: 'أقل من',\n max: 'الحد الأقصى',\n min: 'الحد الأدنى',\n maxLength: 'أقصى طول',\n minLength: 'أدنى طول',\n multipleOf: 'مضاعف لـ',\n nullable: 'يقبل null',\n propertyNames: 'أسماء الخصائص',\n pattern: 'النمط',\n copyPattern: 'نسخ النمط',\n readOnly: 'قراءة فقط',\n required: 'مطلوب',\n hideValues: 'إخفاء القيم',\n showAllValues: 'عرض كل القيم',\n type: 'النوع',\n unique: 'فريد',\n values: 'القيم',\n writeOnly: 'كتابة فقط',\n typeInteger: 'أعداد صحيحة.',\n formatInt32: 'أعداد صحيحة بإشارة بطول 32 بت (نوع الأعداد الصحيحة الشائع).',\n formatInt64: 'أعداد صحيحة بإشارة بطول 64 بت (النوع long).',\n formatDate: 'تدوين full-date وفق RFC 3339، القسم 5.6، مثلًا 2017-07-21',\n formatDateTime: 'تدوين date-time وفق RFC 3339، القسم 5.6، مثلًا 2017-07-21T17:32:28Z',\n formatPassword: 'تلميح للواجهات بإخفاء الإدخال',\n formatBase64: 'أحرف بترميز base64، مثلًا U3dhZ2dlciByb2Nrcw==',\n formatBinary: 'بيانات ثنائية لوصف الملفات',\n },\n common: { copyDefault: 'نسخ القيمة الافتراضية', copyExample: 'نسخ القيمة النموذجية' },\n actions: { copyLinkTo: 'نسخ الرابط إلى {name}' },\n}\n"],"mappings":";AAAA,IAAaA,IAAK;CAChB,QAAQ;EACN,UAAU;EACV,oBAAoB;EACpB,iBAAiB;EACjB,SAAS;EACT,UAAU;EACV,SAAS;EACT,QAAQ;EACR,aAAa;EACb,0BAA0B;EAC1B,qBAAqB;EACrB,oBAAoB;EACpB,SAAS;EACT,mBAAmB;EACnB,OAAO;EACP,OAAO;EACP,OAAO;EACP,KAAK;EACL,aAAa;EACb,eAAe;EACf,aAAa;EACb,oBAAoB;EACpB,WAAW;EACX,sBAAsB;EACtB,OAAO;EACP,YAAY;EACZ,eAAe;EACf,MAAM;EACN,QAAQ;EACR,aAAa;EACb,MAAM;EACN,UAAU;EACV,KAAK;EACL,KAAK;EACL,WAAW;EACX,WAAW;EACX,YAAY;EACZ,UAAU;EACV,eAAe;EACf,SAAS;EACT,aAAa;EACb,UAAU;EACV,UAAU;EACV,YAAY;EACZ,eAAe;EACf,MAAM;EACN,QAAQ;EACR,QAAQ;EACR,WAAW;EACX,aAAa;EACb,aAAa;EACb,aAAa;EACb,YAAY;EACZ,gBAAgB;EAChB,gBAAgB;EAChB,cAAc;EACd,cAAc;CAChB;CACA,QAAQ;EAAE,aAAa;EAAyB,aAAa;CAAuB;CACpF,SAAS,EAAE,YAAY,wBAAwB;AACjD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"de.js","names":[],"sources":["../../../../src/schema/localization/locales/de.ts"],"sourcesContent":["export const de = {\n schema: {\n variants: 'Varianten',\n discriminatorValue: 'Diskriminatorwert',\n noAllowedValues: 'Keine Werte erfüllen diese Enum-Bedingung.',\n example: 'Beispiel',\n examples: 'Beispiele',\n default: 'Standard',\n schema: 'Schema',\n emptyObject: 'Leeres Objekt',\n showAdditionalProperties: 'Zusätzliche Eigenschaften anzeigen',\n showOneMoreProperty: '1 weitere Eigenschaft anzeigen',\n showMoreProperties: '{count} weitere Eigenschaften anzeigen',\n forName: 'für {name}',\n showSchemaDetails: 'Schema-Details anzeigen',\n oneOf: 'Eines von',\n anyOf: 'Beliebiges von',\n allOf: 'Alle von',\n not: 'Nicht',\n unknownType: 'unbekannter Typ',\n propertyCount: 'Eigenschaften: {count}',\n headerCount: 'Header: {count}',\n recursiveReference: 'Rekursiver Verweis auf {name}',\n recursive: 'rekursiv',\n additionalProperties: 'zusätzliche Eigenschaften',\n const: 'Konstante',\n deprecated: 'veraltet',\n discriminator: 'Diskriminator',\n enum: 'enum',\n format: 'Format',\n greaterThan: 'größer als',\n keys: 'Schlüssel',\n lessThan: 'kleiner als',\n max: 'max.',\n min: 'min.',\n maxLength: 'max. Länge',\n minLength: 'min. Länge',\n multipleOf: 'Vielfaches von',\n nullable: 'nullable',\n propertyNames: 'Eigenschaftsnamen',\n pattern: 'Muster',\n copyPattern: 'Muster kopieren',\n readOnly: 'nur lesbar',\n required: 'erforderlich',\n hideValues: 'Werte ausblenden',\n showAllValues: 'Alle Werte anzeigen',\n type: 'Typ',\n unique: 'eindeutig',\n values: 'Werte',\n writeOnly: 'nur schreibbar',\n typeInteger: 'Ganzzahlen.',\n formatInt32: 'Vorzeichenbehaftete 32-Bit-Ganzzahlen (üblicher Ganzzahltyp).',\n formatInt64: 'Vorzeichenbehaftete 64-Bit-Ganzzahlen (Typ long).',\n formatDate: 'full-date-Notation gemäß RFC 3339, Abschnitt 5.6, zum Beispiel 2017-07-21',\n formatDateTime: 'date-time-Notation gemäß RFC 3339, Abschnitt 5.6, zum Beispiel 2017-07-21T17:32:28Z',\n formatPassword: 'Hinweis an Oberflächen, die Eingabe zu maskieren',\n formatBase64: 'Base64-kodierte Zeichen, zum Beispiel U3dhZ2dlciByb2Nrcw==',\n formatBinary: 'Binärdaten zur Beschreibung von Dateien',\n },\n common: { copyDefault: 'Standardwert kopieren', copyExample: 'Beispielwert kopieren' },\n actions: { copyLinkTo: 'Link zu {name} kopieren' },\n}\n"],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"de.js","names":["de"],"sources":["../../../../src/schema/localization/locales/de.ts"],"sourcesContent":["export const de = {\n schema: {\n variants: 'Varianten',\n discriminatorValue: 'Diskriminatorwert',\n noAllowedValues: 'Keine Werte erfüllen diese Enum-Bedingung.',\n example: 'Beispiel',\n examples: 'Beispiele',\n default: 'Standard',\n schema: 'Schema',\n emptyObject: 'Leeres Objekt',\n showAdditionalProperties: 'Zusätzliche Eigenschaften anzeigen',\n showOneMoreProperty: '1 weitere Eigenschaft anzeigen',\n showMoreProperties: '{count} weitere Eigenschaften anzeigen',\n forName: 'für {name}',\n showSchemaDetails: 'Schema-Details anzeigen',\n oneOf: 'Eines von',\n anyOf: 'Beliebiges von',\n allOf: 'Alle von',\n not: 'Nicht',\n unknownType: 'unbekannter Typ',\n propertyCount: 'Eigenschaften: {count}',\n headerCount: 'Header: {count}',\n recursiveReference: 'Rekursiver Verweis auf {name}',\n recursive: 'rekursiv',\n additionalProperties: 'zusätzliche Eigenschaften',\n const: 'Konstante',\n deprecated: 'veraltet',\n discriminator: 'Diskriminator',\n enum: 'enum',\n format: 'Format',\n greaterThan: 'größer als',\n keys: 'Schlüssel',\n lessThan: 'kleiner als',\n max: 'max.',\n min: 'min.',\n maxLength: 'max. Länge',\n minLength: 'min. Länge',\n multipleOf: 'Vielfaches von',\n nullable: 'nullable',\n propertyNames: 'Eigenschaftsnamen',\n pattern: 'Muster',\n copyPattern: 'Muster kopieren',\n readOnly: 'nur lesbar',\n required: 'erforderlich',\n hideValues: 'Werte ausblenden',\n showAllValues: 'Alle Werte anzeigen',\n type: 'Typ',\n unique: 'eindeutig',\n values: 'Werte',\n writeOnly: 'nur schreibbar',\n typeInteger: 'Ganzzahlen.',\n formatInt32: 'Vorzeichenbehaftete 32-Bit-Ganzzahlen (üblicher Ganzzahltyp).',\n formatInt64: 'Vorzeichenbehaftete 64-Bit-Ganzzahlen (Typ long).',\n formatDate: 'full-date-Notation gemäß RFC 3339, Abschnitt 5.6, zum Beispiel 2017-07-21',\n formatDateTime: 'date-time-Notation gemäß RFC 3339, Abschnitt 5.6, zum Beispiel 2017-07-21T17:32:28Z',\n formatPassword: 'Hinweis an Oberflächen, die Eingabe zu maskieren',\n formatBase64: 'Base64-kodierte Zeichen, zum Beispiel U3dhZ2dlciByb2Nrcw==',\n formatBinary: 'Binärdaten zur Beschreibung von Dateien',\n },\n common: { copyDefault: 'Standardwert kopieren', copyExample: 'Beispielwert kopieren' },\n actions: { copyLinkTo: 'Link zu {name} kopieren' },\n}\n"],"mappings":";AAAA,IAAaA,IAAK;CAChB,QAAQ;EACN,UAAU;EACV,oBAAoB;EACpB,iBAAiB;EACjB,SAAS;EACT,UAAU;EACV,SAAS;EACT,QAAQ;EACR,aAAa;EACb,0BAA0B;EAC1B,qBAAqB;EACrB,oBAAoB;EACpB,SAAS;EACT,mBAAmB;EACnB,OAAO;EACP,OAAO;EACP,OAAO;EACP,KAAK;EACL,aAAa;EACb,eAAe;EACf,aAAa;EACb,oBAAoB;EACpB,WAAW;EACX,sBAAsB;EACtB,OAAO;EACP,YAAY;EACZ,eAAe;EACf,MAAM;EACN,QAAQ;EACR,aAAa;EACb,MAAM;EACN,UAAU;EACV,KAAK;EACL,KAAK;EACL,WAAW;EACX,WAAW;EACX,YAAY;EACZ,UAAU;EACV,eAAe;EACf,SAAS;EACT,aAAa;EACb,UAAU;EACV,UAAU;EACV,YAAY;EACZ,eAAe;EACf,MAAM;EACN,QAAQ;EACR,QAAQ;EACR,WAAW;EACX,aAAa;EACb,aAAa;EACb,aAAa;EACb,YAAY;EACZ,gBAAgB;EAChB,gBAAgB;EAChB,cAAc;EACd,cAAc;CAChB;CACA,QAAQ;EAAE,aAAa;EAAyB,aAAa;CAAwB;CACrF,SAAS,EAAE,YAAY,0BAA0B;AACnD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"en.js","names":[],"sources":["../../../../src/schema/localization/locales/en.ts"],"sourcesContent":["export const en = {\n schema: {\n noAllowedValues: 'No values satisfy this enum constraint.',\n example: 'Example',\n examples: 'Examples',\n default: 'Default',\n schema: 'Schema',\n emptyObject: 'Empty object',\n showAdditionalProperties: 'Show additional properties',\n showOneMoreProperty: 'Show 1 more property',\n showMoreProperties: 'Show {count} more properties',\n forName: 'for {name}',\n showSchemaDetails: 'Show Schema Details',\n oneOf: 'One of',\n variants: 'Variants',\n discriminatorValue: 'Discriminator value',\n anyOf: 'Any of',\n allOf: 'All of',\n not: 'Not',\n unknownType: 'unknown type',\n propertyCount: 'Properties: {count}',\n headerCount: 'Headers: {count}',\n recursiveReference: 'Recursive reference to {name}',\n recursive: 'recursive',\n additionalProperties: 'additional properties',\n const: 'const',\n deprecated: 'deprecated',\n discriminator: 'Discriminator',\n enum: 'enum',\n format: 'Format',\n greaterThan: 'greater than',\n keys: 'keys',\n lessThan: 'less than',\n max: 'max',\n min: 'min',\n maxLength: 'max length',\n minLength: 'min length',\n multipleOf: 'multiple of',\n nullable: 'nullable',\n propertyNames: 'property names',\n pattern: 'Pattern',\n copyPattern: 'Copy pattern',\n readOnly: 'read-only',\n required: 'required',\n hideValues: 'Hide values',\n showAllValues: 'Show all values',\n type: 'Type',\n unique: 'unique',\n values: 'values',\n writeOnly: 'write-only',\n typeInteger: 'Integer numbers.',\n formatInt32: 'Signed 32-bit integers (commonly used integer type).',\n formatInt64: 'Signed 64-bit integers (long type).',\n formatDate: 'full-date notation as defined by RFC 3339, section 5.6, for example, 2017-07-21',\n formatDateTime: 'the date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z',\n formatPassword: 'a hint to UIs to mask the input',\n formatBase64: 'base64-encoded characters, for example, U3dhZ2dlciByb2Nrcw==',\n formatBinary: 'binary data, used to describe files',\n },\n common: { copyDefault: 'Copy default value', copyExample: 'Copy example value' },\n actions: { copyLinkTo: 'Copy link to {name}' },\n}\n"],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"en.js","names":["en"],"sources":["../../../../src/schema/localization/locales/en.ts"],"sourcesContent":["export const en = {\n schema: {\n noAllowedValues: 'No values satisfy this enum constraint.',\n example: 'Example',\n examples: 'Examples',\n default: 'Default',\n schema: 'Schema',\n emptyObject: 'Empty object',\n showAdditionalProperties: 'Show additional properties',\n showOneMoreProperty: 'Show 1 more property',\n showMoreProperties: 'Show {count} more properties',\n forName: 'for {name}',\n showSchemaDetails: 'Show Schema Details',\n oneOf: 'One of',\n variants: 'Variants',\n discriminatorValue: 'Discriminator value',\n anyOf: 'Any of',\n allOf: 'All of',\n not: 'Not',\n unknownType: 'unknown type',\n propertyCount: 'Properties: {count}',\n headerCount: 'Headers: {count}',\n recursiveReference: 'Recursive reference to {name}',\n recursive: 'recursive',\n additionalProperties: 'additional properties',\n const: 'const',\n deprecated: 'deprecated',\n discriminator: 'Discriminator',\n enum: 'enum',\n format: 'Format',\n greaterThan: 'greater than',\n keys: 'keys',\n lessThan: 'less than',\n max: 'max',\n min: 'min',\n maxLength: 'max length',\n minLength: 'min length',\n multipleOf: 'multiple of',\n nullable: 'nullable',\n propertyNames: 'property names',\n pattern: 'Pattern',\n copyPattern: 'Copy pattern',\n readOnly: 'read-only',\n required: 'required',\n hideValues: 'Hide values',\n showAllValues: 'Show all values',\n type: 'Type',\n unique: 'unique',\n values: 'values',\n writeOnly: 'write-only',\n typeInteger: 'Integer numbers.',\n formatInt32: 'Signed 32-bit integers (commonly used integer type).',\n formatInt64: 'Signed 64-bit integers (long type).',\n formatDate: 'full-date notation as defined by RFC 3339, section 5.6, for example, 2017-07-21',\n formatDateTime: 'the date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z',\n formatPassword: 'a hint to UIs to mask the input',\n formatBase64: 'base64-encoded characters, for example, U3dhZ2dlciByb2Nrcw==',\n formatBinary: 'binary data, used to describe files',\n },\n common: { copyDefault: 'Copy default value', copyExample: 'Copy example value' },\n actions: { copyLinkTo: 'Copy link to {name}' },\n}\n"],"mappings":";AAAA,IAAaA,IAAK;CAChB,QAAQ;EACN,iBAAiB;EACjB,SAAS;EACT,UAAU;EACV,SAAS;EACT,QAAQ;EACR,aAAa;EACb,0BAA0B;EAC1B,qBAAqB;EACrB,oBAAoB;EACpB,SAAS;EACT,mBAAmB;EACnB,OAAO;EACP,UAAU;EACV,oBAAoB;EACpB,OAAO;EACP,OAAO;EACP,KAAK;EACL,aAAa;EACb,eAAe;EACf,aAAa;EACb,oBAAoB;EACpB,WAAW;EACX,sBAAsB;EACtB,OAAO;EACP,YAAY;EACZ,eAAe;EACf,MAAM;EACN,QAAQ;EACR,aAAa;EACb,MAAM;EACN,UAAU;EACV,KAAK;EACL,KAAK;EACL,WAAW;EACX,WAAW;EACX,YAAY;EACZ,UAAU;EACV,eAAe;EACf,SAAS;EACT,aAAa;EACb,UAAU;EACV,UAAU;EACV,YAAY;EACZ,eAAe;EACf,MAAM;EACN,QAAQ;EACR,QAAQ;EACR,WAAW;EACX,aAAa;EACb,aAAa;EACb,aAAa;EACb,YAAY;EACZ,gBAAgB;EAChB,gBAAgB;EAChB,cAAc;EACd,cAAc;CAChB;CACA,QAAQ;EAAE,aAAa;EAAsB,aAAa;CAAqB;CAC/E,SAAS,EAAE,YAAY,sBAAsB;AAC/C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"es.js","names":[],"sources":["../../../../src/schema/localization/locales/es.ts"],"sourcesContent":["export const es = {\n schema: {\n variants: 'Variantes',\n discriminatorValue: 'Valor del discriminador',\n noAllowedValues: 'Ningún valor satisface esta restricción enum.',\n example: 'Ejemplo',\n examples: 'Ejemplos',\n default: 'Predeterminado',\n schema: 'Esquema',\n emptyObject: 'Objeto vacío',\n showAdditionalProperties: 'Mostrar propiedades adicionales',\n showOneMoreProperty: 'Mostrar 1 propiedad más',\n showMoreProperties: 'Mostrar {count} propiedades más',\n forName: 'para {name}',\n showSchemaDetails: 'Mostrar detalles del esquema',\n oneOf: 'Uno de',\n anyOf: 'Cualquiera de',\n allOf: 'Todos de',\n not: 'No',\n unknownType: 'tipo desconocido',\n propertyCount: 'Propiedades: {count}',\n headerCount: 'Encabezados: {count}',\n recursiveReference: 'Referencia recursiva a {name}',\n recursive: 'recursivo',\n additionalProperties: 'propiedades adicionales',\n const: 'constante',\n deprecated: 'obsoleto',\n discriminator: 'Discriminador',\n enum: 'enum',\n format: 'Formato',\n greaterThan: 'mayor que',\n keys: 'claves',\n lessThan: 'menor que',\n max: 'máx.',\n min: 'mín.',\n maxLength: 'longitud máx.',\n minLength: 'longitud mín.',\n multipleOf: 'múltiplo de',\n nullable: 'admite null',\n propertyNames: 'nombres de propiedades',\n pattern: 'Patrón',\n copyPattern: 'Copiar patrón',\n readOnly: 'solo lectura',\n required: 'obligatorio',\n hideValues: 'Ocultar valores',\n showAllValues: 'Mostrar todos los valores',\n type: 'Tipo',\n unique: 'único',\n values: 'valores',\n writeOnly: 'solo escritura',\n typeInteger: 'Números enteros.',\n formatInt32: 'Enteros de 32 bits con signo (tipo entero de uso común).',\n formatInt64: 'Enteros de 64 bits con signo (tipo long).',\n formatDate: 'notación full-date definida en RFC 3339, sección 5.6, por ejemplo, 2017-07-21',\n formatDateTime: 'notación date-time definida en RFC 3339, sección 5.6, por ejemplo, 2017-07-21T17:32:28Z',\n formatPassword: 'indica a las interfaces que oculten la entrada',\n formatBase64: 'caracteres codificados en base64, por ejemplo, U3dhZ2dlciByb2Nrcw==',\n formatBinary: 'datos binarios, usados para describir archivos',\n },\n common: { copyDefault: 'Copiar valor por defecto', copyExample: 'Copiar valor de ejemplo' },\n actions: { copyLinkTo: 'Copiar enlace a {name}' },\n}\n"],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"es.js","names":["es"],"sources":["../../../../src/schema/localization/locales/es.ts"],"sourcesContent":["export const es = {\n schema: {\n variants: 'Variantes',\n discriminatorValue: 'Valor del discriminador',\n noAllowedValues: 'Ningún valor satisface esta restricción enum.',\n example: 'Ejemplo',\n examples: 'Ejemplos',\n default: 'Predeterminado',\n schema: 'Esquema',\n emptyObject: 'Objeto vacío',\n showAdditionalProperties: 'Mostrar propiedades adicionales',\n showOneMoreProperty: 'Mostrar 1 propiedad más',\n showMoreProperties: 'Mostrar {count} propiedades más',\n forName: 'para {name}',\n showSchemaDetails: 'Mostrar detalles del esquema',\n oneOf: 'Uno de',\n anyOf: 'Cualquiera de',\n allOf: 'Todos de',\n not: 'No',\n unknownType: 'tipo desconocido',\n propertyCount: 'Propiedades: {count}',\n headerCount: 'Encabezados: {count}',\n recursiveReference: 'Referencia recursiva a {name}',\n recursive: 'recursivo',\n additionalProperties: 'propiedades adicionales',\n const: 'constante',\n deprecated: 'obsoleto',\n discriminator: 'Discriminador',\n enum: 'enum',\n format: 'Formato',\n greaterThan: 'mayor que',\n keys: 'claves',\n lessThan: 'menor que',\n max: 'máx.',\n min: 'mín.',\n maxLength: 'longitud máx.',\n minLength: 'longitud mín.',\n multipleOf: 'múltiplo de',\n nullable: 'admite null',\n propertyNames: 'nombres de propiedades',\n pattern: 'Patrón',\n copyPattern: 'Copiar patrón',\n readOnly: 'solo lectura',\n required: 'obligatorio',\n hideValues: 'Ocultar valores',\n showAllValues: 'Mostrar todos los valores',\n type: 'Tipo',\n unique: 'único',\n values: 'valores',\n writeOnly: 'solo escritura',\n typeInteger: 'Números enteros.',\n formatInt32: 'Enteros de 32 bits con signo (tipo entero de uso común).',\n formatInt64: 'Enteros de 64 bits con signo (tipo long).',\n formatDate: 'notación full-date definida en RFC 3339, sección 5.6, por ejemplo, 2017-07-21',\n formatDateTime: 'notación date-time definida en RFC 3339, sección 5.6, por ejemplo, 2017-07-21T17:32:28Z',\n formatPassword: 'indica a las interfaces que oculten la entrada',\n formatBase64: 'caracteres codificados en base64, por ejemplo, U3dhZ2dlciByb2Nrcw==',\n formatBinary: 'datos binarios, usados para describir archivos',\n },\n common: { copyDefault: 'Copiar valor por defecto', copyExample: 'Copiar valor de ejemplo' },\n actions: { copyLinkTo: 'Copiar enlace a {name}' },\n}\n"],"mappings":";AAAA,IAAaA,IAAK;CAChB,QAAQ;EACN,UAAU;EACV,oBAAoB;EACpB,iBAAiB;EACjB,SAAS;EACT,UAAU;EACV,SAAS;EACT,QAAQ;EACR,aAAa;EACb,0BAA0B;EAC1B,qBAAqB;EACrB,oBAAoB;EACpB,SAAS;EACT,mBAAmB;EACnB,OAAO;EACP,OAAO;EACP,OAAO;EACP,KAAK;EACL,aAAa;EACb,eAAe;EACf,aAAa;EACb,oBAAoB;EACpB,WAAW;EACX,sBAAsB;EACtB,OAAO;EACP,YAAY;EACZ,eAAe;EACf,MAAM;EACN,QAAQ;EACR,aAAa;EACb,MAAM;EACN,UAAU;EACV,KAAK;EACL,KAAK;EACL,WAAW;EACX,WAAW;EACX,YAAY;EACZ,UAAU;EACV,eAAe;EACf,SAAS;EACT,aAAa;EACb,UAAU;EACV,UAAU;EACV,YAAY;EACZ,eAAe;EACf,MAAM;EACN,QAAQ;EACR,QAAQ;EACR,WAAW;EACX,aAAa;EACb,aAAa;EACb,aAAa;EACb,YAAY;EACZ,gBAAgB;EAChB,gBAAgB;EAChB,cAAc;EACd,cAAc;CAChB;CACA,QAAQ;EAAE,aAAa;EAA4B,aAAa;CAA0B;CAC1F,SAAS,EAAE,YAAY,yBAAyB;AAClD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fr.js","names":[],"sources":["../../../../src/schema/localization/locales/fr.ts"],"sourcesContent":["export const fr = {\n schema: {\n variants: 'Variantes',\n discriminatorValue: 'Valeur du discriminateur',\n noAllowedValues: 'Aucune valeur ne satisfait cette contrainte enum.',\n example: 'Exemple',\n examples: 'Exemples',\n default: 'Par défaut',\n schema: 'Schéma',\n emptyObject: 'Objet vide',\n showAdditionalProperties: 'Afficher les propriétés supplémentaires',\n showOneMoreProperty: 'Afficher 1 propriété supplémentaire',\n showMoreProperties: 'Afficher {count} propriétés supplémentaires',\n forName: 'pour {name}',\n showSchemaDetails: 'Afficher les détails du schéma',\n oneOf: 'Un parmi',\n anyOf: 'N’importe lequel parmi',\n allOf: 'Tous parmi',\n not: 'Non',\n unknownType: 'type inconnu',\n propertyCount: 'Propriétés : {count}',\n headerCount: 'En-têtes : {count}',\n recursiveReference: 'Référence récursive vers {name}',\n recursive: 'récursif',\n additionalProperties: 'propriétés supplémentaires',\n const: 'constante',\n deprecated: 'obsolète',\n discriminator: 'Discriminateur',\n enum: 'enum',\n format: 'Format',\n greaterThan: 'supérieur à',\n keys: 'clés',\n lessThan: 'inférieur à',\n max: 'max.',\n min: 'min.',\n maxLength: 'longueur max.',\n minLength: 'longueur min.',\n multipleOf: 'multiple de',\n nullable: 'nullable',\n propertyNames: 'noms des propriétés',\n pattern: 'Motif',\n copyPattern: 'Copier le motif',\n readOnly: 'lecture seule',\n required: 'obligatoire',\n hideValues: 'Masquer les valeurs',\n showAllValues: 'Afficher toutes les valeurs',\n type: 'Type',\n unique: 'unique',\n values: 'valeurs',\n writeOnly: 'écriture seule',\n typeInteger: 'Nombres entiers.',\n formatInt32: 'Entiers signés sur 32 bits (type entier courant).',\n formatInt64: 'Entiers signés sur 64 bits (type long).',\n formatDate: 'notation full-date définie par la RFC 3339, section 5.6, par exemple 2017-07-21',\n formatDateTime: 'notation date-time définie par la RFC 3339, section 5.6, par exemple 2017-07-21T17:32:28Z',\n formatPassword: 'indique aux interfaces de masquer la saisie',\n formatBase64: 'caractères encodés en base64, par exemple U3dhZ2dlciByb2Nrcw==',\n formatBinary: 'données binaires, utilisées pour décrire des fichiers',\n },\n common: { copyDefault: 'Copier la valeur par défaut', copyExample: 'Copier la valeur d’exemple' },\n actions: { copyLinkTo: 'Copier le lien vers {name}' },\n}\n"],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"fr.js","names":["fr"],"sources":["../../../../src/schema/localization/locales/fr.ts"],"sourcesContent":["export const fr = {\n schema: {\n variants: 'Variantes',\n discriminatorValue: 'Valeur du discriminateur',\n noAllowedValues: 'Aucune valeur ne satisfait cette contrainte enum.',\n example: 'Exemple',\n examples: 'Exemples',\n default: 'Par défaut',\n schema: 'Schéma',\n emptyObject: 'Objet vide',\n showAdditionalProperties: 'Afficher les propriétés supplémentaires',\n showOneMoreProperty: 'Afficher 1 propriété supplémentaire',\n showMoreProperties: 'Afficher {count} propriétés supplémentaires',\n forName: 'pour {name}',\n showSchemaDetails: 'Afficher les détails du schéma',\n oneOf: 'Un parmi',\n anyOf: 'N’importe lequel parmi',\n allOf: 'Tous parmi',\n not: 'Non',\n unknownType: 'type inconnu',\n propertyCount: 'Propriétés : {count}',\n headerCount: 'En-têtes : {count}',\n recursiveReference: 'Référence récursive vers {name}',\n recursive: 'récursif',\n additionalProperties: 'propriétés supplémentaires',\n const: 'constante',\n deprecated: 'obsolète',\n discriminator: 'Discriminateur',\n enum: 'enum',\n format: 'Format',\n greaterThan: 'supérieur à',\n keys: 'clés',\n lessThan: 'inférieur à',\n max: 'max.',\n min: 'min.',\n maxLength: 'longueur max.',\n minLength: 'longueur min.',\n multipleOf: 'multiple de',\n nullable: 'nullable',\n propertyNames: 'noms des propriétés',\n pattern: 'Motif',\n copyPattern: 'Copier le motif',\n readOnly: 'lecture seule',\n required: 'obligatoire',\n hideValues: 'Masquer les valeurs',\n showAllValues: 'Afficher toutes les valeurs',\n type: 'Type',\n unique: 'unique',\n values: 'valeurs',\n writeOnly: 'écriture seule',\n typeInteger: 'Nombres entiers.',\n formatInt32: 'Entiers signés sur 32 bits (type entier courant).',\n formatInt64: 'Entiers signés sur 64 bits (type long).',\n formatDate: 'notation full-date définie par la RFC 3339, section 5.6, par exemple 2017-07-21',\n formatDateTime: 'notation date-time définie par la RFC 3339, section 5.6, par exemple 2017-07-21T17:32:28Z',\n formatPassword: 'indique aux interfaces de masquer la saisie',\n formatBase64: 'caractères encodés en base64, par exemple U3dhZ2dlciByb2Nrcw==',\n formatBinary: 'données binaires, utilisées pour décrire des fichiers',\n },\n common: { copyDefault: 'Copier la valeur par défaut', copyExample: 'Copier la valeur d’exemple' },\n actions: { copyLinkTo: 'Copier le lien vers {name}' },\n}\n"],"mappings":";AAAA,IAAaA,IAAK;CAChB,QAAQ;EACN,UAAU;EACV,oBAAoB;EACpB,iBAAiB;EACjB,SAAS;EACT,UAAU;EACV,SAAS;EACT,QAAQ;EACR,aAAa;EACb,0BAA0B;EAC1B,qBAAqB;EACrB,oBAAoB;EACpB,SAAS;EACT,mBAAmB;EACnB,OAAO;EACP,OAAO;EACP,OAAO;EACP,KAAK;EACL,aAAa;EACb,eAAe;EACf,aAAa;EACb,oBAAoB;EACpB,WAAW;EACX,sBAAsB;EACtB,OAAO;EACP,YAAY;EACZ,eAAe;EACf,MAAM;EACN,QAAQ;EACR,aAAa;EACb,MAAM;EACN,UAAU;EACV,KAAK;EACL,KAAK;EACL,WAAW;EACX,WAAW;EACX,YAAY;EACZ,UAAU;EACV,eAAe;EACf,SAAS;EACT,aAAa;EACb,UAAU;EACV,UAAU;EACV,YAAY;EACZ,eAAe;EACf,MAAM;EACN,QAAQ;EACR,QAAQ;EACR,WAAW;EACX,aAAa;EACb,aAAa;EACb,aAAa;EACb,YAAY;EACZ,gBAAgB;EAChB,gBAAgB;EAChB,cAAc;EACd,cAAc;CAChB;CACA,QAAQ;EAAE,aAAa;EAA+B,aAAa;CAA6B;CAChG,SAAS,EAAE,YAAY,6BAA6B;AACtD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pt.js","names":[],"sources":["../../../../src/schema/localization/locales/pt.ts"],"sourcesContent":["export const pt = {\n schema: {\n variants: 'Variantes',\n discriminatorValue: 'Valor do discriminador',\n noAllowedValues: 'Nenhum valor satisfaz esta restrição enum.',\n example: 'Exemplo',\n examples: 'Exemplos',\n default: 'Padrão',\n schema: 'Schema',\n emptyObject: 'Objeto vazio',\n showAdditionalProperties: 'Mostrar propriedades adicionais',\n showOneMoreProperty: 'Mostrar mais 1 propriedade',\n showMoreProperties: 'Mostrar mais {count} propriedades',\n forName: 'para {name}',\n showSchemaDetails: 'Mostrar Detalhes do Schema',\n oneOf: 'Um de',\n anyOf: 'Qualquer um de',\n allOf: 'Todos de',\n not: 'Não',\n unknownType: 'tipo desconhecido',\n propertyCount: 'Propriedades: {count}',\n headerCount: 'Cabeçalhos: {count}',\n recursiveReference: 'Referência recursiva a {name}',\n recursive: 'recursivo',\n additionalProperties: 'propriedades adicionais',\n const: 'const',\n deprecated: 'obsoleto',\n discriminator: 'Discriminador',\n enum: 'enum',\n format: 'Formato',\n greaterThan: 'maior que',\n keys: 'chaves',\n lessThan: 'menor que',\n max: 'máx',\n min: 'mín',\n maxLength: 'tamanho máximo',\n minLength: 'tamanho mínimo',\n multipleOf: 'múltiplo de',\n nullable: 'aceita nulo',\n propertyNames: 'nomes de propriedades',\n pattern: 'Padrão',\n copyPattern: 'Copiar padrão',\n readOnly: 'somente leitura',\n required: 'obrigatório',\n hideValues: 'Ocultar valores',\n showAllValues: 'Mostrar todos os valores',\n type: 'Tipo',\n unique: 'único',\n values: 'valores',\n writeOnly: 'somente escrita',\n typeInteger: 'Números inteiros.',\n formatInt32: 'Inteiros de 32 bits com sinal (tipo inteiro mais comum).',\n formatInt64: 'Inteiros de 64 bits com sinal (tipo long).',\n formatDate: 'notação full-date definida pela RFC 3339, seção 5.6, por exemplo, 2017-07-21',\n formatDateTime: 'notação date-time definida pela RFC 3339, seção 5.6, por exemplo, 2017-07-21T17:32:28Z',\n formatPassword: 'indica às interfaces que ocultem a entrada',\n formatBase64: 'caracteres codificados em base64, por exemplo, U3dhZ2dlciByb2Nrcw==',\n formatBinary: 'dados binários, usados para descrever arquivos',\n },\n common: { copyDefault: 'Copiar valor padrão', copyExample: 'Copiar valor de exemplo' },\n actions: { copyLinkTo: 'Copiar link para {name}' },\n}\n"],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"pt.js","names":["pt"],"sources":["../../../../src/schema/localization/locales/pt.ts"],"sourcesContent":["export const pt = {\n schema: {\n variants: 'Variantes',\n discriminatorValue: 'Valor do discriminador',\n noAllowedValues: 'Nenhum valor satisfaz esta restrição enum.',\n example: 'Exemplo',\n examples: 'Exemplos',\n default: 'Padrão',\n schema: 'Schema',\n emptyObject: 'Objeto vazio',\n showAdditionalProperties: 'Mostrar propriedades adicionais',\n showOneMoreProperty: 'Mostrar mais 1 propriedade',\n showMoreProperties: 'Mostrar mais {count} propriedades',\n forName: 'para {name}',\n showSchemaDetails: 'Mostrar Detalhes do Schema',\n oneOf: 'Um de',\n anyOf: 'Qualquer um de',\n allOf: 'Todos de',\n not: 'Não',\n unknownType: 'tipo desconhecido',\n propertyCount: 'Propriedades: {count}',\n headerCount: 'Cabeçalhos: {count}',\n recursiveReference: 'Referência recursiva a {name}',\n recursive: 'recursivo',\n additionalProperties: 'propriedades adicionais',\n const: 'const',\n deprecated: 'obsoleto',\n discriminator: 'Discriminador',\n enum: 'enum',\n format: 'Formato',\n greaterThan: 'maior que',\n keys: 'chaves',\n lessThan: 'menor que',\n max: 'máx',\n min: 'mín',\n maxLength: 'tamanho máximo',\n minLength: 'tamanho mínimo',\n multipleOf: 'múltiplo de',\n nullable: 'aceita nulo',\n propertyNames: 'nomes de propriedades',\n pattern: 'Padrão',\n copyPattern: 'Copiar padrão',\n readOnly: 'somente leitura',\n required: 'obrigatório',\n hideValues: 'Ocultar valores',\n showAllValues: 'Mostrar todos os valores',\n type: 'Tipo',\n unique: 'único',\n values: 'valores',\n writeOnly: 'somente escrita',\n typeInteger: 'Números inteiros.',\n formatInt32: 'Inteiros de 32 bits com sinal (tipo inteiro mais comum).',\n formatInt64: 'Inteiros de 64 bits com sinal (tipo long).',\n formatDate: 'notação full-date definida pela RFC 3339, seção 5.6, por exemplo, 2017-07-21',\n formatDateTime: 'notação date-time definida pela RFC 3339, seção 5.6, por exemplo, 2017-07-21T17:32:28Z',\n formatPassword: 'indica às interfaces que ocultem a entrada',\n formatBase64: 'caracteres codificados em base64, por exemplo, U3dhZ2dlciByb2Nrcw==',\n formatBinary: 'dados binários, usados para descrever arquivos',\n },\n common: { copyDefault: 'Copiar valor padrão', copyExample: 'Copiar valor de exemplo' },\n actions: { copyLinkTo: 'Copiar link para {name}' },\n}\n"],"mappings":";AAAA,IAAaA,IAAK;CAChB,QAAQ;EACN,UAAU;EACV,oBAAoB;EACpB,iBAAiB;EACjB,SAAS;EACT,UAAU;EACV,SAAS;EACT,QAAQ;EACR,aAAa;EACb,0BAA0B;EAC1B,qBAAqB;EACrB,oBAAoB;EACpB,SAAS;EACT,mBAAmB;EACnB,OAAO;EACP,OAAO;EACP,OAAO;EACP,KAAK;EACL,aAAa;EACb,eAAe;EACf,aAAa;EACb,oBAAoB;EACpB,WAAW;EACX,sBAAsB;EACtB,OAAO;EACP,YAAY;EACZ,eAAe;EACf,MAAM;EACN,QAAQ;EACR,aAAa;EACb,MAAM;EACN,UAAU;EACV,KAAK;EACL,KAAK;EACL,WAAW;EACX,WAAW;EACX,YAAY;EACZ,UAAU;EACV,eAAe;EACf,SAAS;EACT,aAAa;EACb,UAAU;EACV,UAAU;EACV,YAAY;EACZ,eAAe;EACf,MAAM;EACN,QAAQ;EACR,QAAQ;EACR,WAAW;EACX,aAAa;EACb,aAAa;EACb,aAAa;EACb,YAAY;EACZ,gBAAgB;EAChB,gBAAgB;EAChB,cAAc;EACd,cAAc;CAChB;CACA,QAAQ;EAAE,aAAa;EAAuB,aAAa;CAA0B;CACrF,SAAS,EAAE,YAAY,0BAA0B;AACnD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ru.js","names":[],"sources":["../../../../src/schema/localization/locales/ru.ts"],"sourcesContent":["export const ru = {\n schema: {\n variants: 'Варианты',\n discriminatorValue: 'Значение дискриминатора',\n noAllowedValues: 'Ни одно значение не удовлетворяет этому ограничению enum.',\n example: 'Пример',\n examples: 'Примеры',\n default: 'Значение по умолчанию',\n schema: 'Схема',\n emptyObject: 'Пустой объект',\n showAdditionalProperties: 'Показать дополнительные свойства',\n showOneMoreProperty: 'Показать ещё 1 свойство',\n showMoreProperties: 'Показать ещё свойства: {count}',\n forName: 'для {name}',\n showSchemaDetails: 'Показать детали схемы',\n oneOf: 'Один из',\n anyOf: 'Любой из',\n allOf: 'Все из',\n not: 'Не',\n unknownType: 'неизвестный тип',\n propertyCount: 'Свойства: {count}',\n headerCount: 'Заголовки: {count}',\n recursiveReference: 'Рекурсивная ссылка на {name}',\n recursive: 'рекурсивно',\n additionalProperties: 'дополнительные свойства',\n const: 'константа',\n deprecated: 'устарело',\n discriminator: 'Дискриминатор',\n enum: 'enum',\n format: 'Формат',\n greaterThan: 'больше чем',\n keys: 'ключи',\n lessThan: 'меньше чем',\n max: 'макс.',\n min: 'мин.',\n maxLength: 'макс. длина',\n minLength: 'мин. длина',\n multipleOf: 'кратно',\n nullable: 'может быть null',\n propertyNames: 'имена свойств',\n pattern: 'Шаблон',\n copyPattern: 'Скопировать шаблон',\n readOnly: 'только чтение',\n required: 'обязательно',\n hideValues: 'Скрыть значения',\n showAllValues: 'Показать все значения',\n type: 'Тип',\n unique: 'уникально',\n values: 'значения',\n writeOnly: 'только запись',\n typeInteger: 'Целые числа.',\n formatInt32: 'Знаковые 32-битные целые числа (обычный целочисленный тип).',\n formatInt64: 'Знаковые 64-битные целые числа (тип long).',\n formatDate: 'нотация full-date по RFC 3339, раздел 5.6, например 2017-07-21',\n formatDateTime: 'нотация date-time по RFC 3339, раздел 5.6, например 2017-07-21T17:32:28Z',\n formatPassword: 'подсказка интерфейсу скрывать ввод',\n formatBase64: 'символы в кодировке base64, например U3dhZ2dlciByb2Nrcw==',\n formatBinary: 'двоичные данные, описывают файлы',\n },\n common: { copyDefault: 'Скопировать значение по умолчанию', copyExample: 'Скопировать пример значения' },\n actions: { copyLinkTo: 'Скопировать ссылку на {name}' },\n}\n"],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"ru.js","names":["ru"],"sources":["../../../../src/schema/localization/locales/ru.ts"],"sourcesContent":["export const ru = {\n schema: {\n variants: 'Варианты',\n discriminatorValue: 'Значение дискриминатора',\n noAllowedValues: 'Ни одно значение не удовлетворяет этому ограничению enum.',\n example: 'Пример',\n examples: 'Примеры',\n default: 'Значение по умолчанию',\n schema: 'Схема',\n emptyObject: 'Пустой объект',\n showAdditionalProperties: 'Показать дополнительные свойства',\n showOneMoreProperty: 'Показать ещё 1 свойство',\n showMoreProperties: 'Показать ещё свойства: {count}',\n forName: 'для {name}',\n showSchemaDetails: 'Показать детали схемы',\n oneOf: 'Один из',\n anyOf: 'Любой из',\n allOf: 'Все из',\n not: 'Не',\n unknownType: 'неизвестный тип',\n propertyCount: 'Свойства: {count}',\n headerCount: 'Заголовки: {count}',\n recursiveReference: 'Рекурсивная ссылка на {name}',\n recursive: 'рекурсивно',\n additionalProperties: 'дополнительные свойства',\n const: 'константа',\n deprecated: 'устарело',\n discriminator: 'Дискриминатор',\n enum: 'enum',\n format: 'Формат',\n greaterThan: 'больше чем',\n keys: 'ключи',\n lessThan: 'меньше чем',\n max: 'макс.',\n min: 'мин.',\n maxLength: 'макс. длина',\n minLength: 'мин. длина',\n multipleOf: 'кратно',\n nullable: 'может быть null',\n propertyNames: 'имена свойств',\n pattern: 'Шаблон',\n copyPattern: 'Скопировать шаблон',\n readOnly: 'только чтение',\n required: 'обязательно',\n hideValues: 'Скрыть значения',\n showAllValues: 'Показать все значения',\n type: 'Тип',\n unique: 'уникально',\n values: 'значения',\n writeOnly: 'только запись',\n typeInteger: 'Целые числа.',\n formatInt32: 'Знаковые 32-битные целые числа (обычный целочисленный тип).',\n formatInt64: 'Знаковые 64-битные целые числа (тип long).',\n formatDate: 'нотация full-date по RFC 3339, раздел 5.6, например 2017-07-21',\n formatDateTime: 'нотация date-time по RFC 3339, раздел 5.6, например 2017-07-21T17:32:28Z',\n formatPassword: 'подсказка интерфейсу скрывать ввод',\n formatBase64: 'символы в кодировке base64, например U3dhZ2dlciByb2Nrcw==',\n formatBinary: 'двоичные данные, описывают файлы',\n },\n common: { copyDefault: 'Скопировать значение по умолчанию', copyExample: 'Скопировать пример значения' },\n actions: { copyLinkTo: 'Скопировать ссылку на {name}' },\n}\n"],"mappings":";AAAA,IAAaA,IAAK;CAChB,QAAQ;EACN,UAAU;EACV,oBAAoB;EACpB,iBAAiB;EACjB,SAAS;EACT,UAAU;EACV,SAAS;EACT,QAAQ;EACR,aAAa;EACb,0BAA0B;EAC1B,qBAAqB;EACrB,oBAAoB;EACpB,SAAS;EACT,mBAAmB;EACnB,OAAO;EACP,OAAO;EACP,OAAO;EACP,KAAK;EACL,aAAa;EACb,eAAe;EACf,aAAa;EACb,oBAAoB;EACpB,WAAW;EACX,sBAAsB;EACtB,OAAO;EACP,YAAY;EACZ,eAAe;EACf,MAAM;EACN,QAAQ;EACR,aAAa;EACb,MAAM;EACN,UAAU;EACV,KAAK;EACL,KAAK;EACL,WAAW;EACX,WAAW;EACX,YAAY;EACZ,UAAU;EACV,eAAe;EACf,SAAS;EACT,aAAa;EACb,UAAU;EACV,UAAU;EACV,YAAY;EACZ,eAAe;EACf,MAAM;EACN,QAAQ;EACR,QAAQ;EACR,WAAW;EACX,aAAa;EACb,aAAa;EACb,aAAa;EACb,YAAY;EACZ,gBAAgB;EAChB,gBAAgB;EAChB,cAAc;EACd,cAAc;CAChB;CACA,QAAQ;EAAE,aAAa;EAAqC,aAAa;CAA8B;CACvG,SAAS,EAAE,YAAY,+BAA+B;AACxD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zh-cn.js","names":[],"sources":["../../../../src/schema/localization/locales/zh-cn.ts"],"sourcesContent":["export const zhCn = {\n schema: {\n variants: '变体',\n discriminatorValue: '鉴别器值',\n noAllowedValues: '没有值满足此枚举约束。',\n example: '示例',\n examples: '示例',\n default: '默认值',\n schema: '架构',\n emptyObject: '空对象',\n showAdditionalProperties: '显示附加属性',\n showOneMoreProperty: '再显示 1 个属性',\n showMoreProperties: '再显示 {count} 个属性',\n forName: '对于 {name}',\n showSchemaDetails: '显示架构详情',\n oneOf: '其中一个',\n anyOf: '任意一个',\n allOf: '全部',\n not: '非',\n unknownType: '未知类型',\n propertyCount: '属性:{count}',\n headerCount: '标头:{count}',\n recursiveReference: '递归引用 {name}',\n recursive: '递归',\n additionalProperties: '附加属性',\n const: '常量',\n deprecated: '已弃用',\n discriminator: '鉴别器',\n enum: '枚举',\n format: '格式',\n greaterThan: '大于',\n keys: '键',\n lessThan: '小于',\n max: '最大值',\n min: '最小值',\n maxLength: '最大长度',\n minLength: '最小长度',\n multipleOf: '倍数',\n nullable: '可为 null',\n propertyNames: '属性名称',\n pattern: '模式',\n copyPattern: '复制模式',\n readOnly: '只读',\n required: '必填',\n hideValues: '隐藏值',\n showAllValues: '显示所有值',\n type: '类型',\n unique: '唯一',\n values: '值',\n writeOnly: '只写',\n typeInteger: '整数。',\n formatInt32: '有符号 32 位整数(常用整数类型)。',\n formatInt64: '有符号 64 位整数(long 类型)。',\n formatDate: 'RFC 3339 第 5.6 节定义的 full-date 表示法,例如 2017-07-21',\n formatDateTime: 'RFC 3339 第 5.6 节定义的 date-time 表示法,例如 2017-07-21T17:32:28Z',\n formatPassword: '提示界面遮蔽输入内容',\n formatBase64: 'base64 编码的字符,例如 U3dhZ2dlciByb2Nrcw==',\n formatBinary: '二进制数据,用于描述文件',\n },\n common: { copyDefault: '复制默认值', copyExample: '复制示例值' },\n actions: { copyLinkTo: '复制指向 {name} 的链接' },\n}\n"],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"zh-cn.js","names":["zhCn"],"sources":["../../../../src/schema/localization/locales/zh-cn.ts"],"sourcesContent":["export const zhCn = {\n schema: {\n variants: '变体',\n discriminatorValue: '鉴别器值',\n noAllowedValues: '没有值满足此枚举约束。',\n example: '示例',\n examples: '示例',\n default: '默认值',\n schema: '架构',\n emptyObject: '空对象',\n showAdditionalProperties: '显示附加属性',\n showOneMoreProperty: '再显示 1 个属性',\n showMoreProperties: '再显示 {count} 个属性',\n forName: '对于 {name}',\n showSchemaDetails: '显示架构详情',\n oneOf: '其中一个',\n anyOf: '任意一个',\n allOf: '全部',\n not: '非',\n unknownType: '未知类型',\n propertyCount: '属性:{count}',\n headerCount: '标头:{count}',\n recursiveReference: '递归引用 {name}',\n recursive: '递归',\n additionalProperties: '附加属性',\n const: '常量',\n deprecated: '已弃用',\n discriminator: '鉴别器',\n enum: '枚举',\n format: '格式',\n greaterThan: '大于',\n keys: '键',\n lessThan: '小于',\n max: '最大值',\n min: '最小值',\n maxLength: '最大长度',\n minLength: '最小长度',\n multipleOf: '倍数',\n nullable: '可为 null',\n propertyNames: '属性名称',\n pattern: '模式',\n copyPattern: '复制模式',\n readOnly: '只读',\n required: '必填',\n hideValues: '隐藏值',\n showAllValues: '显示所有值',\n type: '类型',\n unique: '唯一',\n values: '值',\n writeOnly: '只写',\n typeInteger: '整数。',\n formatInt32: '有符号 32 位整数(常用整数类型)。',\n formatInt64: '有符号 64 位整数(long 类型)。',\n formatDate: 'RFC 3339 第 5.6 节定义的 full-date 表示法,例如 2017-07-21',\n formatDateTime: 'RFC 3339 第 5.6 节定义的 date-time 表示法,例如 2017-07-21T17:32:28Z',\n formatPassword: '提示界面遮蔽输入内容',\n formatBase64: 'base64 编码的字符,例如 U3dhZ2dlciByb2Nrcw==',\n formatBinary: '二进制数据,用于描述文件',\n },\n common: { copyDefault: '复制默认值', copyExample: '复制示例值' },\n actions: { copyLinkTo: '复制指向 {name} 的链接' },\n}\n"],"mappings":";AAAA,IAAaA,IAAO;CAClB,QAAQ;EACN,UAAU;EACV,oBAAoB;EACpB,iBAAiB;EACjB,SAAS;EACT,UAAU;EACV,SAAS;EACT,QAAQ;EACR,aAAa;EACb,0BAA0B;EAC1B,qBAAqB;EACrB,oBAAoB;EACpB,SAAS;EACT,mBAAmB;EACnB,OAAO;EACP,OAAO;EACP,OAAO;EACP,KAAK;EACL,aAAa;EACb,eAAe;EACf,aAAa;EACb,oBAAoB;EACpB,WAAW;EACX,sBAAsB;EACtB,OAAO;EACP,YAAY;EACZ,eAAe;EACf,MAAM;EACN,QAAQ;EACR,aAAa;EACb,MAAM;EACN,UAAU;EACV,KAAK;EACL,KAAK;EACL,WAAW;EACX,WAAW;EACX,YAAY;EACZ,UAAU;EACV,eAAe;EACf,SAAS;EACT,aAAa;EACb,UAAU;EACV,UAAU;EACV,YAAY;EACZ,eAAe;EACf,MAAM;EACN,QAAQ;EACR,QAAQ;EACR,WAAW;EACX,aAAa;EACb,aAAa;EACb,aAAa;EACb,YAAY;EACZ,gBAAgB;EAChB,gBAAgB;EAChB,cAAc;EACd,cAAc;CAChB;CACA,QAAQ;EAAE,aAAa;EAAS,aAAa;CAAQ;CACrD,SAAS,EAAE,YAAY,kBAAkB;AAC3C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zh-tw.js","names":[],"sources":["../../../../src/schema/localization/locales/zh-tw.ts"],"sourcesContent":["/** Built-in schema translations for zh-TW. */\nexport const zhTw = {\n schema: {\n variants: '變體',\n discriminatorValue: '鑑別器值',\n noAllowedValues: '沒有值滿足此列舉限制。',\n example: '範例',\n examples: '範例',\n default: '預設值',\n schema: '結構描述',\n emptyObject: '空物件',\n showAdditionalProperties: '顯示附加屬性',\n showOneMoreProperty: '再顯示 1 個屬性',\n showMoreProperties: '再顯示 {count} 個屬性',\n forName: '對於 {name}',\n showSchemaDetails: '顯示結構描述詳細資訊',\n oneOf: '其中一個',\n anyOf: '任意一個',\n allOf: '全部',\n not: '非',\n unknownType: '未知類型',\n propertyCount: '屬性:{count}',\n headerCount: '標頭:{count}',\n recursiveReference: '遞迴參照 {name}',\n recursive: '遞迴',\n additionalProperties: '附加屬性',\n const: '常數',\n deprecated: '已棄用',\n discriminator: '鑑別器',\n enum: '列舉',\n format: '格式',\n greaterThan: '大於',\n keys: '鍵',\n lessThan: '小於',\n max: '最大值',\n min: '最小值',\n maxLength: '最大長度',\n minLength: '最小長度',\n multipleOf: '倍數',\n nullable: '可為 null',\n propertyNames: '屬性名稱',\n pattern: '模式',\n copyPattern: '複製模式',\n readOnly: '唯讀',\n required: '必填',\n hideValues: '隱藏值',\n showAllValues: '顯示所有值',\n type: '類型',\n unique: '唯一',\n values: '值',\n writeOnly: '唯寫',\n typeInteger: '整數。',\n formatInt32: '有號 32 位元整數(常用的整數型別)。',\n formatInt64: '有號 64 位元整數(long 型別)。',\n formatDate: 'RFC 3339 第 5.6 節定義的 full-date 表示法,例如 2017-07-21',\n formatDateTime: 'RFC 3339 第 5.6 節定義的 date-time 表示法,例如 2017-07-21T17:32:28Z',\n formatPassword: '提示介面遮蔽輸入內容',\n formatBase64: 'base64 編碼的字元,例如 U3dhZ2dlciByb2Nrcw==',\n formatBinary: '二進位資料,用於描述檔案',\n },\n common: { copyDefault: '複製預設值', copyExample: '複製範例值' },\n actions: { copyLinkTo: '複製指向 {name} 的連結' },\n}\n"],"mappings":";AACA,
|
|
1
|
+
{"version":3,"file":"zh-tw.js","names":["zhTw"],"sources":["../../../../src/schema/localization/locales/zh-tw.ts"],"sourcesContent":["/** Built-in schema translations for zh-TW. */\nexport const zhTw = {\n schema: {\n variants: '變體',\n discriminatorValue: '鑑別器值',\n noAllowedValues: '沒有值滿足此列舉限制。',\n example: '範例',\n examples: '範例',\n default: '預設值',\n schema: '結構描述',\n emptyObject: '空物件',\n showAdditionalProperties: '顯示附加屬性',\n showOneMoreProperty: '再顯示 1 個屬性',\n showMoreProperties: '再顯示 {count} 個屬性',\n forName: '對於 {name}',\n showSchemaDetails: '顯示結構描述詳細資訊',\n oneOf: '其中一個',\n anyOf: '任意一個',\n allOf: '全部',\n not: '非',\n unknownType: '未知類型',\n propertyCount: '屬性:{count}',\n headerCount: '標頭:{count}',\n recursiveReference: '遞迴參照 {name}',\n recursive: '遞迴',\n additionalProperties: '附加屬性',\n const: '常數',\n deprecated: '已棄用',\n discriminator: '鑑別器',\n enum: '列舉',\n format: '格式',\n greaterThan: '大於',\n keys: '鍵',\n lessThan: '小於',\n max: '最大值',\n min: '最小值',\n maxLength: '最大長度',\n minLength: '最小長度',\n multipleOf: '倍數',\n nullable: '可為 null',\n propertyNames: '屬性名稱',\n pattern: '模式',\n copyPattern: '複製模式',\n readOnly: '唯讀',\n required: '必填',\n hideValues: '隱藏值',\n showAllValues: '顯示所有值',\n type: '類型',\n unique: '唯一',\n values: '值',\n writeOnly: '唯寫',\n typeInteger: '整數。',\n formatInt32: '有號 32 位元整數(常用的整數型別)。',\n formatInt64: '有號 64 位元整數(long 型別)。',\n formatDate: 'RFC 3339 第 5.6 節定義的 full-date 表示法,例如 2017-07-21',\n formatDateTime: 'RFC 3339 第 5.6 節定義的 date-time 表示法,例如 2017-07-21T17:32:28Z',\n formatPassword: '提示介面遮蔽輸入內容',\n formatBase64: 'base64 編碼的字元,例如 U3dhZ2dlciByb2Nrcw==',\n formatBinary: '二進位資料,用於描述檔案',\n },\n common: { copyDefault: '複製預設值', copyExample: '複製範例值' },\n actions: { copyLinkTo: '複製指向 {name} 的連結' },\n}\n"],"mappings":";AACA,IAAaA,IAAO;CAClB,QAAQ;EACN,UAAU;EACV,oBAAoB;EACpB,iBAAiB;EACjB,SAAS;EACT,UAAU;EACV,SAAS;EACT,QAAQ;EACR,aAAa;EACb,0BAA0B;EAC1B,qBAAqB;EACrB,oBAAoB;EACpB,SAAS;EACT,mBAAmB;EACnB,OAAO;EACP,OAAO;EACP,OAAO;EACP,KAAK;EACL,aAAa;EACb,eAAe;EACf,aAAa;EACb,oBAAoB;EACpB,WAAW;EACX,sBAAsB;EACtB,OAAO;EACP,YAAY;EACZ,eAAe;EACf,MAAM;EACN,QAAQ;EACR,aAAa;EACb,MAAM;EACN,UAAU;EACV,KAAK;EACL,KAAK;EACL,WAAW;EACX,WAAW;EACX,YAAY;EACZ,UAAU;EACV,eAAe;EACf,SAAS;EACT,aAAa;EACb,UAAU;EACV,UAAU;EACV,YAAY;EACZ,eAAe;EACf,MAAM;EACN,QAAQ;EACR,QAAQ;EACR,WAAW;EACX,aAAa;EACb,aAAa;EACb,aAAa;EACb,YAAY;EACZ,gBAAgB;EAChB,gBAAgB;EAChB,cAAc;EACd,cAAc;CAChB;CACA,QAAQ;EAAE,aAAa;EAAS,aAAa;CAAQ;CACrD,SAAS,EAAE,YAAY,kBAAkB;AAC3C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translations.js","names":[],"sources":["../../../src/schema/localization/translations.ts"],"sourcesContent":["import { ar } from './locales/ar'\nimport { de } from './locales/de'\nimport { en } from './locales/en'\nimport { es } from './locales/es'\nimport { fr } from './locales/fr'\nimport { pt } from './locales/pt'\nimport { ru } from './locales/ru'\nimport { zhCn } from './locales/zh-cn'\nimport { zhTw } from './locales/zh-tw'\n\n/** Built-in schema translations, also composed into API Reference's public dictionary. */\nexport const schemaTranslations = { en, de, es, fr, pt, ru, ar, 'zh-CN': zhCn, 'zh-TW': zhTw }\n"],"mappings":";;;;;;;;;;AAWA,
|
|
1
|
+
{"version":3,"file":"translations.js","names":["schemaTranslations","zhCn","zhTw"],"sources":["../../../src/schema/localization/translations.ts"],"sourcesContent":["import { ar } from './locales/ar'\nimport { de } from './locales/de'\nimport { en } from './locales/en'\nimport { es } from './locales/es'\nimport { fr } from './locales/fr'\nimport { pt } from './locales/pt'\nimport { ru } from './locales/ru'\nimport { zhCn } from './locales/zh-cn'\nimport { zhTw } from './locales/zh-tw'\n\n/** Built-in schema translations, also composed into API Reference's public dictionary. */\nexport const schemaTranslations = { en, de, es, fr, pt, ru, ar, 'zh-CN': zhCn, 'zh-TW': zhTw }\n"],"mappings":";;;;;;;;;;AAWA,IAAaA,IAAqB;CAAE;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI,SAASC;CAAM,SAASC;AAAK"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request-body-composition-index.js","names":[],"sources":["../../src/schema/request-body-composition-index.ts"],"sourcesContent":["import type { InjectionKey, Ref } from 'vue'\n\nexport type RequestBodyCompositionSelection = Record<string, number>\n\n/**\n * Shares the selected request-body composition variants between the schema\n * dropdowns and the generated request snippet for a single operation layout.\n */\nexport const REQUEST_BODY_COMPOSITION_INDEX_SYMBOL: InjectionKey<Ref<RequestBodyCompositionSelection>> = Symbol()\n"],"mappings":";AAQA,
|
|
1
|
+
{"version":3,"file":"request-body-composition-index.js","names":["REQUEST_BODY_COMPOSITION_INDEX_SYMBOL"],"sources":["../../src/schema/request-body-composition-index.ts"],"sourcesContent":["import type { InjectionKey, Ref } from 'vue'\n\nexport type RequestBodyCompositionSelection = Record<string, number>\n\n/**\n * Shares the selected request-body composition variants between the schema\n * dropdowns and the generated request snippet for a single operation layout.\n */\nexport const REQUEST_BODY_COMPOSITION_INDEX_SYMBOL: InjectionKey<Ref<RequestBodyCompositionSelection>> = Symbol()\n"],"mappings":";AAQA,IAAaA,IAA4F,OAAO"}
|
package/dist/shared/Badge.vue.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import e from "../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
-
import t from "./Badge.
|
|
3
|
-
/* empty css
|
|
2
|
+
import t from "./Badge.vue_vue_type_script_setup_true_lang.js";
|
|
3
|
+
/* empty css */
|
|
4
4
|
//#region src/shared/Badge.vue
|
|
5
5
|
var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-2a7101e8"]]);
|
|
6
6
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Badge.vue.js","names":[],"sources":["../../src/shared/Badge.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { useBindCx } from '@scalar/use-hooks/useBindCx'\nimport { computed } from 'vue'\n\nconst { color } = defineProps<{\n color?: string\n}>()\n\n// Merge fallthrough classes via `cx` so consumer classes can override the base styles.\ndefineOptions({ inheritAttrs: false })\n\nconst { cx } = useBindCx()\n\n// The color only goes in as a custom property; the text color is derived from\n// it in CSS below, where the browser can read lightness out of any color format.\nconst badgeStyle = computed(() =>\n color ? { '--badge-color': color } : undefined,\n)\n</script>\n\n<template>\n <div\n v-bind=\"\n cx(\n 'badge inline-block rounded-2xl border bg-b-2 px-1.5 py-0.5 text-c-2 text-sm',\n { 'badge-colored': Boolean(color) },\n )\n \"\n :style=\"badgeStyle\">\n <slot />\n </div>\n</template>\n\n<style scoped>\n.badge-colored {\n background-color: var(--badge-color);\n /* Fallback for browsers without relative color syntax: a darker shade of the\n background, which is readable on pale colors but muddy on mid-tones. */\n color: color-mix(in srgb, var(--badge-color), black 40%);\n}\n\n/* Black text on a light background, white on a dark one. `l` is the background's\n lightness in LCH (0-100); multiplying its distance from the midpoint by infinity\n and letting the channel clamp turns that into 0 or 100, with no color parsing\n in JavaScript and no opinion about which format the color was written in. */\n@supports (color: lch(from red calc((50 - l) * infinity) 0 0)) {\n .badge-colored {\n /* Keep text opaque even when the background color is transparent. */\n color: lch(from var(--badge-color) calc((50 - l) * infinity) 0 0 / 1);\n }\n}\n\n/* Colour variants are keyed on the `text-*` class a consumer passes in. */\n.badge.text-orange {\n background: color-mix(in srgb, var(--scalar-color-orange), transparent 90%);\n border: transparent;\n}\n.badge.text-yellow {\n background: color-mix(in srgb, var(--scalar-color-yellow), transparent 90%);\n border: transparent;\n}\n.badge.text-red {\n background: color-mix(in srgb, var(--scalar-color-red), transparent 90%);\n border: transparent;\n}\n.badge.text-purple {\n background: color-mix(in srgb, var(--scalar-color-purple), transparent 90%);\n border: transparent;\n}\n.badge.text-green {\n background: color-mix(in srgb, var(--scalar-color-green), transparent 90%);\n border: transparent;\n}\n</style>\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"Badge.vue.js","names":["_sfc_main","_plugin_vue_export_helper_default","Badge_vue_vue_type_script_setup_true_lang_default","Badge_default"],"sources":["../../src/shared/Badge.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { useBindCx } from '@scalar/use-hooks/useBindCx'\nimport { computed } from 'vue'\n\nconst { color } = defineProps<{\n color?: string\n}>()\n\n// Merge fallthrough classes via `cx` so consumer classes can override the base styles.\ndefineOptions({ inheritAttrs: false })\n\nconst { cx } = useBindCx()\n\n// The color only goes in as a custom property; the text color is derived from\n// it in CSS below, where the browser can read lightness out of any color format.\nconst badgeStyle = computed(() =>\n color ? { '--badge-color': color } : undefined,\n)\n</script>\n\n<template>\n <div\n v-bind=\"\n cx(\n 'badge inline-block rounded-2xl border bg-b-2 px-1.5 py-0.5 text-c-2 text-sm',\n { 'badge-colored': Boolean(color) },\n )\n \"\n :style=\"badgeStyle\">\n <slot />\n </div>\n</template>\n\n<style scoped>\n.badge-colored {\n background-color: var(--badge-color);\n /* Fallback for browsers without relative color syntax: a darker shade of the\n background, which is readable on pale colors but muddy on mid-tones. */\n color: color-mix(in srgb, var(--badge-color), black 40%);\n}\n\n/* Black text on a light background, white on a dark one. `l` is the background's\n lightness in LCH (0-100); multiplying its distance from the midpoint by infinity\n and letting the channel clamp turns that into 0 or 100, with no color parsing\n in JavaScript and no opinion about which format the color was written in. */\n@supports (color: lch(from red calc((50 - l) * infinity) 0 0)) {\n .badge-colored {\n /* Keep text opaque even when the background color is transparent. */\n color: lch(from var(--badge-color) calc((50 - l) * infinity) 0 0 / 1);\n }\n}\n\n/* Colour variants are keyed on the `text-*` class a consumer passes in. */\n.badge.text-orange {\n background: color-mix(in srgb, var(--scalar-color-orange), transparent 90%);\n border: transparent;\n}\n.badge.text-yellow {\n background: color-mix(in srgb, var(--scalar-color-yellow), transparent 90%);\n border: transparent;\n}\n.badge.text-red {\n background: color-mix(in srgb, var(--scalar-color-red), transparent 90%);\n border: transparent;\n}\n.badge.text-purple {\n background: color-mix(in srgb, var(--scalar-color-purple), transparent 90%);\n border: transparent;\n}\n.badge.text-green {\n background: color-mix(in srgb, var(--scalar-color-green), transparent 90%);\n border: transparent;\n}\n</style>\n"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Badge.vue_vue_type_script_setup_true_lang.js","names":["_openBlock","_createElementBlock","_mergeProps","_unref","_renderSlot","Badge_vue_vue_type_script_setup_true_lang_default","useBindCx","badgeStyle","computed","__props","openBlock","createElementBlock","mergeProps","unref","cx","renderSlot","_ctx"],"sources":["../../src/shared/Badge.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { useBindCx } from '@scalar/use-hooks/useBindCx'\nimport { computed } from 'vue'\n\nconst { color } = defineProps<{\n color?: string\n}>()\n\n// Merge fallthrough classes via `cx` so consumer classes can override the base styles.\ndefineOptions({ inheritAttrs: false })\n\nconst { cx } = useBindCx()\n\n// The color only goes in as a custom property; the text color is derived from\n// it in CSS below, where the browser can read lightness out of any color format.\nconst badgeStyle = computed(() =>\n color ? { '--badge-color': color } : undefined,\n)\n</script>\n\n<template>\n <div\n v-bind=\"\n cx(\n 'badge inline-block rounded-2xl border bg-b-2 px-1.5 py-0.5 text-c-2 text-sm',\n { 'badge-colored': Boolean(color) },\n )\n \"\n :style=\"badgeStyle\">\n <slot />\n </div>\n</template>\n\n<style scoped>\n.badge-colored {\n background-color: var(--badge-color);\n /* Fallback for browsers without relative color syntax: a darker shade of the\n background, which is readable on pale colors but muddy on mid-tones. */\n color: color-mix(in srgb, var(--badge-color), black 40%);\n}\n\n/* Black text on a light background, white on a dark one. `l` is the background's\n lightness in LCH (0-100); multiplying its distance from the midpoint by infinity\n and letting the channel clamp turns that into 0 or 100, with no color parsing\n in JavaScript and no opinion about which format the color was written in. */\n@supports (color: lch(from red calc((50 - l) * infinity) 0 0)) {\n .badge-colored {\n /* Keep text opaque even when the background color is transparent. */\n color: lch(from var(--badge-color) calc((50 - l) * infinity) 0 0 / 1);\n }\n}\n\n/* Colour variants are keyed on the `text-*` class a consumer passes in. */\n.badge.text-orange {\n background: color-mix(in srgb, var(--scalar-color-orange), transparent 90%);\n border: transparent;\n}\n.badge.text-yellow {\n background: color-mix(in srgb, var(--scalar-color-yellow), transparent 90%);\n border: transparent;\n}\n.badge.text-red {\n background: color-mix(in srgb, var(--scalar-color-red), transparent 90%);\n border: transparent;\n}\n.badge.text-purple {\n background: color-mix(in srgb, var(--scalar-color-purple), transparent 90%);\n border: transparent;\n}\n.badge.text-green {\n background: color-mix(in srgb, var(--scalar-color-green), transparent 90%);\n border: transparent;\n}\n</style>\n"],"mappings":";;;;;;;;EAWA,IAAM,EAAE,UAAOM,EAAU,GAInBC,IAAaC,QACjBC,EAAA,QAAQ,EAAE,iBAAiBA,EAAA,MAAM,IAAI,KAAA,CACvC;E,kBAIET,EAAA,GAAAC,EASM,OATNC,EACiBC,EAAAW,CAAA,CAAE,C,+EAAoH,EAAA,iBAAA,EAAQL,EAAA,MAAK,C,GAMjJ,EAAA,OAAOF,EAAA,MAAU,CAAA,GAAA,CAClBH,EAAQY,EAAA,QAAA,WAAA,CAAA,GAAA,KAAA,GAAA,EAAA,C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExternalDocs.vue.js","names":[],"sources":["../../src/shared/ExternalDocs.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { sanitizeUrl } from '@scalar/helpers/url/is-safe-url'\nimport { ScalarIconBook } from '@scalar/icons'\nimport {\n getResolvedRef,\n type NodeInput,\n} from '@scalar/workspace-store/helpers/get-resolved-ref'\nimport type { ExternalDocumentationObject } from '@scalar/workspace-store/schemas/v3.2/strict/openapi-document'\nimport { computed } from 'vue'\n\nconst { value } = defineProps<{\n value?: NodeInput<ExternalDocumentationObject>\n}>()\n\nconst documentation = computed<ExternalDocumentationObject | undefined>(() => {\n const resolved = getResolvedRef(value)\n return resolved && typeof resolved.url === 'string' && resolved.url\n ? resolved\n : undefined\n})\n/** Unsafe URL protocols fall back to a plain-text label. */\nconst url = computed<string | undefined>(() =>\n sanitizeUrl(documentation.value?.url),\n)\n</script>\n\n<template>\n <template v-if=\"documentation\">\n <div\n class=\"group narrow:border-r-0 narrow:first:ml-0 flex items-center border-r first:ml-auto last:border-r-0\">\n <component\n :is=\"url ? 'a' : 'span'\"\n :aria-label=\"documentation.description || documentation.url\"\n class=\"text-c-1 hover:bg-b-2 narrow:border mr-2 flex min-h-7 min-w-7 items-center rounded-lg px-2 py-1 no-underline group-last:mr-0\"\n :href=\"url\"\n :rel=\"url ? 'noopener noreferrer' : undefined\"\n :target=\"url ? '_blank' : undefined\">\n <ScalarIconBook\n class=\"size-3 text-current\"\n weight=\"bold\" />\n <span\n v-if=\"documentation.description\"\n class=\"ml-1 empty:hidden\">\n {{ documentation.description }}\n </span>\n <span\n v-else\n class=\"ml-1 empty:hidden\">\n {{ documentation.url }}\n </span>\n </component>\n </div>\n </template>\n</template>\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"ExternalDocs.vue.js","names":["_sfc_main","ExternalDocs_vue_vue_type_script_setup_true_lang_default","ExternalDocs_default"],"sources":["../../src/shared/ExternalDocs.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { sanitizeUrl } from '@scalar/helpers/url/is-safe-url'\nimport { ScalarIconBook } from '@scalar/icons'\nimport {\n getResolvedRef,\n type NodeInput,\n} from '@scalar/workspace-store/helpers/get-resolved-ref'\nimport type { ExternalDocumentationObject } from '@scalar/workspace-store/schemas/v3.2/strict/openapi-document'\nimport { computed } from 'vue'\n\nconst { value } = defineProps<{\n value?: NodeInput<ExternalDocumentationObject>\n}>()\n\nconst documentation = computed<ExternalDocumentationObject | undefined>(() => {\n const resolved = getResolvedRef(value)\n return resolved && typeof resolved.url === 'string' && resolved.url\n ? resolved\n : undefined\n})\n/** Unsafe URL protocols fall back to a plain-text label. */\nconst url = computed<string | undefined>(() =>\n sanitizeUrl(documentation.value?.url),\n)\n</script>\n\n<template>\n <template v-if=\"documentation\">\n <div\n class=\"group narrow:border-r-0 narrow:first:ml-0 flex items-center border-r first:ml-auto last:border-r-0\">\n <component\n :is=\"url ? 'a' : 'span'\"\n :aria-label=\"documentation.description || documentation.url\"\n class=\"text-c-1 hover:bg-b-2 narrow:border mr-2 flex min-h-7 min-w-7 items-center rounded-lg px-2 py-1 no-underline group-last:mr-0\"\n :href=\"url\"\n :rel=\"url ? 'noopener noreferrer' : undefined\"\n :target=\"url ? '_blank' : undefined\">\n <ScalarIconBook\n class=\"size-3 text-current\"\n weight=\"bold\" />\n <span\n v-if=\"documentation.description\"\n class=\"ml-1 empty:hidden\">\n {{ documentation.description }}\n </span>\n <span\n v-else\n class=\"ml-1 empty:hidden\">\n {{ documentation.url }}\n </span>\n </component>\n </div>\n </template>\n</template>\n"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExternalDocs.vue_vue_type_script_setup_true_lang.js","names":["_openBlock","_createElementBlock","_createBlock","_resolveDynamicComponent","_withCtx","_createVNode","_unref","_toDisplayString","_createCommentVNode","_hoisted_1","_hoisted_2","_hoisted_3","ExternalDocs_vue_vue_type_script_setup_true_lang_default","documentation","computed","resolved","getResolvedRef","__props","url","sanitizeUrl","openBlock","createElementBlock","createBlock","resolveDynamicComponent","withCtx","createVNode","unref","ScalarIconBook","toDisplayString","createCommentVNode"],"sources":["../../src/shared/ExternalDocs.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { sanitizeUrl } from '@scalar/helpers/url/is-safe-url'\nimport { ScalarIconBook } from '@scalar/icons'\nimport {\n getResolvedRef,\n type NodeInput,\n} from '@scalar/workspace-store/helpers/get-resolved-ref'\nimport type { ExternalDocumentationObject } from '@scalar/workspace-store/schemas/v3.2/strict/openapi-document'\nimport { computed } from 'vue'\n\nconst { value } = defineProps<{\n value?: NodeInput<ExternalDocumentationObject>\n}>()\n\nconst documentation = computed<ExternalDocumentationObject | undefined>(() => {\n const resolved = getResolvedRef(value)\n return resolved && typeof resolved.url === 'string' && resolved.url\n ? resolved\n : undefined\n})\n/** Unsafe URL protocols fall back to a plain-text label. */\nconst url = computed<string | undefined>(() =>\n sanitizeUrl(documentation.value?.url),\n)\n</script>\n\n<template>\n <template v-if=\"documentation\">\n <div\n class=\"group narrow:border-r-0 narrow:first:ml-0 flex items-center border-r first:ml-auto last:border-r-0\">\n <component\n :is=\"url ? 'a' : 'span'\"\n :aria-label=\"documentation.description || documentation.url\"\n class=\"text-c-1 hover:bg-b-2 narrow:border mr-2 flex min-h-7 min-w-7 items-center rounded-lg px-2 py-1 no-underline group-last:mr-0\"\n :href=\"url\"\n :rel=\"url ? 'noopener noreferrer' : undefined\"\n :target=\"url ? '_blank' : undefined\">\n <ScalarIconBook\n class=\"size-3 text-current\"\n weight=\"bold\" />\n <span\n v-if=\"documentation.description\"\n class=\"ml-1 empty:hidden\">\n {{ documentation.description }}\n </span>\n <span\n v-else\n class=\"ml-1 empty:hidden\">\n {{ documentation.url }}\n </span>\n </component>\n </div>\n </template>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;EAcA,IAAMa,IAAgBC,QAAwD;GAC5E,IAAMC,IAAWC,EAAeC,EAAA,KAAK;GACrC,OAAOF,KAAY,OAAOA,EAAS,OAAQ,YAAYA,EAAS,MAC5DA,IACA,KAAA;EACN,CAAC,GAEKG,IAAMJ,QACVK,EAAYN,EAAc,OAAO,GAAG,CACtC;E,iBAIkBA,EAAA,SACdb,EAAA,GAAAC,EAuBM,OAvBNQ,GAuBM,EArBJT,EAAA,GAAAE,EAoBYC,EAnBLe,EAAA,QAAG,MAAA,MAAA,GAAA;GACP,cAAYL,EAAA,MAAc,eAAeA,EAAA,MAAc;GACxD,OAAM;GACL,MAAMK,EAAA;GACN,KAAKA,EAAA,QAAG,wBAA2B,KAAA;GACnC,QAAQA,EAAA,QAAG,WAAc,KAAA;;GAC1B,SAAAd,QAEkB,CAFlBC,EAEkBC,EAAAqB,CAAA,GAAA;IADhB,OAAM;IACN,QAAO;G,IAEDd,EAAA,MAAc,eADtBb,EAAA,GAAAC,EAIO,QAJPS,GAIOH,EADFM,EAAA,MAAc,WAAW,GAAA,CAAA,MAE9Bb,EAAA,GAAAC,EAIO,QAJPU,GAIOJ,EADFM,EAAA,MAAc,GAAG,GAAA,CAAA,E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScreenReader.vue.js","names":[],"sources":["../../src/shared/ScreenReader.vue"],"sourcesContent":["<script setup lang=\"ts\">\nwithDefaults(\n defineProps<{\n if?: boolean\n }>(),\n {\n if: true,\n },\n)\n</script>\n<template>\n <span\n v-if=\"$props.if\"\n class=\"screenreader-only\">\n <slot />\n </span>\n <slot v-else />\n</template>\n<!--\n `.screenreader-only` is declared globally in styles/tailwind.config.css rather\n than scoped here, so other components can hide text without wrapping it in\n this component.\n-->\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"ScreenReader.vue.js","names":["_sfc_main","ScreenReader_vue_vue_type_script_setup_true_lang_default","ScreenReader_default"],"sources":["../../src/shared/ScreenReader.vue"],"sourcesContent":["<script setup lang=\"ts\">\nwithDefaults(\n defineProps<{\n if?: boolean\n }>(),\n {\n if: true,\n },\n)\n</script>\n<template>\n <span\n v-if=\"$props.if\"\n class=\"screenreader-only\">\n <slot />\n </span>\n <slot v-else />\n</template>\n<!--\n `.screenreader-only` is declared globally in styles/tailwind.config.css rather\n than scoped here, so other components can hide text without wrapping it in\n this component.\n-->\n"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScreenReader.vue_vue_type_script_setup_true_lang.js","names":["$props","_openBlock","_createElementBlock","_renderSlot","_hoisted_1","ScreenReader_vue_vue_type_script_setup_true_lang_default","_ctx","openBlock","createElementBlock","renderSlot"],"sources":["../../src/shared/ScreenReader.vue"],"sourcesContent":["<script setup lang=\"ts\">\nwithDefaults(\n defineProps<{\n if?: boolean\n }>(),\n {\n if: true,\n },\n)\n</script>\n<template>\n <span\n v-if=\"$props.if\"\n class=\"screenreader-only\">\n <slot />\n </span>\n <slot v-else />\n</template>\n<!--\n `.screenreader-only` is declared globally in styles/tailwind.config.css rather\n than scoped here, so other components can hide text without wrapping it in\n this component.\n-->\n"],"mappings":";;;;;;;;;;;;E,iBAYUA,EAAAA,OAAO,MADfC,EAAA,GAAAC,EAIO,QAJPE,GAIO,CADLD,EAAQG,EAAA,QAAA,SAAA,C,MAEVH,EAAeG,EAAA,QAAA,WAAA,CAAA,GAAA,KAAA,GAAA,KAAA,GAAA,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExtensionValue.vue.js","names":[],"sources":["../../src/specification-extensions/ExtensionValue.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, ref, useId } from 'vue'\n\nimport { SchemaGutterToggle, SchemaRailPanel } from '../schema'\n\nconst {\n name,\n value,\n depth = 0,\n arrayItem = false,\n ancestors = [],\n} = defineProps<{\n name: string\n value: unknown\n depth?: number\n /** Array entries display only their values; keep their names for assistive technology. */\n arrayItem?: boolean\n /** Only ancestors count as cycles; shared sibling values remain independently expandable. */\n ancestors?: readonly unknown[]\n}>()\n\nconst nameId = useId()\nconst panelId = useId()\nconst open = ref(depth === 0)\nconst circular = computed<boolean>(() => ancestors.includes(value))\nconst children = computed<[string, unknown][]>(() => {\n if (value === null || typeof value !== 'object' || circular.value) {\n return []\n }\n return Array.isArray(value)\n ? value.map((item, index) => [`[${index}]`, item])\n : Object.entries(value)\n})\nconst expandable = computed<boolean>(() => children.value.length > 0)\nconst label = computed<string>(() => {\n if (arrayItem && expandable.value) {\n return Array.isArray(value) ? '[…]' : '{…}'\n }\n return !arrayItem && !expandable.value ? `${name}:` : name\n})\nconst text = computed<string>(() => {\n if (circular.value) {\n return '[Circular]'\n }\n if (typeof value === 'string') {\n return JSON.stringify(value)\n }\n if (value !== null && typeof value === 'object') {\n return Array.isArray(value) ? '[]' : '{}'\n }\n return String(value)\n})\n</script>\n\n<template>\n <div\n class=\"relative min-w-0 py-0.5\"\n :class=\"{\n 'ps-8': depth === 0,\n 'flex items-baseline gap-x-2': !arrayItem && !expandable,\n }\">\n <dt\n :class=\"\n arrayItem && !expandable\n ? 'sr-only'\n : 'relative flex min-h-5 min-w-0 flex-wrap items-baseline gap-x-2'\n \">\n <SchemaGutterToggle\n v-if=\"expandable\"\n class=\"absolute start-[calc(0px_-_var(--schema-gutter,16px)_-_var(--schema-toggle-half,12px))] top-[0.5lh] -translate-y-1/2\"\n :fallbackLabel=\"name\"\n :nameId=\"nameId\"\n :open=\"open\"\n :panelId=\"panelId\"\n :panelRendered=\"open\"\n @toggle=\"open = !open\" />\n <span\n v-if=\"!arrayItem || expandable\"\n :id=\"arrayItem ? undefined : nameId\"\n :aria-hidden=\"arrayItem || undefined\"\n class=\"font-code min-w-0 font-medium break-words\"\n >{{ label }}</span\n >\n <span\n v-if=\"arrayItem\"\n :id=\"nameId\"\n class=\"sr-only\"\n >Array item {{ name }}</span\n >\n </dt>\n <SchemaRailPanel\n v-if=\"expandable && open\"\n :id=\"panelId\"\n as=\"dd\"\n class=\"mt-0.5\"\n :depth=\"depth + 1\">\n <dl>\n <ExtensionValue\n v-for=\"[childName, childValue] in children\"\n :key=\"childName\"\n :ancestors=\"[...ancestors, value]\"\n :arrayItem=\"Array.isArray(value)\"\n :depth=\"depth + 1\"\n :name=\"childName\"\n :value=\"childValue\" />\n </dl>\n </SchemaRailPanel>\n <dd\n v-else-if=\"!expandable\"\n class=\"text-c-2 min-w-0\"\n :class=\"{ 'flex-1': !arrayItem }\">\n <code class=\"font-code break-words whitespace-pre-wrap\">{{ text }}</code>\n </dd>\n </div>\n</template>\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"ExtensionValue.vue.js","names":["_sfc_main","ExtensionValue_vue_vue_type_script_setup_true_lang_default","ExtensionValue_default"],"sources":["../../src/specification-extensions/ExtensionValue.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, ref, useId } from 'vue'\n\nimport { SchemaGutterToggle, SchemaRailPanel } from '../schema'\n\nconst {\n name,\n value,\n depth = 0,\n arrayItem = false,\n ancestors = [],\n} = defineProps<{\n name: string\n value: unknown\n depth?: number\n /** Array entries display only their values; keep their names for assistive technology. */\n arrayItem?: boolean\n /** Only ancestors count as cycles; shared sibling values remain independently expandable. */\n ancestors?: readonly unknown[]\n}>()\n\nconst nameId = useId()\nconst panelId = useId()\nconst open = ref(depth === 0)\nconst circular = computed<boolean>(() => ancestors.includes(value))\nconst children = computed<[string, unknown][]>(() => {\n if (value === null || typeof value !== 'object' || circular.value) {\n return []\n }\n return Array.isArray(value)\n ? value.map((item, index) => [`[${index}]`, item])\n : Object.entries(value)\n})\nconst expandable = computed<boolean>(() => children.value.length > 0)\nconst label = computed<string>(() => {\n if (arrayItem && expandable.value) {\n return Array.isArray(value) ? '[…]' : '{…}'\n }\n return !arrayItem && !expandable.value ? `${name}:` : name\n})\nconst text = computed<string>(() => {\n if (circular.value) {\n return '[Circular]'\n }\n if (typeof value === 'string') {\n return JSON.stringify(value)\n }\n if (value !== null && typeof value === 'object') {\n return Array.isArray(value) ? '[]' : '{}'\n }\n return String(value)\n})\n</script>\n\n<template>\n <div\n class=\"relative min-w-0 py-0.5\"\n :class=\"{\n 'ps-8': depth === 0,\n 'flex items-baseline gap-x-2': !arrayItem && !expandable,\n }\">\n <dt\n :class=\"\n arrayItem && !expandable\n ? 'sr-only'\n : 'relative flex min-h-5 min-w-0 flex-wrap items-baseline gap-x-2'\n \">\n <SchemaGutterToggle\n v-if=\"expandable\"\n class=\"absolute start-[calc(0px_-_var(--schema-gutter,16px)_-_var(--schema-toggle-half,12px))] top-[0.5lh] -translate-y-1/2\"\n :fallbackLabel=\"name\"\n :nameId=\"nameId\"\n :open=\"open\"\n :panelId=\"panelId\"\n :panelRendered=\"open\"\n @toggle=\"open = !open\" />\n <span\n v-if=\"!arrayItem || expandable\"\n :id=\"arrayItem ? undefined : nameId\"\n :aria-hidden=\"arrayItem || undefined\"\n class=\"font-code min-w-0 font-medium break-words\"\n >{{ label }}</span\n >\n <span\n v-if=\"arrayItem\"\n :id=\"nameId\"\n class=\"sr-only\"\n >Array item {{ name }}</span\n >\n </dt>\n <SchemaRailPanel\n v-if=\"expandable && open\"\n :id=\"panelId\"\n as=\"dd\"\n class=\"mt-0.5\"\n :depth=\"depth + 1\">\n <dl>\n <ExtensionValue\n v-for=\"[childName, childValue] in children\"\n :key=\"childName\"\n :ancestors=\"[...ancestors, value]\"\n :arrayItem=\"Array.isArray(value)\"\n :depth=\"depth + 1\"\n :name=\"childName\"\n :value=\"childValue\" />\n </dl>\n </SchemaRailPanel>\n <dd\n v-else-if=\"!expandable\"\n class=\"text-c-2 min-w-0\"\n :class=\"{ 'flex-1': !arrayItem }\">\n <code class=\"font-code break-words whitespace-pre-wrap\">{{ text }}</code>\n </dd>\n </div>\n</template>\n"],"mappings":""}
|
package/dist/specification-extensions/ExtensionValue.vue_vue_type_script_setup_true_lang.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExtensionValue.vue_vue_type_script_setup_true_lang.js","names":["_resolveComponent","_openBlock","_createElementBlock","_normalizeClass","_createElementVNode","_createBlock","_unref","SchemaGutterToggle","_createCommentVNode","_toDisplayString","SchemaRailPanel","_withCtx","_Fragment","_renderList","SchemaRailPanel_default","SchemaGutterToggle_default","_hoisted_1","_hoisted_2","_hoisted_3","ExtensionValue_vue_vue_type_script_setup_true_lang_default","nameId","useId","panelId","open","ref","__props","circular","computed","children","index","item","expandable","label","text","_component_ExtensionValue","resolveComponent","openBlock","createElementBlock","normalizeClass","createElementVNode","createBlock","unref","_cache","createCommentVNode","toDisplayString","withCtx","Fragment","renderList","childName","childValue"],"sources":["../../src/specification-extensions/ExtensionValue.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, ref, useId } from 'vue'\n\nimport { SchemaGutterToggle, SchemaRailPanel } from '../schema'\n\nconst {\n name,\n value,\n depth = 0,\n arrayItem = false,\n ancestors = [],\n} = defineProps<{\n name: string\n value: unknown\n depth?: number\n /** Array entries display only their values; keep their names for assistive technology. */\n arrayItem?: boolean\n /** Only ancestors count as cycles; shared sibling values remain independently expandable. */\n ancestors?: readonly unknown[]\n}>()\n\nconst nameId = useId()\nconst panelId = useId()\nconst open = ref(depth === 0)\nconst circular = computed<boolean>(() => ancestors.includes(value))\nconst children = computed<[string, unknown][]>(() => {\n if (value === null || typeof value !== 'object' || circular.value) {\n return []\n }\n return Array.isArray(value)\n ? value.map((item, index) => [`[${index}]`, item])\n : Object.entries(value)\n})\nconst expandable = computed<boolean>(() => children.value.length > 0)\nconst label = computed<string>(() => {\n if (arrayItem && expandable.value) {\n return Array.isArray(value) ? '[…]' : '{…}'\n }\n return !arrayItem && !expandable.value ? `${name}:` : name\n})\nconst text = computed<string>(() => {\n if (circular.value) {\n return '[Circular]'\n }\n if (typeof value === 'string') {\n return JSON.stringify(value)\n }\n if (value !== null && typeof value === 'object') {\n return Array.isArray(value) ? '[]' : '{}'\n }\n return String(value)\n})\n</script>\n\n<template>\n <div\n class=\"relative min-w-0 py-0.5\"\n :class=\"{\n 'ps-8': depth === 0,\n 'flex items-baseline gap-x-2': !arrayItem && !expandable,\n }\">\n <dt\n :class=\"\n arrayItem && !expandable\n ? 'sr-only'\n : 'relative flex min-h-5 min-w-0 flex-wrap items-baseline gap-x-2'\n \">\n <SchemaGutterToggle\n v-if=\"expandable\"\n class=\"absolute start-[calc(0px_-_var(--schema-gutter,16px)_-_var(--schema-toggle-half,12px))] top-[0.5lh] -translate-y-1/2\"\n :fallbackLabel=\"name\"\n :nameId=\"nameId\"\n :open=\"open\"\n :panelId=\"panelId\"\n :panelRendered=\"open\"\n @toggle=\"open = !open\" />\n <span\n v-if=\"!arrayItem || expandable\"\n :id=\"arrayItem ? undefined : nameId\"\n :aria-hidden=\"arrayItem || undefined\"\n class=\"font-code min-w-0 font-medium break-words\"\n >{{ label }}</span\n >\n <span\n v-if=\"arrayItem\"\n :id=\"nameId\"\n class=\"sr-only\"\n >Array item {{ name }}</span\n >\n </dt>\n <SchemaRailPanel\n v-if=\"expandable && open\"\n :id=\"panelId\"\n as=\"dd\"\n class=\"mt-0.5\"\n :depth=\"depth + 1\">\n <dl>\n <ExtensionValue\n v-for=\"[childName, childValue] in children\"\n :key=\"childName\"\n :ancestors=\"[...ancestors, value]\"\n :arrayItem=\"Array.isArray(value)\"\n :depth=\"depth + 1\"\n :name=\"childName\"\n :value=\"childValue\" />\n </dl>\n </SchemaRailPanel>\n <dd\n v-else-if=\"!expandable\"\n class=\"text-c-2 min-w-0\"\n :class=\"{ 'flex-1': !arrayItem }\">\n <code class=\"font-code break-words whitespace-pre-wrap\">{{ text }}</code>\n </dd>\n </div>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;EAqBA,IAAMoB,IAASC,EAAM,GACfC,IAAUD,EAAM,GAChBE,IAAOC,EAAIC,EAAA,UAAU,CAAC,GACtBC,IAAWC,QAAwBF,EAAA,UAAU,SAASA,EAAA,KAAK,CAAC,GAC5DG,IAAWD,QACXF,EAAA,UAAU,QAAQ,OAAOA,EAAA,SAAU,YAAYC,EAAS,QACnD,CAAC,IAEH,MAAM,QAAQD,EAAA,KAAK,IACtBA,EAAA,MAAM,KAAK,GAAM,MAAU,CAAC,IAAII,EAAM,IAAIC,CAAI,CAAC,IAC/C,OAAO,QAAQL,EAAA,KAAK,CACzB,GACKM,IAAaJ,QAAwBC,EAAS,MAAM,SAAS,CAAC,GAC9DI,IAAQL,QACRF,EAAA,aAAaM,EAAW,QACnB,MAAM,QAAQN,EAAA,KAAK,IAAI,QAAQ,QAEjC,CAACA,EAAA,aAAa,CAACM,EAAW,QAAQ,GAAGN,EAAA,KAAK,KAAKA,EAAA,IACvD,GACKQ,IAAON,QACPD,EAAS,QACJ,eAEL,OAAOD,EAAA,SAAU,WACZ,KAAK,UAAUA,EAAA,KAAK,IAEzBA,EAAA,UAAU,QAAQ,OAAOA,EAAA,SAAU,WAC9B,MAAM,QAAQA,EAAA,KAAK,IAAI,OAAO,OAEhC,OAAOA,EAAA,KAAK,CACpB;;;GAIC,OAAAxB,EAAA,GAAAC,EA0DM,OAAA,EAzDJ,OAAKC,EAAA,CAAC,2BAAyB;IACP,QAAAsB,EAAA,UAAK;IAA8C,+BAAA,CAAAA,EAAA,aAAS,CAAKM,EAAA;G,QAIzF3B,EA4BK,MAAA,EA3BF,OAAKD,EAAWsB,EAAA,aAAS,CAAKM,EAAA,Q;IAMvBA,EAAA,SADR9B,EAAA,GAAAI,EAQ2BC,EAAAC,CAAA,GAAA;;KANzB,OAAM;KACL,eAAekB,EAAA;KACf,QAAQnB,EAAAc,CAAA;KACR,MAAMG,EAAA;KACN,SAASjB,EAAAgB,CAAA;KACT,eAAeC,EAAA;KACf,UAAM,AAAAmB,EAAA,QAAA,MAAE,EAAA,QAAI,CAAInB,EAAA;;;;;;;;IAEV,CAAAE,EAAA,aAAaM,EAAA,SADtB9B,EAAA,GAAAC,EAMC,QAAA;;KAJE,IAAIuB,EAAA,YAAY,KAAA,IAAYnB,EAAAc,CAAA;KAC5B,eAAaK,EAAA,aAAa,KAAA;KAC3B,OAAM;IACF,GAAAhB,EAAAuB,EAAA,KAAK,GAAA,GAAAhB,CAAA,K;IAGHS,EAAA,aADRxB,EAAA,GAAAC,EAKC,QAAA;;KAHE,IAAII,EAAAc,CAAA;KACL,OAAM;IACL,GAAA,gBAAWX,EAAGgB,EAAA,IAAI,GAAA,GAAAR,CAAA,K;G,OAIfc,EAAA,SAAcR,EAAA,SADtBtB,EAAA,GAAAI,EAgBkBC,EAAAI,CAAA,GAAA;;IAdf,IAAIJ,EAAAgB,CAAA;IACL,IAAG;IACH,OAAM;IACL,OAAOG,EAAA,QAAK;;IACb,SAAAd,QASK,CATLP,EASK,MAAA,MAAA,EARHH,EAAA,EAAA,GAAAC,EAOwBU,GAAA,MAAAC,EANYe,EAAA,QAAQ,CAAlCoB,GAAWC,QADrBhD,EAAA,GAAAI,EAOwB6B,GAAA;KALrB,KAAKc;KACL,WAAS,CAAA,GAAMvB,EAAA,WAAWA,EAAA,KAAK;KAC/B,WAAW,MAAM,QAAQA,EAAA,KAAK;KAC9B,OAAOA,EAAA,QAAK;KACZ,MAAMuB;KACN,OAAOC;;;;;;;;;G,0BAIAlB,EAAA,Q,aADd9B,EAAA,GAAAC,EAKK,MAAA;;IAHH,OAAKC,EAAA,CAAC,oBAAkB,EAAA,UAAA,CACHsB,EAAA,UAAS,CAAA,CAAA;G,IAC9BrB,EAAyE,QAAzEc,GAAyET,EAAdwB,EAAA,KAAI,GAAA,CAAA,C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpecificationExtensions.vue.js","names":[],"sources":["../../src/specification-extensions/SpecificationExtensions.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport ExtensionValue from './ExtensionValue.vue'\n\n/** Display extension values using the same property rows and controls as schemas. */\nconst { extensions } = defineProps<{\n /** Selected extension keys and their original values, in display order. */\n extensions: Record<string, unknown>\n}>()\n</script>\n\n<template>\n <dl\n v-if=\"Object.keys(extensions).length\"\n class=\"my-2 min-w-0 text-base\">\n <ExtensionValue\n v-for=\"(value, name) in extensions\"\n :key=\"name\"\n :name=\"name\"\n :value=\"value\" />\n </dl>\n</template>\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"SpecificationExtensions.vue.js","names":["_sfc_main","SpecificationExtensions_vue_vue_type_script_setup_true_lang_default","SpecificationExtensions_default"],"sources":["../../src/specification-extensions/SpecificationExtensions.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport ExtensionValue from './ExtensionValue.vue'\n\n/** Display extension values using the same property rows and controls as schemas. */\nconst { extensions } = defineProps<{\n /** Selected extension keys and their original values, in display order. */\n extensions: Record<string, unknown>\n}>()\n</script>\n\n<template>\n <dl\n v-if=\"Object.keys(extensions).length\"\n class=\"my-2 min-w-0 text-base\">\n <ExtensionValue\n v-for=\"(value, name) in extensions\"\n :key=\"name\"\n :name=\"name\"\n :value=\"value\" />\n </dl>\n</template>\n"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpecificationExtensions.vue_vue_type_script_setup_true_lang.js","names":["_openBlock","_createElementBlock","_Fragment","_renderList","_createBlock","ExtensionValue","_createCommentVNode","ExtensionValue_default","_hoisted_1","SpecificationExtensions_vue_vue_type_script_setup_true_lang_default","__props","openBlock","createElementBlock","Fragment","renderList","createBlock","name","createCommentVNode"],"sources":["../../src/specification-extensions/SpecificationExtensions.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport ExtensionValue from './ExtensionValue.vue'\n\n/** Display extension values using the same property rows and controls as schemas. */\nconst { extensions } = defineProps<{\n /** Selected extension keys and their original values, in display order. */\n extensions: Record<string, unknown>\n}>()\n</script>\n\n<template>\n <dl\n v-if=\"Object.keys(extensions).length\"\n class=\"my-2 min-w-0 text-base\">\n <ExtensionValue\n v-for=\"(value, name) in extensions\"\n :key=\"name\"\n :name=\"name\"\n :value=\"value\" />\n </dl>\n</template>\n"],"mappings":";;;;;;;;;;E,iBAYU,OAAO,KAAKU,EAAA,UAAU,CAAA,CAAE,UADhCV,EAAA,GAAAC,EAQK,MARLO,GAQK,EALHR,EAAA,EAAA,GAAAC,EAImBC,GAAA,MAAAC,EAHOO,EAAA,aAAhB,GAAO,OADjBV,EAAA,GAAAI,EAImBC,GAAA;GAFhB,KAAKW;GACC;GACC"}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as SpecificationExtensions };
|
|
1
|
+
export { default as SpecificationExtensions } from "./SpecificationExtensions.vue.js";
|