@scalar/blocks 0.11.1 → 0.11.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (325) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/dist/code-example/components/AsyncApiCodeExample.vue.js +111 -6
  3. package/dist/code-example/components/AsyncApiCodeExample.vue.js.map +1 -1
  4. package/dist/code-example/components/AsyncApiCodeExample3.vue.js +8 -0
  5. package/dist/code-example/components/AsyncApiCodeExample3.vue.js.map +1 -0
  6. package/dist/code-example/components/CodeExample.vue.d.ts +10 -0
  7. package/dist/code-example/components/CodeExample.vue.d.ts.map +1 -1
  8. package/dist/code-example/components/CodeExample.vue.js +297 -6
  9. package/dist/code-example/components/CodeExample.vue.js.map +1 -1
  10. package/dist/code-example/components/CodeExample3.vue.js +8 -0
  11. package/dist/code-example/components/CodeExample3.vue.js.map +1 -0
  12. package/dist/code-example/components/ExamplePicker.vue.d.ts +2 -0
  13. package/dist/code-example/components/ExamplePicker.vue.d.ts.map +1 -1
  14. package/dist/code-example/components/ExamplePicker.vue.js +50 -4
  15. package/dist/code-example/components/ExamplePicker.vue.js.map +1 -1
  16. package/dist/code-example/components/ExamplePicker2.vue.js +6 -0
  17. package/dist/code-example/components/ExamplePicker2.vue.js.map +1 -0
  18. package/dist/code-example/components/HttpMethod.vue.js +32 -4
  19. package/dist/code-example/components/HttpMethod.vue.js.map +1 -1
  20. package/dist/code-example/components/HttpMethod2.vue.js +6 -0
  21. package/dist/code-example/components/HttpMethod2.vue.js.map +1 -0
  22. package/dist/code-example/helpers/filter-clients-by-query.js.map +1 -1
  23. package/dist/code-example/helpers/find-client.js.map +1 -1
  24. package/dist/code-example/helpers/format-language.js.map +1 -1
  25. package/dist/code-example/helpers/generate-client-options.js.map +1 -1
  26. package/dist/code-example/helpers/generate-code-snippet.d.ts +8 -2
  27. package/dist/code-example/helpers/generate-code-snippet.d.ts.map +1 -1
  28. package/dist/code-example/helpers/generate-code-snippet.js +57 -27
  29. package/dist/code-example/helpers/generate-code-snippet.js.map +1 -1
  30. package/dist/code-example/helpers/get-asyncapi-example-context.js.map +1 -1
  31. package/dist/code-example/helpers/get-clients.js.map +1 -1
  32. package/dist/code-example/helpers/get-custom-code-samples.js.map +1 -1
  33. package/dist/code-example/helpers/get-generated-payload-example.js.map +1 -1
  34. package/dist/code-example/helpers/get-message-example-content.js.map +1 -1
  35. package/dist/code-example/helpers/get-secrets.js.map +1 -1
  36. package/dist/code-example/helpers/get-snippet.d.ts +2 -2
  37. package/dist/code-example/helpers/get-snippet.d.ts.map +1 -1
  38. package/dist/code-example/helpers/get-snippet.js +7 -9
  39. package/dist/code-example/helpers/get-snippet.js.map +1 -1
  40. package/dist/code-example/helpers/operation-to-har/operation-to-har.d.ts +1 -1
  41. package/dist/code-example/helpers/operation-to-har/operation-to-har.d.ts.map +1 -1
  42. package/dist/code-example/helpers/operation-to-har/operation-to-har.js +1 -1
  43. package/dist/code-example/helpers/operation-to-har/operation-to-har.js.map +1 -1
  44. package/dist/code-example/helpers/operation-to-har/process-body.d.ts +2 -2
  45. package/dist/code-example/helpers/operation-to-har/process-body.d.ts.map +1 -1
  46. package/dist/code-example/helpers/operation-to-har/process-body.js +102 -81
  47. package/dist/code-example/helpers/operation-to-har/process-body.js.map +1 -1
  48. package/dist/code-example/helpers/operation-to-har/process-parameters.d.ts.map +1 -1
  49. package/dist/code-example/helpers/operation-to-har/process-parameters.js +110 -108
  50. package/dist/code-example/helpers/operation-to-har/process-parameters.js.map +1 -1
  51. package/dist/code-example/helpers/operation-to-har/process-security-schemes.js +6 -6
  52. package/dist/code-example/helpers/operation-to-har/process-security-schemes.js.map +1 -1
  53. package/dist/code-example/helpers/operation-to-har/process-server-url.js.map +1 -1
  54. package/dist/code-example/index.d.ts +1 -1
  55. package/dist/code-example/index.d.ts.map +1 -1
  56. package/dist/code-example/index.js +14 -14
  57. package/dist/code-example/mount-asyncapi.js +1 -1
  58. package/dist/code-example/mount-asyncapi.js.map +1 -1
  59. package/dist/code-example/mount.js +1 -1
  60. package/dist/code-example/mount.js.map +1 -1
  61. package/dist/constants.js +1 -1
  62. package/dist/schema/LinkButton.vue.js.map +1 -1
  63. package/dist/schema/RenderString.vue.js +11 -4
  64. package/dist/schema/RenderString.vue.js.map +1 -1
  65. package/dist/schema/RenderString2.vue.js +6 -0
  66. package/dist/schema/RenderString2.vue.js.map +1 -0
  67. package/dist/schema/Schema.vue.js +235 -6
  68. package/dist/schema/Schema.vue.js.map +1 -1
  69. package/dist/schema/Schema3.vue.js +8 -0
  70. package/dist/schema/Schema3.vue.js.map +1 -0
  71. package/dist/schema/SchemaCollapsedPreview.vue.js +25 -4
  72. package/dist/schema/SchemaCollapsedPreview.vue.js.map +1 -1
  73. package/dist/schema/SchemaCollapsedPreview2.vue.js +6 -0
  74. package/dist/schema/SchemaCollapsedPreview2.vue.js.map +1 -0
  75. package/dist/schema/SchemaComposition.vue.js +232 -6
  76. package/dist/schema/SchemaComposition.vue.js.map +1 -1
  77. package/dist/schema/SchemaComposition3.vue.js +8 -0
  78. package/dist/schema/SchemaComposition3.vue.js.map +1 -0
  79. package/dist/schema/SchemaEnumPropertyItem.vue.d.ts +1 -0
  80. package/dist/schema/SchemaEnumPropertyItem.vue.d.ts.map +1 -1
  81. package/dist/schema/SchemaEnumPropertyItem.vue.js +23 -4
  82. package/dist/schema/SchemaEnumPropertyItem.vue.js.map +1 -1
  83. package/dist/schema/SchemaEnumPropertyItem2.vue.js +6 -0
  84. package/dist/schema/SchemaEnumPropertyItem2.vue.js.map +1 -0
  85. package/dist/schema/SchemaEnums.vue.d.ts.map +1 -1
  86. package/dist/schema/SchemaEnums.vue.js +74 -6
  87. package/dist/schema/SchemaEnums.vue.js.map +1 -1
  88. package/dist/schema/SchemaEnums3.vue.js +8 -0
  89. package/dist/schema/SchemaEnums3.vue.js.map +1 -0
  90. package/dist/schema/SchemaGlyphPuck.vue.js +27 -4
  91. package/dist/schema/SchemaGlyphPuck.vue.js.map +1 -1
  92. package/dist/schema/SchemaGlyphPuck2.vue.js +6 -0
  93. package/dist/schema/SchemaGlyphPuck2.vue.js.map +1 -0
  94. package/dist/schema/SchemaGutterToggle.vue.js +40 -4
  95. package/dist/schema/SchemaGutterToggle.vue.js.map +1 -1
  96. package/dist/schema/SchemaGutterToggle2.vue.js +6 -0
  97. package/dist/schema/SchemaGutterToggle2.vue.js.map +1 -0
  98. package/dist/schema/SchemaHeading.vue.js +32 -6
  99. package/dist/schema/SchemaHeading.vue.js.map +1 -1
  100. package/dist/schema/SchemaHeading3.vue.js +8 -0
  101. package/dist/schema/SchemaHeading3.vue.js.map +1 -0
  102. package/dist/schema/SchemaObjectExampleCodeBlock.vue.js +42 -4
  103. package/dist/schema/SchemaObjectExampleCodeBlock.vue.js.map +1 -1
  104. package/dist/schema/SchemaObjectExampleCodeBlock2.vue.js +6 -0
  105. package/dist/schema/SchemaObjectExampleCodeBlock2.vue.js.map +1 -0
  106. package/dist/schema/SchemaObjectProperties.vue.js +213 -4
  107. package/dist/schema/SchemaObjectProperties.vue.js.map +1 -1
  108. package/dist/schema/SchemaObjectProperties2.vue.js +6 -0
  109. package/dist/schema/SchemaObjectProperties2.vue.js.map +1 -0
  110. package/dist/schema/SchemaProperty.vue.d.ts +1 -1
  111. package/dist/schema/SchemaProperty.vue.d.ts.map +1 -1
  112. package/dist/schema/SchemaProperty.vue.js +472 -6
  113. package/dist/schema/SchemaProperty.vue.js.map +1 -1
  114. package/dist/schema/SchemaProperty3.vue.js +8 -0
  115. package/dist/schema/SchemaProperty3.vue.js.map +1 -0
  116. package/dist/schema/SchemaPropertyDefault.vue.js +61 -6
  117. package/dist/schema/SchemaPropertyDefault.vue.js.map +1 -1
  118. package/dist/schema/SchemaPropertyDefault3.vue.js +8 -0
  119. package/dist/schema/SchemaPropertyDefault3.vue.js.map +1 -0
  120. package/dist/schema/SchemaPropertyDetail.vue.js +22 -6
  121. package/dist/schema/SchemaPropertyDetail.vue.js.map +1 -1
  122. package/dist/schema/SchemaPropertyDetail3.vue.js +8 -0
  123. package/dist/schema/SchemaPropertyDetail3.vue.js.map +1 -0
  124. package/dist/schema/SchemaPropertyExamples.vue.js +133 -6
  125. package/dist/schema/SchemaPropertyExamples.vue.js.map +1 -1
  126. package/dist/schema/SchemaPropertyExamples3.vue.js +8 -0
  127. package/dist/schema/SchemaPropertyExamples3.vue.js.map +1 -0
  128. package/dist/schema/SchemaPropertyHeading.vue.d.ts +1 -1
  129. package/dist/schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  130. package/dist/schema/SchemaPropertyHeading.vue.js +312 -6
  131. package/dist/schema/SchemaPropertyHeading.vue.js.map +1 -1
  132. package/dist/schema/SchemaPropertyHeading3.vue.js +8 -0
  133. package/dist/schema/SchemaPropertyHeading3.vue.js.map +1 -0
  134. package/dist/schema/SchemaPropertyPattern.vue.js +42 -6
  135. package/dist/schema/SchemaPropertyPattern.vue.js.map +1 -1
  136. package/dist/schema/SchemaPropertyPattern3.vue.js +8 -0
  137. package/dist/schema/SchemaPropertyPattern3.vue.js.map +1 -0
  138. package/dist/schema/SchemaRailPanel.vue.js +53 -4
  139. package/dist/schema/SchemaRailPanel.vue.js.map +1 -1
  140. package/dist/schema/SchemaRailPanel2.vue.js +6 -0
  141. package/dist/schema/SchemaRailPanel2.vue.js.map +1 -0
  142. package/dist/schema/components/CopyLinkButton.vue.d.ts +5 -0
  143. package/dist/schema/components/CopyLinkButton.vue.d.ts.map +1 -1
  144. package/dist/schema/components/CopyLinkButton.vue.js +24 -4
  145. package/dist/schema/components/CopyLinkButton.vue.js.map +1 -1
  146. package/dist/schema/components/CopyLinkButton2.vue.js +6 -0
  147. package/dist/schema/components/CopyLinkButton2.vue.js.map +1 -0
  148. package/dist/schema/components/WithBreadcrumb.vue.js +15 -4
  149. package/dist/schema/components/WithBreadcrumb.vue.js.map +1 -1
  150. package/dist/schema/components/WithBreadcrumb2.vue.js +6 -0
  151. package/dist/schema/components/WithBreadcrumb2.vue.js.map +1 -0
  152. package/dist/schema/helpers/dynamic-scope.js.map +1 -1
  153. package/dist/schema/helpers/format-example.js.map +1 -1
  154. package/dist/schema/helpers/format-structured-value.d.ts +3 -0
  155. package/dist/schema/helpers/format-structured-value.d.ts.map +1 -0
  156. package/dist/schema/helpers/format-structured-value.js +6 -0
  157. package/dist/schema/helpers/format-structured-value.js.map +1 -0
  158. package/dist/schema/helpers/format-value.js.map +1 -1
  159. package/dist/schema/helpers/get-compositions-to-render.js.map +1 -1
  160. package/dist/schema/helpers/get-discriminator-values.js.map +1 -1
  161. package/dist/schema/helpers/get-enum-values.js.map +1 -1
  162. package/dist/schema/helpers/get-property-description.js.map +1 -1
  163. package/dist/schema/helpers/get-ref-name.js.map +1 -1
  164. package/dist/schema/helpers/get-rendered-example.js.map +1 -1
  165. package/dist/schema/helpers/get-schema-type.js.map +1 -1
  166. package/dist/schema/helpers/get-type-signature-tokens.d.ts.map +1 -1
  167. package/dist/schema/helpers/get-type-signature-tokens.js +37 -36
  168. package/dist/schema/helpers/get-type-signature-tokens.js.map +1 -1
  169. package/dist/schema/helpers/has-complex-array-items.js.map +1 -1
  170. package/dist/schema/helpers/is-empty-schema-object.js.map +1 -1
  171. package/dist/schema/helpers/is-model-linkable.js.map +1 -1
  172. package/dist/schema/helpers/is-on-schema-target-path.js.map +1 -1
  173. package/dist/schema/helpers/is-type-object.js.map +1 -1
  174. package/dist/schema/helpers/merge-all-of-schemas.js.map +1 -1
  175. package/dist/schema/helpers/normalize-object-composition.js.map +1 -1
  176. package/dist/schema/helpers/optimize-value-for-display.js.map +1 -1
  177. package/dist/schema/helpers/partition-all-of-compositions.js.map +1 -1
  178. package/dist/schema/helpers/schema-cycle.js.map +1 -1
  179. package/dist/schema/helpers/schema-expansion.js.map +1 -1
  180. package/dist/schema/helpers/schema-keyboard-nav.js.map +1 -1
  181. package/dist/schema/helpers/schema-name.js.map +1 -1
  182. package/dist/schema/helpers/should-display-description.js.map +1 -1
  183. package/dist/schema/helpers/should-display-heading.js.map +1 -1
  184. package/dist/schema/helpers/should-render-array-item-composition.js.map +1 -1
  185. package/dist/schema/helpers/sort-property-names.js.map +1 -1
  186. package/dist/schema/helpers/unwrap-for-read.js.map +1 -1
  187. package/dist/schema/index.js +8 -8
  188. package/dist/schema/localization/index.d.ts +1 -1
  189. package/dist/schema/localization/index.js.map +1 -1
  190. package/dist/schema/localization/translations.js.map +1 -1
  191. package/dist/shared/Badge.vue.js +13 -6
  192. package/dist/shared/Badge.vue.js.map +1 -1
  193. package/dist/shared/Badge3.vue.js +8 -0
  194. package/dist/shared/Badge3.vue.js.map +1 -0
  195. package/dist/shared/ExternalDocs.vue.js +43 -4
  196. package/dist/shared/ExternalDocs.vue.js.map +1 -1
  197. package/dist/shared/ExternalDocs2.vue.js +6 -0
  198. package/dist/shared/ExternalDocs2.vue.js.map +1 -0
  199. package/dist/shared/ExternalExampleStatus.vue.d.ts +12 -0
  200. package/dist/shared/ExternalExampleStatus.vue.d.ts.map +1 -0
  201. package/dist/shared/ExternalExampleStatus.vue.js +26 -0
  202. package/dist/shared/ExternalExampleStatus.vue.js.map +1 -0
  203. package/dist/shared/ExternalExampleStatus2.vue.js +6 -0
  204. package/dist/shared/ExternalExampleStatus2.vue.js.map +1 -0
  205. package/dist/shared/ScreenReader.vue.js +16 -4
  206. package/dist/shared/ScreenReader.vue.js.map +1 -1
  207. package/dist/shared/ScreenReader2.vue.js +6 -0
  208. package/dist/shared/ScreenReader2.vue.js.map +1 -0
  209. package/dist/shared/external-example-localization/index.d.ts +4 -0
  210. package/dist/shared/external-example-localization/index.d.ts.map +1 -0
  211. package/dist/shared/external-example-localization/index.js +17 -0
  212. package/dist/shared/external-example-localization/index.js.map +1 -0
  213. package/dist/shared/external-example-localization/locales/ar.d.ts +8 -0
  214. package/dist/shared/external-example-localization/locales/ar.d.ts.map +1 -0
  215. package/dist/shared/external-example-localization/locales/ar.js +9 -0
  216. package/dist/shared/external-example-localization/locales/ar.js.map +1 -0
  217. package/dist/shared/external-example-localization/locales/de.d.ts +8 -0
  218. package/dist/shared/external-example-localization/locales/de.d.ts.map +1 -0
  219. package/dist/shared/external-example-localization/locales/de.js +9 -0
  220. package/dist/shared/external-example-localization/locales/de.js.map +1 -0
  221. package/dist/shared/external-example-localization/locales/en.d.ts +8 -0
  222. package/dist/shared/external-example-localization/locales/en.d.ts.map +1 -0
  223. package/dist/shared/external-example-localization/locales/en.js +9 -0
  224. package/dist/shared/external-example-localization/locales/en.js.map +1 -0
  225. package/dist/shared/external-example-localization/locales/es.d.ts +8 -0
  226. package/dist/shared/external-example-localization/locales/es.d.ts.map +1 -0
  227. package/dist/shared/external-example-localization/locales/es.js +9 -0
  228. package/dist/shared/external-example-localization/locales/es.js.map +1 -0
  229. package/dist/shared/external-example-localization/locales/fr.d.ts +8 -0
  230. package/dist/shared/external-example-localization/locales/fr.d.ts.map +1 -0
  231. package/dist/shared/external-example-localization/locales/fr.js +9 -0
  232. package/dist/shared/external-example-localization/locales/fr.js.map +1 -0
  233. package/dist/shared/external-example-localization/locales/pt.d.ts +8 -0
  234. package/dist/shared/external-example-localization/locales/pt.d.ts.map +1 -0
  235. package/dist/shared/external-example-localization/locales/pt.js +9 -0
  236. package/dist/shared/external-example-localization/locales/pt.js.map +1 -0
  237. package/dist/shared/external-example-localization/locales/ru.d.ts +8 -0
  238. package/dist/shared/external-example-localization/locales/ru.d.ts.map +1 -0
  239. package/dist/shared/external-example-localization/locales/ru.js +9 -0
  240. package/dist/shared/external-example-localization/locales/ru.js.map +1 -0
  241. package/dist/shared/external-example-localization/locales/zh-cn.d.ts +8 -0
  242. package/dist/shared/external-example-localization/locales/zh-cn.d.ts.map +1 -0
  243. package/dist/shared/external-example-localization/locales/zh-cn.js +9 -0
  244. package/dist/shared/external-example-localization/locales/zh-cn.js.map +1 -0
  245. package/dist/shared/external-example-localization/locales/zh-tw.d.ts +8 -0
  246. package/dist/shared/external-example-localization/locales/zh-tw.d.ts.map +1 -0
  247. package/dist/shared/external-example-localization/locales/zh-tw.js +9 -0
  248. package/dist/shared/external-example-localization/locales/zh-tw.js.map +1 -0
  249. package/dist/shared/external-example-localization/translations.d.ts +67 -0
  250. package/dist/shared/external-example-localization/translations.d.ts.map +1 -0
  251. package/dist/shared/external-example-localization/translations.js +24 -0
  252. package/dist/shared/external-example-localization/translations.js.map +1 -0
  253. package/dist/shared/index.d.ts +3 -0
  254. package/dist/shared/index.d.ts.map +1 -1
  255. package/dist/shared/index.js +6 -4
  256. package/dist/specification-extensions/ExtensionValue.vue.js +89 -4
  257. package/dist/specification-extensions/ExtensionValue.vue.js.map +1 -1
  258. package/dist/specification-extensions/ExtensionValue2.vue.js +6 -0
  259. package/dist/specification-extensions/ExtensionValue2.vue.js.map +1 -0
  260. package/dist/specification-extensions/SpecificationExtensions.vue.js +76 -4
  261. package/dist/specification-extensions/SpecificationExtensions.vue.js.map +1 -1
  262. package/dist/specification-extensions/SpecificationExtensions2.vue.js +6 -0
  263. package/dist/specification-extensions/SpecificationExtensions2.vue.js.map +1 -0
  264. package/dist/specification-extensions/index.js +1 -1
  265. package/dist/style.css +13 -9
  266. package/dist/vue-styles.css +1 -1
  267. package/package.json +18 -18
  268. package/dist/code-example/components/AsyncApiCodeExample.vue_vue_type_script_setup_true_lang.js +0 -113
  269. package/dist/code-example/components/AsyncApiCodeExample.vue_vue_type_script_setup_true_lang.js.map +0 -1
  270. package/dist/code-example/components/CodeExample.vue_vue_type_script_setup_true_lang.js +0 -275
  271. package/dist/code-example/components/CodeExample.vue_vue_type_script_setup_true_lang.js.map +0 -1
  272. package/dist/code-example/components/ExamplePicker.vue_vue_type_script_setup_true_lang.js +0 -48
  273. package/dist/code-example/components/ExamplePicker.vue_vue_type_script_setup_true_lang.js.map +0 -1
  274. package/dist/code-example/components/HttpMethod.vue_vue_type_script_setup_true_lang.js +0 -34
  275. package/dist/code-example/components/HttpMethod.vue_vue_type_script_setup_true_lang.js.map +0 -1
  276. package/dist/schema/RenderString.vue_vue_type_script_setup_true_lang.js +0 -13
  277. package/dist/schema/RenderString.vue_vue_type_script_setup_true_lang.js.map +0 -1
  278. package/dist/schema/Schema.vue_vue_type_script_setup_true_lang.js +0 -237
  279. package/dist/schema/Schema.vue_vue_type_script_setup_true_lang.js.map +0 -1
  280. package/dist/schema/SchemaCollapsedPreview.vue_vue_type_script_setup_true_lang.js +0 -27
  281. package/dist/schema/SchemaCollapsedPreview.vue_vue_type_script_setup_true_lang.js.map +0 -1
  282. package/dist/schema/SchemaComposition.vue_vue_type_script_setup_true_lang.js +0 -234
  283. package/dist/schema/SchemaComposition.vue_vue_type_script_setup_true_lang.js.map +0 -1
  284. package/dist/schema/SchemaEnumPropertyItem.vue_vue_type_script_setup_true_lang.js +0 -23
  285. package/dist/schema/SchemaEnumPropertyItem.vue_vue_type_script_setup_true_lang.js.map +0 -1
  286. package/dist/schema/SchemaEnums.vue_vue_type_script_setup_true_lang.js +0 -77
  287. package/dist/schema/SchemaEnums.vue_vue_type_script_setup_true_lang.js.map +0 -1
  288. package/dist/schema/SchemaGlyphPuck.vue_vue_type_script_setup_true_lang.js +0 -29
  289. package/dist/schema/SchemaGlyphPuck.vue_vue_type_script_setup_true_lang.js.map +0 -1
  290. package/dist/schema/SchemaGutterToggle.vue_vue_type_script_setup_true_lang.js +0 -42
  291. package/dist/schema/SchemaGutterToggle.vue_vue_type_script_setup_true_lang.js.map +0 -1
  292. package/dist/schema/SchemaHeading.vue_vue_type_script_setup_true_lang.js +0 -34
  293. package/dist/schema/SchemaHeading.vue_vue_type_script_setup_true_lang.js.map +0 -1
  294. package/dist/schema/SchemaObjectExampleCodeBlock.vue_vue_type_script_setup_true_lang.js +0 -44
  295. package/dist/schema/SchemaObjectExampleCodeBlock.vue_vue_type_script_setup_true_lang.js.map +0 -1
  296. package/dist/schema/SchemaObjectProperties.vue_vue_type_script_setup_true_lang.js +0 -215
  297. package/dist/schema/SchemaObjectProperties.vue_vue_type_script_setup_true_lang.js.map +0 -1
  298. package/dist/schema/SchemaProperty.vue_vue_type_script_setup_true_lang.js +0 -469
  299. package/dist/schema/SchemaProperty.vue_vue_type_script_setup_true_lang.js.map +0 -1
  300. package/dist/schema/SchemaPropertyDefault.vue_vue_type_script_setup_true_lang.js +0 -63
  301. package/dist/schema/SchemaPropertyDefault.vue_vue_type_script_setup_true_lang.js.map +0 -1
  302. package/dist/schema/SchemaPropertyDetail.vue_vue_type_script_setup_true_lang.js +0 -24
  303. package/dist/schema/SchemaPropertyDetail.vue_vue_type_script_setup_true_lang.js.map +0 -1
  304. package/dist/schema/SchemaPropertyExamples.vue_vue_type_script_setup_true_lang.js +0 -135
  305. package/dist/schema/SchemaPropertyExamples.vue_vue_type_script_setup_true_lang.js.map +0 -1
  306. package/dist/schema/SchemaPropertyHeading.vue_vue_type_script_setup_true_lang.js +0 -314
  307. package/dist/schema/SchemaPropertyHeading.vue_vue_type_script_setup_true_lang.js.map +0 -1
  308. package/dist/schema/SchemaPropertyPattern.vue_vue_type_script_setup_true_lang.js +0 -44
  309. package/dist/schema/SchemaPropertyPattern.vue_vue_type_script_setup_true_lang.js.map +0 -1
  310. package/dist/schema/SchemaRailPanel.vue_vue_type_script_setup_true_lang.js +0 -55
  311. package/dist/schema/SchemaRailPanel.vue_vue_type_script_setup_true_lang.js.map +0 -1
  312. package/dist/schema/components/CopyLinkButton.vue_vue_type_script_setup_true_lang.js +0 -25
  313. package/dist/schema/components/CopyLinkButton.vue_vue_type_script_setup_true_lang.js.map +0 -1
  314. package/dist/schema/components/WithBreadcrumb.vue_vue_type_script_setup_true_lang.js +0 -17
  315. package/dist/schema/components/WithBreadcrumb.vue_vue_type_script_setup_true_lang.js.map +0 -1
  316. package/dist/shared/Badge.vue_vue_type_script_setup_true_lang.js +0 -15
  317. package/dist/shared/Badge.vue_vue_type_script_setup_true_lang.js.map +0 -1
  318. package/dist/shared/ExternalDocs.vue_vue_type_script_setup_true_lang.js +0 -45
  319. package/dist/shared/ExternalDocs.vue_vue_type_script_setup_true_lang.js.map +0 -1
  320. package/dist/shared/ScreenReader.vue_vue_type_script_setup_true_lang.js +0 -18
  321. package/dist/shared/ScreenReader.vue_vue_type_script_setup_true_lang.js.map +0 -1
  322. package/dist/specification-extensions/ExtensionValue.vue_vue_type_script_setup_true_lang.js +0 -91
  323. package/dist/specification-extensions/ExtensionValue.vue_vue_type_script_setup_true_lang.js.map +0 -1
  324. package/dist/specification-extensions/SpecificationExtensions.vue_vue_type_script_setup_true_lang.js +0 -78
  325. package/dist/specification-extensions/SpecificationExtensions.vue_vue_type_script_setup_true_lang.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SchemaProperty3.vue.js","names":["SchemaProperty_vue_vue_type_script_setup_true_lang_default","_plugin_vue_export_helper_default","SchemaProperty_default"],"sources":[],"mappings":""}
