@scalar/blocks 0.11.1 → 0.11.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +28 -0
- package/dist/code-example/components/AsyncApiCodeExample.vue.js +111 -6
- package/dist/code-example/components/AsyncApiCodeExample.vue.js.map +1 -1
- package/dist/code-example/components/AsyncApiCodeExample3.vue.js +8 -0
- package/dist/code-example/components/AsyncApiCodeExample3.vue.js.map +1 -0
- package/dist/code-example/components/CodeExample.vue.d.ts +10 -0
- package/dist/code-example/components/CodeExample.vue.d.ts.map +1 -1
- package/dist/code-example/components/CodeExample.vue.js +297 -6
- package/dist/code-example/components/CodeExample.vue.js.map +1 -1
- package/dist/code-example/components/CodeExample3.vue.js +8 -0
- package/dist/code-example/components/CodeExample3.vue.js.map +1 -0
- package/dist/code-example/components/ExamplePicker.vue.d.ts +2 -0
- package/dist/code-example/components/ExamplePicker.vue.d.ts.map +1 -1
- package/dist/code-example/components/ExamplePicker.vue.js +50 -4
- package/dist/code-example/components/ExamplePicker.vue.js.map +1 -1
- package/dist/code-example/components/ExamplePicker2.vue.js +6 -0
- package/dist/code-example/components/ExamplePicker2.vue.js.map +1 -0
- package/dist/code-example/components/HttpMethod.vue.js +32 -4
- package/dist/code-example/components/HttpMethod.vue.js.map +1 -1
- package/dist/code-example/components/HttpMethod2.vue.js +6 -0
- package/dist/code-example/components/HttpMethod2.vue.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.d.ts +8 -2
- package/dist/code-example/helpers/generate-code-snippet.d.ts.map +1 -1
- package/dist/code-example/helpers/generate-code-snippet.js +57 -27
- package/dist/code-example/helpers/generate-code-snippet.js.map +1 -1
- package/dist/code-example/helpers/get-asyncapi-example-context.js.map +1 -1
- 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.js.map +1 -1
- package/dist/code-example/helpers/get-message-example-content.js.map +1 -1
- package/dist/code-example/helpers/get-secrets.js.map +1 -1
- package/dist/code-example/helpers/get-snippet.d.ts +2 -2
- package/dist/code-example/helpers/get-snippet.d.ts.map +1 -1
- package/dist/code-example/helpers/get-snippet.js +7 -9
- package/dist/code-example/helpers/get-snippet.js.map +1 -1
- package/dist/code-example/helpers/operation-to-har/operation-to-har.d.ts +1 -1
- package/dist/code-example/helpers/operation-to-har/operation-to-har.d.ts.map +1 -1
- package/dist/code-example/helpers/operation-to-har/operation-to-har.js +1 -1
- 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.d.ts +2 -2
- package/dist/code-example/helpers/operation-to-har/process-body.d.ts.map +1 -1
- package/dist/code-example/helpers/operation-to-har/process-body.js +102 -81
- package/dist/code-example/helpers/operation-to-har/process-body.js.map +1 -1
- package/dist/code-example/helpers/operation-to-har/process-parameters.d.ts.map +1 -1
- package/dist/code-example/helpers/operation-to-har/process-parameters.js +110 -108
- 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 +6 -6
- 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.map +1 -1
- package/dist/code-example/index.d.ts +1 -1
- package/dist/code-example/index.d.ts.map +1 -1
- package/dist/code-example/index.js +14 -14
- package/dist/code-example/mount-asyncapi.js +1 -1
- package/dist/code-example/mount-asyncapi.js.map +1 -1
- package/dist/code-example/mount.js +1 -1
- package/dist/code-example/mount.js.map +1 -1
- package/dist/constants.js +1 -1
- package/dist/schema/LinkButton.vue.js.map +1 -1
- package/dist/schema/RenderString.vue.js +11 -4
- package/dist/schema/RenderString.vue.js.map +1 -1
- package/dist/schema/RenderString2.vue.js +6 -0
- package/dist/schema/RenderString2.vue.js.map +1 -0
- package/dist/schema/Schema.vue.js +235 -6
- package/dist/schema/Schema.vue.js.map +1 -1
- package/dist/schema/Schema3.vue.js +8 -0
- package/dist/schema/Schema3.vue.js.map +1 -0
- package/dist/schema/SchemaCollapsedPreview.vue.js +25 -4
- package/dist/schema/SchemaCollapsedPreview.vue.js.map +1 -1
- package/dist/schema/SchemaCollapsedPreview2.vue.js +6 -0
- package/dist/schema/SchemaCollapsedPreview2.vue.js.map +1 -0
- package/dist/schema/SchemaComposition.vue.js +232 -6
- package/dist/schema/SchemaComposition.vue.js.map +1 -1
- package/dist/schema/SchemaComposition3.vue.js +8 -0
- package/dist/schema/SchemaComposition3.vue.js.map +1 -0
- package/dist/schema/SchemaEnumPropertyItem.vue.d.ts +1 -0
- package/dist/schema/SchemaEnumPropertyItem.vue.d.ts.map +1 -1
- package/dist/schema/SchemaEnumPropertyItem.vue.js +23 -4
- package/dist/schema/SchemaEnumPropertyItem.vue.js.map +1 -1
- package/dist/schema/SchemaEnumPropertyItem2.vue.js +6 -0
- package/dist/schema/SchemaEnumPropertyItem2.vue.js.map +1 -0
- package/dist/schema/SchemaEnums.vue.d.ts.map +1 -1
- package/dist/schema/SchemaEnums.vue.js +74 -6
- package/dist/schema/SchemaEnums.vue.js.map +1 -1
- package/dist/schema/SchemaEnums3.vue.js +8 -0
- package/dist/schema/SchemaEnums3.vue.js.map +1 -0
- package/dist/schema/SchemaGlyphPuck.vue.js +27 -4
- package/dist/schema/SchemaGlyphPuck.vue.js.map +1 -1
- package/dist/schema/SchemaGlyphPuck2.vue.js +6 -0
- package/dist/schema/SchemaGlyphPuck2.vue.js.map +1 -0
- package/dist/schema/SchemaGutterToggle.vue.js +40 -4
- package/dist/schema/SchemaGutterToggle.vue.js.map +1 -1
- package/dist/schema/SchemaGutterToggle2.vue.js +6 -0
- package/dist/schema/SchemaGutterToggle2.vue.js.map +1 -0
- package/dist/schema/SchemaHeading.vue.js +32 -6
- package/dist/schema/SchemaHeading.vue.js.map +1 -1
- package/dist/schema/SchemaHeading3.vue.js +8 -0
- package/dist/schema/SchemaHeading3.vue.js.map +1 -0
- package/dist/schema/SchemaObjectExampleCodeBlock.vue.js +42 -4
- package/dist/schema/SchemaObjectExampleCodeBlock.vue.js.map +1 -1
- package/dist/schema/SchemaObjectExampleCodeBlock2.vue.js +6 -0
- package/dist/schema/SchemaObjectExampleCodeBlock2.vue.js.map +1 -0
- package/dist/schema/SchemaObjectProperties.vue.js +213 -4
- package/dist/schema/SchemaObjectProperties.vue.js.map +1 -1
- package/dist/schema/SchemaObjectProperties2.vue.js +6 -0
- package/dist/schema/SchemaObjectProperties2.vue.js.map +1 -0
- package/dist/schema/SchemaProperty.vue.d.ts +1 -1
- package/dist/schema/SchemaProperty.vue.d.ts.map +1 -1
- package/dist/schema/SchemaProperty.vue.js +472 -6
- package/dist/schema/SchemaProperty.vue.js.map +1 -1
- package/dist/schema/SchemaProperty3.vue.js +8 -0
- package/dist/schema/SchemaProperty3.vue.js.map +1 -0
- package/dist/schema/SchemaPropertyDefault.vue.js +61 -6
- package/dist/schema/SchemaPropertyDefault.vue.js.map +1 -1
- package/dist/schema/SchemaPropertyDefault3.vue.js +8 -0
- package/dist/schema/SchemaPropertyDefault3.vue.js.map +1 -0
- package/dist/schema/SchemaPropertyDetail.vue.js +22 -6
- package/dist/schema/SchemaPropertyDetail.vue.js.map +1 -1
- package/dist/schema/SchemaPropertyDetail3.vue.js +8 -0
- package/dist/schema/SchemaPropertyDetail3.vue.js.map +1 -0
- package/dist/schema/SchemaPropertyExamples.vue.js +133 -6
- package/dist/schema/SchemaPropertyExamples.vue.js.map +1 -1
- package/dist/schema/SchemaPropertyExamples3.vue.js +8 -0
- package/dist/schema/SchemaPropertyExamples3.vue.js.map +1 -0
- package/dist/schema/SchemaPropertyHeading.vue.d.ts +1 -1
- package/dist/schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
- package/dist/schema/SchemaPropertyHeading.vue.js +312 -6
- package/dist/schema/SchemaPropertyHeading.vue.js.map +1 -1
- package/dist/schema/SchemaPropertyHeading3.vue.js +8 -0
- package/dist/schema/SchemaPropertyHeading3.vue.js.map +1 -0
- package/dist/schema/SchemaPropertyPattern.vue.js +42 -6
- package/dist/schema/SchemaPropertyPattern.vue.js.map +1 -1
- package/dist/schema/SchemaPropertyPattern3.vue.js +8 -0
- package/dist/schema/SchemaPropertyPattern3.vue.js.map +1 -0
- package/dist/schema/SchemaRailPanel.vue.js +53 -4
- package/dist/schema/SchemaRailPanel.vue.js.map +1 -1
- package/dist/schema/SchemaRailPanel2.vue.js +6 -0
- package/dist/schema/SchemaRailPanel2.vue.js.map +1 -0
- package/dist/schema/components/CopyLinkButton.vue.d.ts +5 -0
- package/dist/schema/components/CopyLinkButton.vue.d.ts.map +1 -1
- package/dist/schema/components/CopyLinkButton.vue.js +24 -4
- package/dist/schema/components/CopyLinkButton.vue.js.map +1 -1
- package/dist/schema/components/CopyLinkButton2.vue.js +6 -0
- package/dist/schema/components/CopyLinkButton2.vue.js.map +1 -0
- package/dist/schema/components/WithBreadcrumb.vue.js +15 -4
- package/dist/schema/components/WithBreadcrumb.vue.js.map +1 -1
- package/dist/schema/components/WithBreadcrumb2.vue.js +6 -0
- package/dist/schema/components/WithBreadcrumb2.vue.js.map +1 -0
- 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-structured-value.d.ts +3 -0
- package/dist/schema/helpers/format-structured-value.d.ts.map +1 -0
- package/dist/schema/helpers/format-structured-value.js +6 -0
- package/dist/schema/helpers/format-structured-value.js.map +1 -0
- 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-rendered-example.js.map +1 -1
- package/dist/schema/helpers/get-schema-type.js.map +1 -1
- package/dist/schema/helpers/get-type-signature-tokens.d.ts.map +1 -1
- package/dist/schema/helpers/get-type-signature-tokens.js +37 -36
- 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.map +1 -1
- package/dist/schema/helpers/normalize-object-composition.js.map +1 -1
- 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-cycle.js.map +1 -1
- 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.js +8 -8
- package/dist/schema/localization/index.d.ts +1 -1
- package/dist/schema/localization/index.js.map +1 -1
- package/dist/schema/localization/translations.js.map +1 -1
- package/dist/shared/Badge.vue.js +13 -6
- package/dist/shared/Badge.vue.js.map +1 -1
- package/dist/shared/Badge3.vue.js +8 -0
- package/dist/shared/Badge3.vue.js.map +1 -0
- package/dist/shared/ExternalDocs.vue.js +43 -4
- package/dist/shared/ExternalDocs.vue.js.map +1 -1
- package/dist/shared/ExternalDocs2.vue.js +6 -0
- package/dist/shared/ExternalDocs2.vue.js.map +1 -0
- package/dist/shared/ExternalExampleStatus.vue.d.ts +12 -0
- package/dist/shared/ExternalExampleStatus.vue.d.ts.map +1 -0
- package/dist/shared/ExternalExampleStatus.vue.js +26 -0
- package/dist/shared/ExternalExampleStatus.vue.js.map +1 -0
- package/dist/shared/ExternalExampleStatus2.vue.js +6 -0
- package/dist/shared/ExternalExampleStatus2.vue.js.map +1 -0
- package/dist/shared/ScreenReader.vue.js +16 -4
- package/dist/shared/ScreenReader.vue.js.map +1 -1
- package/dist/shared/ScreenReader2.vue.js +6 -0
- package/dist/shared/ScreenReader2.vue.js.map +1 -0
- package/dist/shared/external-example-localization/index.d.ts +4 -0
- package/dist/shared/external-example-localization/index.d.ts.map +1 -0
- package/dist/shared/external-example-localization/index.js +17 -0
- package/dist/shared/external-example-localization/index.js.map +1 -0
- package/dist/shared/external-example-localization/locales/ar.d.ts +8 -0
- package/dist/shared/external-example-localization/locales/ar.d.ts.map +1 -0
- package/dist/shared/external-example-localization/locales/ar.js +9 -0
- package/dist/shared/external-example-localization/locales/ar.js.map +1 -0
- package/dist/shared/external-example-localization/locales/de.d.ts +8 -0
- package/dist/shared/external-example-localization/locales/de.d.ts.map +1 -0
- package/dist/shared/external-example-localization/locales/de.js +9 -0
- package/dist/shared/external-example-localization/locales/de.js.map +1 -0
- package/dist/shared/external-example-localization/locales/en.d.ts +8 -0
- package/dist/shared/external-example-localization/locales/en.d.ts.map +1 -0
- package/dist/shared/external-example-localization/locales/en.js +9 -0
- package/dist/shared/external-example-localization/locales/en.js.map +1 -0
- package/dist/shared/external-example-localization/locales/es.d.ts +8 -0
- package/dist/shared/external-example-localization/locales/es.d.ts.map +1 -0
- package/dist/shared/external-example-localization/locales/es.js +9 -0
- package/dist/shared/external-example-localization/locales/es.js.map +1 -0
- package/dist/shared/external-example-localization/locales/fr.d.ts +8 -0
- package/dist/shared/external-example-localization/locales/fr.d.ts.map +1 -0
- package/dist/shared/external-example-localization/locales/fr.js +9 -0
- package/dist/shared/external-example-localization/locales/fr.js.map +1 -0
- package/dist/shared/external-example-localization/locales/pt.d.ts +8 -0
- package/dist/shared/external-example-localization/locales/pt.d.ts.map +1 -0
- package/dist/shared/external-example-localization/locales/pt.js +9 -0
- package/dist/shared/external-example-localization/locales/pt.js.map +1 -0
- package/dist/shared/external-example-localization/locales/ru.d.ts +8 -0
- package/dist/shared/external-example-localization/locales/ru.d.ts.map +1 -0
- package/dist/shared/external-example-localization/locales/ru.js +9 -0
- package/dist/shared/external-example-localization/locales/ru.js.map +1 -0
- package/dist/shared/external-example-localization/locales/zh-cn.d.ts +8 -0
- package/dist/shared/external-example-localization/locales/zh-cn.d.ts.map +1 -0
- package/dist/shared/external-example-localization/locales/zh-cn.js +9 -0
- package/dist/shared/external-example-localization/locales/zh-cn.js.map +1 -0
- package/dist/shared/external-example-localization/locales/zh-tw.d.ts +8 -0
- package/dist/shared/external-example-localization/locales/zh-tw.d.ts.map +1 -0
- package/dist/shared/external-example-localization/locales/zh-tw.js +9 -0
- package/dist/shared/external-example-localization/locales/zh-tw.js.map +1 -0
- package/dist/shared/external-example-localization/translations.d.ts +67 -0
- package/dist/shared/external-example-localization/translations.d.ts.map +1 -0
- package/dist/shared/external-example-localization/translations.js +24 -0
- package/dist/shared/external-example-localization/translations.js.map +1 -0
- package/dist/shared/index.d.ts +3 -0
- package/dist/shared/index.d.ts.map +1 -1
- package/dist/shared/index.js +6 -4
- package/dist/specification-extensions/ExtensionValue.vue.js +89 -4
- package/dist/specification-extensions/ExtensionValue.vue.js.map +1 -1
- package/dist/specification-extensions/ExtensionValue2.vue.js +6 -0
- package/dist/specification-extensions/ExtensionValue2.vue.js.map +1 -0
- package/dist/specification-extensions/SpecificationExtensions.vue.js +76 -4
- package/dist/specification-extensions/SpecificationExtensions.vue.js.map +1 -1
- package/dist/specification-extensions/SpecificationExtensions2.vue.js +6 -0
- package/dist/specification-extensions/SpecificationExtensions2.vue.js.map +1 -0
- package/dist/specification-extensions/index.js +1 -1
- package/dist/style.css +13 -9
- package/dist/vue-styles.css +1 -1
- package/package.json +18 -18
- package/dist/code-example/components/AsyncApiCodeExample.vue_vue_type_script_setup_true_lang.js +0 -113
- package/dist/code-example/components/AsyncApiCodeExample.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/code-example/components/CodeExample.vue_vue_type_script_setup_true_lang.js +0 -275
- package/dist/code-example/components/CodeExample.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/code-example/components/ExamplePicker.vue_vue_type_script_setup_true_lang.js +0 -48
- package/dist/code-example/components/ExamplePicker.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/code-example/components/HttpMethod.vue_vue_type_script_setup_true_lang.js +0 -34
- package/dist/code-example/components/HttpMethod.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/schema/RenderString.vue_vue_type_script_setup_true_lang.js +0 -13
- package/dist/schema/RenderString.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/schema/Schema.vue_vue_type_script_setup_true_lang.js +0 -237
- package/dist/schema/Schema.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/schema/SchemaCollapsedPreview.vue_vue_type_script_setup_true_lang.js +0 -27
- package/dist/schema/SchemaCollapsedPreview.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/schema/SchemaComposition.vue_vue_type_script_setup_true_lang.js +0 -234
- package/dist/schema/SchemaComposition.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/schema/SchemaEnumPropertyItem.vue_vue_type_script_setup_true_lang.js +0 -23
- package/dist/schema/SchemaEnumPropertyItem.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/schema/SchemaEnums.vue_vue_type_script_setup_true_lang.js +0 -77
- package/dist/schema/SchemaEnums.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/schema/SchemaGlyphPuck.vue_vue_type_script_setup_true_lang.js +0 -29
- package/dist/schema/SchemaGlyphPuck.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/schema/SchemaGutterToggle.vue_vue_type_script_setup_true_lang.js +0 -42
- package/dist/schema/SchemaGutterToggle.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/schema/SchemaHeading.vue_vue_type_script_setup_true_lang.js +0 -34
- package/dist/schema/SchemaHeading.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/schema/SchemaObjectExampleCodeBlock.vue_vue_type_script_setup_true_lang.js +0 -44
- package/dist/schema/SchemaObjectExampleCodeBlock.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/schema/SchemaObjectProperties.vue_vue_type_script_setup_true_lang.js +0 -215
- package/dist/schema/SchemaObjectProperties.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/schema/SchemaProperty.vue_vue_type_script_setup_true_lang.js +0 -469
- package/dist/schema/SchemaProperty.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/schema/SchemaPropertyDefault.vue_vue_type_script_setup_true_lang.js +0 -63
- package/dist/schema/SchemaPropertyDefault.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/schema/SchemaPropertyDetail.vue_vue_type_script_setup_true_lang.js +0 -24
- package/dist/schema/SchemaPropertyDetail.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/schema/SchemaPropertyExamples.vue_vue_type_script_setup_true_lang.js +0 -135
- package/dist/schema/SchemaPropertyExamples.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/schema/SchemaPropertyHeading.vue_vue_type_script_setup_true_lang.js +0 -314
- package/dist/schema/SchemaPropertyHeading.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/schema/SchemaPropertyPattern.vue_vue_type_script_setup_true_lang.js +0 -44
- package/dist/schema/SchemaPropertyPattern.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/schema/SchemaRailPanel.vue_vue_type_script_setup_true_lang.js +0 -55
- package/dist/schema/SchemaRailPanel.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/schema/components/CopyLinkButton.vue_vue_type_script_setup_true_lang.js +0 -25
- package/dist/schema/components/CopyLinkButton.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/schema/components/WithBreadcrumb.vue_vue_type_script_setup_true_lang.js +0 -17
- package/dist/schema/components/WithBreadcrumb.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/shared/Badge.vue_vue_type_script_setup_true_lang.js +0 -15
- package/dist/shared/Badge.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/shared/ExternalDocs.vue_vue_type_script_setup_true_lang.js +0 -45
- package/dist/shared/ExternalDocs.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/shared/ScreenReader.vue_vue_type_script_setup_true_lang.js +0 -18
- package/dist/shared/ScreenReader.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/specification-extensions/ExtensionValue.vue_vue_type_script_setup_true_lang.js +0 -91
- package/dist/specification-extensions/ExtensionValue.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/specification-extensions/SpecificationExtensions.vue_vue_type_script_setup_true_lang.js +0 -78
- package/dist/specification-extensions/SpecificationExtensions.vue_vue_type_script_setup_true_lang.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SchemaGlyphPuck2.vue.js","names":["SchemaGlyphPuck_vue_vue_type_script_setup_true_lang_default","SchemaGlyphPuck_default"],"sources":[],"mappings":""}
|
|
@@ -1,6 +1,42 @@
|
|
|
1
|
-
import e from "./
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import e from "./SchemaGlyphPuck2.vue.js";
|
|
2
|
+
import { createElementBlock as t, createVNode as n, defineComponent as r, openBlock as i } from "vue";
|
|
3
|
+
// src/schema/SchemaGutterToggle.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var a = [
|
|
5
|
+
"aria-controls",
|
|
6
|
+
"aria-describedby",
|
|
7
|
+
"aria-expanded",
|
|
8
|
+
"aria-label",
|
|
9
|
+
"aria-labelledby"
|
|
10
|
+
], o = /*@__PURE__*/ r({
|
|
11
|
+
__name: "SchemaGutterToggle",
|
|
12
|
+
props: {
|
|
13
|
+
open: { type: Boolean },
|
|
14
|
+
panelId: {},
|
|
15
|
+
panelRendered: { type: Boolean },
|
|
16
|
+
nameId: {},
|
|
17
|
+
fallbackLabel: {},
|
|
18
|
+
countId: {}
|
|
19
|
+
},
|
|
20
|
+
emits: ["toggle"],
|
|
21
|
+
setup(r, { emit: o }) {
|
|
22
|
+
let s = o;
|
|
23
|
+
return (o, c) => (i(), t("button", {
|
|
24
|
+
"aria-controls": r.panelRendered ? r.panelId : void 0,
|
|
25
|
+
"aria-describedby": r.countId,
|
|
26
|
+
"aria-expanded": r.open,
|
|
27
|
+
"aria-label": r.nameId ? void 0 : r.fallbackLabel,
|
|
28
|
+
"aria-labelledby": r.nameId,
|
|
29
|
+
class: "property-toggle group/tree-control flex size-[var(--schema-toggle-size,24px)] shrink-0 cursor-pointer items-center justify-center rounded-[999px] border-none bg-transparent p-0 text-[color:var(--schema-glyph-color,var(--scalar-color-2))]",
|
|
30
|
+
"data-schema-toggle": "",
|
|
31
|
+
type: "button",
|
|
32
|
+
onClick: c[0] ||= (e) => s("toggle")
|
|
33
|
+
}, [n(e, {
|
|
34
|
+
class: "property-glyph",
|
|
35
|
+
floating: !1,
|
|
36
|
+
open: r.open
|
|
37
|
+
}, null, 8, ["open"])], 8, a));
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
export { o as default };
|
|
5
41
|
|
|
6
42
|
//# sourceMappingURL=SchemaGutterToggle.vue.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaGutterToggle.vue.js","names":["SchemaGutterToggle_vue_vue_type_script_setup_true_lang_default","
|
|
1
|
+
{"version":3,"file":"SchemaGutterToggle.vue.js","names":["_openBlock","_createElementBlock","_createVNode","SchemaGlyphPuck","SchemaGlyphPuck_default","createElementBlock","createVNode","defineComponent","openBlock","_hoisted_1","SchemaGutterToggle_vue_vue_type_script_setup_true_lang_default","__props","__emit","emit","_ctx","_cache","$event"],"sources":["../../src/schema/SchemaGutterToggle.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport SchemaGlyphPuck from './SchemaGlyphPuck.vue'\n\n/**\n * A property row's disclosure control: a content-free button in the property's\n * gutter. Its accessible name is the property name via `aria-labelledby`, and the\n * child count rides `aria-describedby` so screen-reader verbosity settings apply.\n * The 24px hit box (WCAG 2.5.8) and the 18px glyph puck inside it are sized\n * independently.\n */\nconst { open, panelId, panelRendered, nameId, fallbackLabel, countId } =\n defineProps<{\n /** Whether the controlled panel is expanded */\n open: boolean\n /** id of the panel this toggle controls */\n panelId: string\n /** Only reference the panel while it is actually in the DOM */\n panelRendered: boolean\n /** id of the visible property name that labels this control, absent on nameless rows */\n nameId?: string\n /**\n * Accessible name when there is no visible name to reference: pointing\n * `aria-labelledby` at an id that never renders leaves the button unnamed.\n */\n fallbackLabel: string\n /** id of the visually hidden child count that describes this control */\n countId?: string\n }>()\n\nconst emit = defineEmits<{\n (e: 'toggle'): void\n}>()\n</script>\n<template>\n <button\n :aria-controls=\"panelRendered ? panelId : undefined\"\n :aria-describedby=\"countId\"\n :aria-expanded=\"open\"\n :aria-label=\"nameId ? undefined : fallbackLabel\"\n :aria-labelledby=\"nameId\"\n class=\"property-toggle group/tree-control flex size-[var(--schema-toggle-size,24px)] shrink-0 cursor-pointer items-center justify-center rounded-[999px] border-none bg-transparent p-0 text-[color:var(--schema-glyph-color,var(--scalar-color-2))]\"\n data-schema-toggle\n type=\"button\"\n @click=\"emit('toggle')\">\n <!-- Inline, not floating: the button is already the box the puck centres in -->\n <SchemaGlyphPuck\n class=\"property-glyph\"\n :floating=\"false\"\n :open=\"open\" />\n </button>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;EA6BA,IAAMa,IAAOD;E,kBAKXZ,EAAA,GAAAC,EAeS,UAAA;GAdN,iBAAeU,EAAA,gBAAgBA,EAAA,UAAU,KAAA;GACzC,oBAAkBA,EAAA;GAClB,iBAAeA,EAAA;GACf,cAAYA,EAAA,SAAS,KAAA,IAAYA,EAAA;GACjC,mBAAiBA,EAAA;GAClB,OAAM;GACN,sBAAA;GACA,MAAK;GACJ,SAAKI,EAAA,QAAAC,MAAEH,EAAI,QAAA;E,IAEZX,EAGiBC,GAAA;GAFf,OAAM;GACL,UAAU;GACV,MAAMQ,EAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SchemaGutterToggle2.vue.js","names":["SchemaGutterToggle_vue_vue_type_script_setup_true_lang_default","SchemaGutterToggle_default"],"sources":[],"mappings":""}
|
|
@@ -1,8 +1,34 @@
|
|
|
1
|
-
import e from "./
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { isTypeObject as e } from "./helpers/is-type-object.js";
|
|
2
|
+
import { useLocalization as t } from "./localization/index.js";
|
|
3
|
+
import { Fragment as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, defineComponent as l, openBlock as u, toDisplayString as d, unref as f } from "vue";
|
|
4
|
+
import { ScalarWrappingText as p } from "@scalar/components/wrapping-text";
|
|
5
|
+
import { isArraySchema as m } from "@scalar/workspace-store/schemas/v3.2/strict/type-guards";
|
|
6
|
+
// src/schema/SchemaHeading.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
+
var h = {
|
|
8
|
+
key: 0,
|
|
9
|
+
class: "schema-type"
|
|
10
|
+
}, g = ["title"], _ = /*@__PURE__*/ l({
|
|
11
|
+
__name: "SchemaHeading",
|
|
12
|
+
props: {
|
|
13
|
+
value: {},
|
|
14
|
+
name: {}
|
|
15
|
+
},
|
|
16
|
+
setup(l) {
|
|
17
|
+
let { translate: _ } = t(), v = r(() => "type" in l.value ? l.value.type : l.value.enum ? "enum" : m(l.value) && l.value.items ? "array" : e(l.value) && (l.value.properties || l.value.additionalProperties) ? "object" : "unknown");
|
|
18
|
+
return (t, r) => typeof l.value == "object" ? (u(), o("span", h, [s("span", {
|
|
19
|
+
class: "schema-type-icon",
|
|
20
|
+
title: "type" in l.value && typeof l.value.type == "string" ? l.value.type : "type" in l.value && Array.isArray(l.value.type) ? l.value.type.join(" | ") : f(_)("schema.unknownType")
|
|
21
|
+
}, [
|
|
22
|
+
f(e)(l.value) ? (u(), o(n, { key: 0 }, [c(" {} ")], 64)) : a("", !0),
|
|
23
|
+
f(m)(l.value) ? (u(), o(n, { key: 1 }, [c(" [] ")], 64)) : a("", !0),
|
|
24
|
+
l.value.enum ? (u(), o(n, { key: 2 }, [c(" enum ")], 64)) : a("", !0)
|
|
25
|
+
], 8, g), l.name ? (u(), i(f(p), {
|
|
26
|
+
key: 0,
|
|
27
|
+
preset: "property",
|
|
28
|
+
text: l.name
|
|
29
|
+
}, null, 8, ["text"])) : (u(), o(n, { key: 1 }, [c(d(v.value), 1)], 64))])) : a("", !0);
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
export { _ as default };
|
|
7
33
|
|
|
8
34
|
//# sourceMappingURL=SchemaHeading.vue.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaHeading.vue.js","names":["SchemaHeading_vue_vue_type_script_setup_true_lang_default","
|
|
1
|
+
{"version":3,"file":"SchemaHeading.vue.js","names":["_openBlock","_createElementBlock","_createElementVNode","_unref","_Fragment","_createTextVNode","_createBlock","_toDisplayString","isTypeObject","useLocalization","Fragment","computed","createBlock","createCommentVNode","createElementBlock","createElementVNode","createTextVNode","defineComponent","openBlock","toDisplayString","unref","ScalarWrappingText","isArraySchema","_hoisted_1","_hoisted_2","SchemaHeading_vue_vue_type_script_setup_true_lang_default","__props","translate","failsafeType","_ctx","_cache"],"sources":["../../src/schema/SchemaHeading.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport { ScalarWrappingText } from '@scalar/components/wrapping-text'\nimport type { SchemaObject } from '@scalar/workspace-store/schemas/v3.2/strict/openapi-document'\nimport { isArraySchema } from '@scalar/workspace-store/schemas/v3.2/strict/type-guards'\nimport { computed } from 'vue'\n\nimport { isTypeObject } from './helpers/is-type-object'\nimport { useLocalization } from './localization'\n\nconst { value } = defineProps<{\n value: SchemaObject\n name?: string\n}>()\nconst { translate } = useLocalization()\n\n/** Generate a failsafe type from the properties when we don't have one */\nconst failsafeType = computed(() => {\n if ('type' in value) {\n return value.type\n }\n\n if (value.enum) {\n return 'enum'\n }\n\n if (isArraySchema(value) && value.items) {\n return 'array'\n }\n\n if (isTypeObject(value) && (value.properties || value.additionalProperties)) {\n return 'object'\n }\n\n return 'unknown'\n})\n</script>\n\n<template>\n <span\n v-if=\"typeof value === 'object'\"\n class=\"schema-type\">\n <span\n class=\"schema-type-icon\"\n :title=\"\n 'type' in value && typeof value.type === 'string'\n ? value.type\n : 'type' in value && Array.isArray(value.type)\n ? value.type.join(' | ')\n : translate('schema.unknownType')\n \">\n <template v-if=\"isTypeObject(value)\"> {} </template>\n <template v-if=\"isArraySchema(value)\"> [] </template>\n <template v-if=\"value.enum\"> enum </template>\n </span>\n <template v-if=\"name\">\n <ScalarWrappingText\n preset=\"property\"\n :text=\"name\" />\n </template>\n <template v-else>\n {{ failsafeType }}\n </template>\n </span>\n</template>\n<style scoped>\n/* Style the \"icon\" */\n.schema-type-icon {\n color: var(--scalar-color-1);\n display: none;\n}\n.schema-type {\n font-family: var(--scalar-font-code);\n color: var(--scalar-color-1);\n}\n</style>\n"],"mappings":";;;;;;;;;;;;;;;;EAaA,IAAM,EAAE2B,iBAAclB,EAAgB,GAGhCmB,IAAejB,QACf,UAAUe,EAAA,QACLA,EAAA,MAAM,OAGXA,EAAA,MAAM,OACD,SAGLJ,EAAcI,EAAA,KAAK,KAAKA,EAAA,MAAM,QACzB,UAGLlB,EAAakB,EAAA,KAAK,MAAMA,EAAA,MAAM,cAAcA,EAAA,MAAM,wBAC7C,WAGF,SACR;E,iBAKgB,OAAAA,EAAA,SAAK,YADpB1B,EAAA,GAAAC,EAwBO,QAxBPsB,GAwBO,CArBLrB,EAYO,QAAA;GAXL,OAAM;GACL,OAA0B,UAAAwB,EAAA,SAAK,OAAWA,EAAA,MAAM,QAAI,WAA0BA,EAAA,MAAM,OAA2B,UAAAA,EAAA,SAAS,MAAM,QAAQA,EAAA,MAAM,IAAI,IAAgBA,EAAA,MAAM,KAAK,KAAI,KAAA,IAAsBvB,EAAAwB,CAAA,CAAS,CAAA,oBAAA;;GAO/LxB,EAAAK,CAAA,CAAY,CAACkB,EAAA,KAAK,KAAlC1B,EAAA,GAAAC,EAAoDG,GAAA,EAAA,KAAA,EAAA,GAAA,CAAfC,EAAA,MAAI,C;GACzBF,EAAAmB,CAAA,CAAa,CAACI,EAAA,KAAK,KAAnC1B,EAAA,GAAAC,EAAqDG,GAAA,EAAA,KAAA,EAAA,GAAA,CAAfC,EAAA,MAAI,C;GAC1BqB,EAAA,MAAM,QAAtB1B,EAAA,GAAAC,EAA6CG,GAAA,EAAA,KAAA,EAAA,GAAA,CAAjBC,EAAA,QAAM,C;E,UAEpBqB,EAAA,QACd1B,EAAA,GAAAM,EAEiBH,EAAAkB,CAAA,GAAA;;GADf,QAAO;GACN,MAAMK,EAAA;E,0BAEX1B,EAAA,GAAAC,EAEWG,GAAA,EAAA,KAAA,EAAA,GAAA,CADNC,EAAAE,EAAAqB,EAAA,KAAY,GAAA,CAAA,C"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import e from "./SchemaHeading.vue.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import t from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
// src/schema/SchemaHeading.vue
|
|
5
|
+
var n = /*#__PURE__*/ t(e, [["__scopeId", "data-v-39d4fd7f"]]);
|
|
6
|
+
export { n as default };
|
|
7
|
+
|
|
8
|
+
//# sourceMappingURL=SchemaHeading3.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SchemaHeading3.vue.js","names":["SchemaHeading_vue_vue_type_script_setup_true_lang_default","_plugin_vue_export_helper_default","SchemaHeading_default"],"sources":[],"mappings":""}
|
|
@@ -1,6 +1,44 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import e from "../code-example/components/ExamplePicker2.vue.js";
|
|
2
|
+
import { computed as t, createBlock as n, createCommentVNode as r, createElementVNode as i, createVNode as a, defineComponent as o, openBlock as s, ref as c, unref as l, withCtx as u } from "vue";
|
|
3
|
+
import { ScalarCard as d, ScalarCardFooter as f, ScalarCardSection as p } from "@scalar/components/card";
|
|
4
|
+
import { ScalarCodeBlock as m } from "@scalar/components/code-block";
|
|
5
|
+
// src/schema/SchemaObjectExampleCodeBlock.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
var h = { class: "code-snippet" }, g = /*@__PURE__*/ o({
|
|
7
|
+
__name: "SchemaObjectExampleCodeBlock",
|
|
8
|
+
props: { schema: {} },
|
|
9
|
+
setup(o) {
|
|
10
|
+
let g = t(() => {
|
|
11
|
+
let e = {};
|
|
12
|
+
return o.schema["x-examples"] && Object.entries(o.schema["x-examples"]).forEach(([t, n]) => {
|
|
13
|
+
e[t] = typeof n == "object" ? JSON.stringify(n, null, 2) : String(n);
|
|
14
|
+
}), o.schema.examples && o.schema.examples.forEach((t, n) => {
|
|
15
|
+
e[`Example ${n + 1}`] = typeof t == "object" ? JSON.stringify(t, null, 2) : String(t);
|
|
16
|
+
}), e;
|
|
17
|
+
}), _ = c(Object.keys(g.value)[0] ?? "");
|
|
18
|
+
return (t, o) => Object.keys(g.value).length > 0 ? (s(), n(l(d), {
|
|
19
|
+
key: 0,
|
|
20
|
+
class: "dark-mode"
|
|
21
|
+
}, {
|
|
22
|
+
default: u(() => [a(l(p), null, {
|
|
23
|
+
default: u(() => [i("div", h, [a(l(m), {
|
|
24
|
+
class: "bg-transparent",
|
|
25
|
+
lang: "json",
|
|
26
|
+
lineNumbers: "",
|
|
27
|
+
prettyPrintedContent: g.value[_.value] ?? "There was an error loading the example"
|
|
28
|
+
}, null, 8, ["prettyPrintedContent"])])]),
|
|
29
|
+
_: 1
|
|
30
|
+
}), Object.keys(g.value).length > 1 ? (s(), n(l(f), { key: 0 }, {
|
|
31
|
+
default: u(() => [a(l(e), {
|
|
32
|
+
modelValue: _.value,
|
|
33
|
+
"onUpdate:modelValue": o[0] ||= (e) => _.value = e,
|
|
34
|
+
examples: g.value
|
|
35
|
+
}, null, 8, ["modelValue", "examples"])]),
|
|
36
|
+
_: 1
|
|
37
|
+
})) : r("", !0)]),
|
|
38
|
+
_: 1
|
|
39
|
+
})) : r("", !0);
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
export { g as default };
|
|
5
43
|
|
|
6
44
|
//# sourceMappingURL=SchemaObjectExampleCodeBlock.vue.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaObjectExampleCodeBlock.vue.js","names":["SchemaObjectExampleCodeBlock_vue_vue_type_script_setup_true_lang_default","
|
|
1
|
+
{"version":3,"file":"SchemaObjectExampleCodeBlock.vue.js","names":["_openBlock","_createBlock","_unref","_withCtx","_createVNode","_createElementVNode","ExamplePicker","ExamplePicker_default","computed","createBlock","createCommentVNode","createElementVNode","createVNode","defineComponent","openBlock","ref","unref","withCtx","ScalarCard","ScalarCardFooter","ScalarCardSection","ScalarCodeBlock","_hoisted_1","SchemaObjectExampleCodeBlock_vue_vue_type_script_setup_true_lang_default","__props","examples","base","key","value","index","selectedExampleKey","_ctx","_cache","$event"],"sources":["../../src/schema/SchemaObjectExampleCodeBlock.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport {\n ScalarCard,\n ScalarCardFooter,\n ScalarCardSection,\n} from '@scalar/components/card'\nimport { ScalarCodeBlock } from '@scalar/components/code-block'\nimport type { SchemaObject } from '@scalar/workspace-store/schemas/v3.2/strict/openapi-document'\nimport { computed, ref } from 'vue'\n\nimport { ExamplePicker } from '../code-example'\n\nconst { schema } = defineProps<{ schema: SchemaObject }>()\n\n/** Grab the examples for the schema object */\nconst examples = computed<Record<string, string>>(() => {\n const base: Record<string, string> = {}\n\n // x-examples extension\n if (schema['x-examples']) {\n Object.entries(schema['x-examples']).forEach(([key, value]) => {\n base[key] =\n typeof value === 'object'\n ? JSON.stringify(value, null, 2)\n : String(value)\n })\n }\n\n // Regular schema examples array\n if (schema.examples) {\n schema.examples.forEach((value, index) => {\n base[`Example ${index + 1}`] =\n typeof value === 'object'\n ? JSON.stringify(value, null, 2)\n : String(value)\n })\n }\n\n return base\n})\n\n/** The currently selected example key */\nconst selectedExampleKey = ref<string>(Object.keys(examples.value)[0] ?? '')\n</script>\n<template>\n <ScalarCard\n v-if=\"Object.keys(examples).length > 0\"\n class=\"dark-mode\">\n <!-- Code snippet -->\n <ScalarCardSection>\n <div class=\"code-snippet\">\n <ScalarCodeBlock\n class=\"bg-transparent\"\n lang=\"json\"\n lineNumbers\n :prettyPrintedContent=\"\n examples[selectedExampleKey] ??\n 'There was an error loading the example'\n \" />\n </div>\n </ScalarCardSection>\n\n <!-- Example picker -->\n <ScalarCardFooter v-if=\"Object.keys(examples).length > 1\">\n <ExamplePicker\n v-model=\"selectedExampleKey\"\n :examples />\n </ScalarCardFooter>\n </ScalarCard>\n</template>\n"],"mappings":";;;;;;;;;EAeA,IAAMyB,IAAWjB,QAAuC;GACtD,IAAMkB,IAA+B,CAAC;GAsBtC,OAnBIF,EAAA,OAAO,iBACT,OAAO,QAAQA,EAAA,OAAO,aAAa,CAAC,CAAC,SAAS,CAACG,GAAKC,OAAW;IAC7DF,EAAKC,KACH,OAAOC,KAAU,WACb,KAAK,UAAUA,GAAO,MAAM,CAAC,IAC7B,OAAOA,CAAK;GACpB,CAAC,GAICJ,EAAA,OAAO,YACTA,EAAA,OAAO,SAAS,SAASI,GAAOC,MAAU;IACxCH,EAAK,WAAWG,IAAQ,OACtB,OAAOD,KAAU,WACb,KAAK,UAAUA,GAAO,MAAM,CAAC,IAC7B,OAAOA,CAAK;GACpB,CAAC,GAGIF;EACT,CAAC,GAGKI,IAAqBf,EAAY,OAAO,KAAKU,EAAS,KAAK,CAAC,CAAC,MAAM,EAAE;E,iBAIjE,OAAO,KAAKA,EAAA,KAAQ,CAAA,CAAE,SAAM,KADpCzB,EAAA,GAAAC,EAuBaC,EAAAgB,CAAA,GAAA;;GArBX,OAAM;;GAEN,SAAAf,QAWoB,CAXpBC,EAWoBF,EAAAkB,CAAA,GAAA,MAAA;IAVlB,SAAAjB,QASM,CATNE,EASM,OATNiB,GASM,CARJlB,EAOMF,EAAAmB,CAAA,GAAA;KANJ,OAAM;KACN,MAAK;KACL,aAAA;KACC,sBAAmCI,EAAA,MAASK,EAAA,U;;;G,IAQ3B,OAAO,KAAKL,EAAA,KAAQ,CAAA,CAAE,SAAM,KAApDzB,EAAA,GAAAC,EAImBC,EAAAiB,CAAA,GAAA,EAAA,KAAA,EAAA,GAAA;IAHjB,SAAAhB,QAEc,CAFdC,EAEcF,EAAAI,CAAA,GAAA;KADH,YAAAwB,EAAA;KAAA,uBAAAE,EAAA,QAAAC,MAAAH,EAAkB,QAAAG;KAC1B,UAAAR,EAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SchemaObjectExampleCodeBlock2.vue.js","names":["SchemaObjectExampleCodeBlock_vue_vue_type_script_setup_true_lang_default","SchemaObjectExampleCodeBlock_default"],"sources":[],"mappings":""}
|
|
@@ -1,6 +1,215 @@
|
|
|
1
|
-
import e from "./
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { resolveDynamicSchema as e } from "./helpers/dynamic-scope.js";
|
|
2
|
+
import { isTypeObject as t } from "./helpers/is-type-object.js";
|
|
3
|
+
import { getCycleKey as n } from "./helpers/schema-cycle.js";
|
|
4
|
+
import { sortPropertyNames as r } from "./helpers/sort-property-names.js";
|
|
5
|
+
import i from "./SchemaProperty3.vue.js";
|
|
6
|
+
import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, defineComponent as u, openBlock as d, renderList as f, unref as p } from "vue";
|
|
7
|
+
import { resolve as m } from "@scalar/workspace-store/resolve";
|
|
8
|
+
import { getXBadges as h } from "@scalar/workspace-store/schemas/extensions/get-x-badges";
|
|
9
|
+
// src/schema/SchemaObjectProperties.vue?vue&type=script&setup=true&lang.ts
|
|
10
|
+
var g = /*@__PURE__*/ u({
|
|
11
|
+
__name: "SchemaObjectProperties",
|
|
12
|
+
props: {
|
|
13
|
+
schema: {},
|
|
14
|
+
discriminator: {},
|
|
15
|
+
compact: { type: Boolean },
|
|
16
|
+
hideHeading: { type: Boolean },
|
|
17
|
+
level: {},
|
|
18
|
+
depth: {},
|
|
19
|
+
hideModelNames: { type: Boolean },
|
|
20
|
+
breadcrumb: {},
|
|
21
|
+
eventBus: {},
|
|
22
|
+
options: {},
|
|
23
|
+
schemaContext: {},
|
|
24
|
+
compositionPath: {},
|
|
25
|
+
scrollTargetId: {},
|
|
26
|
+
specificationExtension: { type: [Object, Function] },
|
|
27
|
+
expansion: {}
|
|
28
|
+
},
|
|
29
|
+
setup(u) {
|
|
30
|
+
let g = o(() => r(u.schema, u.discriminator, u.options)), _ = (e, t) => {
|
|
31
|
+
let n = typeof e == "boolean" ? e : m.schema(e);
|
|
32
|
+
if (typeof n == "object" && typeof n["x-additionalPropertiesName"] == "string" && n["x-additionalPropertiesName"].trim().length > 0) return `${n["x-additionalPropertiesName"].trim()}`;
|
|
33
|
+
if (t) {
|
|
34
|
+
let e = m.schema(t);
|
|
35
|
+
if (e?.title) return e.title;
|
|
36
|
+
}
|
|
37
|
+
return "propertyName";
|
|
38
|
+
}, v = (e) => {
|
|
39
|
+
if (!e) return;
|
|
40
|
+
let t = m.schema(e);
|
|
41
|
+
if (t && "enum" in t && Array.isArray(t.enum) && t.enum.length > 0) return t.enum;
|
|
42
|
+
}, y = o(() => {
|
|
43
|
+
if (t(u.schema) && u.schema.additionalProperties) return v(u.schema.propertyNames);
|
|
44
|
+
}), b = o(() => {
|
|
45
|
+
if (t(u.schema) && u.schema.additionalProperties) return u.schema.propertyNames ? m.schema(u.schema.propertyNames) : void 0;
|
|
46
|
+
}), x = (t) => {
|
|
47
|
+
if (t !== void 0) return m.schema(e(t));
|
|
48
|
+
}, S = (e) => {
|
|
49
|
+
if (e) return typeof e.description == "string" ? e.description : void 0;
|
|
50
|
+
}, C = o(() => {
|
|
51
|
+
if (!t(u.schema) || !u.schema.properties) return [];
|
|
52
|
+
let { properties: e } = u.schema, r = new Set(u.schema.required ?? []);
|
|
53
|
+
return g.value.map((t) => {
|
|
54
|
+
let i = e[t];
|
|
55
|
+
return {
|
|
56
|
+
badges: h(i),
|
|
57
|
+
name: t,
|
|
58
|
+
cycleKey: n(i),
|
|
59
|
+
description: S(i),
|
|
60
|
+
required: r.has(t),
|
|
61
|
+
schema: x(i)
|
|
62
|
+
};
|
|
63
|
+
});
|
|
64
|
+
}), w = (e) => {
|
|
65
|
+
let t = typeof e == "boolean" ? e : m.schema(e);
|
|
66
|
+
return t === !0 || typeof t == "object" && Object.keys(t).length === 0 || typeof t != "object" || !("type" in t) ? {
|
|
67
|
+
type: "anything",
|
|
68
|
+
...typeof t == "object" ? t : {}
|
|
69
|
+
} : t;
|
|
70
|
+
};
|
|
71
|
+
return (e, r) => (d(), l(a, null, [
|
|
72
|
+
p(t)(u.schema) && u.schema.properties ? (d(!0), l(a, { key: 0 }, f(C.value, (e) => (d(), s(i, {
|
|
73
|
+
key: e.name,
|
|
74
|
+
badges: e.badges,
|
|
75
|
+
breadcrumb: u.breadcrumb,
|
|
76
|
+
compact: u.compact,
|
|
77
|
+
compositionPath: u.compositionPath,
|
|
78
|
+
compositionPathSegment: e.name,
|
|
79
|
+
cycleKey: e.cycleKey,
|
|
80
|
+
depth: u.depth,
|
|
81
|
+
description: e.description,
|
|
82
|
+
discriminator: u.discriminator,
|
|
83
|
+
eventBus: u.eventBus,
|
|
84
|
+
expansion: u.expansion,
|
|
85
|
+
hideHeading: u.hideHeading,
|
|
86
|
+
hideModelNames: u.hideModelNames,
|
|
87
|
+
level: u.level,
|
|
88
|
+
name: e.name,
|
|
89
|
+
options: u.options,
|
|
90
|
+
required: e.required,
|
|
91
|
+
schema: e.schema,
|
|
92
|
+
schemaContext: u.schemaContext,
|
|
93
|
+
scrollTargetId: u.scrollTargetId,
|
|
94
|
+
specificationExtension: u.specificationExtension
|
|
95
|
+
}, null, 8, [
|
|
96
|
+
"badges",
|
|
97
|
+
"breadcrumb",
|
|
98
|
+
"compact",
|
|
99
|
+
"compositionPath",
|
|
100
|
+
"compositionPathSegment",
|
|
101
|
+
"cycleKey",
|
|
102
|
+
"depth",
|
|
103
|
+
"description",
|
|
104
|
+
"discriminator",
|
|
105
|
+
"eventBus",
|
|
106
|
+
"expansion",
|
|
107
|
+
"hideHeading",
|
|
108
|
+
"hideModelNames",
|
|
109
|
+
"level",
|
|
110
|
+
"name",
|
|
111
|
+
"options",
|
|
112
|
+
"required",
|
|
113
|
+
"schema",
|
|
114
|
+
"schemaContext",
|
|
115
|
+
"scrollTargetId",
|
|
116
|
+
"specificationExtension"
|
|
117
|
+
]))), 128)) : c("", !0),
|
|
118
|
+
p(t)(u.schema) && u.schema.patternProperties ? (d(!0), l(a, { key: 1 }, f(Object.entries(u.schema.patternProperties), ([e, t]) => (d(), s(i, {
|
|
119
|
+
key: e,
|
|
120
|
+
badges: p(h)(t),
|
|
121
|
+
breadcrumb: u.breadcrumb,
|
|
122
|
+
compact: u.compact,
|
|
123
|
+
compositionPath: u.compositionPath,
|
|
124
|
+
compositionPathSegment: e,
|
|
125
|
+
cycleKey: p(n)(t),
|
|
126
|
+
depth: u.depth,
|
|
127
|
+
description: S(t),
|
|
128
|
+
discriminator: u.discriminator,
|
|
129
|
+
eventBus: u.eventBus,
|
|
130
|
+
expansion: u.expansion,
|
|
131
|
+
hideHeading: u.hideHeading,
|
|
132
|
+
hideModelNames: u.hideModelNames,
|
|
133
|
+
level: u.level,
|
|
134
|
+
name: e,
|
|
135
|
+
options: u.options,
|
|
136
|
+
schema: x(t),
|
|
137
|
+
schemaContext: u.schemaContext,
|
|
138
|
+
scrollTargetId: u.scrollTargetId,
|
|
139
|
+
specificationExtension: u.specificationExtension
|
|
140
|
+
}, null, 8, [
|
|
141
|
+
"badges",
|
|
142
|
+
"breadcrumb",
|
|
143
|
+
"compact",
|
|
144
|
+
"compositionPath",
|
|
145
|
+
"compositionPathSegment",
|
|
146
|
+
"cycleKey",
|
|
147
|
+
"depth",
|
|
148
|
+
"description",
|
|
149
|
+
"discriminator",
|
|
150
|
+
"eventBus",
|
|
151
|
+
"expansion",
|
|
152
|
+
"hideHeading",
|
|
153
|
+
"hideModelNames",
|
|
154
|
+
"level",
|
|
155
|
+
"name",
|
|
156
|
+
"options",
|
|
157
|
+
"schema",
|
|
158
|
+
"schemaContext",
|
|
159
|
+
"scrollTargetId",
|
|
160
|
+
"specificationExtension"
|
|
161
|
+
]))), 128)) : c("", !0),
|
|
162
|
+
p(t)(u.schema) && u.schema.additionalProperties ? (d(), s(i, {
|
|
163
|
+
key: 2,
|
|
164
|
+
badges: p(h)(u.schema.additionalProperties),
|
|
165
|
+
breadcrumb: u.breadcrumb,
|
|
166
|
+
compact: u.compact,
|
|
167
|
+
compositionPath: u.compositionPath,
|
|
168
|
+
compositionPathSegment: _(u.schema.additionalProperties, u.schema.propertyNames),
|
|
169
|
+
cycleKey: p(n)(u.schema.additionalProperties),
|
|
170
|
+
depth: u.depth,
|
|
171
|
+
discriminator: u.discriminator,
|
|
172
|
+
eventBus: u.eventBus,
|
|
173
|
+
expansion: u.expansion,
|
|
174
|
+
hideHeading: u.hideHeading,
|
|
175
|
+
hideModelNames: u.hideModelNames,
|
|
176
|
+
level: u.level,
|
|
177
|
+
name: _(u.schema.additionalProperties, u.schema.propertyNames),
|
|
178
|
+
noncollapsible: "",
|
|
179
|
+
options: u.options,
|
|
180
|
+
propertyNamesEnum: y.value,
|
|
181
|
+
propertyNamesSchema: b.value,
|
|
182
|
+
schema: w(u.schema.additionalProperties),
|
|
183
|
+
schemaContext: u.schemaContext,
|
|
184
|
+
scrollTargetId: u.scrollTargetId,
|
|
185
|
+
specificationExtension: u.specificationExtension,
|
|
186
|
+
variant: "additionalProperties"
|
|
187
|
+
}, null, 8, [
|
|
188
|
+
"badges",
|
|
189
|
+
"breadcrumb",
|
|
190
|
+
"compact",
|
|
191
|
+
"compositionPath",
|
|
192
|
+
"compositionPathSegment",
|
|
193
|
+
"cycleKey",
|
|
194
|
+
"depth",
|
|
195
|
+
"discriminator",
|
|
196
|
+
"eventBus",
|
|
197
|
+
"expansion",
|
|
198
|
+
"hideHeading",
|
|
199
|
+
"hideModelNames",
|
|
200
|
+
"level",
|
|
201
|
+
"name",
|
|
202
|
+
"options",
|
|
203
|
+
"propertyNamesEnum",
|
|
204
|
+
"propertyNamesSchema",
|
|
205
|
+
"schema",
|
|
206
|
+
"schemaContext",
|
|
207
|
+
"scrollTargetId",
|
|
208
|
+
"specificationExtension"
|
|
209
|
+
])) : c("", !0)
|
|
210
|
+
], 64));
|
|
211
|
+
}
|
|
212
|
+
});
|
|
213
|
+
export { g as default };
|
|
5
214
|
|
|
6
215
|
//# sourceMappingURL=SchemaObjectProperties.vue.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaObjectProperties.vue.js","names":["SchemaObjectProperties_vue_vue_type_script_setup_true_lang_default","SchemaObjectProperties_default"],"sources":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"SchemaObjectProperties.vue.js","names":["_openBlock","_createElementBlock","_Fragment","_unref","_renderList","_createBlock","SchemaProperty","resolveDynamicSchema","isTypeObject","getCycleKey","sortPropertyNames","SchemaProperty_default","Fragment","computed","createBlock","createCommentVNode","createElementBlock","defineComponent","openBlock","renderList","unref","resolve","getXBadges","SchemaObjectProperties_vue_vue_type_script_setup_true_lang_default","__props","sortedProperties","getAdditionalPropertiesName","_additionalProperties","_propertyNames","additionalProperties","resolved","getPropertyNamesEnum","additionalPropertiesEnum","additionalPropertiesKeySchema","getPropertySchema","property","getPropertyDescription","rows","properties","requiredSet","name","getAdditionalPropertiesValue","_ctx","_cache","row","key"],"sources":["../../src/schema/SchemaObjectProperties.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport type { WorkspaceEventBus } from '@scalar/workspace-store/events'\nimport { resolve } from '@scalar/workspace-store/resolve'\nimport { getXBadges } from '@scalar/workspace-store/schemas/extensions/get-x-badges'\nimport type { XBadge } from '@scalar/workspace-store/schemas/extensions/operation'\nimport type {\n DiscriminatorObject,\n SchemaObject,\n SchemaReferenceType,\n} from '@scalar/workspace-store/schemas/v3.2/strict/openapi-document'\nimport { computed } from 'vue'\n\nimport { resolveDynamicSchema } from './helpers/dynamic-scope'\nimport { isTypeObject } from './helpers/is-type-object'\nimport { getCycleKey } from './helpers/schema-cycle'\nimport { sortPropertyNames } from './helpers/sort-property-names'\nimport SchemaProperty from './SchemaProperty.vue'\nimport type { SchemaOptions, SchemaRenderingProps } from './types'\n\nconst { schema, discriminator, options, schemaContext, compositionPath } =\n defineProps<\n {\n schema: SchemaObject\n discriminator?: DiscriminatorObject\n compact?: boolean\n hideHeading?: boolean\n level?: number\n /** Real nesting depth (see SchemaProperty) */\n depth?: number\n hideModelNames?: boolean\n breadcrumb?: string[]\n eventBus: WorkspaceEventBus | null\n options: SchemaOptions\n schemaContext?: string\n compositionPath?: string[]\n } & SchemaRenderingProps\n >()\n\n/**\n * Sorts properties by required status first, then alphabetically.\n * Required properties appear first, followed by optional properties.\n */\nconst sortedProperties = computed(() =>\n sortPropertyNames(schema, discriminator, options),\n)\n\n/**\n * Get the display name for additional properties.\n *\n * Checks x-additionalPropertiesName extension first, then falls back to the\n * propertyNames schema title if available.\n */\nconst getAdditionalPropertiesName = (\n _additionalProperties: Extract<\n SchemaObject,\n { type: 'object' }\n >['additionalProperties'],\n _propertyNames?: Extract<SchemaObject, { type: 'object' }>['propertyNames'],\n) => {\n const additionalProperties =\n typeof _additionalProperties === 'boolean'\n ? _additionalProperties\n : resolve.schema(_additionalProperties)\n\n if (\n typeof additionalProperties === 'object' &&\n typeof additionalProperties['x-additionalPropertiesName'] === 'string' &&\n additionalProperties['x-additionalPropertiesName'].trim().length > 0\n ) {\n return `${additionalProperties['x-additionalPropertiesName'].trim()}`\n }\n\n // Fall back to the propertyNames title when available\n if (_propertyNames) {\n const resolved = resolve.schema(_propertyNames)\n if (resolved?.title) {\n return resolved.title\n }\n }\n\n return 'propertyName'\n}\n\n/**\n * Extract enum values from the propertyNames schema.\n *\n * JSON Schema's propertyNames keyword constrains which keys are valid\n * in an object with additionalProperties. When it contains an enum,\n * these are the allowed key names.\n */\nconst getPropertyNamesEnum = (\n _propertyNames?: Extract<SchemaObject, { type: 'object' }>['propertyNames'],\n): string[] | undefined => {\n if (!_propertyNames) {\n return undefined\n }\n\n const resolved = resolve.schema(_propertyNames)\n if (\n resolved &&\n 'enum' in resolved &&\n Array.isArray(resolved.enum) &&\n resolved.enum.length > 0\n ) {\n return resolved.enum as string[]\n }\n\n return undefined\n}\n\n/** Enum values for the property keys, derived from propertyNames if present. */\nconst additionalPropertiesEnum = computed(() => {\n if (!isTypeObject(schema) || !schema.additionalProperties) {\n return undefined\n }\n return getPropertyNamesEnum(schema.propertyNames)\n})\n\n/**\n * The resolved propertyNames schema for the property keys.\n *\n * Surfaces key constraints such as `format` (for example `uuid`) so they are\n * not lost when rendering a map of additional properties.\n */\nconst additionalPropertiesKeySchema = computed(() => {\n if (!isTypeObject(schema) || !schema.additionalProperties) {\n return undefined\n }\n return schema.propertyNames ? resolve.schema(schema.propertyNames) : undefined\n})\n\n/**\n * Keep sibling property descriptions separate from the referenced schema.\n *\n * This allows us to render both:\n * - the property-specific description written next to the $ref, and\n * - the referenced schema's own description (for example discriminator parent docs)\n *\n * A property that is itself a `$dynamicRef` is bound to its concrete type first, while the value is\n * still a magic proxy. `resolve.schema` coerces the value into a plain object and would drop the proxy's\n * virtual `$dynamicRef-value` accessor, so binding afterwards is impossible — see {@link resolveDynamicSchema}.\n */\nconst getPropertySchema = (\n property: SchemaReferenceType<SchemaObject> | undefined,\n): SchemaObject | undefined => {\n if (property === undefined) {\n return undefined\n }\n return resolve.schema(resolveDynamicSchema(property))\n}\n\nconst getPropertyDescription = (\n property: SchemaReferenceType<SchemaObject> | undefined,\n): string | undefined => {\n if (!property) {\n return undefined\n }\n\n return typeof property.description === 'string'\n ? property.description\n : undefined\n}\n\ntype PropertyRow = {\n badges: XBadge[] | undefined\n name: string\n cycleKey: unknown\n description: string | undefined\n required: boolean\n schema: SchemaObject | undefined\n}\n\n/**\n * Each child read once, in panel order.\n *\n * The template used to fetch `schema.properties[name]` three times per row\n * (cycle key, description, schema) and walk the `required` array with\n * `includes` for every row. Through the document's proxy stack those reads\n * were the panel's largest per-row JS cost, and none of them can change while\n * the panel is up. `false` for a name outside `required` lands on the same\n * `required: false` default in SchemaProperty that `undefined` did.\n */\nconst rows = computed((): PropertyRow[] => {\n if (!isTypeObject(schema) || !schema.properties) {\n return []\n }\n\n const { properties } = schema\n const requiredSet = new Set(schema.required ?? [])\n\n return sortedProperties.value.map((name): PropertyRow => {\n const property = properties[name]\n\n return {\n badges: getXBadges(property),\n name,\n cycleKey: getCycleKey(property),\n description: getPropertyDescription(property),\n required: requiredSet.has(name),\n schema: getPropertySchema(property),\n }\n })\n})\n\n/**\n * Get the value for additional properties.\n *\n * When additionalProperties is true or an empty object, it should render as { type: 'anything' }.\n * $ref values are resolved before the type check so the referenced schema is rendered correctly.\n */\nconst getAdditionalPropertiesValue = (\n additionalProperties: Extract<\n SchemaObject,\n { type: 'object' }\n >['additionalProperties'],\n): SchemaObject => {\n // Resolve $ref first so the type check below works on the actual schema\n const resolved =\n typeof additionalProperties === 'boolean'\n ? additionalProperties\n : resolve.schema(additionalProperties)\n\n if (\n resolved === true ||\n (typeof resolved === 'object' && Object.keys(resolved).length === 0) ||\n typeof resolved !== 'object' ||\n !('type' in resolved)\n ) {\n return {\n // @ts-expect-error - ask hans\n type: 'anything',\n ...(typeof resolved === 'object' ? resolved : {}),\n }\n }\n\n return resolved\n}\n</script>\n\n<template>\n <!-- Properties -->\n <template v-if=\"isTypeObject(schema) && schema.properties\">\n <SchemaProperty\n v-for=\"row in rows\"\n :key=\"row.name\"\n :badges=\"row.badges\"\n :breadcrumb\n :compact\n :compositionPath=\"compositionPath\"\n :compositionPathSegment=\"row.name\"\n :cycleKey=\"row.cycleKey\"\n :depth\n :description=\"row.description\"\n :discriminator\n :eventBus=\"eventBus\"\n :expansion=\"expansion\"\n :hideHeading\n :hideModelNames\n :level\n :name=\"row.name\"\n :options=\"options\"\n :required=\"row.required\"\n :schema=\"row.schema\"\n :schemaContext=\"schemaContext\"\n :scrollTargetId=\"scrollTargetId\"\n :specificationExtension=\"specificationExtension\" />\n </template>\n\n <!-- patternProperties -->\n <template v-if=\"isTypeObject(schema) && schema.patternProperties\">\n <SchemaProperty\n v-for=\"[key, property] in Object.entries(schema.patternProperties)\"\n :key=\"key\"\n :badges=\"getXBadges(property)\"\n :breadcrumb\n :compact\n :compositionPath=\"compositionPath\"\n :compositionPathSegment=\"key\"\n :cycleKey=\"getCycleKey(property)\"\n :depth\n :description=\"getPropertyDescription(property)\"\n :discriminator\n :eventBus=\"eventBus\"\n :expansion=\"expansion\"\n :hideHeading\n :hideModelNames=\"hideModelNames\"\n :level\n :name=\"key\"\n :options=\"options\"\n :schema=\"getPropertySchema(property)\"\n :schemaContext=\"schemaContext\"\n :scrollTargetId=\"scrollTargetId\"\n :specificationExtension=\"specificationExtension\" />\n </template>\n\n <!-- additionalProperties -->\n <template v-if=\"isTypeObject(schema) && schema.additionalProperties\">\n <SchemaProperty\n :badges=\"getXBadges(schema.additionalProperties)\"\n :breadcrumb\n :compact\n :compositionPath=\"compositionPath\"\n :compositionPathSegment=\"\n getAdditionalPropertiesName(\n schema.additionalProperties,\n schema.propertyNames,\n )\n \"\n :cycleKey=\"getCycleKey(schema.additionalProperties)\"\n :depth\n :discriminator\n :eventBus=\"eventBus\"\n :expansion=\"expansion\"\n :hideHeading\n :hideModelNames\n :level\n :name=\"\n getAdditionalPropertiesName(\n schema.additionalProperties,\n schema.propertyNames,\n )\n \"\n noncollapsible\n :options=\"options\"\n :propertyNamesEnum=\"additionalPropertiesEnum\"\n :propertyNamesSchema=\"additionalPropertiesKeySchema\"\n :schema=\"getAdditionalPropertiesValue(schema.additionalProperties)\"\n :schemaContext=\"schemaContext\"\n :scrollTargetId=\"scrollTargetId\"\n :specificationExtension=\"specificationExtension\"\n variant=\"additionalProperties\" />\n </template>\n</template>\n"],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SchemaObjectProperties2.vue.js","names":["SchemaObjectProperties_vue_vue_type_script_setup_true_lang_default","SchemaObjectProperties_default"],"sources":[],"mappings":""}
|
|
@@ -85,8 +85,8 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
85
85
|
cycleKey?: unknown;
|
|
86
86
|
} & SchemaRenderingProps> & Readonly<{}>, {
|
|
87
87
|
required: boolean;
|
|
88
|
-
level: number;
|
|
89
88
|
hideModelNames: boolean;
|
|
89
|
+
level: number;
|
|
90
90
|
depth: number;
|
|
91
91
|
compact: boolean;
|
|
92
92
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../src/schema/SchemaProperty.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../src/schema/SchemaProperty.vue"],"names":[],"mappings":"AAk3CA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAGvE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sDAAsD,CAAA;AAClF,OAAO,KAAK,EACV,mBAAmB,EACnB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAErE,OAAO,EAUL,KAAK,SAAS,EACf,MAAM,KAAK,CAAA;AAsCZ,OAAO,KAAK,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;wBAU7C,OAAO,YAAY;AAAxC,wBAAyC;AACzC,QAAA,MAAM,YAAY;SAEP,MAAM,GAAG,SAAS;YACf,YAAY,GAAG,SAAS;IAChC,oEAAoE;aAC3D,MAAM,EAAE;IACjB,uFAAuF;sBACrE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;qBACxB,OAAO;YAChB,MAAM;IACd;;;OAGG;YACK,MAAM;WACP,MAAM;eACF,OAAO;cACR,OAAO;oBACD,mBAAmB;kBACrB,MAAM;qBACH,OAAO;kBACV,OAAO;IACrB,kGAAkG;gBACtF,MAAM,GAAG,IAAI;cACf,sBAAsB,GAAG,mBAAmB;iBACzC,MAAM,EAAE;cACX,iBAAiB,GAAG,IAAI;aACzB,aAAa;IACtB,+EAA+E;wBAC3D,MAAM,EAAE;IAC5B,iFAAiF;0BAC3D,YAAY;IAClC,mFAAmF;oBACnE,MAAM;IACtB,uFAAuF;sBACrE,MAAM,EAAE;IAC1B,oFAAoF;6BAC3D,MAAM;IAC/B,2EAA2E;eAChE,OAAO;;SArCb,MAAM,GAAG,SAAS;YACf,YAAY,GAAG,SAAS;IAChC,oEAAoE;aAC3D,MAAM,EAAE;IACjB,uFAAuF;sBACrE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;qBACxB,OAAO;YAChB,MAAM;IACd;;;OAGG;YACK,MAAM;WACP,MAAM;eACF,OAAO;cACR,OAAO;oBACD,mBAAmB;kBACrB,MAAM;qBACH,OAAO;kBACV,OAAO;IACrB,kGAAkG;gBACtF,MAAM,GAAG,IAAI;cACf,sBAAsB,GAAG,mBAAmB;iBACzC,MAAM,EAAE;cACX,iBAAiB,GAAG,IAAI;aACzB,aAAa;IACtB,+EAA+E;wBAC3D,MAAM,EAAE;IAC5B,iFAAiF;0BAC3D,YAAY;IAClC,mFAAmF;oBACnE,MAAM;IACtB,uFAAuF;sBACrE,MAAM,EAAE;IAC1B,oFAAoF;6BAC3D,MAAM;IAC/B,2EAA2E;eAChE,OAAO;;cAvBP,OAAO;oBAID,OAAO;WAXhB,MAAM;WAKN,MAAM;aAGJ,OAAO;6EAijDnB,CAAC"}
|