@scalar/blocks 0.4.3 → 0.5.1
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/README.md +45 -0
- package/dist/code-example/helpers/generate-code-snippet.d.ts.map +1 -1
- package/dist/code-example/helpers/generate-code-snippet.js +25 -24
- package/dist/code-example/helpers/generate-code-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 +4 -5
- 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/helpers/operation-to-har/process-parameters.d.ts +6 -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 +97 -116
- package/dist/code-example/helpers/operation-to-har/process-parameters.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 +550 -20
- 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 +46 -8
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { getResolvedRef as e } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
2
2
|
import { deSerializeParameter as t, getExampleFromSchema as n, isParamDisabled as r, serializeContentValue as i, serializeCookieStyle as a, serializeDeepObjectStyle as o, serializeFormStyle as s, serializeFormStyleForCookies as c, serializePipeDelimitedStyle as l, serializeSimpleStyle as u, serializeSpaceDelimitedStyle as d } from "@scalar/workspace-store/request-example";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { getCookieSerializationError as f } from "@scalar/helpers/http/get-cookie-serialization-error";
|
|
4
|
+
import { isObjectLike as p } from "@scalar/helpers/object/is-object";
|
|
5
|
+
import { assertReservedPathUrl as m, serializeReservedPathParameter as h } from "@scalar/workspace-store/helpers/encode-path-parameter";
|
|
6
|
+
import { getParameterExample as g } from "@scalar/workspace-store/helpers/get-parameter-example";
|
|
7
|
+
import { getQuerystringParameter as _, serializeQuerystringParameter as v } from "@scalar/workspace-store/helpers/querystring-parameter";
|
|
6
8
|
//#region src/code-example/helpers/operation-to-har/process-parameters.ts
|
|
7
|
-
var
|
|
9
|
+
var y = class extends Error {}, b = (t) => (t ?? []).map((t) => e(t)).filter((e) => e !== void 0), x = (e) => "allowReserved" in e && e.allowReserved !== void 0 ? e.allowReserved : "schema" in e && e.schema && typeof e.schema == "object" && "allowReserved" in e.schema ? e.schema.allowReserved === !0 : !1, S = (e) => {
|
|
8
10
|
if (e.in === "header") return {
|
|
9
11
|
style: "simple",
|
|
10
12
|
explode: "explode" in e && e.explode !== void 0 && e.explode
|
|
@@ -27,67 +29,69 @@ var g = (t) => (t ?? []).map((t) => e(t)).filter((e) => e !== void 0), _ = (e) =
|
|
|
27
29
|
style: n,
|
|
28
30
|
explode: "explode" in e && e.explode !== void 0 ? e.explode : n === "form"
|
|
29
31
|
};
|
|
30
|
-
},
|
|
31
|
-
let s =
|
|
32
|
+
}, C = (i, a, o) => {
|
|
33
|
+
let s = g(i, a), c = s.example;
|
|
32
34
|
if (r(i, c, o)) return;
|
|
33
35
|
if (s.value !== void 0) return t(s.value, i);
|
|
34
36
|
if (!("schema" in i) || !i.schema) return;
|
|
35
37
|
let l = i.in === "path" ? { emptyString: `{${i.name}}` } : {}, u = e(i.schema);
|
|
36
38
|
return u ? n(u, l) : void 0;
|
|
37
|
-
},
|
|
38
|
-
let
|
|
39
|
-
|
|
39
|
+
}, w = ({ harRequest: e, parameters: t, example: n, defaultDisabled: p, openapiVersion: w }) => {
|
|
40
|
+
let E = [...e.headers], D = [...e.queryString], O = [...e.cookies], k = [], A = e.url, j = !1, M = [], N = [], P = (e, t, n) => {
|
|
41
|
+
x(n) ? M.push(`${encodeURIComponent(e)}=${t}`) : D.push({
|
|
42
|
+
name: e,
|
|
43
|
+
value: t
|
|
44
|
+
});
|
|
45
|
+
}, F = b(t);
|
|
46
|
+
for (let e of F) {
|
|
40
47
|
if (!e.in || !e.name) continue;
|
|
41
48
|
if (e.in === "querystring") {
|
|
42
|
-
let t =
|
|
49
|
+
let t = _(e, n, { defaultDisabled: p });
|
|
43
50
|
if (t) {
|
|
44
|
-
let e =
|
|
45
|
-
|
|
51
|
+
let e = A.indexOf("#"), n = e === -1 ? "" : A.slice(e), r = (e === -1 ? A : A.slice(0, e)).split("?")[0], i = v(t);
|
|
52
|
+
A = `${r}${i ? `?${i}` : ""}${n}`;
|
|
46
53
|
}
|
|
47
54
|
continue;
|
|
48
55
|
}
|
|
49
|
-
let t =
|
|
50
|
-
if (t.serialized && !r(e, t.example,
|
|
56
|
+
let t = g(e, n);
|
|
57
|
+
if (t.serialized && !r(e, t.example, p)) {
|
|
51
58
|
let n = String(t.value);
|
|
52
59
|
switch (e.in) {
|
|
53
60
|
case "path":
|
|
54
|
-
|
|
61
|
+
A = A.replaceAll(`{${e.name}}`, () => n);
|
|
55
62
|
break;
|
|
56
63
|
case "query":
|
|
57
|
-
|
|
64
|
+
M.push(n);
|
|
58
65
|
break;
|
|
59
66
|
case "header":
|
|
60
|
-
|
|
67
|
+
E.push({
|
|
61
68
|
name: e.name,
|
|
62
69
|
value: n
|
|
63
70
|
});
|
|
64
71
|
break;
|
|
65
72
|
case "cookie":
|
|
66
|
-
|
|
73
|
+
N.push(n);
|
|
67
74
|
break;
|
|
68
75
|
}
|
|
69
76
|
continue;
|
|
70
77
|
}
|
|
71
|
-
if (t.mediaSerialized && !r(e, t.example,
|
|
78
|
+
if (t.mediaSerialized && !r(e, t.example, p)) {
|
|
72
79
|
let n = String(t.value);
|
|
73
80
|
switch (e.in) {
|
|
74
81
|
case "query":
|
|
75
|
-
|
|
76
|
-
name: e.name,
|
|
77
|
-
value: v(n, e)
|
|
78
|
-
});
|
|
82
|
+
P(e.name, n, e);
|
|
79
83
|
break;
|
|
80
84
|
case "header":
|
|
81
|
-
|
|
85
|
+
E.push({
|
|
82
86
|
name: e.name,
|
|
83
87
|
value: n
|
|
84
88
|
});
|
|
85
89
|
break;
|
|
86
90
|
case "path":
|
|
87
|
-
|
|
91
|
+
A = A.replaceAll(`{${e.name}}`, () => encodeURIComponent(n));
|
|
88
92
|
break;
|
|
89
93
|
case "cookie":
|
|
90
|
-
|
|
94
|
+
O.push({
|
|
91
95
|
name: e.name,
|
|
92
96
|
value: n
|
|
93
97
|
});
|
|
@@ -95,141 +99,118 @@ var g = (t) => (t ?? []).map((t) => e(t)).filter((e) => e !== void 0), _ = (e) =
|
|
|
95
99
|
}
|
|
96
100
|
continue;
|
|
97
101
|
}
|
|
98
|
-
let
|
|
99
|
-
if (
|
|
100
|
-
let { style:
|
|
102
|
+
let m = C(e, n, p);
|
|
103
|
+
if (m === void 0) continue;
|
|
104
|
+
let { style: b, explode: x } = S(e);
|
|
101
105
|
switch (e.in) {
|
|
102
|
-
case "path":
|
|
103
|
-
|
|
106
|
+
case "path": {
|
|
107
|
+
let t = w?.startsWith("3.2.") && "schema" in e && e.allowReserved === !0;
|
|
108
|
+
j ||= !!t;
|
|
109
|
+
let n = t ? h(e.name, {
|
|
110
|
+
value: m,
|
|
111
|
+
style: b,
|
|
112
|
+
explode: x
|
|
113
|
+
}) : void 0;
|
|
114
|
+
A = n === void 0 ? T(A, e, m, b, x) : A.replaceAll(`{${e.name}}`, () => n);
|
|
104
115
|
break;
|
|
116
|
+
}
|
|
105
117
|
case "query":
|
|
106
118
|
if ("content" in e && e.content) {
|
|
107
|
-
let t = i(
|
|
108
|
-
|
|
109
|
-
name: e.name,
|
|
110
|
-
value: v(t, e)
|
|
111
|
-
});
|
|
119
|
+
let t = i(m, Object.keys(e.content)[0] ?? "application/json");
|
|
120
|
+
P(e.name, t, e);
|
|
112
121
|
break;
|
|
113
122
|
}
|
|
114
|
-
switch (
|
|
123
|
+
switch (b) {
|
|
115
124
|
case "form": {
|
|
116
|
-
let t = s(
|
|
117
|
-
if (Array.isArray(t)) for (let n of t)
|
|
118
|
-
|
|
119
|
-
x.push({
|
|
120
|
-
name: t,
|
|
121
|
-
value: v(String(n.value), e)
|
|
122
|
-
});
|
|
123
|
-
}
|
|
124
|
-
else x.push({
|
|
125
|
-
name: e.name,
|
|
126
|
-
value: v(String(t), e)
|
|
127
|
-
});
|
|
125
|
+
let t = s(m, x);
|
|
126
|
+
if (Array.isArray(t)) for (let n of t) P(n.key || e.name, String(n.value), e);
|
|
127
|
+
else P(e.name, String(t), e);
|
|
128
128
|
break;
|
|
129
129
|
}
|
|
130
130
|
case "spaceDelimited": {
|
|
131
|
-
let t = d(
|
|
132
|
-
|
|
133
|
-
name: e.name,
|
|
134
|
-
value: v(t, e)
|
|
135
|
-
});
|
|
131
|
+
let t = d(m);
|
|
132
|
+
P(e.name, t, e);
|
|
136
133
|
break;
|
|
137
134
|
}
|
|
138
135
|
case "pipeDelimited": {
|
|
139
|
-
let t = l(
|
|
140
|
-
|
|
141
|
-
name: e.name,
|
|
142
|
-
value: v(t, e)
|
|
143
|
-
});
|
|
136
|
+
let t = l(m);
|
|
137
|
+
P(e.name, t, e);
|
|
144
138
|
break;
|
|
145
139
|
}
|
|
146
140
|
case "deepObject":
|
|
147
|
-
if (Array.isArray(
|
|
148
|
-
let t = s(
|
|
149
|
-
if (Array.isArray(t)) for (let n of t)
|
|
150
|
-
|
|
151
|
-
x.push({
|
|
152
|
-
name: t,
|
|
153
|
-
value: v(String(n.value), e)
|
|
154
|
-
});
|
|
155
|
-
}
|
|
156
|
-
else x.push({
|
|
157
|
-
name: e.name,
|
|
158
|
-
value: v(String(t), e)
|
|
159
|
-
});
|
|
141
|
+
if (Array.isArray(m)) {
|
|
142
|
+
let t = s(m, !0);
|
|
143
|
+
if (Array.isArray(t)) for (let n of t) P(n.key || e.name, String(n.value), e);
|
|
144
|
+
else P(e.name, String(t), e);
|
|
160
145
|
} else {
|
|
161
|
-
let t = o(e.name,
|
|
162
|
-
for (let n of t)
|
|
163
|
-
name: n.key,
|
|
164
|
-
value: v(n.value, e)
|
|
165
|
-
});
|
|
146
|
+
let t = o(e.name, m);
|
|
147
|
+
for (let n of t) P(n.key, n.value, e);
|
|
166
148
|
}
|
|
167
149
|
break;
|
|
168
|
-
default:
|
|
169
|
-
name: e.name,
|
|
170
|
-
value: v(String(g), e)
|
|
171
|
-
});
|
|
150
|
+
default: P(e.name, String(m), e);
|
|
172
151
|
}
|
|
173
152
|
break;
|
|
174
153
|
case "header": {
|
|
175
|
-
let t = u(
|
|
176
|
-
|
|
154
|
+
let t = u(m, x);
|
|
155
|
+
E.push({
|
|
177
156
|
name: e.name,
|
|
178
157
|
value: String(t)
|
|
179
158
|
});
|
|
180
159
|
break;
|
|
181
160
|
}
|
|
182
161
|
case "cookie": {
|
|
183
|
-
|
|
184
|
-
|
|
162
|
+
let [t, n] = (w ?? "").split("."), r = t === "3" && n === "2" && !("content" in e) ? f(e, m) : void 0;
|
|
163
|
+
if (r) throw new y(r);
|
|
164
|
+
if (b === "cookie") {
|
|
165
|
+
k.push(...a(e.name, m, x));
|
|
185
166
|
break;
|
|
186
167
|
}
|
|
187
|
-
let
|
|
188
|
-
if (Array.isArray(
|
|
189
|
-
let
|
|
190
|
-
|
|
191
|
-
name:
|
|
168
|
+
let i = c(m, x);
|
|
169
|
+
if (Array.isArray(i)) for (let t of i) {
|
|
170
|
+
let n = t.key || e.name, r = t.value === null ? "null" : String(t.value);
|
|
171
|
+
O.push({
|
|
172
|
+
name: n,
|
|
192
173
|
value: r
|
|
193
174
|
});
|
|
194
175
|
}
|
|
195
176
|
else {
|
|
196
|
-
let
|
|
197
|
-
|
|
177
|
+
let t = i === null ? "null" : String(i);
|
|
178
|
+
O.push({
|
|
198
179
|
name: e.name,
|
|
199
|
-
value:
|
|
180
|
+
value: t
|
|
200
181
|
});
|
|
201
182
|
}
|
|
202
183
|
break;
|
|
203
184
|
}
|
|
204
185
|
}
|
|
205
186
|
}
|
|
206
|
-
if (
|
|
187
|
+
if (k.length || N.length) {
|
|
207
188
|
let e = [
|
|
208
|
-
...
|
|
209
|
-
...
|
|
210
|
-
...
|
|
211
|
-
].join("; "), t =
|
|
212
|
-
t ?
|
|
189
|
+
...O.map((e) => `${encodeURIComponent(e.name)}=${encodeURIComponent(e.value)}`),
|
|
190
|
+
...k.map((e) => `${e.name}=${e.value}`),
|
|
191
|
+
...N
|
|
192
|
+
].join("; "), t = E.find((e) => e.name.toLowerCase() === "cookie");
|
|
193
|
+
t ? E.splice(E.indexOf(t), 1, {
|
|
213
194
|
...t,
|
|
214
195
|
value: t.value ? `${t.value}; ${e}` : e
|
|
215
|
-
}) :
|
|
196
|
+
}) : E.push({
|
|
216
197
|
name: "Cookie",
|
|
217
198
|
value: e
|
|
218
199
|
});
|
|
219
200
|
}
|
|
220
|
-
if (
|
|
221
|
-
let e =
|
|
222
|
-
|
|
201
|
+
if (M.length) {
|
|
202
|
+
let e = A.indexOf("#"), t = e < 0 ? "" : A.slice(e), n = e < 0 ? A : A.slice(0, e);
|
|
203
|
+
A = `${n}${n.includes("?") ? "&" : "?"}${M.join("&")}${t}`;
|
|
223
204
|
}
|
|
224
|
-
return {
|
|
225
|
-
url:
|
|
226
|
-
headers:
|
|
227
|
-
queryString:
|
|
228
|
-
cookies:
|
|
229
|
-
hasCookieStyleEntries:
|
|
230
|
-
...
|
|
205
|
+
return j && m(A), {
|
|
206
|
+
url: A,
|
|
207
|
+
headers: E,
|
|
208
|
+
queryString: D,
|
|
209
|
+
cookies: k.length || N.length ? [] : O,
|
|
210
|
+
hasCookieStyleEntries: k.length > 0 || N.length > 0,
|
|
211
|
+
...M.length ? { hasSerializedQuery: !0 } : {}
|
|
231
212
|
};
|
|
232
|
-
},
|
|
213
|
+
}, T = (e, t, n, r, i) => {
|
|
233
214
|
switch (r) {
|
|
234
215
|
case "matrix":
|
|
235
216
|
if (i) {
|
|
@@ -237,14 +218,14 @@ var g = (t) => (t ?? []).map((t) => e(t)).filter((e) => e !== void 0), _ = (e) =
|
|
|
237
218
|
let r = n.map((e) => `${t.name}=${e}`).join(";");
|
|
238
219
|
return e.replace(`{;${t.name}}`, `;${r}`);
|
|
239
220
|
}
|
|
240
|
-
if (
|
|
221
|
+
if (p(n)) {
|
|
241
222
|
let r = Object.entries(n).map(([e, t]) => `${e}=${t}`).join(";");
|
|
242
223
|
return e.replace(`{;${t.name}}`, `;${r}`);
|
|
243
224
|
}
|
|
244
225
|
return e.replace(`{;${t.name}}`, `;${t.name}=${n}`);
|
|
245
226
|
}
|
|
246
227
|
if (Array.isArray(n)) return e.replace(`{;${t.name}}`, `;${t.name}=${n.join(",")}`);
|
|
247
|
-
if (
|
|
228
|
+
if (p(n)) {
|
|
248
229
|
let r = Object.entries(n).map(([e, t]) => `${e},${t}`).join(",");
|
|
249
230
|
return e.replace(`{;${t.name}}`, `;${t.name}=${r}`);
|
|
250
231
|
}
|
|
@@ -252,14 +233,14 @@ var g = (t) => (t ?? []).map((t) => e(t)).filter((e) => e !== void 0), _ = (e) =
|
|
|
252
233
|
case "label":
|
|
253
234
|
if (i) {
|
|
254
235
|
if (Array.isArray(n)) return e.replace(`{.${t.name}}`, `.${n.join(".")}`);
|
|
255
|
-
if (
|
|
236
|
+
if (p(n)) {
|
|
256
237
|
let r = Object.entries(n).map(([e, t]) => `${e}=${t}`).join(".");
|
|
257
238
|
return e.replace(`{.${t.name}}`, `.${r}`);
|
|
258
239
|
}
|
|
259
240
|
return e.replace(`{.${t.name}}`, `.${n}`);
|
|
260
241
|
}
|
|
261
242
|
if (Array.isArray(n)) return e.replace(`{.${t.name}}`, `.${n.join(",")}`);
|
|
262
|
-
if (
|
|
243
|
+
if (p(n)) {
|
|
263
244
|
let r = Object.entries(n).map(([e, t]) => `${e},${t}`).join(",");
|
|
264
245
|
return e.replace(`{.${t.name}}`, `.${r}`);
|
|
265
246
|
}
|
|
@@ -272,6 +253,6 @@ var g = (t) => (t ?? []).map((t) => e(t)).filter((e) => e !== void 0), _ = (e) =
|
|
|
272
253
|
}
|
|
273
254
|
};
|
|
274
255
|
//#endregion
|
|
275
|
-
export {
|
|
256
|
+
export { y as CookieSerializationError, w as processParameters };
|
|
276
257
|
|
|
277
258
|
//# sourceMappingURL=process-parameters.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"process-parameters.js","names":[],"sources":["../../../../src/code-example/helpers/operation-to-har/process-parameters.ts"],"sourcesContent":["import { isObjectLike } from '@scalar/helpers/object/is-object'\nimport { getParameterExample } from '@scalar/workspace-store/helpers/get-parameter-example'\nimport { getResolvedRef } from '@scalar/workspace-store/helpers/get-resolved-ref'\nimport {\n getQuerystringParameter,\n serializeQuerystringParameter,\n} from '@scalar/workspace-store/helpers/querystring-parameter'\nimport {\n deSerializeParameter,\n getExampleFromSchema,\n isParamDisabled,\n serializeContentValue,\n serializeCookieStyle,\n serializeDeepObjectStyle,\n serializeFormStyle,\n serializeFormStyleForCookies,\n serializePipeDelimitedStyle,\n serializeSimpleStyle,\n serializeSpaceDelimitedStyle,\n} from '@scalar/workspace-store/request-example'\nimport type { OperationObject, ParameterObject } from '@scalar/workspace-store/schemas/v3.2/strict/openapi-document'\nimport type { Request as HarRequest } from 'har-format'\n\ntype ProcessedParameters = {\n /** Named serialized examples already embedded in the URL. */\n hasSerializedQuery?: boolean\n url: string\n headers: HarRequest['headers']\n queryString: HarRequest['queryString']\n cookies: HarRequest['cookies']\n /** Whether serialized cookie-style values require a complete Cookie header. */\n hasCookieStyleEntries: boolean\n}\n\n/** Ensures we don't have any references in the parameters */\nconst deReferenceParams = (params: OperationObject['parameters']): ParameterObject[] =>\n (params ?? []).map((param) => getResolvedRef(param)).filter((param) => param !== undefined)\n\n/** Whether the parameter allows reserved characters (from param or schema). */\nconst isAllowReserved = (param: ParameterObject): boolean => {\n if ('allowReserved' in param && param.allowReserved !== undefined) {\n return param.allowReserved\n }\n if ('schema' in param && param.schema && typeof param.schema === 'object' && 'allowReserved' in param.schema) {\n return (param.schema as { allowReserved?: boolean }).allowReserved === true\n }\n return false\n}\n\n/** URL encode a value if allowReserved is not set to true. */\nconst encodeQueryValue = (value: string, param: ParameterObject): string => {\n if (isAllowReserved(param)) {\n return value\n }\n return encodeURIComponent(value)\n}\n\n/**\n * Get the style and explode values for a parameter according to OpenAPI 3.1.1 specification.\n * Handles defaults and validation for parameter location restrictions.\n */\nconst getParameterStyleAndExplode = (param: ParameterObject): { style: string; explode: boolean } => {\n // Headers only support 'simple' style\n if (param.in === 'header') {\n const explode = 'explode' in param && param.explode !== undefined ? param.explode : false\n return { style: 'simple', explode }\n }\n\n // Cookies default to form for compatibility and also support cookie style.\n if (param.in === 'cookie') {\n const explode = 'explode' in param && param.explode !== undefined ? param.explode : true\n return { style: 'style' in param && param.style === 'cookie' ? 'cookie' : 'form', explode }\n }\n\n const defaultStyle = {\n path: 'simple',\n query: 'form',\n querystring: 'form',\n header: 'simple',\n cookie: 'form',\n }[param.in]\n\n // Use provided style or default based on location\n const style = 'style' in param && param.style ? param.style : defaultStyle\n\n // Determine explode value: use provided value or default based on style\n const explode = 'explode' in param && param.explode !== undefined ? param.explode : style === 'form'\n\n return { style, explode }\n}\n\n/**\n * Extract the value for a parameter from example data or schema.\n * Prioritizes example data over schema examples.\n * Returns null if the parameter is disabled so we can skip it.\n */\nconst getParameterValue = (param: ParameterObject, example: string | undefined, defaultDisabled: boolean): unknown => {\n // Try to get value from example first\n const selected = getParameterExample(param, example)\n const exampleValue = selected.example\n\n // If the parameter is disabled, return undefined so we can skip it.\n if (isParamDisabled(param, exampleValue, defaultDisabled)) {\n return undefined\n }\n\n // If the example value is set, return it.\n if (selected.value !== undefined) {\n return deSerializeParameter(selected.value, param)\n }\n\n // Fall back to schema example if available\n if (!('schema' in param) || !param.schema) {\n return undefined\n }\n\n const options = param.in === 'path' ? { emptyString: `{${param.name}}` } : {}\n const schema = getResolvedRef(param.schema)\n return schema ? getExampleFromSchema(schema, options) : undefined\n}\n\n/**\n * Process OpenAPI parameters and return the updated properties.\n * Handles path, query, and header parameters with various styles and explode options.\n *\n * @see https://spec.openapis.org/oas/latest.html#style-values\n */\nexport const processParameters = ({\n harRequest,\n parameters,\n example,\n defaultDisabled,\n}: {\n harRequest: HarRequest\n parameters: OperationObject['parameters']\n /** The name of the example to use */\n example?: string | undefined\n /** Whether to disable parameters by default. */\n defaultDisabled: boolean\n}): ProcessedParameters => {\n // Create copies of the arrays to avoid modifying the input\n const newHeaders = [...harRequest.headers]\n const newQueryString = [...harRequest.queryString]\n const newCookies = [...harRequest.cookies]\n const cookieStyleEntries: HarRequest['cookies'] = []\n let newUrl = harRequest.url\n const serializedQuery: string[] = []\n const serializedCookies: string[] = []\n\n // Filter out references\n const deReferencedParams = deReferenceParams(parameters)\n\n for (const param of deReferencedParams) {\n if (!param.in || !param.name) {\n continue\n }\n\n if (param.in === 'querystring') {\n const querystring = getQuerystringParameter(param, example, { defaultDisabled })\n if (querystring) {\n const hashIndex = newUrl.indexOf('#')\n const hash = hashIndex === -1 ? '' : newUrl.slice(hashIndex)\n const base = (hashIndex === -1 ? newUrl : newUrl.slice(0, hashIndex)).split('?')[0]\n const query = serializeQuerystringParameter(querystring)\n newUrl = `${base}${query ? `?${query}` : ''}${hash}`\n }\n continue\n }\n\n const selected = getParameterExample(param, example)\n if (selected.serialized && !isParamDisabled(param, selected.example, defaultDisabled)) {\n const wireValue = String(selected.value)\n switch (param.in) {\n case 'path':\n newUrl = newUrl.replaceAll(`{${param.name}}`, () => wireValue)\n break\n case 'query':\n serializedQuery.push(wireValue)\n break\n case 'header':\n newHeaders.push({ name: param.name, value: wireValue })\n break\n case 'cookie':\n serializedCookies.push(wireValue)\n break\n }\n continue\n }\n if (selected.mediaSerialized && !isParamDisabled(param, selected.example, defaultDisabled)) {\n const text = String(selected.value)\n switch (param.in) {\n case 'query':\n newQueryString.push({ name: param.name, value: encodeQueryValue(text, param) })\n break\n case 'header':\n newHeaders.push({ name: param.name, value: text })\n break\n case 'path':\n newUrl = newUrl.replaceAll(`{${param.name}}`, () => encodeURIComponent(text))\n break\n case 'cookie':\n newCookies.push({ name: param.name, value: text })\n break\n }\n continue\n }\n const paramValue = getParameterValue(param, example, defaultDisabled)\n if (paramValue === undefined) {\n continue\n }\n\n const { style, explode } = getParameterStyleAndExplode(param)\n\n switch (param.in) {\n case 'path': {\n newUrl = processPathParameters(newUrl, param, paramValue, style, explode)\n break\n }\n\n case 'query': {\n // Content type parameters should be serialized according to the parameter's own content type\n if ('content' in param && param.content) {\n // We grab the first for now but eventually we should support selecting the content type per parameter\n const paramContentType = Object.keys(param.content)[0] ?? 'application/json'\n const serializedValue = serializeContentValue(paramValue, paramContentType)\n newQueryString.push({ name: param.name, value: encodeQueryValue(serializedValue, param) })\n break\n }\n\n // Handle query parameters\n switch (style) {\n case 'form': {\n const serialized = serializeFormStyle(paramValue, explode)\n\n // If serialized is an array of key-value pairs (exploded object or array)\n if (Array.isArray(serialized)) {\n for (const entry of serialized) {\n const key = entry.key || param.name\n newQueryString.push({ name: key, value: encodeQueryValue(String(entry.value), param) })\n }\n }\n // Otherwise, convert to string\n else {\n newQueryString.push({ name: param.name, value: encodeQueryValue(String(serialized), param) })\n }\n break\n }\n case 'spaceDelimited': {\n const serialized = serializeSpaceDelimitedStyle(paramValue)\n newQueryString.push({ name: param.name, value: encodeQueryValue(serialized, param) })\n break\n }\n case 'pipeDelimited': {\n const serialized = serializePipeDelimitedStyle(paramValue)\n newQueryString.push({ name: param.name, value: encodeQueryValue(serialized, param) })\n break\n }\n case 'deepObject': {\n // OAS marks deepObject-on-array and deepObject+explode:false as undefined.\n // Mirror process-body: fall back to form/explode:true for arrays and always\n // invoke the serializer for objects so authors get useful output instead of\n // a silently-dropped parameter.\n if (Array.isArray(paramValue)) {\n const serialized = serializeFormStyle(paramValue, true)\n if (Array.isArray(serialized)) {\n for (const entry of serialized) {\n const key = entry.key || param.name\n newQueryString.push({ name: key, value: encodeQueryValue(String(entry.value), param) })\n }\n } else {\n newQueryString.push({ name: param.name, value: encodeQueryValue(String(serialized), param) })\n }\n } else {\n const entries = serializeDeepObjectStyle(param.name, paramValue)\n for (const entry of entries) {\n newQueryString.push({ name: entry.key, value: encodeQueryValue(entry.value, param) })\n }\n }\n break\n }\n\n // Default to form style\n default:\n newQueryString.push({ name: param.name, value: encodeQueryValue(String(paramValue), param) })\n }\n break\n }\n\n // Headers only support 'simple' style according to OpenAPI 3.1.1\n // For arrays, simple style always produces comma-separated values regardless of explode\n // The explode parameter only affects object serialization\n case 'header': {\n const serialized = serializeSimpleStyle(paramValue, explode)\n newHeaders.push({ name: param.name, value: String(serialized) })\n break\n }\n\n // Keep cookie style separate so snippet generators cannot percent-encode it.\n case 'cookie': {\n if (style === 'cookie') {\n cookieStyleEntries.push(...serializeCookieStyle(param.name, paramValue, explode))\n break\n }\n const serialized = serializeFormStyleForCookies(paramValue, explode)\n\n // If serialized is an array of key-value pairs (exploded object or array)\n if (Array.isArray(serialized)) {\n for (const entry of serialized) {\n const key = entry.key || param.name\n const value = entry.value === null ? 'null' : String(entry.value)\n newCookies.push({ name: key, value })\n }\n }\n // Otherwise, convert to string\n else {\n const value = serialized === null ? 'null' : String(serialized)\n newCookies.push({ name: param.name, value })\n }\n break\n }\n }\n }\n\n // HAR cookie entries are encoded by snippet generators. Use a complete header\n // when cookie style is present, preserving legacy encoding for other cookies.\n if (cookieStyleEntries.length || serializedCookies.length) {\n const cookieValue = [\n ...newCookies.map((cookie) => `${encodeURIComponent(cookie.name)}=${encodeURIComponent(cookie.value)}`),\n ...cookieStyleEntries.map((cookie) => `${cookie.name}=${cookie.value}`),\n ...serializedCookies,\n ].join('; ')\n const existing = newHeaders.find((header) => header.name.toLowerCase() === 'cookie')\n if (existing) {\n newHeaders.splice(newHeaders.indexOf(existing), 1, {\n ...existing,\n value: existing.value ? `${existing.value}; ${cookieValue}` : cookieValue,\n })\n } else {\n newHeaders.push({ name: 'Cookie', value: cookieValue })\n }\n }\n\n if (serializedQuery.length) {\n const hashIndex = newUrl.indexOf('#')\n const hash = hashIndex < 0 ? '' : newUrl.slice(hashIndex)\n const base = hashIndex < 0 ? newUrl : newUrl.slice(0, hashIndex)\n newUrl = `${base}${base.includes('?') ? '&' : '?'}${serializedQuery.join('&')}${hash}`\n }\n\n return {\n url: newUrl,\n headers: newHeaders,\n queryString: newQueryString,\n cookies: cookieStyleEntries.length || serializedCookies.length ? [] : newCookies,\n hasCookieStyleEntries: cookieStyleEntries.length > 0 || serializedCookies.length > 0,\n ...(serializedQuery.length ? { hasSerializedQuery: true } : {}),\n }\n}\n\n/**\n * Process path parameters according to OpenAPI specification.\n * Handles matrix, label, and simple styles with explode options.\n *\n * @param url - The URL to process\n * @param param - The parameter object\n * @param paramValue - The value of the parameter\n * @param style - The style of the parameter (matrix, label, simple)\n * @param explode - Whether to explode the parameter\n * @returns The updated URL with processed path parameters\n */\nconst processPathParameters = (\n url: string,\n param: ParameterObject,\n paramValue: unknown,\n style: string,\n explode: boolean,\n): string => {\n switch (style) {\n case 'matrix': {\n if (explode) {\n // Matrix explode array: ;color=blue;color=black;color=brown\n if (Array.isArray(paramValue)) {\n const values = paramValue.map((v: unknown) => `${param.name}=${v}`).join(';')\n return url.replace(`{;${param.name}}`, `;${values}`)\n }\n\n // Matrix explode object: ;R=100;G=200;B=150\n if (isObjectLike(paramValue)) {\n const values = Object.entries(paramValue)\n .map(([k, v]) => `${k}=${v}`)\n .join(';')\n return url.replace(`{;${param.name}}`, `;${values}`)\n }\n\n // Matrix explode primitive: ;color=blue\n return url.replace(`{;${param.name}}`, `;${param.name}=${paramValue}`)\n }\n\n // Matrix no explode array: ;color=blue,black,brown\n if (Array.isArray(paramValue)) {\n return url.replace(`{;${param.name}}`, `;${param.name}=${paramValue.join(',')}`)\n }\n\n // Matrix no explode object: ;color=R,100,G,200,B,150\n if (isObjectLike(paramValue)) {\n const values = Object.entries(paramValue)\n .map(([k, v]) => `${k},${v}`)\n .join(',')\n return url.replace(`{;${param.name}}`, `;${param.name}=${values}`)\n }\n\n // Matrix no explode primitive: ;color=blue\n return url.replace(`{;${param.name}}`, `;${param.name}=${paramValue}`)\n }\n case 'label': {\n if (explode) {\n // Label explode array: .blue.black.brown\n if (Array.isArray(paramValue)) {\n return url.replace(`{.${param.name}}`, `.${paramValue.join('.')}`)\n }\n\n // Label explode object: .R=100.G=200.B=150\n if (isObjectLike(paramValue)) {\n const values = Object.entries(paramValue)\n .map(([k, v]) => `${k}=${v}`)\n .join('.')\n\n return url.replace(`{.${param.name}}`, `.${values}`)\n }\n\n // Label explode primitive: .blue\n return url.replace(`{.${param.name}}`, `.${paramValue}`)\n }\n\n // Label no explode array: .blue,black,brown\n if (Array.isArray(paramValue)) {\n return url.replace(`{.${param.name}}`, `.${paramValue.join(',')}`)\n }\n\n // Label no explode object: .R,100,G,200,B,150\n if (isObjectLike(paramValue)) {\n const values = Object.entries(paramValue)\n .map(([k, v]) => `${k},${v}`)\n .join(',')\n\n return url.replace(`{.${param.name}}`, `.${values}`)\n }\n\n // Label no explode primitive: .blue\n return url.replace(`{.${param.name}}`, `.${paramValue}`)\n }\n\n case 'simple': {\n const serialized = serializeSimpleStyle(paramValue, explode)\n return url.replace(`{${param.name}}`, String(serialized))\n }\n\n // Default to simple style\n default:\n return url.replace(`{${param.name}}`, String(paramValue))\n }\n}\n"],"mappings":";;;;;;AAmCA,IAAM,KAAqB,OACxB,KAAU,CAAC,EAAA,CAAG,KAAK,MAAU,EAAe,CAAK,CAAC,CAAC,CAAC,QAAQ,MAAU,MAAU,KAAA,CAAS,GAGtF,KAAmB,MACnB,mBAAmB,KAAS,EAAM,kBAAkB,KAAA,IAC/C,EAAM,gBAEX,YAAY,KAAS,EAAM,UAAU,OAAO,EAAM,UAAW,YAAY,mBAAmB,EAAM,SAC5F,EAAM,OAAuC,kBAAkB,KAElE,IAIH,KAAoB,GAAe,MACnC,EAAgB,CAAK,IAChB,IAEF,mBAAmB,CAAK,GAO3B,KAA+B,MAAgE;CAEnG,IAAI,EAAM,OAAO,UAEf,OAAO;EAAE,OAAO;EAAU,SADV,aAAa,KAAS,EAAM,YAAY,KAAA,KAAY,EAAM;CACxC;CAIpC,IAAI,EAAM,OAAO,UAAU;EACzB,IAAM,IAAU,aAAa,KAAS,EAAM,YAAY,KAAA,IAAY,EAAM,UAAU;EACpF,OAAO;GAAE,OAAO,WAAW,KAAS,EAAM,UAAU,WAAW,WAAW;GAAQ;EAAQ;CAC5F;CAEA,IAAM,IAAe;EACnB,MAAM;EACN,OAAO;EAC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AAM,KAAK,IAAI,IAAI,GAAQ;GACrD;GAGA,OAAO,EAAI,QAAQ,KAAK,EAAM,KAAK,IAAI,IAAI,GAAY;EAGzD,KAAK,UAAU;GACb,IAAM,IAAa,EAAqB,GAAY,CAAO;GAC3D,OAAO,EAAI,QAAQ,IAAI,EAAM,KAAK,IAAI,OAAO,CAAU,CAAC;EAC1D;EAGA,SACE,OAAO,EAAI,QAAQ,IAAI,EAAM,KAAK,IAAI,OAAO,CAAU,CAAC;CAC5D;AACF"}
|
|
1
|
+
{"version":3,"file":"process-parameters.js","names":[],"sources":["../../../../src/code-example/helpers/operation-to-har/process-parameters.ts"],"sourcesContent":["import { getCookieSerializationError } from '@scalar/helpers/http/get-cookie-serialization-error'\nimport { isObjectLike } from '@scalar/helpers/object/is-object'\nimport {\n assertReservedPathUrl,\n serializeReservedPathParameter,\n} from '@scalar/workspace-store/helpers/encode-path-parameter'\nimport { getParameterExample } from '@scalar/workspace-store/helpers/get-parameter-example'\nimport { getResolvedRef } from '@scalar/workspace-store/helpers/get-resolved-ref'\nimport {\n getQuerystringParameter,\n serializeQuerystringParameter,\n} from '@scalar/workspace-store/helpers/querystring-parameter'\nimport {\n deSerializeParameter,\n getExampleFromSchema,\n isParamDisabled,\n serializeContentValue,\n serializeCookieStyle,\n serializeDeepObjectStyle,\n serializeFormStyle,\n serializeFormStyleForCookies,\n serializePipeDelimitedStyle,\n serializeSimpleStyle,\n serializeSpaceDelimitedStyle,\n} from '@scalar/workspace-store/request-example'\nimport type { OperationObject, ParameterObject } from '@scalar/workspace-store/schemas/v3.2/strict/openapi-document'\nimport type { Request as HarRequest } from 'har-format'\n\n/** An invalid cookie declaration that authors can repair before generating a sample. */\nexport class CookieSerializationError extends Error {}\n\ntype ProcessedParameters = {\n /** Named serialized examples already embedded in the URL. */\n hasSerializedQuery?: boolean\n url: string\n headers: HarRequest['headers']\n queryString: HarRequest['queryString']\n cookies: HarRequest['cookies']\n /** Whether serialized cookie-style values require a complete Cookie header. */\n hasCookieStyleEntries: boolean\n}\n\n/** Ensures we don't have any references in the parameters */\nconst deReferenceParams = (params: OperationObject['parameters']): ParameterObject[] =>\n (params ?? []).map((param) => getResolvedRef(param)).filter((param) => param !== undefined)\n\n/** Whether the parameter allows reserved characters (from param or schema). */\nconst isAllowReserved = (param: ParameterObject): boolean => {\n if ('allowReserved' in param && param.allowReserved !== undefined) {\n return param.allowReserved\n }\n if ('schema' in param && param.schema && typeof param.schema === 'object' && 'allowReserved' in param.schema) {\n return (param.schema as { allowReserved?: boolean }).allowReserved === true\n }\n return false\n}\n\n/**\n * Get the style and explode values for a parameter according to OpenAPI 3.1.1 specification.\n * Handles defaults and validation for parameter location restrictions.\n */\nconst getParameterStyleAndExplode = (param: ParameterObject): { style: string; explode: boolean } => {\n // Headers only support 'simple' style\n if (param.in === 'header') {\n const explode = 'explode' in param && param.explode !== undefined ? param.explode : false\n return { style: 'simple', explode }\n }\n\n // Cookies default to form for compatibility and also support cookie style.\n if (param.in === 'cookie') {\n const explode = 'explode' in param && param.explode !== undefined ? param.explode : true\n return { style: 'style' in param && param.style === 'cookie' ? 'cookie' : 'form', explode }\n }\n\n const defaultStyle = {\n path: 'simple',\n query: 'form',\n querystring: 'form',\n header: 'simple',\n cookie: 'form',\n }[param.in]\n\n // Use provided style or default based on location\n const style = 'style' in param && param.style ? param.style : defaultStyle\n\n // Determine explode value: use provided value or default based on style\n const explode = 'explode' in param && param.explode !== undefined ? param.explode : style === 'form'\n\n return { style, explode }\n}\n\n/**\n * Extract the value for a parameter from example data or schema.\n * Prioritizes example data over schema examples.\n * Returns null if the parameter is disabled so we can skip it.\n */\nconst getParameterValue = (param: ParameterObject, example: string | undefined, defaultDisabled: boolean): unknown => {\n // Try to get value from example first\n const selected = getParameterExample(param, example)\n const exampleValue = selected.example\n\n // If the parameter is disabled, return undefined so we can skip it.\n if (isParamDisabled(param, exampleValue, defaultDisabled)) {\n return undefined\n }\n\n // If the example value is set, return it.\n if (selected.value !== undefined) {\n return deSerializeParameter(selected.value, param)\n }\n\n // Fall back to schema example if available\n if (!('schema' in param) || !param.schema) {\n return undefined\n }\n\n const options = param.in === 'path' ? { emptyString: `{${param.name}}` } : {}\n const schema = getResolvedRef(param.schema)\n return schema ? getExampleFromSchema(schema, options) : undefined\n}\n\n/**\n * Process OpenAPI parameters and return the updated properties.\n * Handles path, query, and header parameters with various styles and explode options.\n *\n * @see https://spec.openapis.org/oas/latest.html#style-values\n */\nexport const processParameters = ({\n harRequest,\n parameters,\n example,\n defaultDisabled,\n openapiVersion,\n}: {\n harRequest: HarRequest\n parameters: OperationObject['parameters']\n /** The name of the example to use */\n example?: string | undefined\n /** Whether to disable parameters by default. */\n defaultDisabled: boolean\n /** Originating API description version. */\n openapiVersion?: string\n}): ProcessedParameters => {\n // Create copies of the arrays to avoid modifying the input\n const newHeaders = [...harRequest.headers]\n const newQueryString = [...harRequest.queryString]\n const newCookies = [...harRequest.cookies]\n const cookieStyleEntries: HarRequest['cookies'] = []\n let newUrl = harRequest.url\n let hasReservedPathParameter = false\n const serializedQuery: string[] = []\n const serializedCookies: string[] = []\n\n const appendQueryParameter = (name: string, value: string, param: ParameterObject): void => {\n if (isAllowReserved(param)) {\n // HTTP clients cannot infer reserved expansion from a HAR name/value pair.\n serializedQuery.push(`${encodeURIComponent(name)}=${value}`)\n } else {\n newQueryString.push({ name, value })\n }\n }\n\n // Filter out references\n const deReferencedParams = deReferenceParams(parameters)\n\n for (const param of deReferencedParams) {\n if (!param.in || !param.name) {\n continue\n }\n\n if (param.in === 'querystring') {\n const querystring = getQuerystringParameter(param, example, { defaultDisabled })\n if (querystring) {\n const hashIndex = newUrl.indexOf('#')\n const hash = hashIndex === -1 ? '' : newUrl.slice(hashIndex)\n const base = (hashIndex === -1 ? newUrl : newUrl.slice(0, hashIndex)).split('?')[0]\n const query = serializeQuerystringParameter(querystring)\n newUrl = `${base}${query ? `?${query}` : ''}${hash}`\n }\n continue\n }\n\n const selected = getParameterExample(param, example)\n if (selected.serialized && !isParamDisabled(param, selected.example, defaultDisabled)) {\n const wireValue = String(selected.value)\n switch (param.in) {\n case 'path':\n newUrl = newUrl.replaceAll(`{${param.name}}`, () => wireValue)\n break\n case 'query':\n serializedQuery.push(wireValue)\n break\n case 'header':\n newHeaders.push({ name: param.name, value: wireValue })\n break\n case 'cookie':\n serializedCookies.push(wireValue)\n break\n }\n continue\n }\n if (selected.mediaSerialized && !isParamDisabled(param, selected.example, defaultDisabled)) {\n const text = String(selected.value)\n switch (param.in) {\n case 'query':\n appendQueryParameter(param.name, text, param)\n break\n case 'header':\n newHeaders.push({ name: param.name, value: text })\n break\n case 'path':\n newUrl = newUrl.replaceAll(`{${param.name}}`, () => encodeURIComponent(text))\n break\n case 'cookie':\n newCookies.push({ name: param.name, value: text })\n break\n }\n continue\n }\n const paramValue = getParameterValue(param, example, defaultDisabled)\n if (paramValue === undefined) {\n continue\n }\n\n const { style, explode } = getParameterStyleAndExplode(param)\n\n switch (param.in) {\n case 'path': {\n const allowReserved = openapiVersion?.startsWith('3.2.') && 'schema' in param && param.allowReserved === true\n hasReservedPathParameter ||= Boolean(allowReserved)\n const pathValue = allowReserved\n ? serializeReservedPathParameter(param.name, { value: paramValue, style, explode })\n : undefined\n newUrl =\n pathValue === undefined\n ? processPathParameters(newUrl, param, paramValue, style, explode)\n : newUrl.replaceAll(`{${param.name}}`, () => pathValue)\n break\n }\n\n case 'query': {\n // Content type parameters should be serialized according to the parameter's own content type\n if ('content' in param && param.content) {\n // We grab the first for now but eventually we should support selecting the content type per parameter\n const paramContentType = Object.keys(param.content)[0] ?? 'application/json'\n const serializedValue = serializeContentValue(paramValue, paramContentType)\n appendQueryParameter(param.name, serializedValue, param)\n break\n }\n\n // Handle query parameters\n switch (style) {\n case 'form': {\n const serialized = serializeFormStyle(paramValue, explode)\n\n // If serialized is an array of key-value pairs (exploded object or array)\n if (Array.isArray(serialized)) {\n for (const entry of serialized) {\n const key = entry.key || param.name\n appendQueryParameter(key, String(entry.value), param)\n }\n }\n // Otherwise, convert to string\n else {\n appendQueryParameter(param.name, String(serialized), param)\n }\n break\n }\n case 'spaceDelimited': {\n const serialized = serializeSpaceDelimitedStyle(paramValue)\n appendQueryParameter(param.name, serialized, param)\n break\n }\n case 'pipeDelimited': {\n const serialized = serializePipeDelimitedStyle(paramValue)\n appendQueryParameter(param.name, serialized, param)\n break\n }\n case 'deepObject': {\n // OAS marks deepObject-on-array and deepObject+explode:false as undefined.\n // Mirror process-body: fall back to form/explode:true for arrays and always\n // invoke the serializer for objects so authors get useful output instead of\n // a silently-dropped parameter.\n if (Array.isArray(paramValue)) {\n const serialized = serializeFormStyle(paramValue, true)\n if (Array.isArray(serialized)) {\n for (const entry of serialized) {\n const key = entry.key || param.name\n appendQueryParameter(key, String(entry.value), param)\n }\n } else {\n appendQueryParameter(param.name, String(serialized), param)\n }\n } else {\n const entries = serializeDeepObjectStyle(param.name, paramValue)\n for (const entry of entries) {\n appendQueryParameter(entry.key, entry.value, param)\n }\n }\n break\n }\n\n // Default to form style\n default:\n appendQueryParameter(param.name, String(paramValue), param)\n }\n break\n }\n\n // Headers only support 'simple' style according to OpenAPI 3.1.1\n // For arrays, simple style always produces comma-separated values regardless of explode\n // The explode parameter only affects object serialization\n case 'header': {\n const serialized = serializeSimpleStyle(paramValue, explode)\n newHeaders.push({ name: param.name, value: String(serialized) })\n break\n }\n\n // Keep cookie style separate so snippet generators cannot percent-encode it.\n case 'cookie': {\n const [major, minor] = (openapiVersion ?? '').split('.')\n const error =\n major === '3' && minor === '2' && !('content' in param)\n ? getCookieSerializationError(param, paramValue)\n : undefined\n if (error) {\n throw new CookieSerializationError(error)\n }\n if (style === 'cookie') {\n cookieStyleEntries.push(...serializeCookieStyle(param.name, paramValue, explode))\n break\n }\n const serialized = serializeFormStyleForCookies(paramValue, explode)\n\n // If serialized is an array of key-value pairs (exploded object or array)\n if (Array.isArray(serialized)) {\n for (const entry of serialized) {\n const key = entry.key || param.name\n const value = entry.value === null ? 'null' : String(entry.value)\n newCookies.push({ name: key, value })\n }\n }\n // Otherwise, convert to string\n else {\n const value = serialized === null ? 'null' : String(serialized)\n newCookies.push({ name: param.name, value })\n }\n break\n }\n }\n }\n\n // HAR cookie entries are encoded by snippet generators. Use a complete header\n // when cookie style is present, preserving legacy encoding for other cookies.\n if (cookieStyleEntries.length || serializedCookies.length) {\n const cookieValue = [\n ...newCookies.map((cookie) => `${encodeURIComponent(cookie.name)}=${encodeURIComponent(cookie.value)}`),\n ...cookieStyleEntries.map((cookie) => `${cookie.name}=${cookie.value}`),\n ...serializedCookies,\n ].join('; ')\n const existing = newHeaders.find((header) => header.name.toLowerCase() === 'cookie')\n if (existing) {\n newHeaders.splice(newHeaders.indexOf(existing), 1, {\n ...existing,\n value: existing.value ? `${existing.value}; ${cookieValue}` : cookieValue,\n })\n } else {\n newHeaders.push({ name: 'Cookie', value: cookieValue })\n }\n }\n\n if (serializedQuery.length) {\n const hashIndex = newUrl.indexOf('#')\n const hash = hashIndex < 0 ? '' : newUrl.slice(hashIndex)\n const base = hashIndex < 0 ? newUrl : newUrl.slice(0, hashIndex)\n newUrl = `${base}${base.includes('?') ? '&' : '?'}${serializedQuery.join('&')}${hash}`\n }\n\n if (hasReservedPathParameter) {\n assertReservedPathUrl(newUrl)\n }\n\n return {\n url: newUrl,\n headers: newHeaders,\n queryString: newQueryString,\n cookies: cookieStyleEntries.length || serializedCookies.length ? [] : newCookies,\n hasCookieStyleEntries: cookieStyleEntries.length > 0 || serializedCookies.length > 0,\n ...(serializedQuery.length ? { hasSerializedQuery: true } : {}),\n }\n}\n\n/**\n * Process path parameters according to OpenAPI specification.\n * Handles matrix, label, and simple styles with explode options.\n *\n * @param url - The URL to process\n * @param param - The parameter object\n * @param paramValue - The value of the parameter\n * @param style - The style of the parameter (matrix, label, simple)\n * @param explode - Whether to explode the parameter\n * @returns The updated URL with processed path parameters\n */\nconst processPathParameters = (\n url: string,\n param: ParameterObject,\n paramValue: unknown,\n style: string,\n explode: boolean,\n): string => {\n switch (style) {\n case 'matrix': {\n if (explode) {\n // Matrix explode array: ;color=blue;color=black;color=brown\n if (Array.isArray(paramValue)) {\n const values = paramValue.map((v: unknown) => `${param.name}=${v}`).join(';')\n return url.replace(`{;${param.name}}`, `;${values}`)\n }\n\n // Matrix explode object: ;R=100;G=200;B=150\n if (isObjectLike(paramValue)) {\n const values = Object.entries(paramValue)\n .map(([k, v]) => `${k}=${v}`)\n .join(';')\n return url.replace(`{;${param.name}}`, `;${values}`)\n }\n\n // Matrix explode primitive: ;color=blue\n return url.replace(`{;${param.name}}`, `;${param.name}=${paramValue}`)\n }\n\n // Matrix no explode array: ;color=blue,black,brown\n if (Array.isArray(paramValue)) {\n return url.replace(`{;${param.name}}`, `;${param.name}=${paramValue.join(',')}`)\n }\n\n // Matrix no explode object: ;color=R,100,G,200,B,150\n if (isObjectLike(paramValue)) {\n const values = Object.entries(paramValue)\n .map(([k, v]) => `${k},${v}`)\n .join(',')\n return url.replace(`{;${param.name}}`, `;${param.name}=${values}`)\n }\n\n // Matrix no explode primitive: ;color=blue\n return url.replace(`{;${param.name}}`, `;${param.name}=${paramValue}`)\n }\n case 'label': {\n if (explode) {\n // Label explode array: .blue.black.brown\n if (Array.isArray(paramValue)) {\n return url.replace(`{.${param.name}}`, `.${paramValue.join('.')}`)\n }\n\n // Label explode object: .R=100.G=200.B=150\n if (isObjectLike(paramValue)) {\n const values = Object.entries(paramValue)\n .map(([k, v]) => `${k}=${v}`)\n .join('.')\n\n return url.replace(`{.${param.name}}`, `.${values}`)\n }\n\n // Label explode primitive: .blue\n return url.replace(`{.${param.name}}`, `.${paramValue}`)\n }\n\n // Label no explode array: .blue,black,brown\n if (Array.isArray(paramValue)) {\n return url.replace(`{.${param.name}}`, `.${paramValue.join(',')}`)\n }\n\n // Label no explode object: .R,100,G,200,B,150\n if (isObjectLike(paramValue)) {\n const values = Object.entries(paramValue)\n .map(([k, v]) => `${k},${v}`)\n .join(',')\n\n return url.replace(`{.${param.name}}`, `.${values}`)\n }\n\n // Label no explode primitive: .blue\n return url.replace(`{.${param.name}}`, `.${paramValue}`)\n }\n\n case 'simple': {\n const serialized = serializeSimpleStyle(paramValue, explode)\n return url.replace(`{${param.name}}`, String(serialized))\n }\n\n // Default to simple style\n default:\n return url.replace(`{${param.name}}`, String(paramValue))\n }\n}\n"],"mappings":";;;;;;;;AA6BA,IAAa,IAAb,cAA8C,MAAM,CAAC,GAc/C,KAAqB,OACxB,KAAU,CAAC,EAAA,CAAG,KAAK,MAAU,EAAe,CAAK,CAAC,CAAC,CAAC,QAAQ,MAAU,MAAU,KAAA,CAAS,GAGtF,KAAmB,MACnB,mBAAmB,KAAS,EAAM,kBAAkB,KAAA,IAC/C,EAAM,gBAEX,YAAY,KAAS,EAAM,UAAU,OAAO,EAAM,UAAW,YAAY,mBAAmB,EAAM,SAC5F,EAAM,OAAuC,kBAAkB,KAElE,IAOH,KAA+B,MAAgE;CAEnG,IAAI,EAAM,OAAO,UAEf,OAAO;EAAE,OAAO;EAAU,SADV,aAAa,KAAS,EAAM,YAAY,KAAA,KAAY,EAAM;CACxC;CAIpC,IAAI,EAAM,OAAO,UAAU;EACzB,IAAM,IAAU,aAAa,KAAS,EAAM,YAAY,KAAA,IAAY,EAAM,UAAU;EACpF,OAAO;GAAE,OAAO,WAAW,KAAS,EAAM,UAAU,WAAW,WAAW;GAAQ;EAAQ;CAC5F;CAEA,IAAM,IAAe;EACnB,MAAM;EACN,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ;CACV,EAAE,EAAM,KAGF,IAAQ,WAAW,KAAS,EAAM,QAAQ,EAAM,QAAQ;CAK9D,OAAO;EAAE;EAAO,SAFA,aAAa,KAAS,EAAM,YAAY,KAAA,IAAY,EAAM,UAAU,MAAU;CAEtE;AAC1B,GAOM,KAAqB,GAAwB,GAA6B,MAAsC;CAEpH,IAAM,IAAW,EAAoB,GAAO,CAAO,GAC7C,IAAe,EAAS;CAG9B,IAAI,EAAgB,GAAO,GAAc,CAAe,GACtD;CAIF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EAAI,QAAQ,IAAI,EAAM,KAAK,IAAI,OAAO,CAAU,CAAC;EAC1D;EAGA,SACE,OAAO,EAAI,QAAQ,IAAI,EAAM,KAAK,IAAI,OAAO,CAAU,CAAC;CAC5D;AACF"}
|
package/dist/constants.js
CHANGED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare var __VLS_1: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=LinkButton.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LinkButton.vue.d.ts","sourceRoot":"","sources":["../../src/schema/LinkButton.vue"],"names":[],"mappings":"AA4BA,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;AAG/C,QAAA,MAAM,UAAU,+QACd,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,15 @@
|
|
|
1
|
+
import e from "../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
+
import { createElementBlock as t, openBlock as n, renderSlot as r } from "vue";
|
|
3
|
+
//#region src/schema/LinkButton.vue
|
|
4
|
+
var i = {}, a = {
|
|
5
|
+
class: "text-c-2 hover:text-c-1 underline",
|
|
6
|
+
type: "button"
|
|
7
|
+
};
|
|
8
|
+
function o(e, i) {
|
|
9
|
+
return n(), t("button", a, [r(e.$slots, "default")]);
|
|
10
|
+
}
|
|
11
|
+
var s = /*#__PURE__*/ e(i, [["render", o]]);
|
|
12
|
+
//#endregion
|
|
13
|
+
export { s as default };
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=LinkButton.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LinkButton.vue.js","names":[],"sources":["../../src/schema/LinkButton.vue"],"sourcesContent":["<template>\n <button\n class=\"text-c-2 hover:text-c-1 underline\"\n type=\"button\">\n <slot />\n </button>\n</template>\n"],"mappings":";;;;CAEI,OAAM;CACN,MAAK;;;aAFP,EAIS,UAJT,GAIS,CADP,EAAQ,EAAA,QAAA,SAAA,CAAA,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
value: any;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_export: 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>;
|
|
5
|
+
declare const _default: typeof __VLS_export;
|
|
6
|
+
export default _default;
|
|
7
|
+
//# sourceMappingURL=RenderString.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RenderString.vue.d.ts","sourceRoot":"","sources":["../../src/schema/RenderString.vue"],"names":[],"mappings":"AA+DA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,GAAG,CAAA;CACX,CAAC;AAyCF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RenderString.vue.js","names":[],"sources":["../../src/schema/RenderString.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * Give this component any data, and it tries to render a meaningful string.\n *\n * @example\n * <RenderString :value=\"1\" /> => \"1\"\n * <RenderString :value=\"true\" /> => \"true\"\n * <RenderString :value=\"false\" /> => \"false\"\n * <RenderString :value=\"null\" /> => \"null\"\n * <RenderString :value=\"undefined\" /> => \"undefined\"\n * <RenderString :value=\"{}\" /> => \"{}\"\n * <RenderString :value=\"[]\" /> => \"[]\"\n * <RenderString :value=\"['a', 'b', 'c']\" /> => \"['a', 'b', 'c']\"\n * <RenderString :value=\"() => 'hello'\" /> => \"() => 'hello'\"\n * <RenderString :value=\"Symbol('test')\" /> => \"Symbol(test)\"\n **/\nimport { computed } from 'vue'\n\nconst { value } = defineProps<{\n value: any\n}>()\n\nconst valueAsString = computed(() => {\n if (value === '') {\n return `''`\n }\n\n if (value === null) {\n return 'null'\n }\n\n if (value === undefined) {\n return 'undefined'\n }\n\n // We don't need to cover all cases, Vue does a good job of rendering objects, arrays and functions.\n return value\n})\n</script>\n\n<template>\n {{ valueAsString }}\n</template>\n"],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { computed as e, defineComponent as t, toDisplayString as n } from "vue";
|
|
2
|
+
//#region src/schema/RenderString.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
+
var r = /*@__PURE__*/ t({
|
|
4
|
+
__name: "RenderString",
|
|
5
|
+
props: { value: {} },
|
|
6
|
+
setup(t) {
|
|
7
|
+
let r = e(() => t.value === "" ? "''" : t.value === null ? "null" : t.value === void 0 ? "undefined" : t.value);
|
|
8
|
+
return (e, t) => n(r.value);
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
//#endregion
|
|
12
|
+
export { r as default };
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=RenderString.vue.script.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RenderString.vue.script.js","names":[],"sources":["../../src/schema/RenderString.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * Give this component any data, and it tries to render a meaningful string.\n *\n * @example\n * <RenderString :value=\"1\" /> => \"1\"\n * <RenderString :value=\"true\" /> => \"true\"\n * <RenderString :value=\"false\" /> => \"false\"\n * <RenderString :value=\"null\" /> => \"null\"\n * <RenderString :value=\"undefined\" /> => \"undefined\"\n * <RenderString :value=\"{}\" /> => \"{}\"\n * <RenderString :value=\"[]\" /> => \"[]\"\n * <RenderString :value=\"['a', 'b', 'c']\" /> => \"['a', 'b', 'c']\"\n * <RenderString :value=\"() => 'hello'\" /> => \"() => 'hello'\"\n * <RenderString :value=\"Symbol('test')\" /> => \"Symbol(test)\"\n **/\nimport { computed } from 'vue'\n\nconst { value } = defineProps<{\n value: any\n}>()\n\nconst valueAsString = computed(() => {\n if (value === '') {\n return `''`\n }\n\n if (value === null) {\n return 'null'\n }\n\n if (value === undefined) {\n return 'undefined'\n }\n\n // We don't need to cover all cases, Vue does a good job of rendering objects, arrays and functions.\n return value\n})\n</script>\n\n<template>\n {{ valueAsString }}\n</template>\n"],"mappings":";;;;;;EAsBA,IAAM,IAAgB,QAChB,EAAA,UAAU,KACL,OAGL,EAAA,UAAU,OACL,SAGL,EAAA,UAAU,KAAA,IACL,cAIF,EAAA,KACR;qBAII,EAAA,KAAa"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
2
|
+
import type { DiscriminatorObject, SchemaObject } from '@scalar/workspace-store/schemas/v3.2/strict/openapi-document';
|
|
3
|
+
import type { SchemaOptions, SchemaRenderingProps } from './types';
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
schema?: SchemaObject;
|
|
6
|
+
/** Track how deep we've gone */
|
|
7
|
+
level?: number;
|
|
8
|
+
/**
|
|
9
|
+
* Real nesting depth. Not derived from `level`, whose stride differs per
|
|
10
|
+
* edge (object +2, composition +1, non-object root +0).
|
|
11
|
+
*/
|
|
12
|
+
depth?: number;
|
|
13
|
+
name?: string;
|
|
14
|
+
/** A tighter layout with less borders and without a heading */
|
|
15
|
+
compact?: boolean;
|
|
16
|
+
/** Shows a toggle to hide/show children */
|
|
17
|
+
noncollapsible?: boolean;
|
|
18
|
+
/** Hide the heading */
|
|
19
|
+
hideHeading?: boolean;
|
|
20
|
+
/** Hide the schema description */
|
|
21
|
+
hideDescription?: boolean;
|
|
22
|
+
/** Show a special one way toggle for additional properties, also has a top border when open */
|
|
23
|
+
additionalProperties?: boolean;
|
|
24
|
+
/** Number of request body properties hidden behind the overflow control. */
|
|
25
|
+
additionalPropertyCount?: number;
|
|
26
|
+
/** Hide model names in type display */
|
|
27
|
+
hideModelNames?: boolean;
|
|
28
|
+
/** Discriminator object */
|
|
29
|
+
discriminator?: DiscriminatorObject;
|
|
30
|
+
/** Breadcrumb for the schema */
|
|
31
|
+
breadcrumb?: string[];
|
|
32
|
+
/** Event bus emitting actions */
|
|
33
|
+
eventBus: WorkspaceEventBus | null;
|
|
34
|
+
/** Move the options into a single prop so they are easy to pass around */
|
|
35
|
+
options: SchemaOptions;
|
|
36
|
+
/** When "requestBody", composition dropdown selection is synced with the example snippet */
|
|
37
|
+
schemaContext?: string;
|
|
38
|
+
/** Internal path used to sync nested request body compositions with the code sample */
|
|
39
|
+
compositionPath?: string[];
|
|
40
|
+
/**
|
|
41
|
+
* Stable identity of this schema node, derived from its raw (unresolved)
|
|
42
|
+
* value by the parent. Used to detect self-referential cycles. See
|
|
43
|
+
* {@link getCycleKey}.
|
|
44
|
+
*/
|
|
45
|
+
cycleKey?: unknown;
|
|
46
|
+
} & SchemaRenderingProps;
|
|
47
|
+
declare const __VLS_export: 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>;
|
|
48
|
+
declare const _default: typeof __VLS_export;
|
|
49
|
+
export default _default;
|
|
50
|
+
//# sourceMappingURL=Schema.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Schema.vue.d.ts","sourceRoot":"","sources":["../../src/schema/Schema.vue"],"names":[],"mappings":"AAqqBA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAGvE,OAAO,KAAK,EACV,mBAAmB,EACnB,YAAY,EACb,MAAM,8DAA8D,CAAA;AA4BrE,OAAO,KAAK,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAElE,KAAK,WAAW,GAAG;IACf,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,+DAA+D;IAC/D,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,2CAA2C;IAC3C,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,uBAAuB;IACvB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,kCAAkC;IAClC,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,+FAA+F;IAC/F,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,4EAA4E;IAC5E,uBAAuB,CAAC,EAAE,MAAM,CAAA;IAChC,uCAAuC;IACvC,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,2BA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