@@ -1,8 +1,63 @@
1
- import e from "./SchemaPropertyDefault.vue_vue_type_script_setup_true_lang.js";
2
- /* empty css */
3
- import t from "../_virtual/_plugin-vue_export-helper.js";
4
- // src/schema/SchemaPropertyDefault.vue
5
- var n = /*#__PURE__*/ t(e, [["__scopeId", "data-v-46973243"]]);
6
- export { n as default };
1
+ import { formatValue as e } from "./helpers/format-value.js";
2
+ import { useLocalization as t } from "./localization/index.js";
3
+ import { createCommentVNode as n, createElementBlock as r, createElementVNode as i, createVNode as a, defineComponent as o, normalizeClass as s, openBlock as c, ref as l, toDisplayString as u, unref as d, useId as f } from "vue";
4
+ import { ScalarIcon as p } from "@scalar/components/icon";
5
+ import { useClipboard as m } from "@scalar/use-hooks/useClipboard";
6
+ import { onClickOutside as h, onKeyStroke as g } from "@vueuse/core";
7
+ // src/schema/SchemaPropertyDefault.vue?vue&type=script&setup=true&lang.ts
8
+ var _ = ["aria-controls", "aria-expanded"], v = ["id"], y = ["aria-label"], b = 500, x = /*@__PURE__*/ o({
9
+ __name: "SchemaPropertyDefault",
10
+ props: { value: {} },
11
+ setup(o) {
12
+ let { copyToClipboard: x } = m(), { translate: S } = t(), C = l(null), w = l(null), T = l(!1), E = f(), D = () => {
13
+ T.value = !T.value;
14
+ }, O = () => {
15
+ !A && !k && (T.value = !0);
16
+ }, k = !1, A = !1, j = 0, M = () => {
17
+ A = !0, window.clearTimeout(j), j = window.setTimeout(() => {
18
+ A = !1;
19
+ }, b);
20
+ }, N = (e) => {
21
+ let t = e.relatedTarget;
22
+ t instanceof Node && C.value?.contains(t) || (T.value = !1);
23
+ }, P = () => {
24
+ let e = C.value?.contains(document.activeElement);
25
+ T.value = !1, e && (k = !0, w.value?.focus(), k = !1);
26
+ };
27
+ return h(C, P), g("Escape", () => {
28
+ T.value && P();
29
+ }), (t, l) => o.value === void 0 ? n("", !0) : (c(), r("div", {
30
+ key: 0,
31
+ ref_key: "rootRef",
32
+ ref: C,
33
+ class: s(["property-default", { "is-open": T.value }]),
34
+ onFocusin: O,
35
+ onFocusout: N
36
+ }, [i("button", {
37
+ ref_key: "labelRef",
38
+ ref: w,
39
+ "aria-controls": d(E),
40
+ "aria-expanded": T.value,
41
+ class: "property-default-label",
42
+ type: "button",
43
+ onClick: D,
44
+ onPointerdown: M
45
+ }, [i("span", null, u(d(S)("schema.default")), 1)], 40, _), i("div", {
46
+ id: d(E),
47
+ class: s(["property-default-value-list", { "flex!": T.value }])
48
+ }, [i("button", {
49
+ "aria-label": `${d(S)("common.copyDefault")}: ${d(e)(o.value)}`,
50
+ class: "property-default-value group",
51
+ type: "button",
52
+ onClick: l[0] ||= (t) => d(x)(d(e)(o.value))
53
+ }, [i("span", null, u(d(e)(o.value)), 1), a(d(p), {
54
+ "aria-hidden": "true",
55
+ class: "group-hover:text-c-1 text-c-3 ml-auto min-h-3 min-w-3",
56
+ icon: "Clipboard",
57
+ size: "xs"
58
+ })], 8, y)], 10, v)], 34));
59
+ }
60
+ });
61
+ export { x as default };
7
62
 
