@scalar/api-reference 1.28.4 → 1.28.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (139) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/dist/browser/standalone.js +6206 -6147
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  5. package/dist/components/ApiReferenceLayout.vue.js +2 -2
  6. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
  7. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +2 -2
  8. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  9. package/dist/components/Content/Content.vue.js +2 -2
  10. package/dist/components/Content/Content.vue2.js +57 -55
  11. package/dist/components/Content/Introduction/Description.vue.d.ts.map +1 -1
  12. package/dist/components/Content/Introduction/Description.vue.js +2 -2
  13. package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
  14. package/dist/components/Content/Introduction/Introduction.vue.js +2 -2
  15. package/dist/components/Content/Introduction/Introduction.vue2.js +24 -24
  16. package/dist/components/Content/Lazy/Lazy.vue.d.ts.map +1 -1
  17. package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
  18. package/dist/components/Content/Lazy/Loading.vue.js +4 -2
  19. package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
  20. package/dist/components/Content/Models/Models.vue.js +2 -2
  21. package/dist/components/Content/Models/Models.vue2.js +18 -17
  22. package/dist/components/Content/Schema/Schema.vue.d.ts +1 -0
  23. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  24. package/dist/components/Content/Schema/Schema.vue.js +4 -4
  25. package/dist/components/Content/Schema/Schema.vue2.js +79 -67
  26. package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts +12 -0
  27. package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts.map +1 -0
  28. package/dist/components/Content/Schema/SchemaDiscriminator.vue.js +7 -0
  29. package/dist/components/Content/Schema/SchemaDiscriminator.vue2.js +109 -0
  30. package/dist/components/Content/Schema/SchemaHeading.vue.d.ts.map +1 -1
  31. package/dist/components/Content/Schema/SchemaHeading.vue.js +2 -2
  32. package/dist/components/Content/Schema/SchemaHeading.vue2.js +26 -31
  33. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +3 -0
  34. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  35. package/dist/components/Content/Schema/SchemaProperty.vue.js +1 -1
  36. package/dist/components/Content/Schema/SchemaProperty.vue2.js +143 -141
  37. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  38. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +1 -1
  39. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +83 -99
  40. package/dist/components/Content/Tag/OperationsList.vue.js +2 -2
  41. package/dist/components/Content/Tag/OperationsList.vue2.js +3 -3
  42. package/dist/components/Content/Tag/Tag.vue.d.ts.map +1 -1
  43. package/dist/components/Content/Tag/Tag.vue.js +41 -36
  44. package/dist/components/Content/Tag/TagList.vue.d.ts +2 -0
  45. package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
  46. package/dist/components/Content/Tag/TagList.vue.js +38 -36
  47. package/dist/components/Content/Tag/TagSection.vue.js +2 -2
  48. package/dist/components/Content/Tag/TagSection.vue2.js +3 -3
  49. package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
  50. package/dist/components/Layouts/ModernLayout.vue.d.ts.map +1 -1
  51. package/dist/components/Layouts/ModernLayout.vue.js +1 -1
  52. package/dist/components/Section/CompactSection.vue.d.ts.map +1 -1
  53. package/dist/components/Section/CompactSection.vue.js +2 -2
  54. package/dist/components/Section/Section.vue.d.ts.map +1 -1
  55. package/dist/components/Section/Section.vue.js +2 -2
  56. package/dist/components/Section/SectionHeaderTag.vue.d.ts.map +1 -1
  57. package/dist/components/Section/SectionHeaderTag.vue.js +2 -2
  58. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  59. package/dist/components/Sidebar/Sidebar.vue.js +2 -2
  60. package/dist/components/Sidebar/Sidebar.vue2.js +2 -1
  61. package/dist/components/Sidebar/SidebarElement.vue.d.ts.map +1 -1
  62. package/dist/components/Sidebar/SidebarElement.vue.js +1 -1
  63. package/dist/components/Sidebar/SidebarElement.vue2.js +2 -1
  64. package/dist/esm.d.ts.map +1 -1
  65. package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -1
  66. package/dist/features/ApiClientModal/useApiClient.d.ts +2 -4
  67. package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
  68. package/dist/features/BaseUrl/BaseUrl.vue.d.ts.map +1 -1
  69. package/dist/features/BaseUrl/BaseUrl.vue.js +2 -1
  70. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
  71. package/dist/features/ExampleRequest/ExampleRequest.vue.js +1 -1
  72. package/dist/features/ExampleRequest/ExampleRequest.vue2.js +2 -1
  73. package/dist/features/ExampleResponses/ExampleResponses.vue.d.ts.map +1 -1
  74. package/dist/features/ExampleResponses/ExampleResponses.vue.js +3 -3
  75. package/dist/features/ExampleResponses/ExampleResponses.vue2.js +6 -8
  76. package/dist/features/Operation/Operation.vue.d.ts +2 -0
  77. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  78. package/dist/features/Operation/Operation.vue.js +13 -10
  79. package/dist/features/Operation/Webhooks.vue.d.ts.map +1 -1
  80. package/dist/features/Operation/Webhooks.vue.js +2 -2
  81. package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts.map +1 -1
  82. package/dist/features/Operation/components/ContentTypeSelect.vue.js +4 -4
  83. package/dist/features/Operation/components/OperationParameters.vue.d.ts +2 -0
  84. package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
  85. package/dist/features/Operation/components/OperationParameters.vue.js +37 -31
  86. package/dist/features/Operation/components/OperationResponses.vue.d.ts +2 -0
  87. package/dist/features/Operation/components/OperationResponses.vue.d.ts.map +1 -1
  88. package/dist/features/Operation/components/OperationResponses.vue.js +15 -13
  89. package/dist/features/Operation/components/ParameterList.vue.d.ts +2 -0
  90. package/dist/features/Operation/components/ParameterList.vue.d.ts.map +1 -1
  91. package/dist/features/Operation/components/ParameterList.vue.js +2 -2
  92. package/dist/features/Operation/components/ParameterList.vue2.js +14 -12
  93. package/dist/features/Operation/components/ParameterListItem.vue.d.ts +2 -0
  94. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
  95. package/dist/features/Operation/components/ParameterListItem.vue.js +2 -2
  96. package/dist/features/Operation/components/ParameterListItem.vue2.js +20 -18
  97. package/dist/features/Operation/components/RequestBody.vue.d.ts +2 -0
  98. package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
  99. package/dist/features/Operation/components/RequestBody.vue.js +2 -2
  100. package/dist/features/Operation/components/RequestBody.vue2.js +20 -18
  101. package/dist/features/Operation/hooks/useResponses.d.ts.map +1 -1
  102. package/dist/features/Operation/hooks/useResponses.js +2 -1
  103. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +2 -0
  104. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  105. package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
  106. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +29 -24
  107. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +2 -0
  108. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  109. package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
  110. package/dist/features/Operation/layouts/ModernLayout.vue2.js +66 -56
  111. package/dist/features/Search/SearchModal.vue.d.ts.map +1 -1
  112. package/dist/features/Search/SearchModal.vue.js +2 -2
  113. package/dist/features/Search/SearchModal.vue2.js +2 -1
  114. package/dist/helpers/index.d.ts +4 -4
  115. package/dist/helpers/scrollToId.d.ts.map +1 -1
  116. package/dist/helpers/specHelpers.js +15 -14
  117. package/dist/hooks/index.d.ts +2 -2
  118. package/dist/hooks/useMultipleDocuments.d.ts +1 -0
  119. package/dist/hooks/useMultipleDocuments.d.ts.map +1 -1
  120. package/dist/hooks/useNavState.d.ts.map +1 -1
  121. package/dist/hooks/useNavState.js +2 -1
  122. package/dist/hooks/useReactiveSpec.d.ts.map +1 -1
  123. package/dist/hooks/useSidebar.d.ts.map +1 -1
  124. package/dist/hooks/useSidebar.js +3 -2
  125. package/dist/index.d.ts +6 -4
  126. package/dist/index.d.ts.map +1 -1
  127. package/dist/index.js +39 -76
  128. package/dist/libs/operation.d.ts.map +1 -1
  129. package/dist/standalone/lib/html-api.d.ts +4 -4
  130. package/dist/standalone/lib/html-api.d.ts.map +1 -1
  131. package/dist/stores/useHttpClientStore.d.ts.map +1 -1
  132. package/dist/style.css +1 -1
  133. package/package.json +10 -9
  134. package/dist/helpers/getVariableNames.js +0 -7
  135. package/dist/helpers/hasSecuritySchemes.js +0 -7
  136. package/dist/helpers/mapFromObject.js +0 -7
  137. package/dist/helpers/mergeAllObjects.js +0 -7
  138. package/dist/hooks/useClientStore.js +0 -5
  139. package/dist/hooks/useRefOnMount.js +0 -10
