@scalar/blocks 0.4.2 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +29 -0
- package/README.md +45 -0
- package/dist/code-example/components/CodeExample.vue.d.ts +5 -0
- package/dist/code-example/components/CodeExample.vue.d.ts.map +1 -1
- package/dist/code-example/components/CodeExample.vue.js +1 -1
- package/dist/code-example/components/CodeExample.vue.js.map +1 -1
- package/dist/code-example/components/CodeExample.vue.script.js +12 -9
- package/dist/code-example/components/CodeExample.vue.script.js.map +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 -0
- 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.map +1 -1
- package/dist/code-example/helpers/operation-to-har/process-body.js +51 -45
- package/dist/code-example/helpers/operation-to-har/process-body.js.map +1 -1
- package/dist/code-example/mount.d.ts +2 -0
- package/dist/code-example/mount.d.ts.map +1 -1
- package/dist/code-example/mount.js +3 -0
- package/dist/code-example/mount.js.map +1 -1
- package/dist/constants.js +1 -1
- package/dist/schema/LinkButton.vue.d.ts +14 -0
- package/dist/schema/LinkButton.vue.d.ts.map +1 -0
- package/dist/schema/LinkButton.vue.js +15 -0
- package/dist/schema/LinkButton.vue.js.map +1 -0
- package/dist/schema/RenderString.vue.d.ts +7 -0
- package/dist/schema/RenderString.vue.d.ts.map +1 -0
- package/dist/schema/RenderString.vue.js +7 -0
- package/dist/schema/RenderString.vue.js.map +1 -0
- package/dist/schema/RenderString.vue.script.js +14 -0
- package/dist/schema/RenderString.vue.script.js.map +1 -0
- package/dist/schema/Schema.vue.d.ts +50 -0
- package/dist/schema/Schema.vue.d.ts.map +1 -0
- package/dist/schema/Schema.vue.js +9 -0
- package/dist/schema/Schema.vue.js.map +1 -0
- package/dist/schema/Schema.vue.script.js +234 -0
- package/dist/schema/Schema.vue.script.js.map +1 -0
- package/dist/schema/SchemaCollapsedPreview.vue.d.ts +17 -0
- package/dist/schema/SchemaCollapsedPreview.vue.d.ts.map +1 -0
- package/dist/schema/SchemaCollapsedPreview.vue.js +7 -0
- package/dist/schema/SchemaCollapsedPreview.vue.js.map +1 -0
- package/dist/schema/SchemaCollapsedPreview.vue.script.js +28 -0
- package/dist/schema/SchemaCollapsedPreview.vue.script.js.map +1 -0
- package/dist/schema/SchemaComposition.vue.d.ts +42 -0
- package/dist/schema/SchemaComposition.vue.d.ts.map +1 -0
- package/dist/schema/SchemaComposition.vue.js +9 -0
- package/dist/schema/SchemaComposition.vue.js.map +1 -0
- package/dist/schema/SchemaComposition.vue.script.js +231 -0
- package/dist/schema/SchemaComposition.vue.script.js.map +1 -0
- package/dist/schema/SchemaEnumPropertyItem.vue.d.ts +8 -0
- package/dist/schema/SchemaEnumPropertyItem.vue.d.ts.map +1 -0
- package/dist/schema/SchemaEnumPropertyItem.vue.js +7 -0
- package/dist/schema/SchemaEnumPropertyItem.vue.js.map +1 -0
- package/dist/schema/SchemaEnumPropertyItem.vue.script.js +24 -0
- package/dist/schema/SchemaEnumPropertyItem.vue.script.js.map +1 -0
- package/dist/schema/SchemaEnums.vue.d.ts +11 -0
- package/dist/schema/SchemaEnums.vue.d.ts.map +1 -0
- package/dist/schema/SchemaEnums.vue.js +9 -0
- package/dist/schema/SchemaEnums.vue.js.map +1 -0
- package/dist/schema/SchemaEnums.vue.script.js +78 -0
- package/dist/schema/SchemaEnums.vue.script.js.map +1 -0
- package/dist/schema/SchemaGlyphPuck.vue.d.ts +33 -0
- package/dist/schema/SchemaGlyphPuck.vue.d.ts.map +1 -0
- package/dist/schema/SchemaGlyphPuck.vue.js +7 -0
- package/dist/schema/SchemaGlyphPuck.vue.js.map +1 -0
- package/dist/schema/SchemaGlyphPuck.vue.script.js +30 -0
- package/dist/schema/SchemaGlyphPuck.vue.script.js.map +1 -0
- package/dist/schema/SchemaGutterToggle.vue.d.ts +32 -0
- package/dist/schema/SchemaGutterToggle.vue.d.ts.map +1 -0
- package/dist/schema/SchemaGutterToggle.vue.js +7 -0
- package/dist/schema/SchemaGutterToggle.vue.js.map +1 -0
- package/dist/schema/SchemaGutterToggle.vue.script.js +43 -0
- package/dist/schema/SchemaGutterToggle.vue.script.js.map +1 -0
- package/dist/schema/SchemaHeading.vue.d.ts +9 -0
- package/dist/schema/SchemaHeading.vue.d.ts.map +1 -0
- package/dist/schema/SchemaHeading.vue.js +9 -0
- package/dist/schema/SchemaHeading.vue.js.map +1 -0
- package/dist/schema/SchemaHeading.vue.script.js +35 -0
- package/dist/schema/SchemaHeading.vue.script.js.map +1 -0
- package/dist/schema/SchemaObjectExampleCodeBlock.vue.d.ts +8 -0
- package/dist/schema/SchemaObjectExampleCodeBlock.vue.d.ts.map +1 -0
- package/dist/schema/SchemaObjectExampleCodeBlock.vue.js +7 -0
- package/dist/schema/SchemaObjectExampleCodeBlock.vue.js.map +1 -0
- package/dist/schema/SchemaObjectExampleCodeBlock.vue.script.js +48 -0
- package/dist/schema/SchemaObjectExampleCodeBlock.vue.script.js.map +1 -0
- package/dist/schema/SchemaObjectProperties.vue.d.ts +22 -0
- package/dist/schema/SchemaObjectProperties.vue.d.ts.map +1 -0
- package/dist/schema/SchemaObjectProperties.vue.js +7 -0
- package/dist/schema/SchemaObjectProperties.vue.js.map +1 -0
- package/dist/schema/SchemaObjectProperties.vue.script.js +207 -0
- package/dist/schema/SchemaObjectProperties.vue.script.js.map +1 -0
- package/dist/schema/SchemaProperty.vue.d.ts +88 -0
- package/dist/schema/SchemaProperty.vue.d.ts.map +1 -0
- package/dist/schema/SchemaProperty.vue.js +9 -0
- package/dist/schema/SchemaProperty.vue.js.map +1 -0
- package/dist/schema/SchemaProperty.vue.script.js +456 -0
- package/dist/schema/SchemaProperty.vue.script.js.map +1 -0
- package/dist/schema/SchemaPropertyDefault.vue.d.ts +7 -0
- package/dist/schema/SchemaPropertyDefault.vue.d.ts.map +1 -0
- package/dist/schema/SchemaPropertyDefault.vue.js +9 -0
- package/dist/schema/SchemaPropertyDefault.vue.js.map +1 -0
- package/dist/schema/SchemaPropertyDefault.vue.script.js +64 -0
- package/dist/schema/SchemaPropertyDefault.vue.script.js.map +1 -0
- package/dist/schema/SchemaPropertyDetail.vue.d.ts +22 -0
- package/dist/schema/SchemaPropertyDetail.vue.d.ts.map +1 -0
- package/dist/schema/SchemaPropertyDetail.vue.js +9 -0
- package/dist/schema/SchemaPropertyDetail.vue.js.map +1 -0
- package/dist/schema/SchemaPropertyDetail.vue.script.js +25 -0
- package/dist/schema/SchemaPropertyDetail.vue.script.js.map +1 -0
- package/dist/schema/SchemaPropertyExamples.vue.d.ts +8 -0
- package/dist/schema/SchemaPropertyExamples.vue.d.ts.map +1 -0
- package/dist/schema/SchemaPropertyExamples.vue.js +9 -0
- package/dist/schema/SchemaPropertyExamples.vue.js.map +1 -0
- package/dist/schema/SchemaPropertyExamples.vue.script.js +125 -0
- package/dist/schema/SchemaPropertyExamples.vue.script.js.map +1 -0
- package/dist/schema/SchemaPropertyHeading.vue.d.ts +59 -0
- package/dist/schema/SchemaPropertyHeading.vue.d.ts.map +1 -0
- package/dist/schema/SchemaPropertyHeading.vue.js +9 -0
- package/dist/schema/SchemaPropertyHeading.vue.js.map +1 -0
- package/dist/schema/SchemaPropertyHeading.vue.script.js +270 -0
- package/dist/schema/SchemaPropertyHeading.vue.script.js.map +1 -0
- package/dist/schema/SchemaPropertyPattern.vue.d.ts +7 -0
- package/dist/schema/SchemaPropertyPattern.vue.d.ts.map +1 -0
- package/dist/schema/SchemaPropertyPattern.vue.js +9 -0
- package/dist/schema/SchemaPropertyPattern.vue.js.map +1 -0
- package/dist/schema/SchemaPropertyPattern.vue.script.js +45 -0
- package/dist/schema/SchemaPropertyPattern.vue.script.js.map +1 -0
- package/dist/schema/SchemaRailPanel.vue.d.ts +35 -0
- package/dist/schema/SchemaRailPanel.vue.d.ts.map +1 -0
- package/dist/schema/SchemaRailPanel.vue.js +7 -0
- package/dist/schema/SchemaRailPanel.vue.js.map +1 -0
- package/dist/schema/SchemaRailPanel.vue.script.js +49 -0
- package/dist/schema/SchemaRailPanel.vue.script.js.map +1 -0
- package/dist/schema/components/CopyLinkButton.vue.d.ts +27 -0
- package/dist/schema/components/CopyLinkButton.vue.d.ts.map +1 -0
- package/dist/schema/components/CopyLinkButton.vue.js +7 -0
- package/dist/schema/components/CopyLinkButton.vue.js.map +1 -0
- package/dist/schema/components/CopyLinkButton.vue.script.js +26 -0
- package/dist/schema/components/CopyLinkButton.vue.script.js.map +1 -0
- package/dist/schema/components/WithBreadcrumb.vue.d.ts +19 -0
- package/dist/schema/components/WithBreadcrumb.vue.d.ts.map +1 -0
- package/dist/schema/components/WithBreadcrumb.vue.js +7 -0
- package/dist/schema/components/WithBreadcrumb.vue.js.map +1 -0
- package/dist/schema/components/WithBreadcrumb.vue.script.js +18 -0
- package/dist/schema/components/WithBreadcrumb.vue.script.js.map +1 -0
- package/dist/schema/expansion/index.d.ts +2 -0
- package/dist/schema/expansion/index.d.ts.map +1 -0
- package/dist/schema/expansion/index.js +2 -0
- package/dist/schema/helpers/dynamic-scope.d.ts +27 -0
- package/dist/schema/helpers/dynamic-scope.d.ts.map +1 -0
- package/dist/schema/helpers/dynamic-scope.js +8 -0
- package/dist/schema/helpers/dynamic-scope.js.map +1 -0
- package/dist/schema/helpers/format-example.d.ts +5 -0
- package/dist/schema/helpers/format-example.d.ts.map +1 -0
- package/dist/schema/helpers/format-example.js +12 -0
- package/dist/schema/helpers/format-example.js.map +1 -0
- package/dist/schema/helpers/format-value.d.ts +5 -0
- package/dist/schema/helpers/format-value.d.ts.map +1 -0
- package/dist/schema/helpers/format-value.js +8 -0
- package/dist/schema/helpers/format-value.js.map +1 -0
- package/dist/schema/helpers/get-compositions-to-render.d.ts +33 -0
- package/dist/schema/helpers/get-compositions-to-render.d.ts.map +1 -0
- package/dist/schema/helpers/get-compositions-to-render.js +39 -0
- package/dist/schema/helpers/get-compositions-to-render.js.map +1 -0
- package/dist/schema/helpers/get-discriminator-values.d.ts +4 -0
- package/dist/schema/helpers/get-discriminator-values.d.ts.map +1 -0
- package/dist/schema/helpers/get-discriminator-values.js +6 -0
- package/dist/schema/helpers/get-discriminator-values.js.map +1 -0
- package/dist/schema/helpers/get-enum-values.d.ts +9 -0
- package/dist/schema/helpers/get-enum-values.d.ts.map +1 -0
- package/dist/schema/helpers/get-enum-values.js +16 -0
- package/dist/schema/helpers/get-enum-values.js.map +1 -0
- package/dist/schema/helpers/get-property-description.d.ts +9 -0
- package/dist/schema/helpers/get-property-description.d.ts.map +1 -0
- package/dist/schema/helpers/get-property-description.js +27 -0
- package/dist/schema/helpers/get-property-description.js.map +1 -0
- package/dist/schema/helpers/get-ref-name.d.ts +24 -0
- package/dist/schema/helpers/get-ref-name.d.ts.map +1 -0
- package/dist/schema/helpers/get-ref-name.js +15 -0
- package/dist/schema/helpers/get-ref-name.js.map +1 -0
- package/dist/schema/helpers/get-schema-type.d.ts +13 -0
- package/dist/schema/helpers/get-schema-type.d.ts.map +1 -0
- package/dist/schema/helpers/get-schema-type.js +24 -0
- package/dist/schema/helpers/get-schema-type.js.map +1 -0
- package/dist/schema/helpers/get-type-signature-tokens.d.ts +48 -0
- package/dist/schema/helpers/get-type-signature-tokens.d.ts.map +1 -0
- package/dist/schema/helpers/get-type-signature-tokens.js +62 -0
- package/dist/schema/helpers/get-type-signature-tokens.js.map +1 -0
- package/dist/schema/helpers/has-complex-array-items.d.ts +10 -0
- package/dist/schema/helpers/has-complex-array-items.d.ts.map +1 -0
- package/dist/schema/helpers/has-complex-array-items.js +22 -0
- package/dist/schema/helpers/has-complex-array-items.js.map +1 -0
- package/dist/schema/helpers/index.d.ts +12 -0
- package/dist/schema/helpers/index.d.ts.map +1 -0
- package/dist/schema/helpers/index.js +12 -0
- package/dist/schema/helpers/is-empty-schema-object.d.ts +8 -0
- package/dist/schema/helpers/is-empty-schema-object.d.ts.map +1 -0
- package/dist/schema/helpers/is-empty-schema-object.js +11 -0
- package/dist/schema/helpers/is-empty-schema-object.js.map +1 -0
- package/dist/schema/helpers/is-model-linkable.d.ts +15 -0
- package/dist/schema/helpers/is-model-linkable.d.ts.map +1 -0
- package/dist/schema/helpers/is-model-linkable.js +13 -0
- package/dist/schema/helpers/is-model-linkable.js.map +1 -0
- package/dist/schema/helpers/is-on-schema-target-path.d.ts +3 -0
- package/dist/schema/helpers/is-on-schema-target-path.d.ts.map +1 -0
- package/dist/schema/helpers/is-on-schema-target-path.js +6 -0
- package/dist/schema/helpers/is-on-schema-target-path.js.map +1 -0
- package/dist/schema/helpers/is-type-object.d.ts +5 -0
- package/dist/schema/helpers/is-type-object.d.ts.map +1 -0
- package/dist/schema/helpers/is-type-object.js +15 -0
- package/dist/schema/helpers/is-type-object.js.map +1 -0
- package/dist/schema/helpers/merge-all-of-schemas.d.ts +12 -0
- package/dist/schema/helpers/merge-all-of-schemas.d.ts.map +1 -0
- package/dist/schema/helpers/merge-all-of-schemas.js +151 -0
- package/dist/schema/helpers/merge-all-of-schemas.js.map +1 -0
- package/dist/schema/helpers/normalize-object-composition.d.ts +9 -0
- package/dist/schema/helpers/normalize-object-composition.d.ts.map +1 -0
- package/dist/schema/helpers/normalize-object-composition.js +29 -0
- package/dist/schema/helpers/normalize-object-composition.js.map +1 -0
- package/dist/schema/helpers/optimize-value-for-display.d.ts +13 -0
- package/dist/schema/helpers/optimize-value-for-display.d.ts.map +1 -0
- package/dist/schema/helpers/optimize-value-for-display.js +64 -0
- package/dist/schema/helpers/optimize-value-for-display.js.map +1 -0
- package/dist/schema/helpers/partition-all-of-compositions.d.ts +32 -0
- package/dist/schema/helpers/partition-all-of-compositions.d.ts.map +1 -0
- package/dist/schema/helpers/partition-all-of-compositions.js +67 -0
- package/dist/schema/helpers/partition-all-of-compositions.js.map +1 -0
- package/dist/schema/helpers/schema-composition.d.ts +4 -0
- package/dist/schema/helpers/schema-composition.d.ts.map +1 -0
- package/dist/schema/helpers/schema-composition.js +11 -0
- package/dist/schema/helpers/schema-composition.js.map +1 -0
- package/dist/schema/helpers/schema-cycle.d.ts +31 -0
- package/dist/schema/helpers/schema-cycle.d.ts.map +1 -0
- package/dist/schema/helpers/schema-cycle.js +8 -0
- package/dist/schema/helpers/schema-cycle.js.map +1 -0
- package/dist/schema/helpers/schema-expansion.d.ts +89 -0
- package/dist/schema/helpers/schema-expansion.d.ts.map +1 -0
- package/dist/schema/helpers/schema-expansion.js +93 -0
- package/dist/schema/helpers/schema-expansion.js.map +1 -0
- package/dist/schema/helpers/schema-keyboard-nav.d.ts +23 -0
- package/dist/schema/helpers/schema-keyboard-nav.d.ts.map +1 -0
- package/dist/schema/helpers/schema-keyboard-nav.js +36 -0
- package/dist/schema/helpers/schema-keyboard-nav.js.map +1 -0
- package/dist/schema/helpers/schema-name.d.ts +27 -0
- package/dist/schema/helpers/schema-name.d.ts.map +1 -0
- package/dist/schema/helpers/schema-name.js +40 -0
- package/dist/schema/helpers/schema-name.js.map +1 -0
- package/dist/schema/helpers/should-display-description.d.ts +10 -0
- package/dist/schema/helpers/should-display-description.d.ts.map +1 -0
- package/dist/schema/helpers/should-display-description.js +6 -0
- package/dist/schema/helpers/should-display-description.js.map +1 -0
- package/dist/schema/helpers/should-display-heading.d.ts +11 -0
- package/dist/schema/helpers/should-display-heading.d.ts.map +1 -0
- package/dist/schema/helpers/should-display-heading.js +6 -0
- package/dist/schema/helpers/should-display-heading.js.map +1 -0
- package/dist/schema/helpers/should-render-array-item-composition.d.ts +10 -0
- package/dist/schema/helpers/should-render-array-item-composition.d.ts.map +1 -0
- package/dist/schema/helpers/should-render-array-item-composition.js +12 -0
- package/dist/schema/helpers/should-render-array-item-composition.js.map +1 -0
- package/dist/schema/helpers/sort-property-names.d.ts +23 -0
- package/dist/schema/helpers/sort-property-names.d.ts.map +1 -0
- package/dist/schema/helpers/sort-property-names.js +55 -0
- package/dist/schema/helpers/sort-property-names.js.map +1 -0
- package/dist/schema/helpers/unwrap-for-read.d.ts +48 -0
- package/dist/schema/helpers/unwrap-for-read.d.ts.map +1 -0
- package/dist/schema/helpers/unwrap-for-read.js +8 -0
- package/dist/schema/helpers/unwrap-for-read.js.map +1 -0
- package/dist/schema/index.d.ts +12 -0
- package/dist/schema/index.d.ts.map +1 -0
- package/dist/schema/index.js +11 -0
- package/dist/schema/localization/index.d.ts +59 -0
- package/dist/schema/localization/index.d.ts.map +1 -0
- package/dist/schema/localization/index.js +18 -0
- package/dist/schema/localization/index.js.map +1 -0
- package/dist/schema/localization/locales/ar.d.ts +58 -0
- package/dist/schema/localization/locales/ar.d.ts.map +1 -0
- package/dist/schema/localization/locales/ar.js +60 -0
- package/dist/schema/localization/locales/ar.js.map +1 -0
- package/dist/schema/localization/locales/de.d.ts +58 -0
- package/dist/schema/localization/locales/de.d.ts.map +1 -0
- package/dist/schema/localization/locales/de.js +60 -0
- package/dist/schema/localization/locales/de.js.map +1 -0
- package/dist/schema/localization/locales/en.d.ts +58 -0
- package/dist/schema/localization/locales/en.d.ts.map +1 -0
- package/dist/schema/localization/locales/en.js +60 -0
- package/dist/schema/localization/locales/en.js.map +1 -0
- package/dist/schema/localization/locales/es.d.ts +58 -0
- package/dist/schema/localization/locales/es.d.ts.map +1 -0
- package/dist/schema/localization/locales/es.js +60 -0
- package/dist/schema/localization/locales/es.js.map +1 -0
- package/dist/schema/localization/locales/fr.d.ts +58 -0
- package/dist/schema/localization/locales/fr.d.ts.map +1 -0
- package/dist/schema/localization/locales/fr.js +60 -0
- package/dist/schema/localization/locales/fr.js.map +1 -0
- package/dist/schema/localization/locales/pt.d.ts +58 -0
- package/dist/schema/localization/locales/pt.d.ts.map +1 -0
- package/dist/schema/localization/locales/pt.js +60 -0
- package/dist/schema/localization/locales/pt.js.map +1 -0
- package/dist/schema/localization/locales/ru.d.ts +58 -0
- package/dist/schema/localization/locales/ru.d.ts.map +1 -0
- package/dist/schema/localization/locales/ru.js +60 -0
- package/dist/schema/localization/locales/ru.js.map +1 -0
- package/dist/schema/localization/locales/zh-cn.d.ts +58 -0
- package/dist/schema/localization/locales/zh-cn.d.ts.map +1 -0
- package/dist/schema/localization/locales/zh-cn.js +60 -0
- package/dist/schema/localization/locales/zh-cn.js.map +1 -0
- package/dist/schema/localization/translations.d.ts +460 -0
- package/dist/schema/localization/translations.d.ts.map +1 -0
- package/dist/schema/localization/translations.js +23 -0
- package/dist/schema/localization/translations.js.map +1 -0
- package/dist/schema/request-body-composition-index.d.ts +8 -0
- package/dist/schema/request-body-composition-index.d.ts.map +1 -0
- package/dist/schema/request-body-composition-index.js +6 -0
- package/dist/schema/request-body-composition-index.js.map +1 -0
- package/dist/schema/schema-tree.bench.d.ts +2 -0
- package/dist/schema/schema-tree.bench.d.ts.map +1 -0
- package/dist/schema/types.d.ts +51 -0
- package/dist/schema/types.d.ts.map +1 -0
- package/dist/shared/Badge.vue.d.ts +17 -0
- package/dist/shared/Badge.vue.d.ts.map +1 -0
- package/dist/shared/Badge.vue.js +9 -0
- package/dist/shared/Badge.vue.js.map +1 -0
- package/dist/shared/Badge.vue.script.js +16 -0
- package/dist/shared/Badge.vue.script.js.map +1 -0
- package/dist/shared/ScreenReader.vue.d.ts +21 -0
- package/dist/shared/ScreenReader.vue.d.ts.map +1 -0
- package/dist/shared/ScreenReader.vue.js +7 -0
- package/dist/shared/ScreenReader.vue.js.map +1 -0
- package/dist/shared/ScreenReader.vue.script.js +19 -0
- package/dist/shared/ScreenReader.vue.script.js.map +1 -0
- package/dist/shared/index.d.ts +3 -0
- package/dist/shared/index.d.ts.map +1 -0
- package/dist/shared/index.js +3 -0
- package/dist/specification-extensions/ExtensionValue.vue.d.ts +13 -0
- package/dist/specification-extensions/ExtensionValue.vue.d.ts.map +1 -0
- package/dist/specification-extensions/ExtensionValue.vue.js +7 -0
- package/dist/specification-extensions/ExtensionValue.vue.js.map +1 -0
- package/dist/specification-extensions/ExtensionValue.vue.script.js +84 -0
- package/dist/specification-extensions/ExtensionValue.vue.script.js.map +1 -0
- package/dist/specification-extensions/SpecificationExtensions.vue.d.ts +9 -0
- package/dist/specification-extensions/SpecificationExtensions.vue.d.ts.map +1 -0
- package/dist/specification-extensions/SpecificationExtensions.vue.js +7 -0
- package/dist/specification-extensions/SpecificationExtensions.vue.js.map +1 -0
- package/dist/specification-extensions/SpecificationExtensions.vue.script.js +21 -0
- package/dist/specification-extensions/SpecificationExtensions.vue.script.js.map +1 -0
- package/dist/specification-extensions/index.d.ts +2 -0
- package/dist/specification-extensions/index.d.ts.map +1 -0
- package/dist/specification-extensions/index.js +2 -0
- package/dist/style.css +576 -15
- package/dist/styles/schema-tree.css +91 -0
- package/dist/styles/tailwind.config.css +22 -0
- package/dist/vue-styles.css +1 -1
- package/package.json +45 -7
|
@@ -0,0 +1,460 @@
|
|
|
1
|
+
/** Built-in schema translations, also composed into API Reference's public dictionary. */
|
|
2
|
+
export declare const schemaTranslations: {
|
|
3
|
+
en: {
|
|
4
|
+
schema: {
|
|
5
|
+
noAllowedValues: string;
|
|
6
|
+
example: string;
|
|
7
|
+
examples: string;
|
|
8
|
+
default: string;
|
|
9
|
+
schema: string;
|
|
10
|
+
emptyObject: string;
|
|
11
|
+
showAdditionalProperties: string;
|
|
12
|
+
showOneMoreProperty: string;
|
|
13
|
+
showMoreProperties: string;
|
|
14
|
+
forName: string;
|
|
15
|
+
showSchemaDetails: string;
|
|
16
|
+
oneOf: string;
|
|
17
|
+
anyOf: string;
|
|
18
|
+
allOf: string;
|
|
19
|
+
not: string;
|
|
20
|
+
unknownType: string;
|
|
21
|
+
propertyCount: string;
|
|
22
|
+
headerCount: string;
|
|
23
|
+
recursiveReference: string;
|
|
24
|
+
recursive: string;
|
|
25
|
+
additionalProperties: string;
|
|
26
|
+
const: string;
|
|
27
|
+
deprecated: string;
|
|
28
|
+
discriminator: string;
|
|
29
|
+
enum: string;
|
|
30
|
+
format: string;
|
|
31
|
+
greaterThan: string;
|
|
32
|
+
keys: string;
|
|
33
|
+
lessThan: string;
|
|
34
|
+
max: string;
|
|
35
|
+
min: string;
|
|
36
|
+
maxLength: string;
|
|
37
|
+
minLength: string;
|
|
38
|
+
multipleOf: string;
|
|
39
|
+
nullable: string;
|
|
40
|
+
propertyNames: string;
|
|
41
|
+
pattern: string;
|
|
42
|
+
copyPattern: string;
|
|
43
|
+
readOnly: string;
|
|
44
|
+
required: string;
|
|
45
|
+
hideValues: string;
|
|
46
|
+
showAllValues: string;
|
|
47
|
+
type: string;
|
|
48
|
+
unique: string;
|
|
49
|
+
values: string;
|
|
50
|
+
writeOnly: string;
|
|
51
|
+
};
|
|
52
|
+
common: {
|
|
53
|
+
copyDefault: string;
|
|
54
|
+
copyExample: string;
|
|
55
|
+
};
|
|
56
|
+
actions: {
|
|
57
|
+
copyLinkTo: string;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
de: {
|
|
61
|
+
schema: {
|
|
62
|
+
noAllowedValues: string;
|
|
63
|
+
example: string;
|
|
64
|
+
examples: string;
|
|
65
|
+
default: string;
|
|
66
|
+
schema: string;
|
|
67
|
+
emptyObject: string;
|
|
68
|
+
showAdditionalProperties: string;
|
|
69
|
+
showOneMoreProperty: string;
|
|
70
|
+
showMoreProperties: string;
|
|
71
|
+
forName: string;
|
|
72
|
+
showSchemaDetails: string;
|
|
73
|
+
oneOf: string;
|
|
74
|
+
anyOf: string;
|
|
75
|
+
allOf: string;
|
|
76
|
+
not: string;
|
|
77
|
+
unknownType: string;
|
|
78
|
+
propertyCount: string;
|
|
79
|
+
headerCount: string;
|
|
80
|
+
recursiveReference: string;
|
|
81
|
+
recursive: string;
|
|
82
|
+
additionalProperties: string;
|
|
83
|
+
const: string;
|
|
84
|
+
deprecated: string;
|
|
85
|
+
discriminator: string;
|
|
86
|
+
enum: string;
|
|
87
|
+
format: string;
|
|
88
|
+
greaterThan: string;
|
|
89
|
+
keys: string;
|
|
90
|
+
lessThan: string;
|
|
91
|
+
max: string;
|
|
92
|
+
min: string;
|
|
93
|
+
maxLength: string;
|
|
94
|
+
minLength: string;
|
|
95
|
+
multipleOf: string;
|
|
96
|
+
nullable: string;
|
|
97
|
+
propertyNames: string;
|
|
98
|
+
pattern: string;
|
|
99
|
+
copyPattern: string;
|
|
100
|
+
readOnly: string;
|
|
101
|
+
required: string;
|
|
102
|
+
hideValues: string;
|
|
103
|
+
showAllValues: string;
|
|
104
|
+
type: string;
|
|
105
|
+
unique: string;
|
|
106
|
+
values: string;
|
|
107
|
+
writeOnly: string;
|
|
108
|
+
};
|
|
109
|
+
common: {
|
|
110
|
+
copyDefault: string;
|
|
111
|
+
copyExample: string;
|
|
112
|
+
};
|
|
113
|
+
actions: {
|
|
114
|
+
copyLinkTo: string;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
es: {
|
|
118
|
+
schema: {
|
|
119
|
+
noAllowedValues: string;
|
|
120
|
+
example: string;
|
|
121
|
+
examples: string;
|
|
122
|
+
default: string;
|
|
123
|
+
schema: string;
|
|
124
|
+
emptyObject: string;
|
|
125
|
+
showAdditionalProperties: string;
|
|
126
|
+
showOneMoreProperty: string;
|
|
127
|
+
showMoreProperties: string;
|
|
128
|
+
forName: string;
|
|
129
|
+
showSchemaDetails: string;
|
|
130
|
+
oneOf: string;
|
|
131
|
+
anyOf: string;
|
|
132
|
+
allOf: string;
|
|
133
|
+
not: string;
|
|
134
|
+
unknownType: string;
|
|
135
|
+
propertyCount: string;
|
|
136
|
+
headerCount: string;
|
|
137
|
+
recursiveReference: string;
|
|
138
|
+
recursive: string;
|
|
139
|
+
additionalProperties: string;
|
|
140
|
+
const: string;
|
|
141
|
+
deprecated: string;
|
|
142
|
+
discriminator: string;
|
|
143
|
+
enum: string;
|
|
144
|
+
format: string;
|
|
145
|
+
greaterThan: string;
|
|
146
|
+
keys: string;
|
|
147
|
+
lessThan: string;
|
|
148
|
+
max: string;
|
|
149
|
+
min: string;
|
|
150
|
+
maxLength: string;
|
|
151
|
+
minLength: string;
|
|
152
|
+
multipleOf: string;
|
|
153
|
+
nullable: string;
|
|
154
|
+
propertyNames: string;
|
|
155
|
+
pattern: string;
|
|
156
|
+
copyPattern: string;
|
|
157
|
+
readOnly: string;
|
|
158
|
+
required: string;
|
|
159
|
+
hideValues: string;
|
|
160
|
+
showAllValues: string;
|
|
161
|
+
type: string;
|
|
162
|
+
unique: string;
|
|
163
|
+
values: string;
|
|
164
|
+
writeOnly: string;
|
|
165
|
+
};
|
|
166
|
+
common: {
|
|
167
|
+
copyDefault: string;
|
|
168
|
+
copyExample: string;
|
|
169
|
+
};
|
|
170
|
+
actions: {
|
|
171
|
+
copyLinkTo: string;
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
fr: {
|
|
175
|
+
schema: {
|
|
176
|
+
noAllowedValues: string;
|
|
177
|
+
example: string;
|
|
178
|
+
examples: string;
|
|
179
|
+
default: string;
|
|
180
|
+
schema: string;
|
|
181
|
+
emptyObject: string;
|
|
182
|
+
showAdditionalProperties: string;
|
|
183
|
+
showOneMoreProperty: string;
|
|
184
|
+
showMoreProperties: string;
|
|
185
|
+
forName: string;
|
|
186
|
+
showSchemaDetails: string;
|
|
187
|
+
oneOf: string;
|
|
188
|
+
anyOf: string;
|
|
189
|
+
allOf: string;
|
|
190
|
+
not: string;
|
|
191
|
+
unknownType: string;
|
|
192
|
+
propertyCount: string;
|
|
193
|
+
headerCount: string;
|
|
194
|
+
recursiveReference: string;
|
|
195
|
+
recursive: string;
|
|
196
|
+
additionalProperties: string;
|
|
197
|
+
const: string;
|
|
198
|
+
deprecated: string;
|
|
199
|
+
discriminator: string;
|
|
200
|
+
enum: string;
|
|
201
|
+
format: string;
|
|
202
|
+
greaterThan: string;
|
|
203
|
+
keys: string;
|
|
204
|
+
lessThan: string;
|
|
205
|
+
max: string;
|
|
206
|
+
min: string;
|
|
207
|
+
maxLength: string;
|
|
208
|
+
minLength: string;
|
|
209
|
+
multipleOf: string;
|
|
210
|
+
nullable: string;
|
|
211
|
+
propertyNames: string;
|
|
212
|
+
pattern: string;
|
|
213
|
+
copyPattern: string;
|
|
214
|
+
readOnly: string;
|
|
215
|
+
required: string;
|
|
216
|
+
hideValues: string;
|
|
217
|
+
showAllValues: string;
|
|
218
|
+
type: string;
|
|
219
|
+
unique: string;
|
|
220
|
+
values: string;
|
|
221
|
+
writeOnly: string;
|
|
222
|
+
};
|
|
223
|
+
common: {
|
|
224
|
+
copyDefault: string;
|
|
225
|
+
copyExample: string;
|
|
226
|
+
};
|
|
227
|
+
actions: {
|
|
228
|
+
copyLinkTo: string;
|
|
229
|
+
};
|
|
230
|
+
};
|
|
231
|
+
pt: {
|
|
232
|
+
schema: {
|
|
233
|
+
noAllowedValues: string;
|
|
234
|
+
example: string;
|
|
235
|
+
examples: string;
|
|
236
|
+
default: string;
|
|
237
|
+
schema: string;
|
|
238
|
+
emptyObject: string;
|
|
239
|
+
showAdditionalProperties: string;
|
|
240
|
+
showOneMoreProperty: string;
|
|
241
|
+
showMoreProperties: string;
|
|
242
|
+
forName: string;
|
|
243
|
+
showSchemaDetails: string;
|
|
244
|
+
oneOf: string;
|
|
245
|
+
anyOf: string;
|
|
246
|
+
allOf: string;
|
|
247
|
+
not: string;
|
|
248
|
+
unknownType: string;
|
|
249
|
+
propertyCount: string;
|
|
250
|
+
headerCount: string;
|
|
251
|
+
recursiveReference: string;
|
|
252
|
+
recursive: string;
|
|
253
|
+
additionalProperties: string;
|
|
254
|
+
const: string;
|
|
255
|
+
deprecated: string;
|
|
256
|
+
discriminator: string;
|
|
257
|
+
enum: string;
|
|
258
|
+
format: string;
|
|
259
|
+
greaterThan: string;
|
|
260
|
+
keys: string;
|
|
261
|
+
lessThan: string;
|
|
262
|
+
max: string;
|
|
263
|
+
min: string;
|
|
264
|
+
maxLength: string;
|
|
265
|
+
minLength: string;
|
|
266
|
+
multipleOf: string;
|
|
267
|
+
nullable: string;
|
|
268
|
+
propertyNames: string;
|
|
269
|
+
pattern: string;
|
|
270
|
+
copyPattern: string;
|
|
271
|
+
readOnly: string;
|
|
272
|
+
required: string;
|
|
273
|
+
hideValues: string;
|
|
274
|
+
showAllValues: string;
|
|
275
|
+
type: string;
|
|
276
|
+
unique: string;
|
|
277
|
+
values: string;
|
|
278
|
+
writeOnly: string;
|
|
279
|
+
};
|
|
280
|
+
common: {
|
|
281
|
+
copyDefault: string;
|
|
282
|
+
copyExample: string;
|
|
283
|
+
};
|
|
284
|
+
actions: {
|
|
285
|
+
copyLinkTo: string;
|
|
286
|
+
};
|
|
287
|
+
};
|
|
288
|
+
ru: {
|
|
289
|
+
schema: {
|
|
290
|
+
noAllowedValues: string;
|
|
291
|
+
example: string;
|
|
292
|
+
examples: string;
|
|
293
|
+
default: string;
|
|
294
|
+
schema: string;
|
|
295
|
+
emptyObject: string;
|
|
296
|
+
showAdditionalProperties: string;
|
|
297
|
+
showOneMoreProperty: string;
|
|
298
|
+
showMoreProperties: string;
|
|
299
|
+
forName: string;
|
|
300
|
+
showSchemaDetails: string;
|
|
301
|
+
oneOf: string;
|
|
302
|
+
anyOf: string;
|
|
303
|
+
allOf: string;
|
|
304
|
+
not: string;
|
|
305
|
+
unknownType: string;
|
|
306
|
+
propertyCount: string;
|
|
307
|
+
headerCount: string;
|
|
308
|
+
recursiveReference: string;
|
|
309
|
+
recursive: string;
|
|
310
|
+
additionalProperties: string;
|
|
311
|
+
const: string;
|
|
312
|
+
deprecated: string;
|
|
313
|
+
discriminator: string;
|
|
314
|
+
enum: string;
|
|
315
|
+
format: string;
|
|
316
|
+
greaterThan: string;
|
|
317
|
+
keys: string;
|
|
318
|
+
lessThan: string;
|
|
319
|
+
max: string;
|
|
320
|
+
min: string;
|
|
321
|
+
maxLength: string;
|
|
322
|
+
minLength: string;
|
|
323
|
+
multipleOf: string;
|
|
324
|
+
nullable: string;
|
|
325
|
+
propertyNames: string;
|
|
326
|
+
pattern: string;
|
|
327
|
+
copyPattern: string;
|
|
328
|
+
readOnly: string;
|
|
329
|
+
required: string;
|
|
330
|
+
hideValues: string;
|
|
331
|
+
showAllValues: string;
|
|
332
|
+
type: string;
|
|
333
|
+
unique: string;
|
|
334
|
+
values: string;
|
|
335
|
+
writeOnly: string;
|
|
336
|
+
};
|
|
337
|
+
common: {
|
|
338
|
+
copyDefault: string;
|
|
339
|
+
copyExample: string;
|
|
340
|
+
};
|
|
341
|
+
actions: {
|
|
342
|
+
copyLinkTo: string;
|
|
343
|
+
};
|
|
344
|
+
};
|
|
345
|
+
ar: {
|
|
346
|
+
schema: {
|
|
347
|
+
noAllowedValues: string;
|
|
348
|
+
example: string;
|
|
349
|
+
examples: string;
|
|
350
|
+
default: string;
|
|
351
|
+
schema: string;
|
|
352
|
+
emptyObject: string;
|
|
353
|
+
showAdditionalProperties: string;
|
|
354
|
+
showOneMoreProperty: string;
|
|
355
|
+
showMoreProperties: string;
|
|
356
|
+
forName: string;
|
|
357
|
+
showSchemaDetails: string;
|
|
358
|
+
oneOf: string;
|
|
359
|
+
anyOf: string;
|
|
360
|
+
allOf: string;
|
|
361
|
+
not: string;
|
|
362
|
+
unknownType: string;
|
|
363
|
+
propertyCount: string;
|
|
364
|
+
headerCount: string;
|
|
365
|
+
recursiveReference: string;
|
|
366
|
+
recursive: string;
|
|
367
|
+
additionalProperties: string;
|
|
368
|
+
const: string;
|
|
369
|
+
deprecated: string;
|
|
370
|
+
discriminator: string;
|
|
371
|
+
enum: string;
|
|
372
|
+
format: string;
|
|
373
|
+
greaterThan: string;
|
|
374
|
+
keys: string;
|
|
375
|
+
lessThan: string;
|
|
376
|
+
max: string;
|
|
377
|
+
min: string;
|
|
378
|
+
maxLength: string;
|
|
379
|
+
minLength: string;
|
|
380
|
+
multipleOf: string;
|
|
381
|
+
nullable: string;
|
|
382
|
+
propertyNames: string;
|
|
383
|
+
pattern: string;
|
|
384
|
+
copyPattern: string;
|
|
385
|
+
readOnly: string;
|
|
386
|
+
required: string;
|
|
387
|
+
hideValues: string;
|
|
388
|
+
showAllValues: string;
|
|
389
|
+
type: string;
|
|
390
|
+
unique: string;
|
|
391
|
+
values: string;
|
|
392
|
+
writeOnly: string;
|
|
393
|
+
};
|
|
394
|
+
common: {
|
|
395
|
+
copyDefault: string;
|
|
396
|
+
copyExample: string;
|
|
397
|
+
};
|
|
398
|
+
actions: {
|
|
399
|
+
copyLinkTo: string;
|
|
400
|
+
};
|
|
401
|
+
};
|
|
402
|
+
'zh-CN': {
|
|
403
|
+
schema: {
|
|
404
|
+
noAllowedValues: string;
|
|
405
|
+
example: string;
|
|
406
|
+
examples: string;
|
|
407
|
+
default: string;
|
|
408
|
+
schema: string;
|
|
409
|
+
emptyObject: string;
|
|
410
|
+
showAdditionalProperties: string;
|
|
411
|
+
showOneMoreProperty: string;
|
|
412
|
+
showMoreProperties: string;
|
|
413
|
+
forName: string;
|
|
414
|
+
showSchemaDetails: string;
|
|
415
|
+
oneOf: string;
|
|
416
|
+
anyOf: string;
|
|
417
|
+
allOf: string;
|
|
418
|
+
not: string;
|
|
419
|
+
unknownType: string;
|
|
420
|
+
propertyCount: string;
|
|
421
|
+
headerCount: string;
|
|
422
|
+
recursiveReference: string;
|
|
423
|
+
recursive: string;
|
|
424
|
+
additionalProperties: string;
|
|
425
|
+
const: string;
|
|
426
|
+
deprecated: string;
|
|
427
|
+
discriminator: string;
|
|
428
|
+
enum: string;
|
|
429
|
+
format: string;
|
|
430
|
+
greaterThan: string;
|
|
431
|
+
keys: string;
|
|
432
|
+
lessThan: string;
|
|
433
|
+
max: string;
|
|
434
|
+
min: string;
|
|
435
|
+
maxLength: string;
|
|
436
|
+
minLength: string;
|
|
437
|
+
multipleOf: string;
|
|
438
|
+
nullable: string;
|
|
439
|
+
propertyNames: string;
|
|
440
|
+
pattern: string;
|
|
441
|
+
copyPattern: string;
|
|
442
|
+
readOnly: string;
|
|
443
|
+
required: string;
|
|
444
|
+
hideValues: string;
|
|
445
|
+
showAllValues: string;
|
|
446
|
+
type: string;
|
|
447
|
+
unique: string;
|
|
448
|
+
values: string;
|
|
449
|
+
writeOnly: string;
|
|
450
|
+
};
|
|
451
|
+
common: {
|
|
452
|
+
copyDefault: string;
|
|
453
|
+
copyExample: string;
|
|
454
|
+
};
|
|
455
|
+
actions: {
|
|
456
|
+
copyLinkTo: string;
|
|
457
|
+
};
|
|
458
|
+
};
|
|
459
|
+
};
|
|
460
|
+
//# sourceMappingURL=translations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/schema/localization/translations.ts"],"names":[],"mappings":"AASA,0FAA0F;AAC1F,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAgD,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ar as e } from "./locales/ar.js";
|
|
2
|
+
import { de as t } from "./locales/de.js";
|
|
3
|
+
import { en as n } from "./locales/en.js";
|
|
4
|
+
import { es as r } from "./locales/es.js";
|
|
5
|
+
import { fr as i } from "./locales/fr.js";
|
|
6
|
+
import { pt as a } from "./locales/pt.js";
|
|
7
|
+
import { ru as o } from "./locales/ru.js";
|
|
8
|
+
import { zhCn as s } from "./locales/zh-cn.js";
|
|
9
|
+
//#region src/schema/localization/translations.ts
|
|
10
|
+
var c = {
|
|
11
|
+
en: n,
|
|
12
|
+
de: t,
|
|
13
|
+
es: r,
|
|
14
|
+
fr: i,
|
|
15
|
+
pt: a,
|
|
16
|
+
ru: o,
|
|
17
|
+
ar: e,
|
|
18
|
+
"zh-CN": s
|
|
19
|
+
};
|
|
20
|
+
//#endregion
|
|
21
|
+
export { c as schemaTranslations };
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=translations.js.map
|
|
@@ -0,0 +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'\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 }\n"],"mappings":";;;;;;;;;AAUA,IAAa,IAAqB;CAAE;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI,SAAS;AAAK"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { InjectionKey, Ref } from 'vue';
|
|
2
|
+
export type RequestBodyCompositionSelection = Record<string, number>;
|
|
3
|
+
/**
|
|
4
|
+
* Shares the selected request-body composition variants between the schema
|
|
5
|
+
* dropdowns and the generated request snippet for a single operation layout.
|
|
6
|
+
*/
|
|
7
|
+
export declare const REQUEST_BODY_COMPOSITION_INDEX_SYMBOL: InjectionKey<Ref<RequestBodyCompositionSelection>>;
|
|
8
|
+
//# sourceMappingURL=request-body-composition-index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request-body-composition-index.d.ts","sourceRoot":"","sources":["../../src/schema/request-body-composition-index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAE5C,MAAM,MAAM,+BAA+B,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;AAEpE;;;GAGG;AACH,eAAO,MAAM,qCAAqC,EAAE,YAAY,CAAC,GAAG,CAAC,+BAA+B,CAAC,CAAY,CAAA"}
|
|
@@ -0,0 +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,IAAa,IAA4F,OAAO"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema-tree.bench.d.ts","sourceRoot":"","sources":["../../src/schema/schema-tree.bench.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { ApiReferenceConfiguration } from '@scalar/types/api-reference';
|
|
2
|
+
import type { OpenApiDocument } from '@scalar/workspace-store/schemas/v3.2/strict/openapi-document';
|
|
3
|
+
import type { Component } from 'vue';
|
|
4
|
+
import type { SchemaExpansionStore } from './helpers/schema-expansion';
|
|
5
|
+
/**
|
|
6
|
+
* Options for the schema component tree
|
|
7
|
+
*
|
|
8
|
+
* These options should be prop drilled through the Schema component tree and shouldn't be changed
|
|
9
|
+
*/
|
|
10
|
+
export type SchemaOptions = {
|
|
11
|
+
/** Hide read-only properties */
|
|
12
|
+
hideReadOnly?: boolean;
|
|
13
|
+
/** Hide write-only properties */
|
|
14
|
+
hideWriteOnly?: boolean;
|
|
15
|
+
/** Order schema properties, defaults to 'alpha' */
|
|
16
|
+
orderSchemaPropertiesBy?: ApiReferenceConfiguration['orderSchemaPropertiesBy'];
|
|
17
|
+
/** Order required properties first */
|
|
18
|
+
orderRequiredPropertiesFirst?: ApiReferenceConfiguration['orderRequiredPropertiesFirst'];
|
|
19
|
+
/** Expand all nested schema properties by default while keeping the toggle available */
|
|
20
|
+
expandAllSchemaProperties?: ApiReferenceConfiguration['expandAllSchemaProperties'];
|
|
21
|
+
/** Selected extensions to display on schema fields. */
|
|
22
|
+
showExtensions?: ApiReferenceConfiguration['showExtensions'];
|
|
23
|
+
/** Arrow-key navigation over the row toggles */
|
|
24
|
+
schemaKeyboardNav?: ApiReferenceConfiguration['schemaKeyboardNav'];
|
|
25
|
+
/**
|
|
26
|
+
* Whether the models section is hidden.
|
|
27
|
+
*
|
|
28
|
+
* Model names stay visible, but there is no models section to scroll to, so they
|
|
29
|
+
* render as plain text instead of links.
|
|
30
|
+
*/
|
|
31
|
+
hideModels?: ApiReferenceConfiguration['hideModels'];
|
|
32
|
+
/** Show structural types instead of model names in type labels */
|
|
33
|
+
hideModelNames?: ApiReferenceConfiguration['hideModelNames'];
|
|
34
|
+
/**
|
|
35
|
+
* The document the schema belongs to.
|
|
36
|
+
*
|
|
37
|
+
* Used purely for display, e.g. to resolve discriminator `mapping` references into
|
|
38
|
+
* their component schemas when inferring composition variants.
|
|
39
|
+
*/
|
|
40
|
+
document?: OpenApiDocument;
|
|
41
|
+
};
|
|
42
|
+
/** Host integrations passed explicitly through schema rows and their parents. */
|
|
43
|
+
export type SchemaRenderingProps = {
|
|
44
|
+
/** Active deep-link target; only disclosures on its path open automatically. */
|
|
45
|
+
scrollTargetId?: string;
|
|
46
|
+
/** Renderer for the host's registered specification extensions. */
|
|
47
|
+
specificationExtension?: Component;
|
|
48
|
+
/** One expansion store shared by the host's schema trees, headers, and callbacks. */
|
|
49
|
+
expansion?: SchemaExpansionStore;
|
|
50
|
+
};
|
|
51
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/schema/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAC5E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAA;AACnG,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AAEpC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAA;AAEtE;;;;GAIG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,gCAAgC;IAChC,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,iCAAiC;IACjC,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,mDAAmD;IACnD,uBAAuB,CAAC,EAAE,yBAAyB,CAAC,yBAAyB,CAAC,CAAA;IAC9E,sCAAsC;IACtC,4BAA4B,CAAC,EAAE,yBAAyB,CAAC,8BAA8B,CAAC,CAAA;IACxF,wFAAwF;IACxF,yBAAyB,CAAC,EAAE,yBAAyB,CAAC,2BAA2B,CAAC,CAAA;IAClF,uDAAuD;IACvD,cAAc,CAAC,EAAE,yBAAyB,CAAC,gBAAgB,CAAC,CAAA;IAC5D,gDAAgD;IAChD,iBAAiB,CAAC,EAAE,yBAAyB,CAAC,mBAAmB,CAAC,CAAA;IAClE;;;;;OAKG;IACH,UAAU,CAAC,EAAE,yBAAyB,CAAC,YAAY,CAAC,CAAA;IACpD,kEAAkE;IAClE,cAAc,CAAC,EAAE,yBAAyB,CAAC,gBAAgB,CAAC,CAAA;IAC5D;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,eAAe,CAAA;CAC3B,CAAA;AAED,iFAAiF;AACjF,MAAM,MAAM,oBAAoB,GAAG;IACjC,gFAAgF;IAChF,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,mEAAmE;IACnE,sBAAsB,CAAC,EAAE,SAAS,CAAA;IAClC,qFAAqF;IACrF,SAAS,CAAC,EAAE,oBAAoB,CAAA;CACjC,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
color?: string;
|
|
3
|
+
};
|
|
4
|
+
declare var __VLS_1: {};
|
|
5
|
+
type __VLS_Slots = {} & {
|
|
6
|
+
default?: (props: typeof __VLS_1) => any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
|
12
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
13
|
+
new (): {
|
|
14
|
+
$slots: S;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=Badge.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Badge.vue.d.ts","sourceRoot":"","sources":["../../src/shared/Badge.vue"],"names":[],"mappings":"AAgFA,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;AA0DF,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAK/C,QAAA,MAAM,UAAU,kSAEd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import e from "../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
+
import t from "./Badge.vue.script.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
//#region src/shared/Badge.vue
|
|
5
|
+
var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-2a7101e8"]]);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { n as default };
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=Badge.vue.js.map
|
|
@@ -0,0 +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":""}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { computed as e, createElementBlock as t, defineComponent as n, mergeProps as r, openBlock as i, renderSlot as a, unref as o } from "vue";
|
|
2
|
+
import { useBindCx as s } from "@scalar/use-hooks/useBindCx";
|
|
3
|
+
//#region src/shared/Badge.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var c = /*@__PURE__*/ n({
|
|
5
|
+
inheritAttrs: !1,
|
|
6
|
+
__name: "Badge",
|
|
7
|
+
props: { color: {} },
|
|
8
|
+
setup(n) {
|
|
9
|
+
let { cx: c } = s(), l = e(() => n.color ? { "--badge-color": n.color } : void 0);
|
|
10
|
+
return (e, s) => (i(), t("div", r(o(c)("badge inline-block rounded-2xl border bg-b-2 px-1.5 py-0.5 text-c-2 text-sm", { "badge-colored": !!n.color }), { style: l.value }), [a(e.$slots, "default", {}, void 0, !0)], 16));
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
export { c as default };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=Badge.vue.script.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Badge.vue.script.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":";;;;;;;;EAWA,IAAM,EAAE,UAAO,EAAU,GAInB,IAAa,QACjB,EAAA,QAAQ,EAAE,iBAAiB,EAAA,MAAM,IAAI,KAAA,CACvC;yBAIE,EASM,OATN,EACiB,EAAA,CAAA,CAAE,CAAA,+EAAA,EAAA,iBAAoH,EAAQ,EAAA,MAAK,CAAA,GAAA,EAMjJ,OAAO,EAAA,MAAU,CAAA,GAAA,CAClB,EAAQ,EAAA,QAAA,WAAA,CAAA,GAAA,KAAA,GAAA,EAAA,CAAA,GAAA,EAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
if?: boolean;
|
|
3
|
+
};
|
|
4
|
+
declare var __VLS_1: {}, __VLS_3: {};
|
|
5
|
+
type __VLS_Slots = {} & {
|
|
6
|
+
default?: (props: typeof __VLS_1) => any;
|
|
7
|
+
} & {
|
|
8
|
+
default?: (props: typeof __VLS_3) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
11
|
+
if: boolean;
|
|
12
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=ScreenReader.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScreenReader.vue.d.ts","sourceRoot":"","sources":["../../src/shared/ScreenReader.vue"],"names":[],"mappings":"AA0BA,KAAK,WAAW,GAAG;IACf,EAAE,CAAC,EAAE,OAAO,CAAA;CACb,CAAC;AAqCJ,QAAA,IAAI,OAAO,IAAU,EAAE,OAAO,IAAW,CAAE;AAC3C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAK/C,QAAA,MAAM,UAAU;QA9CP,OAAO;6EAiDd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|