8
63
  //# sourceMappingURL=SchemaPropertyDefault.vue.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaPropertyDefault.vue.js","names":["SchemaPropertyDefault_vue_vue_type_script_setup_true_lang_default","_plugin_vue_export_helper_default","SchemaPropertyDefault_default"],"sources":[],"mappings":""}
1
+ {"version":3,"file":"SchemaPropertyDefault.vue.js","names":["_openBlock","_createElementBlock","_normalizeClass","_createElementVNode","_unref","_toDisplayString","_createVNode","formatValue","useLocalization","createCommentVNode","createElementBlock","createElementVNode","createVNode","defineComponent","normalizeClass","openBlock","ref","toDisplayString","unref","useId","ScalarIcon","useClipboard","onClickOutside","onKeyStroke","_hoisted_1","_hoisted_2","_hoisted_3","POINTER_GUARD_MS","SchemaPropertyDefault_vue_vue_type_script_setup_true_lang_default","__props","copyToClipboard","translate","rootRef","labelRef","isOpen","popupId","toggle","onFocusIn","openedByPointer","restoringFocus","pointerGuardTimer","onPointerDown","onFocusOut","event","next","close","wasInside","_ctx","_cache","$event"],"sources":["../../src/schema/SchemaPropertyDefault.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ScalarIcon } from '@scalar/components/icon'\nimport { useClipboard } from '@scalar/use-hooks/useClipboard'\nimport { onClickOutside, onKeyStroke } from '@vueuse/core'\nimport { ref, useId } from 'vue'\n\nimport { formatValue } from './helpers/format-value'\nimport { useLocalization } from './localization'\n\ndefineProps<{\n value?: unknown\n}>()\n\nconst { copyToClipboard } = useClipboard()\nconst { translate } = useLocalization()\n\n/**\n * Hover/`:focus-within` CSS alone left the popup unreachable by Enter, Escape\n * or touch, so it is pinned open on click (as in SchemaPropertyPattern.vue).\n */\nconst rootRef = ref<HTMLElement | null>(null)\nconst labelRef = ref<HTMLButtonElement | null>(null)\nconst isOpen = ref(false)\nconst popupId = useId()\n\nconst toggle = (): void => {\n isOpen.value = !isOpen.value\n}\n\n/**\n * Focus opens the popup through the same state as the click, not a separate\n * `:focus-within` rule: with both, a click's own `focusin` opened it first and\n * `toggle()` closed it again, so `aria-expanded` disagreed with the screen.\n */\nconst onFocusIn = (): void => {\n if (!openedByPointer && !restoringFocus) {\n isOpen.value = true\n }\n}\n\n/**\n * `close()` refocuses the label, and `focus()` fires `focusin` synchronously,\n * which would re-open the popup and make the first Escape look inert.\n */\nlet restoringFocus = false\n\n/** A pointer press focuses before it clicks; that focus must not open the popup */\nlet openedByPointer = false\n\n/** Long enough to span a touch tap's delayed compatibility mouse events. */\nconst POINTER_GUARD_MS = 500\nlet pointerGuardTimer = 0\n\nconst onPointerDown = (): void => {\n /*\n * A touch tap's compatibility mousedown (which moves focus) lands 50-150ms\n * after touchend, past any one-frame guard, so the tap opened then closed.\n */\n openedByPointer = true\n window.clearTimeout(pointerGuardTimer)\n pointerGuardTimer = window.setTimeout(() => {\n openedByPointer = false\n }, POINTER_GUARD_MS)\n}\n\nconst onFocusOut = (event: FocusEvent): void => {\n const next = event.relatedTarget\n\n if (!(next instanceof Node) || !rootRef.value?.contains(next)) {\n isOpen.value = false\n }\n}\n\n/**\n * Closing hides the popup outright, so focus is handed back deliberately, or\n * Escape from inside it drops focus to <body> and Tab resumes from the top.\n */\nconst close = (): void => {\n const wasInside = rootRef.value?.contains(document.activeElement)\n\n isOpen.value = false\n\n if (wasInside) {\n restoringFocus = true\n labelRef.value?.focus()\n restoringFocus = false\n }\n}\n\nonClickOutside(rootRef, close)\nonKeyStroke('Escape', () => {\n if (isOpen.value) {\n close()\n }\n})\n</script>\n<template>\n <template v-if=\"value !== undefined\">\n <div\n ref=\"rootRef\"\n class=\"property-default\"\n :class=\"{ 'is-open': isOpen }\"\n @focusin=\"onFocusIn\"\n @focusout=\"onFocusOut\">\n <button\n ref=\"labelRef\"\n :aria-controls=\"popupId\"\n :aria-expanded=\"isOpen\"\n class=\"property-default-label\"\n type=\"button\"\n @click=\"toggle\"\n @pointerdown=\"onPointerDown\">\n <span>{{ translate('schema.default') }}</span>\n </button>\n <div\n :id=\"popupId\"\n class=\"property-default-value-list\"\n :class=\"{ 'flex!': isOpen }\">\n <button\n :aria-label=\"`${translate('common.copyDefault')}: ${formatValue(value)}`\"\n class=\"property-default-value group\"\n type=\"button\"\n @click=\"copyToClipboard(formatValue(value))\">\n <span>\n {{ formatValue(value) }}\n </span>\n <ScalarIcon\n aria-hidden=\"true\"\n class=\"group-hover:text-c-1 text-c-3 ml-auto min-h-3 min-w-3\"\n icon=\"Clipboard\"\n size=\"xs\" />\n </button>\n </div>\n </div>\n </template>\n</template>\n\n<style scoped>\n.property-default {\n display: flex;\n flex-direction: column;\n font-size: var(--scalar-mini);\n position: relative;\n}\n.property-default:hover:before {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 20px;\n border-radius: var(--scalar-radius);\n}\n.property-default:hover .property-default-label span {\n color: var(--scalar-color-1);\n}\n.property-default-label span {\n color: var(--scalar-color-2);\n position: relative;\n border-bottom: var(--scalar-border-width) dotted currentColor;\n}\n.property-default-value {\n font-family: var(--scalar-font-code);\n display: flex;\n gap: 8px;\n align-items: center;\n width: 100%;\n padding: 6px;\n}\n.property-default-value span {\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.property-default-value :deep(svg) {\n color: var(--scalar-color-3);\n}\n\n.property-default-value:hover :deep(svg) {\n color: var(--scalar-color-1);\n}\n\n.property-default-value {\n background: var(--scalar-background-2);\n border: var(--scalar-border-width) solid var(--scalar-border-color);\n border-radius: var(--scalar-radius);\n}\n.property-default-value-list {\n position: absolute;\n top: 18px;\n left: 50%;\n transform: translate3d(-50%, 0, 0);\n overflow: auto;\n background-color: var(--scalar-background-1);\n box-shadow: var(--scalar-shadow-1);\n border-radius: var(--scalar-radius-lg);\n border: var(--scalar-border-width) solid var(--scalar-border-color);\n padding: 9px;\n min-width: 200px;\n max-width: 300px;\n flex-direction: column;\n gap: 3px;\n display: none;\n z-index: 2;\n}\n.property-default:hover .property-default-value-list {\n display: flex;\n}\n</style>\n"],"mappings":";;;;;;;A,4EAkDM2B,IAAmB,K;;;;EArCzB,IAAM,EAAEG,uBAAoBT,EAAa,GACnC,EAAEU,iBAAcvB,EAAgB,GAMhCwB,IAAUhB,EAAwB,IAAI,GACtCiB,IAAWjB,EAA8B,IAAI,GAC7CkB,IAASlB,EAAI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,MAAM,CAAA,CAAA;E,IACzB/B,EAaS,UAAA;GAZN,cAAU,GAAKC,EAAA2B,CAAA,CAAS,CAAA,oBAAA,EAAA,IAA2B3B,EAAAG,CAAA,CAAW,CAACsB,EAAA,KAAK;GACrE,OAAM;GACN,MAAK;GACJ,SAAKmB,EAAA,QAAAC,MAAE7C,EAAA0B,CAAA,CAAe,CAAC1B,EAAAG,CAAA,CAAW,CAACsB,EAAA,KAAK,CAAA;E,IACzC1B,EAEO,QAAA,MAAAE,EADFD,EAAAG,CAAA,CAAW,CAACsB,EAAA,KAAK,CAAA,GAAA,CAAA,GAEtBvB,EAIcF,EAAAgB,CAAA,GAAA;GAHZ,eAAY;GACZ,OAAM;GACN,MAAK;GACL,MAAK"}
@@ -0,0 +1,8 @@
1
+ import e from "./SchemaPropertyDefault.vue.js";
2
+ /* empty css */
3
+ import t from "../_virtual/_plugin-vue_export-helper.js";
4
+ // src/schema/SchemaPropertyDefault.vue
5
+ var n = /*#__PURE__*/ t(e, [["__scopeId", "data-v-46973243"]]);
6
+ export { n as default };
7
+
8
+ //# sourceMappingURL=SchemaPropertyDefault3.vue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SchemaPropertyDefault3.vue.js","names":["SchemaPropertyDefault_vue_vue_type_script_setup_true_lang_default","_plugin_vue_export_helper_default","SchemaPropertyDefault_default"],"sources":[],"mappings":""}
@@ -1,8 +1,24 @@
1
- import e from "./SchemaPropertyDetail.vue_vue_type_script_setup_true_lang.js";
2
- /* empty css */
3
- import t from "../_virtual/_plugin-vue_export-helper.js";
4
- // src/schema/SchemaPropertyDetail.vue
5
- var n = /*#__PURE__*/ t(e, [["__scopeId", "data-v-8b57daa7"]]);
6
- export { n as default };
1
+ import { createCommentVNode as e, createElementBlock as t, createTextVNode as n, defineComponent as r, normalizeClass as i, openBlock as a, renderSlot as o } from "vue";
2
+ // src/schema/SchemaPropertyDetail.vue?vue&type=script&setup=true&lang.ts
3
+ var s = {
4
+ key: 0,
5
+ class: "property-detail-prefix"
6
+ }, c = {
7
+ key: 1,
8
+ class: "property-detail-value"
9
+ }, l = {
10
+ key: 2,
11
+ class: "property-detail-value"
12
+ }, u = /*@__PURE__*/ r({
13
+ __name: "SchemaPropertyDetail",
14
+ props: {
15
+ truncate: { type: Boolean },
16
+ code: { type: Boolean }
17
+ },
18
+ setup(r) {
19
+ return (u, d) => (a(), t("span", { class: i(["property-detail", { "property-detail-truncate": r.truncate }]) }, [u.$slots.prefix ? (a(), t("div", s, [o(u.$slots, "prefix", {}, void 0, !0), d[0] ||= n("\xA0 ", -1)])) : e("", !0), r.code ? (a(), t("code", c, [o(u.$slots, "default", {}, void 0, !0)])) : (a(), t("span", l, [o(u.$slots, "default", {}, void 0, !0)]))], 2));
20
+ }
21
+ });
22
+ export { u as default };
7
23
 