@@ -1 +1 @@
1
- {"version":3,"file":"operation.d.ts","sourceRoot":"","sources":["../../src/libs/operation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAA;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAEvD;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,YAAY,GAAG,oBAAoB,CAAC,GAAG,OAAO,CAI9G;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,YAAY,GAAG,oBAAoB,CAAC,GAC9D,gBAAgB,GAAG,SAAS,CAG9B;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,YAAY,GAAG,oBAAoB,CAAC,GAAG,MAAM,CAMlH"}
1
+ {"version":3,"file":"operation.d.ts","sourceRoot":"","sources":["../../src/libs/operation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAA;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAEvD;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,YAAY,GAAG,oBAAoB,CAAC,GAAG,OAAO,CAQ9G;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,YAAY,GAAG,oBAAoB,CAAC,GAC9D,gBAAgB,GAAG,SAAS,CAK9B;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,YAAY,GAAG,oBAAoB,CAAC,GAAG,MAAM,CAYlH"}
@@ -28,11 +28,11 @@ export type CreateApiReference = {
28
28
  (elementOrSelector: Element | string, configuration: MultiReferenceConfiguration): ApiReferenceInstance;
29
29
  };
30
30
  /**
31
- * Create and mount a new Scalar API Reference
31
+ * Create (and mount) a new Scalar API Reference
32
32
  *
33
- * @example createApiReference({ spec: { url: '/scalar.json' } })
34
- * @example createApiReference('#api-reference', { spec: { url: '/scalar.json' } })
35
- * @example createApiReference(document.body, { spec: { url: '/scalar.json' } })
33
+ * @example createApiReference({ url: '/scalar.json' }).mount('#app')
34
+ * @example createApiReference('#app', { url: '/scalar.json' })
35
+ * @example createApiReference(document.getElementById('app'), { url: '/scalar.json' })
36
36
  *
37
37
  */
38
38
  export declare const createApiReference: CreateApiReference;
@@ -1 +1 @@
1
- {"version":3,"file":"html-api.d.ts","sourceRoot":"","sources":["../../../src/standalone/lib/html-api.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,yBAAyB,EAE9B,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