8
24
  //# sourceMappingURL=SchemaPropertyDetail.vue.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaPropertyDetail.vue.js","names":["SchemaPropertyDetail_vue_vue_type_script_setup_true_lang_default","_plugin_vue_export_helper_default","SchemaPropertyDetail_default"],"sources":[],"mappings":""}
1
+ {"version":3,"file":"SchemaPropertyDetail.vue.js","names":["$slots","_openBlock","_createElementBlock","_normalizeClass","_renderSlot","_createTextVNode","createCommentVNode","createElementBlock","createTextVNode","defineComponent","normalizeClass","openBlock","renderSlot","_hoisted_1","_hoisted_2","_hoisted_3","SchemaPropertyDetail_vue_vue_type_script_setup_true_lang_default","__props","_ctx","_cache"],"sources":["../../src/schema/SchemaPropertyDetail.vue"],"sourcesContent":["<script lang=\"ts\" setup>\ndefineProps<{\n truncate?: boolean\n code?: boolean\n}>()\n</script>\n<template>\n <span\n class=\"property-detail\"\n :class=\"{ 'property-detail-truncate': truncate }\">\n <div\n v-if=\"$slots.prefix\"\n class=\"property-detail-prefix\">\n <slot name=\"prefix\" />&nbsp;\n </div>\n <code\n v-if=\"code\"\n class=\"property-detail-value\">\n <slot />\n </code>\n <span\n v-else\n class=\"property-detail-value\">\n <slot />\n </span>\n </span>\n</template>\n<style scoped>\n.property-detail {\n display: inline-flex;\n}\n.property-detail + .property-detail:before {\n display: block;\n content: '·';\n margin: 0 0.5ch;\n}\n.property-detail-truncate {\n overflow: hidden;\n}\n\n.property-detail-truncate > .property-detail-value {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.property-detail-prefix {\n color: var(--scalar-color-2);\n}\n\ncode.property-detail-value {\n font-family: var(--scalar-font-code);\n font-size: var(--scalar-font-size-3);\n color: var(--scalar-color-2);\n background: color-mix(\n in srgb,\n var(--scalar-background-2),\n var(--scalar-background-1)\n );\n padding: 0 4px;\n border: var(--scalar-border-width) solid var(--scalar-border-color);\n border-radius: var(--scalar-radius);\n}\n</style>\n"],"mappings":";;;;;;;;;;;;;;;;;;E,kBAOEC,EAAA,GAAAC,EAkBO,QAAA,EAjBL,OAAKC,EAAA,CAAC,mBAAiB,EAAA,4BACec,EAAA,SAAQ,CAAA,CAAA,E,IAEtCjB,EAAAA,OAAO,UADfC,EAAA,GAAAC,EAIM,OAJNW,GAIM,CADJT,EAAsBc,EAAA,QAAA,UAAA,CAAA,GAAA,KAAA,GAAA,EAAA,GAAAC,EAAA,OAAAd,EAAA,SACxB,EAAA,C,iBAEQY,EAAA,QADRhB,EAAA,GAAAC,EAIO,QAJPY,GAIO,CADLV,EAAQc,EAAA,QAAA,WAAA,CAAA,GAAA,KAAA,GAAA,EAAA,C,OAEVjB,EAAA,GAAAC,EAIO,QAJPa,GAIO,CADLX,EAAQc,EAAA,QAAA,WAAA,CAAA,GAAA,KAAA,GAAA,EAAA,C"}
@@ -0,0 +1,8 @@
1
+ import e from "./SchemaPropertyDetail.vue.js";
2
+ /* empty css */
3
+ import t from "../_virtual/_plugin-vue_export-helper.js";
4
+ // src/schema/SchemaPropertyDetail.vue
5
+ var n = /*#__PURE__*/ t(e, [["__scopeId", "data-v-8b57daa7"]]);
6
+ export { n as default };
7
+
8
+ //# sourceMappingURL=SchemaPropertyDetail3.vue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SchemaPropertyDetail3.vue.js","names":["SchemaPropertyDetail_vue_vue_type_script_setup_true_lang_default","_plugin_vue_export_helper_default","SchemaPropertyDetail_default"],"sources":[],"mappings":""}
@@ -1,8 +1,135 @@
1
- import e from "./SchemaPropertyExamples.vue_vue_type_script_setup_true_lang.js";
2
- /* empty css */
3
- import t from "../_virtual/_plugin-vue_export-helper.js";
4
- // src/schema/SchemaPropertyExamples.vue
5
- var n = /*#__PURE__*/ t(e, [["__scopeId", "data-v-72248a2e"]]);
6
- export { n as default };
1
+ import { formatExample as e } from "./helpers/format-example.js";
2
+ import { normalizeRenderedExamples as t } from "./helpers/get-rendered-example.js";
3
+ import n from "./LinkButton.vue.js";
4
+ import { useLocalization as r } from "./localization/index.js";
5
+ import { Fragment as i, computed as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, normalizeClass as f, openBlock as p, ref as m, renderList as h, toDisplayString as g, unref as _, useId as v, withCtx as y } from "vue";
6
+ import { ScalarIcon as b } from "@scalar/components/icon";
7
+ import { useClipboard as x } from "@scalar/use-hooks/useClipboard";
8
+ import { onClickOutside as S, onKeyStroke as C } from "@vueuse/core";
9
+ // src/schema/SchemaPropertyExamples.vue?vue&type=script&setup=true&lang.ts
10
+ var w = ["id"], T = ["aria-label"], E = ["id"], D = {
11
+ key: 0,
12
+ class: "text-c-2 font-sans text-xs font-normal break-words"
13
+ }, O = ["aria-label", "onClick"], k = 500, A = /*@__PURE__*/ d({
14
+ __name: "SchemaPropertyExamples",
15
+ props: {
16
+ align: { default: "center" },
17
+ examples: {},
18
+ example: {}
19
+ },
20
+ setup(d) {
21
+ let { copyToClipboard: A } = x(), { translate: j } = r(), M = a(() => d.example !== void 0), N = a(() => t(d.examples, { allowRawObjects: !0 }).map((t) => {
22
+ let n = t.summary || t.name, r = e(t.value);
23
+ return {
24
+ label: n,
25
+ value: r,
26
+ ariaLabel: `${j("common.copyExample")}: ${n ? `${n}: ` : ""}${r}`
27
+ };
28
+ })), P = a(() => N.value.length > 0), F = a(() => N.value.length === 1 ? j("schema.example") : j("schema.examples")), I = m(null), L = m(null), R = m(!1), z = v(), B = m(null), V = m(null), H = m(!1), U = v(), W = !1, G = 0, K = !1, q = () => {
29
+ W = !0, window.clearTimeout(G), G = window.setTimeout(() => {
30
+ W = !1;
31
+ }, k);
32
+ }, J = (e, t) => {
33
+ let n = e.relatedTarget;
34
+ return !(n instanceof Node) || !t?.contains(n);
35
+ }, Y = () => {
36
+ !W && !K && (R.value = !0);
37
+ }, X = (e) => {
38
+ J(e, I.value) && (R.value = !1);
39
+ }, Z = () => {
40
+ !W && !K && (H.value = !0);
41
+ }, Q = (e) => {
42
+ J(e, B.value) && (H.value = !1);
43
+ };
44
+ S(I, () => {
45
+ R.value = !1;
46
+ }), S(B, () => {
47
+ H.value = !1;
48
+ });
49
+ let $ = (e, t, n) => {
50
+ if (!e.value) return;
51
+ let r = t.value?.contains(document.activeElement);
52
+ if (e.value = !1, r) {
53
+ let e = n.value, t = e instanceof HTMLElement ? e : e?.$el;
54
+ K = !0, t?.focus?.(), K = !1;
55
+ }
56
+ };
57
+ return C("Escape", () => {
58
+ $(R, I, L), $(H, B, V);
59
+ }), (t, r) => (p(), s(i, null, [M.value ? (p(), s("div", {
60
+ key: 0,
61
+ ref_key: "singleRootRef",
62
+ ref: I,
63
+ class: f(["property-example", { "is-open": R.value }]),
64
+ onFocusin: Y,
65
+ onFocusout: X
66
+ }, [u(n, {
67
+ ref_key: "singleTriggerRef",
68
+ ref: L,
69
+ "aria-controls": _(z),
70
+ "aria-expanded": R.value,
71
+ class: "decoration-dotted",
72
+ onClick: r[0] ||= (e) => R.value = !R.value,
73
+ onPointerdown: q
74
+ }, {
75
+ default: y(() => [l(g(_(j)("schema.example")), 1)]),
76
+ _: 1
77
+ }, 8, ["aria-controls", "aria-expanded"]), c("div", {
78
+ id: _(z),
79
+ class: f(["property-example-value-list", {
80
+ "flex!": R.value,
81
+ "property-example-value-list-start": d.align === "start"
82
+ }])
83
+ }, [c("button", {
84
+ "aria-label": `${_(j)("common.copyExample")}: ${_(e)(d.example)}`,
85
+ class: "property-example-value group",
86
+ type: "button",
87
+ onClick: r[1] ||= (t) => _(A)(_(e)(d.example))
88
+ }, [c("span", null, g(_(e)(d.example)), 1), u(_(b), {
89
+ "aria-hidden": "true",
90
+ class: "group-hover:text-c-1 text-c-3 ml-auto min-h-3 min-w-3",
91
+ icon: "Clipboard",
92
+ size: "xs"
93
+ })], 8, T)], 10, w)], 34)) : o("", !0), P.value ? (p(), s("div", {
94
+ key: 1,
95
+ ref_key: "multipleRootRef",
96
+ ref: B,
97
+ class: f(["property-example", { "is-open": H.value }]),
98
+ onFocusin: Z,
99
+ onFocusout: Q
100
+ }, [u(n, {
101
+ ref_key: "multipleTriggerRef",
102
+ ref: V,
103
+ "aria-controls": _(U),
104
+ "aria-expanded": H.value,
105
+ class: "decoration-dotted",
106
+ onClick: r[2] ||= (e) => H.value = !H.value,
107
+ onPointerdown: q
108
+ }, {
109
+ default: y(() => [l(g(F.value), 1)]),
110
+ _: 1
111
+ }, 8, ["aria-controls", "aria-expanded"]), c("div", {
112
+ id: _(U),
113
+ class: f(["property-example-value-list gap-3! p-3!", {
114
+ "flex!": H.value,
115
+ "property-example-value-list-start": d.align === "start"
116
+ }])
117
+ }, [(p(!0), s(i, null, h(N.value, (e, t) => (p(), s("div", {
118
+ key: t,
119
+ class: "flex min-w-0 flex-col gap-1.5"
120
+ }, [e.label ? (p(), s("span", D, g(e.label), 1)) : o("", !0), c("button", {
121
+ "aria-label": e.ariaLabel,
122
+ class: "property-example-value group text-left",
123
+ type: "button",
124
+ onClick: (t) => _(A)(e.value)
125
+ }, [c("span", null, g(e.value), 1), u(_(b), {
126
+ "aria-hidden": "true",
127
+ class: "text-c-3 group-hover:text-c-1 ml-auto min-h-3 min-w-3",
128
+ icon: "Clipboard",
129
+ size: "xs"
130
+ })], 8, O)]))), 128))], 10, E)], 34)) : o("", !0)], 64));
131
+ }
132
+ });
133
+ export { A as default };
7
134
 
8
135
  //# sourceMappingURL=SchemaPropertyExamples.vue.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaPropertyExamples.vue.js","names":["SchemaPropertyExamples_vue_vue_type_script_setup_true_lang_default","_plugin_vue_export_helper_default","SchemaPropertyExamples_default"],"sources":[],"mappings":""}
1
+ {"version":3,"file":"SchemaPropertyExamples.vue.js","names":["_openBlock","_createElementBlock","_Fragment","_normalizeClass","_createVNode","LinkButton","_unref","_withCtx","_createTextVNode","_toDisplayString","_createElementVNode","_renderList","formatExample","normalizeRenderedExamples","LinkButton_default","useLocalization","Fragment","computed","createCommentVNode","createElementBlock","createElementVNode","createTextVNode","createVNode","defineComponent","normalizeClass","openBlock","ref","renderList","toDisplayString","unref","useId","withCtx","ScalarIcon","useClipboard","onClickOutside","onKeyStroke","_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","POINTER_GUARD_MS","SchemaPropertyExamples_vue_vue_type_script_setup_true_lang_default","__props","copyToClipboard","translate","hasSingleExample","normalizedExamples","entry","label","value","hasMultipleExamples","multipleExamplesLabel","singleRootRef","singleTriggerRef","isSingleOpen","singlePopupId","multipleRootRef","multipleTriggerRef","isMultipleOpen","multiplePopupId","openedByPointer","pointerGuardTimer","restoringFocus","onPointerDown","leftPopup","event","root","next","onSingleFocusIn","onSingleFocusOut","onMultipleFocusIn","onMultipleFocusOut","closeAndRestore","open","trigger","wasInside","element","focusable","_ctx","_cache","$event","ex","key"],"sources":["../../src/schema/SchemaPropertyExamples.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ScalarIcon } from '@scalar/components/icon'\nimport { useClipboard } from '@scalar/use-hooks/useClipboard'\nimport { onClickOutside, onKeyStroke } from '@vueuse/core'\nimport { computed, ref, useId } from 'vue'\n\nimport { formatExample } from './helpers/format-example'\nimport { normalizeRenderedExamples } from './helpers/get-rendered-example'\nimport LinkButton from './LinkButton.vue'\nimport { useLocalization } from './localization'\n\nconst {\n examples,\n example,\n align = 'center',\n} = defineProps<{\n /** Align the popup with its label when centering would overlap adjacent content. */\n align?: 'center' | 'start'\n examples?: unknown\n example?: unknown\n}>()\n\nconst { copyToClipboard } = useClipboard()\nconst { translate } = useLocalization()\n\n// `null` is a meaningful example value for nullable schemas, so only treat\n// `undefined` as \"not provided\".\nconst hasSingleExample = computed(() => example !== undefined)\n\nconst normalizedExamples = computed<\n { label: string | undefined; value: string | number; ariaLabel: string }[]\n>(() =>\n normalizeRenderedExamples(examples, { allowRawObjects: true }).map(\n (entry) => {\n const label = entry.summary || entry.name\n const value = formatExample(entry.value)\n return {\n label,\n value,\n ariaLabel: `${translate('common.copyExample')}: ${label ? `${label}: ` : ''}${value}`,\n }\n },\n ),\n)\n\nconst hasMultipleExamples = computed(() => normalizedExamples.value.length > 0)\n\nconst multipleExamplesLabel = computed(() =>\n normalizedExamples.value.length === 1\n ? translate('schema.example')\n : translate('schema.examples'),\n)\n\n/**\n * Hover/`:focus-within` CSS alone left the popup unreachable by Enter, Escape\n * or touch, so it is pinned open on click (as in SchemaPropertyPattern.vue).\n * `example` and `examples` can both render, so each popup has its own state.\n */\nconst singleRootRef = ref<HTMLElement | null>(null)\nconst singleTriggerRef = ref<HTMLElement | { $el: HTMLElement } | null>(null)\nconst isSingleOpen = ref(false)\nconst singlePopupId = useId()\n\nconst multipleRootRef = ref<HTMLElement | null>(null)\nconst multipleTriggerRef = ref<HTMLElement | { $el: HTMLElement } | null>(null)\nconst isMultipleOpen = ref(false)\nconst multiplePopupId = useId()\n\n/**\n * Focus opens the popup through the same state as the click, not a separate\n * `:focus-within` rule; with both, a click's own `focusin` opened it first and\n * the click closed it again. This flag stops a pointer press counting as focus.\n */\nlet openedByPointer = false\n\n/** Long enough to span a touch tap's delayed compatibility mouse events. */\nconst POINTER_GUARD_MS = 500\nlet pointerGuardTimer = 0\n\n/**\n * `closeAndRestore` refocuses the trigger, and `focus()` fires `focusin`\n * synchronously, which would re-open the popup and make the first Escape inert.\n */\nlet restoringFocus = false\n\nconst onPointerDown = (): void => {\n /*\n * A touch tap's compatibility mousedown (which moves focus) lands 50-150ms\n * after touchend, past any one-frame guard, so the tap opened then closed.\n */\n openedByPointer = true\n window.clearTimeout(pointerGuardTimer)\n pointerGuardTimer = window.setTimeout(() => {\n openedByPointer = false\n }, POINTER_GUARD_MS)\n}\n\nconst leftPopup = (event: FocusEvent, root: HTMLElement | null): boolean => {\n const next = event.relatedTarget\n\n return !(next instanceof Node) || !root?.contains(next)\n}\n\nconst onSingleFocusIn = (): void => {\n if (!openedByPointer && !restoringFocus) {\n isSingleOpen.value = true\n }\n}\n\nconst onSingleFocusOut = (event: FocusEvent): void => {\n if (leftPopup(event, singleRootRef.value)) {\n isSingleOpen.value = false\n }\n}\n\nconst onMultipleFocusIn = (): void => {\n if (!openedByPointer && !restoringFocus) {\n isMultipleOpen.value = true\n }\n}\n\nconst onMultipleFocusOut = (event: FocusEvent): void => {\n if (leftPopup(event, multipleRootRef.value)) {\n isMultipleOpen.value = false\n }\n}\n\nonClickOutside(singleRootRef, () => {\n isSingleOpen.value = false\n})\n\nonClickOutside(multipleRootRef, () => {\n isMultipleOpen.value = false\n})\n\n/**\n * Closing hides the popup outright, so focus is handed back deliberately, or\n * Escape from inside it drops focus to <body>.\n */\nconst closeAndRestore = (\n open: typeof isSingleOpen,\n root: typeof singleRootRef,\n trigger: typeof singleTriggerRef,\n): void => {\n if (!open.value) {\n return\n }\n\n const wasInside = root.value?.contains(document.activeElement)\n\n open.value = false\n\n if (wasInside) {\n const element = trigger.value\n const focusable = element instanceof HTMLElement ? element : element?.$el\n\n restoringFocus = true\n focusable?.focus?.()\n restoringFocus = false\n }\n}\n\nonKeyStroke('Escape', () => {\n closeAndRestore(isSingleOpen, singleRootRef, singleTriggerRef)\n closeAndRestore(isMultipleOpen, multipleRootRef, multipleTriggerRef)\n})\n</script>\n<template>\n <!-- single example (deprecated) -->\n <template v-if=\"hasSingleExample\">\n <div\n ref=\"singleRootRef\"\n class=\"property-example\"\n :class=\"{ 'is-open': isSingleOpen }\"\n @focusin=\"onSingleFocusIn\"\n @focusout=\"onSingleFocusOut\">\n <LinkButton\n ref=\"singleTriggerRef\"\n :aria-controls=\"singlePopupId\"\n :aria-expanded=\"isSingleOpen\"\n class=\"decoration-dotted\"\n @click=\"isSingleOpen = !isSingleOpen\"\n @pointerdown=\"onPointerDown\">\n {{ translate('schema.example') }}\n </LinkButton>\n <div\n :id=\"singlePopupId\"\n class=\"property-example-value-list\"\n :class=\"{\n 'flex!': isSingleOpen,\n 'property-example-value-list-start': align === 'start',\n }\">\n <button\n :aria-label=\"`${translate('common.copyExample')}: ${formatExample(example)}`\"\n class=\"property-example-value group\"\n type=\"button\"\n @click=\"copyToClipboard(formatExample(example))\">\n <span>\n {{ formatExample(example) }}\n </span>\n <ScalarIcon\n aria-hidden=\"true\"\n class=\"group-hover:text-c-1 text-c-3 ml-auto min-h-3 min-w-3\"\n icon=\"Clipboard\"\n size=\"xs\" />\n </button>\n </div>\n </div>\n </template>\n\n <!-- multiple examples -->\n <template v-if=\"hasMultipleExamples\">\n <div\n ref=\"multipleRootRef\"\n class=\"property-example\"\n :class=\"{ 'is-open': isMultipleOpen }\"\n @focusin=\"onMultipleFocusIn\"\n @focusout=\"onMultipleFocusOut\">\n <LinkButton\n ref=\"multipleTriggerRef\"\n :aria-controls=\"multiplePopupId\"\n :aria-expanded=\"isMultipleOpen\"\n class=\"decoration-dotted\"\n @click=\"isMultipleOpen = !isMultipleOpen\"\n @pointerdown=\"onPointerDown\">\n {{ multipleExamplesLabel }}\n </LinkButton>\n <div\n :id=\"multiplePopupId\"\n class=\"property-example-value-list gap-3! p-3!\"\n :class=\"{\n 'flex!': isMultipleOpen,\n 'property-example-value-list-start': align === 'start',\n }\">\n <div\n v-for=\"(ex, key) in normalizedExamples\"\n :key=\"key\"\n class=\"flex min-w-0 flex-col gap-1.5\">\n <span\n v-if=\"ex.label\"\n class=\"text-c-2 font-sans text-xs font-normal break-words\">\n {{ ex.label }}\n </span>\n <button\n :aria-label=\"ex.ariaLabel\"\n class=\"property-example-value group text-left\"\n type=\"button\"\n @click=\"copyToClipboard(ex.value)\">\n <span>{{ ex.value }}</span>\n <ScalarIcon\n aria-hidden=\"true\"\n class=\"text-c-3 group-hover:text-c-1 ml-auto min-h-3 min-w-3\"\n icon=\"Clipboard\"\n size=\"xs\" />\n </button>\n </div>\n </div>\n </div>\n </template>\n</template>\n\n<style scoped>\n@reference \"../style.css\";\n\n.property-example {\n display: flex;\n flex-direction: column;\n font-size: var(--scalar-mini);\n position: relative;\n}\n.property-example:hover:before {\n pointer-events: none;\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 20px;\n border-radius: var(--scalar-radius);\n}\n.property-example-value {\n font-family: var(--scalar-font-code);\n display: flex;\n gap: 8px;\n align-items: center;\n width: 100%;\n padding: 6px;\n}\n.property-example-value span {\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: pre;\n}\n.property-example-value :deep(svg) {\n color: var(--scalar-color-3);\n}\n\n.property-example-value:hover :deep(svg) {\n color: var(--scalar-color-1);\n}\n\n.property-example-value {\n background: var(--scalar-background-2);\n border: var(--scalar-border-width) solid var(--scalar-border-color);\n border-radius: var(--scalar-radius);\n}\n.property-example-value-list {\n position: absolute;\n top: 18px;\n left: 50%;\n transform: translate3d(-50%, 0, 0);\n overflow: auto;\n background-color: var(--scalar-background-1);\n box-shadow: var(--scalar-shadow-1);\n border-radius: var(--scalar-radius-lg);\n border: var(--scalar-border-width) solid var(--scalar-border-color);\n padding: 9px;\n min-width: 200px;\n max-width: 300px;\n flex-direction: column;\n gap: 3px;\n display: none;\n @apply z-context;\n}\n.property-example-value-list-start {\n left: 0;\n transform: none;\n}\n.property-example:hover .property-example-value-list {\n display: flex;\n}\n</style>\n"],"mappings":";;;;;;;;;;;;A,kCA4EMyC,IAAmB,K;;;;;;;;EAtDz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ADXlF,EAAA,GAAAC,EAIO,QAJPsC,GAIO9B,EADFyE,EAAG,KAAK,GAAA,CAAA,K,WAEbxE,EAWS,UAAA;GAVN,cAAYwE,EAAG;GAChB,OAAM;GACN,MAAK;GACJ,UAAKD,MAAE3E,EAAAsC,CAAA,CAAe,CAACsC,EAAG,KAAK;E,IAChCxE,EAA2B,QAAA,MAAAD,EAAlByE,EAAG,KAAK,GAAA,CAAA,GACjB9E,EAIcE,EAAA0B,CAAA,GAAA;GAHZ,eAAY;GACZ,OAAM;GACN,MAAK;GACL,MAAK"}
@@ -0,0 +1,8 @@
1
+ import e from "./SchemaPropertyExamples.vue.js";
2
+ /* empty css */
3
+ import t from "../_virtual/_plugin-vue_export-helper.js";
4
+ // src/schema/SchemaPropertyExamples.vue
5
+ var n = /*#__PURE__*/ t(e, [["__scopeId", "data-v-72248a2e"]]);
6
+ export { n as default };
7
+
8
+ //# sourceMappingURL=SchemaPropertyExamples3.vue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SchemaPropertyExamples3.vue.js","names":["SchemaPropertyExamples_vue_vue_type_script_setup_true_lang_default","_plugin_vue_export_helper_default","SchemaPropertyExamples_default"],"sources":[],"mappings":""}
@@ -47,8 +47,8 @@ type __VLS_Slots = {} & {
47
47
  };
48
48
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
49
49
  required: boolean;
50
- eventBus: WorkspaceEventBus | null;
51
50
  hideModelNames: boolean;
51
+ eventBus: WorkspaceEventBus | null;
52
52
  isDiscriminator: boolean;
53
53
  withExamples: boolean;
54
54
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaPropertyHeading.vue.d.ts","sourceRoot":"","sources":["../../src/schema/SchemaPropertyHeading.vue"],"names":[],"mappings":"AA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