@scalar/blocks 0.4.3 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (341) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +45 -0
  3. package/dist/code-example/helpers/operation-to-har/operation-to-har.d.ts.map +1 -1
  4. package/dist/code-example/helpers/operation-to-har/operation-to-har.js +1 -0
  5. package/dist/code-example/helpers/operation-to-har/operation-to-har.js.map +1 -1
  6. package/dist/code-example/helpers/operation-to-har/process-body.d.ts.map +1 -1
  7. package/dist/code-example/helpers/operation-to-har/process-body.js +51 -45
  8. package/dist/code-example/helpers/operation-to-har/process-body.js.map +1 -1
  9. package/dist/constants.js +1 -1
  10. package/dist/schema/LinkButton.vue.d.ts +14 -0
  11. package/dist/schema/LinkButton.vue.d.ts.map +1 -0
  12. package/dist/schema/LinkButton.vue.js +15 -0
  13. package/dist/schema/LinkButton.vue.js.map +1 -0
  14. package/dist/schema/RenderString.vue.d.ts +7 -0
  15. package/dist/schema/RenderString.vue.d.ts.map +1 -0
  16. package/dist/schema/RenderString.vue.js +7 -0
  17. package/dist/schema/RenderString.vue.js.map +1 -0
  18. package/dist/schema/RenderString.vue.script.js +14 -0
  19. package/dist/schema/RenderString.vue.script.js.map +1 -0
  20. package/dist/schema/Schema.vue.d.ts +50 -0
  21. package/dist/schema/Schema.vue.d.ts.map +1 -0
  22. package/dist/schema/Schema.vue.js +9 -0
  23. package/dist/schema/Schema.vue.js.map +1 -0
  24. package/dist/schema/Schema.vue.script.js +234 -0
  25. package/dist/schema/Schema.vue.script.js.map +1 -0
  26. package/dist/schema/SchemaCollapsedPreview.vue.d.ts +17 -0
  27. package/dist/schema/SchemaCollapsedPreview.vue.d.ts.map +1 -0
  28. package/dist/schema/SchemaCollapsedPreview.vue.js +7 -0
  29. package/dist/schema/SchemaCollapsedPreview.vue.js.map +1 -0
  30. package/dist/schema/SchemaCollapsedPreview.vue.script.js +28 -0
  31. package/dist/schema/SchemaCollapsedPreview.vue.script.js.map +1 -0
  32. package/dist/schema/SchemaComposition.vue.d.ts +42 -0
  33. package/dist/schema/SchemaComposition.vue.d.ts.map +1 -0
  34. package/dist/schema/SchemaComposition.vue.js +9 -0
  35. package/dist/schema/SchemaComposition.vue.js.map +1 -0
  36. package/dist/schema/SchemaComposition.vue.script.js +231 -0
  37. package/dist/schema/SchemaComposition.vue.script.js.map +1 -0
  38. package/dist/schema/SchemaEnumPropertyItem.vue.d.ts +8 -0
  39. package/dist/schema/SchemaEnumPropertyItem.vue.d.ts.map +1 -0
  40. package/dist/schema/SchemaEnumPropertyItem.vue.js +7 -0
  41. package/dist/schema/SchemaEnumPropertyItem.vue.js.map +1 -0
  42. package/dist/schema/SchemaEnumPropertyItem.vue.script.js +24 -0
  43. package/dist/schema/SchemaEnumPropertyItem.vue.script.js.map +1 -0
  44. package/dist/schema/SchemaEnums.vue.d.ts +11 -0
  45. package/dist/schema/SchemaEnums.vue.d.ts.map +1 -0
  46. package/dist/schema/SchemaEnums.vue.js +9 -0
  47. package/dist/schema/SchemaEnums.vue.js.map +1 -0
  48. package/dist/schema/SchemaEnums.vue.script.js +78 -0
  49. package/dist/schema/SchemaEnums.vue.script.js.map +1 -0
  50. package/dist/schema/SchemaGlyphPuck.vue.d.ts +33 -0
  51. package/dist/schema/SchemaGlyphPuck.vue.d.ts.map +1 -0
  52. package/dist/schema/SchemaGlyphPuck.vue.js +7 -0
  53. package/dist/schema/SchemaGlyphPuck.vue.js.map +1 -0
  54. package/dist/schema/SchemaGlyphPuck.vue.script.js +30 -0
  55. package/dist/schema/SchemaGlyphPuck.vue.script.js.map +1 -0
  56. package/dist/schema/SchemaGutterToggle.vue.d.ts +32 -0
  57. package/dist/schema/SchemaGutterToggle.vue.d.ts.map +1 -0
  58. package/dist/schema/SchemaGutterToggle.vue.js +7 -0
  59. package/dist/schema/SchemaGutterToggle.vue.js.map +1 -0
  60. package/dist/schema/SchemaGutterToggle.vue.script.js +43 -0
  61. package/dist/schema/SchemaGutterToggle.vue.script.js.map +1 -0
  62. package/dist/schema/SchemaHeading.vue.d.ts +9 -0
  63. package/dist/schema/SchemaHeading.vue.d.ts.map +1 -0
  64. package/dist/schema/SchemaHeading.vue.js +9 -0
  65. package/dist/schema/SchemaHeading.vue.js.map +1 -0
  66. package/dist/schema/SchemaHeading.vue.script.js +35 -0
  67. package/dist/schema/SchemaHeading.vue.script.js.map +1 -0
  68. package/dist/schema/SchemaObjectExampleCodeBlock.vue.d.ts +8 -0
  69. package/dist/schema/SchemaObjectExampleCodeBlock.vue.d.ts.map +1 -0
  70. package/dist/schema/SchemaObjectExampleCodeBlock.vue.js +7 -0
  71. package/dist/schema/SchemaObjectExampleCodeBlock.vue.js.map +1 -0
  72. package/dist/schema/SchemaObjectExampleCodeBlock.vue.script.js +48 -0
  73. package/dist/schema/SchemaObjectExampleCodeBlock.vue.script.js.map +1 -0
  74. package/dist/schema/SchemaObjectProperties.vue.d.ts +22 -0
  75. package/dist/schema/SchemaObjectProperties.vue.d.ts.map +1 -0
  76. package/dist/schema/SchemaObjectProperties.vue.js +7 -0
  77. package/dist/schema/SchemaObjectProperties.vue.js.map +1 -0
  78. package/dist/schema/SchemaObjectProperties.vue.script.js +207 -0
  79. package/dist/schema/SchemaObjectProperties.vue.script.js.map +1 -0
  80. package/dist/schema/SchemaProperty.vue.d.ts +88 -0
  81. package/dist/schema/SchemaProperty.vue.d.ts.map +1 -0
  82. package/dist/schema/SchemaProperty.vue.js +9 -0
  83. package/dist/schema/SchemaProperty.vue.js.map +1 -0
  84. package/dist/schema/SchemaProperty.vue.script.js +456 -0
  85. package/dist/schema/SchemaProperty.vue.script.js.map +1 -0
  86. package/dist/schema/SchemaPropertyDefault.vue.d.ts +7 -0
  87. package/dist/schema/SchemaPropertyDefault.vue.d.ts.map +1 -0
  88. package/dist/schema/SchemaPropertyDefault.vue.js +9 -0
  89. package/dist/schema/SchemaPropertyDefault.vue.js.map +1 -0
  90. package/dist/schema/SchemaPropertyDefault.vue.script.js +64 -0
  91. package/dist/schema/SchemaPropertyDefault.vue.script.js.map +1 -0
  92. package/dist/schema/SchemaPropertyDetail.vue.d.ts +22 -0
  93. package/dist/schema/SchemaPropertyDetail.vue.d.ts.map +1 -0
  94. package/dist/schema/SchemaPropertyDetail.vue.js +9 -0
  95. package/dist/schema/SchemaPropertyDetail.vue.js.map +1 -0
  96. package/dist/schema/SchemaPropertyDetail.vue.script.js +25 -0
  97. package/dist/schema/SchemaPropertyDetail.vue.script.js.map +1 -0
  98. package/dist/schema/SchemaPropertyExamples.vue.d.ts +8 -0
  99. package/dist/schema/SchemaPropertyExamples.vue.d.ts.map +1 -0
  100. package/dist/schema/SchemaPropertyExamples.vue.js +9 -0
  101. package/dist/schema/SchemaPropertyExamples.vue.js.map +1 -0
  102. package/dist/schema/SchemaPropertyExamples.vue.script.js +125 -0
  103. package/dist/schema/SchemaPropertyExamples.vue.script.js.map +1 -0
  104. package/dist/schema/SchemaPropertyHeading.vue.d.ts +59 -0
  105. package/dist/schema/SchemaPropertyHeading.vue.d.ts.map +1 -0
  106. package/dist/schema/SchemaPropertyHeading.vue.js +9 -0
  107. package/dist/schema/SchemaPropertyHeading.vue.js.map +1 -0
  108. package/dist/schema/SchemaPropertyHeading.vue.script.js +270 -0
  109. package/dist/schema/SchemaPropertyHeading.vue.script.js.map +1 -0
  110. package/dist/schema/SchemaPropertyPattern.vue.d.ts +7 -0
  111. package/dist/schema/SchemaPropertyPattern.vue.d.ts.map +1 -0
  112. package/dist/schema/SchemaPropertyPattern.vue.js +9 -0
  113. package/dist/schema/SchemaPropertyPattern.vue.js.map +1 -0
  114. package/dist/schema/SchemaPropertyPattern.vue.script.js +45 -0
  115. package/dist/schema/SchemaPropertyPattern.vue.script.js.map +1 -0
  116. package/dist/schema/SchemaRailPanel.vue.d.ts +35 -0
  117. package/dist/schema/SchemaRailPanel.vue.d.ts.map +1 -0
  118. package/dist/schema/SchemaRailPanel.vue.js +7 -0
  119. package/dist/schema/SchemaRailPanel.vue.js.map +1 -0
  120. package/dist/schema/SchemaRailPanel.vue.script.js +49 -0
  121. package/dist/schema/SchemaRailPanel.vue.script.js.map +1 -0
  122. package/dist/schema/components/CopyLinkButton.vue.d.ts +27 -0
  123. package/dist/schema/components/CopyLinkButton.vue.d.ts.map +1 -0
  124. package/dist/schema/components/CopyLinkButton.vue.js +7 -0
  125. package/dist/schema/components/CopyLinkButton.vue.js.map +1 -0
  126. package/dist/schema/components/CopyLinkButton.vue.script.js +26 -0
  127. package/dist/schema/components/CopyLinkButton.vue.script.js.map +1 -0
  128. package/dist/schema/components/WithBreadcrumb.vue.d.ts +19 -0
  129. package/dist/schema/components/WithBreadcrumb.vue.d.ts.map +1 -0
  130. package/dist/schema/components/WithBreadcrumb.vue.js +7 -0
  131. package/dist/schema/components/WithBreadcrumb.vue.js.map +1 -0
  132. package/dist/schema/components/WithBreadcrumb.vue.script.js +18 -0
  133. package/dist/schema/components/WithBreadcrumb.vue.script.js.map +1 -0
  134. package/dist/schema/expansion/index.d.ts +2 -0
  135. package/dist/schema/expansion/index.d.ts.map +1 -0
  136. package/dist/schema/expansion/index.js +2 -0
  137. package/dist/schema/helpers/dynamic-scope.d.ts +27 -0
  138. package/dist/schema/helpers/dynamic-scope.d.ts.map +1 -0
  139. package/dist/schema/helpers/dynamic-scope.js +8 -0
  140. package/dist/schema/helpers/dynamic-scope.js.map +1 -0
  141. package/dist/schema/helpers/format-example.d.ts +5 -0
  142. package/dist/schema/helpers/format-example.d.ts.map +1 -0
  143. package/dist/schema/helpers/format-example.js +12 -0
  144. package/dist/schema/helpers/format-example.js.map +1 -0
  145. package/dist/schema/helpers/format-value.d.ts +5 -0
  146. package/dist/schema/helpers/format-value.d.ts.map +1 -0
  147. package/dist/schema/helpers/format-value.js +8 -0
  148. package/dist/schema/helpers/format-value.js.map +1 -0
  149. package/dist/schema/helpers/get-compositions-to-render.d.ts +33 -0
  150. package/dist/schema/helpers/get-compositions-to-render.d.ts.map +1 -0
  151. package/dist/schema/helpers/get-compositions-to-render.js +39 -0
  152. package/dist/schema/helpers/get-compositions-to-render.js.map +1 -0
  153. package/dist/schema/helpers/get-discriminator-values.d.ts +4 -0
  154. package/dist/schema/helpers/get-discriminator-values.d.ts.map +1 -0
  155. package/dist/schema/helpers/get-discriminator-values.js +6 -0
  156. package/dist/schema/helpers/get-discriminator-values.js.map +1 -0
  157. package/dist/schema/helpers/get-enum-values.d.ts +9 -0
  158. package/dist/schema/helpers/get-enum-values.d.ts.map +1 -0
  159. package/dist/schema/helpers/get-enum-values.js +16 -0
  160. package/dist/schema/helpers/get-enum-values.js.map +1 -0
  161. package/dist/schema/helpers/get-property-description.d.ts +9 -0
  162. package/dist/schema/helpers/get-property-description.d.ts.map +1 -0
  163. package/dist/schema/helpers/get-property-description.js +27 -0
  164. package/dist/schema/helpers/get-property-description.js.map +1 -0
  165. package/dist/schema/helpers/get-ref-name.d.ts +24 -0
  166. package/dist/schema/helpers/get-ref-name.d.ts.map +1 -0
  167. package/dist/schema/helpers/get-ref-name.js +15 -0
  168. package/dist/schema/helpers/get-ref-name.js.map +1 -0
  169. package/dist/schema/helpers/get-schema-type.d.ts +13 -0
  170. package/dist/schema/helpers/get-schema-type.d.ts.map +1 -0
  171. package/dist/schema/helpers/get-schema-type.js +24 -0
  172. package/dist/schema/helpers/get-schema-type.js.map +1 -0
  173. package/dist/schema/helpers/get-type-signature-tokens.d.ts +48 -0
  174. package/dist/schema/helpers/get-type-signature-tokens.d.ts.map +1 -0
  175. package/dist/schema/helpers/get-type-signature-tokens.js +62 -0
  176. package/dist/schema/helpers/get-type-signature-tokens.js.map +1 -0
  177. package/dist/schema/helpers/has-complex-array-items.d.ts +10 -0
  178. package/dist/schema/helpers/has-complex-array-items.d.ts.map +1 -0
  179. package/dist/schema/helpers/has-complex-array-items.js +22 -0
  180. package/dist/schema/helpers/has-complex-array-items.js.map +1 -0
  181. package/dist/schema/helpers/index.d.ts +12 -0
  182. package/dist/schema/helpers/index.d.ts.map +1 -0
  183. package/dist/schema/helpers/index.js +12 -0
  184. package/dist/schema/helpers/is-empty-schema-object.d.ts +8 -0
  185. package/dist/schema/helpers/is-empty-schema-object.d.ts.map +1 -0
  186. package/dist/schema/helpers/is-empty-schema-object.js +11 -0
  187. package/dist/schema/helpers/is-empty-schema-object.js.map +1 -0
  188. package/dist/schema/helpers/is-model-linkable.d.ts +15 -0
  189. package/dist/schema/helpers/is-model-linkable.d.ts.map +1 -0
  190. package/dist/schema/helpers/is-model-linkable.js +13 -0
  191. package/dist/schema/helpers/is-model-linkable.js.map +1 -0
  192. package/dist/schema/helpers/is-on-schema-target-path.d.ts +3 -0
  193. package/dist/schema/helpers/is-on-schema-target-path.d.ts.map +1 -0
  194. package/dist/schema/helpers/is-on-schema-target-path.js +6 -0
  195. package/dist/schema/helpers/is-on-schema-target-path.js.map +1 -0
  196. package/dist/schema/helpers/is-type-object.d.ts +5 -0
  197. package/dist/schema/helpers/is-type-object.d.ts.map +1 -0
  198. package/dist/schema/helpers/is-type-object.js +15 -0
  199. package/dist/schema/helpers/is-type-object.js.map +1 -0
  200. package/dist/schema/helpers/merge-all-of-schemas.d.ts +12 -0
  201. package/dist/schema/helpers/merge-all-of-schemas.d.ts.map +1 -0
  202. package/dist/schema/helpers/merge-all-of-schemas.js +151 -0
  203. package/dist/schema/helpers/merge-all-of-schemas.js.map +1 -0
  204. package/dist/schema/helpers/normalize-object-composition.d.ts +9 -0
  205. package/dist/schema/helpers/normalize-object-composition.d.ts.map +1 -0
  206. package/dist/schema/helpers/normalize-object-composition.js +29 -0
  207. package/dist/schema/helpers/normalize-object-composition.js.map +1 -0
  208. package/dist/schema/helpers/optimize-value-for-display.d.ts +13 -0
  209. package/dist/schema/helpers/optimize-value-for-display.d.ts.map +1 -0
  210. package/dist/schema/helpers/optimize-value-for-display.js +64 -0
  211. package/dist/schema/helpers/optimize-value-for-display.js.map +1 -0
  212. package/dist/schema/helpers/partition-all-of-compositions.d.ts +32 -0
  213. package/dist/schema/helpers/partition-all-of-compositions.d.ts.map +1 -0
  214. package/dist/schema/helpers/partition-all-of-compositions.js +67 -0
  215. package/dist/schema/helpers/partition-all-of-compositions.js.map +1 -0
  216. package/dist/schema/helpers/schema-composition.d.ts +4 -0
  217. package/dist/schema/helpers/schema-composition.d.ts.map +1 -0
  218. package/dist/schema/helpers/schema-composition.js +11 -0
  219. package/dist/schema/helpers/schema-composition.js.map +1 -0
  220. package/dist/schema/helpers/schema-cycle.d.ts +31 -0
  221. package/dist/schema/helpers/schema-cycle.d.ts.map +1 -0
  222. package/dist/schema/helpers/schema-cycle.js +8 -0
  223. package/dist/schema/helpers/schema-cycle.js.map +1 -0
  224. package/dist/schema/helpers/schema-expansion.d.ts +89 -0
  225. package/dist/schema/helpers/schema-expansion.d.ts.map +1 -0
  226. package/dist/schema/helpers/schema-expansion.js +93 -0
  227. package/dist/schema/helpers/schema-expansion.js.map +1 -0
  228. package/dist/schema/helpers/schema-keyboard-nav.d.ts +23 -0
  229. package/dist/schema/helpers/schema-keyboard-nav.d.ts.map +1 -0
  230. package/dist/schema/helpers/schema-keyboard-nav.js +36 -0
  231. package/dist/schema/helpers/schema-keyboard-nav.js.map +1 -0
  232. package/dist/schema/helpers/schema-name.d.ts +27 -0
  233. package/dist/schema/helpers/schema-name.d.ts.map +1 -0
  234. package/dist/schema/helpers/schema-name.js +40 -0
  235. package/dist/schema/helpers/schema-name.js.map +1 -0
  236. package/dist/schema/helpers/should-display-description.d.ts +10 -0
  237. package/dist/schema/helpers/should-display-description.d.ts.map +1 -0
  238. package/dist/schema/helpers/should-display-description.js +6 -0
  239. package/dist/schema/helpers/should-display-description.js.map +1 -0
  240. package/dist/schema/helpers/should-display-heading.d.ts +11 -0
  241. package/dist/schema/helpers/should-display-heading.d.ts.map +1 -0
  242. package/dist/schema/helpers/should-display-heading.js +6 -0
  243. package/dist/schema/helpers/should-display-heading.js.map +1 -0
  244. package/dist/schema/helpers/should-render-array-item-composition.d.ts +10 -0
  245. package/dist/schema/helpers/should-render-array-item-composition.d.ts.map +1 -0
  246. package/dist/schema/helpers/should-render-array-item-composition.js +12 -0
  247. package/dist/schema/helpers/should-render-array-item-composition.js.map +1 -0
  248. package/dist/schema/helpers/sort-property-names.d.ts +23 -0
  249. package/dist/schema/helpers/sort-property-names.d.ts.map +1 -0
  250. package/dist/schema/helpers/sort-property-names.js +55 -0
  251. package/dist/schema/helpers/sort-property-names.js.map +1 -0
  252. package/dist/schema/helpers/unwrap-for-read.d.ts +48 -0
  253. package/dist/schema/helpers/unwrap-for-read.d.ts.map +1 -0
  254. package/dist/schema/helpers/unwrap-for-read.js +8 -0
  255. package/dist/schema/helpers/unwrap-for-read.js.map +1 -0
  256. package/dist/schema/index.d.ts +12 -0
  257. package/dist/schema/index.d.ts.map +1 -0
  258. package/dist/schema/index.js +11 -0
  259. package/dist/schema/localization/index.d.ts +59 -0
  260. package/dist/schema/localization/index.d.ts.map +1 -0
  261. package/dist/schema/localization/index.js +18 -0
  262. package/dist/schema/localization/index.js.map +1 -0
  263. package/dist/schema/localization/locales/ar.d.ts +58 -0
  264. package/dist/schema/localization/locales/ar.d.ts.map +1 -0
  265. package/dist/schema/localization/locales/ar.js +60 -0
  266. package/dist/schema/localization/locales/ar.js.map +1 -0
  267. package/dist/schema/localization/locales/de.d.ts +58 -0
  268. package/dist/schema/localization/locales/de.d.ts.map +1 -0
  269. package/dist/schema/localization/locales/de.js +60 -0
  270. package/dist/schema/localization/locales/de.js.map +1 -0
  271. package/dist/schema/localization/locales/en.d.ts +58 -0
  272. package/dist/schema/localization/locales/en.d.ts.map +1 -0
  273. package/dist/schema/localization/locales/en.js +60 -0
  274. package/dist/schema/localization/locales/en.js.map +1 -0
  275. package/dist/schema/localization/locales/es.d.ts +58 -0
  276. package/dist/schema/localization/locales/es.d.ts.map +1 -0
  277. package/dist/schema/localization/locales/es.js +60 -0
  278. package/dist/schema/localization/locales/es.js.map +1 -0
  279. package/dist/schema/localization/locales/fr.d.ts +58 -0
  280. package/dist/schema/localization/locales/fr.d.ts.map +1 -0
  281. package/dist/schema/localization/locales/fr.js +60 -0
  282. package/dist/schema/localization/locales/fr.js.map +1 -0
  283. package/dist/schema/localization/locales/pt.d.ts +58 -0
  284. package/dist/schema/localization/locales/pt.d.ts.map +1 -0
  285. package/dist/schema/localization/locales/pt.js +60 -0
  286. package/dist/schema/localization/locales/pt.js.map +1 -0
  287. package/dist/schema/localization/locales/ru.d.ts +58 -0
  288. package/dist/schema/localization/locales/ru.d.ts.map +1 -0
  289. package/dist/schema/localization/locales/ru.js +60 -0
  290. package/dist/schema/localization/locales/ru.js.map +1 -0
  291. package/dist/schema/localization/locales/zh-cn.d.ts +58 -0
  292. package/dist/schema/localization/locales/zh-cn.d.ts.map +1 -0
  293. package/dist/schema/localization/locales/zh-cn.js +60 -0
  294. package/dist/schema/localization/locales/zh-cn.js.map +1 -0
  295. package/dist/schema/localization/translations.d.ts +460 -0
  296. package/dist/schema/localization/translations.d.ts.map +1 -0
  297. package/dist/schema/localization/translations.js +23 -0
  298. package/dist/schema/localization/translations.js.map +1 -0
  299. package/dist/schema/request-body-composition-index.d.ts +8 -0
  300. package/dist/schema/request-body-composition-index.d.ts.map +1 -0
  301. package/dist/schema/request-body-composition-index.js +6 -0
  302. package/dist/schema/request-body-composition-index.js.map +1 -0
  303. package/dist/schema/schema-tree.bench.d.ts +2 -0
  304. package/dist/schema/schema-tree.bench.d.ts.map +1 -0
  305. package/dist/schema/types.d.ts +51 -0
  306. package/dist/schema/types.d.ts.map +1 -0
  307. package/dist/shared/Badge.vue.d.ts +17 -0
  308. package/dist/shared/Badge.vue.d.ts.map +1 -0
  309. package/dist/shared/Badge.vue.js +9 -0
  310. package/dist/shared/Badge.vue.js.map +1 -0
  311. package/dist/shared/Badge.vue.script.js +16 -0
  312. package/dist/shared/Badge.vue.script.js.map +1 -0
  313. package/dist/shared/ScreenReader.vue.d.ts +21 -0
  314. package/dist/shared/ScreenReader.vue.d.ts.map +1 -0
  315. package/dist/shared/ScreenReader.vue.js +7 -0
  316. package/dist/shared/ScreenReader.vue.js.map +1 -0
  317. package/dist/shared/ScreenReader.vue.script.js +19 -0
  318. package/dist/shared/ScreenReader.vue.script.js.map +1 -0
  319. package/dist/shared/index.d.ts +3 -0
  320. package/dist/shared/index.d.ts.map +1 -0
  321. package/dist/shared/index.js +3 -0
  322. package/dist/specification-extensions/ExtensionValue.vue.d.ts +13 -0
  323. package/dist/specification-extensions/ExtensionValue.vue.d.ts.map +1 -0
  324. package/dist/specification-extensions/ExtensionValue.vue.js +7 -0
  325. package/dist/specification-extensions/ExtensionValue.vue.js.map +1 -0
  326. package/dist/specification-extensions/ExtensionValue.vue.script.js +84 -0
  327. package/dist/specification-extensions/ExtensionValue.vue.script.js.map +1 -0
  328. package/dist/specification-extensions/SpecificationExtensions.vue.d.ts +9 -0
  329. package/dist/specification-extensions/SpecificationExtensions.vue.d.ts.map +1 -0
  330. package/dist/specification-extensions/SpecificationExtensions.vue.js +7 -0
  331. package/dist/specification-extensions/SpecificationExtensions.vue.js.map +1 -0
  332. package/dist/specification-extensions/SpecificationExtensions.vue.script.js +21 -0
  333. package/dist/specification-extensions/SpecificationExtensions.vue.script.js.map +1 -0
  334. package/dist/specification-extensions/index.d.ts +2 -0
  335. package/dist/specification-extensions/index.d.ts.map +1 -0
  336. package/dist/specification-extensions/index.js +2 -0
  337. package/dist/style.css +576 -15
  338. package/dist/styles/schema-tree.css +91 -0
  339. package/dist/styles/tailwind.config.css +22 -0
  340. package/dist/vue-styles.css +1 -1
  341. package/package.json +45 -7
@@ -0,0 +1,91 @@
1
+ /**
2
+ * Schema tree rail tokens. Declared at app scope, not on `.schema-tree`, because
3
+ * rails are also drawn by surfaces above any tree root (a response row's panel,
4
+ * the response-headers group); scoped to the root they fell back to the raw
5
+ * border colour. Each panel sets only its own `--schema-depth`. The depth fade
6
+ * is deliberately not a token: a custom property substitutes where it is
7
+ * declared, so see `schema-rail` below for the use-site formula.
8
+ */
9
+ .scalar-app {
10
+ --schema-gutter: 16px;
11
+ --schema-row-pad: 6px;
12
+ --schema-depth: 0;
13
+ /* The theme's own border colour, so rails match every other hairline on the
14
+ page; the depth fade in `schema-rail` softens nested rails from this base. */
15
+ --schema-rail-base: var(--scalar-border-color);
16
+ /* Control sizes, and the HALF of each that positions it. A floating control
17
+ is centred on the rail by hanging it `half + gutter` to the left of the
18
+ text, so the halves must be tokens too: hard-coded offsets silently drift
19
+ off the rail the moment a size changes. */
20
+ --schema-glyph-size: 18px;
21
+ --schema-glyph-half: 9px;
22
+ --schema-glyph-icon: 16px;
23
+ --schema-toggle-size: 24px;
24
+ --schema-toggle-half: 12px;
25
+ }
26
+
27
+ /**
28
+ * Schema tree utilities: the depth-faded rail, the glyph puck and the rail's
29
+ * pointer strip, shared so every surface composes the same classes. Their custom
30
+ * properties live in the `.scalar-app` token block above (--schema-rail-base,
31
+ * --schema-depth, the control sizes); only the glyph's own colours are set on
32
+ * the tree root (--schema-glyph-background, --schema-glyph-color). The fade must stay a
33
+ * use-site formula: a custom property substitutes where it is declared, so a
34
+ * token would freeze at depth 0 and every rail would render the same grey.
35
+ */
36
+ @utility schema-rail {
37
+ border-inline-start: var(--scalar-border-width) solid
38
+ color-mix(in srgb, var(--schema-rail-base), var(--scalar-background-1) min(calc(var(--schema-depth) * 8%), 40%));
39
+ }
40
+
41
+ /* The knockout puck a tree glyph sits in: opaque, so a rail reads as passing
42
+ behind it. 18px around a 16px icon (16/14 in a narrow container), inside a
43
+ larger hit target on purpose. The border is always there, transparent at
44
+ rest, so the hover ring never shifts the icon. */
45
+ @utility schema-glyph {
46
+ inline-size: var(--schema-glyph-size, 18px);
47
+ block-size: var(--schema-glyph-size, 18px);
48
+ display: grid;
49
+ place-items: center;
50
+ border-radius: 9999px;
51
+ border: var(--scalar-border-width) solid transparent;
52
+ background: var(--schema-glyph-background, var(--scalar-background-1));
53
+ color: var(--schema-glyph-color, var(--scalar-color-2));
54
+ }
55
+
56
+ /* Tree-control hover variant: a glyph puck lights while the pointer is over
57
+ anything that toggles its row. That is the control carrying
58
+ `group/tree-control` (a row trigger, the gutter toggle, a reveal button);
59
+ for a gutter toggle it is also the row heading beside it, which toggles the
60
+ row on click too; and it is the open panel's rail, which closes the row.
61
+ The heading and rail cases are data attributes that pointer events write
62
+ (SchemaProperty.vue, SchemaRailPanel.vue), not `:has(... :hover)`: a `:has()`
63
+ anchor on every expandable row made each element inserted under it restyle
64
+ the whole open subtree. The attributes exist only while hovering and say
65
+ exactly what `:hover` said. */
66
+ @custom-variant tree-control-hover (
67
+ &:is(:where(.group\/tree-control):hover *),
68
+ :where(.property--tree[data-heading-hovered]) > .property-toggle &,
69
+ :where([data-child-rail-hovered]) > :where(.property-toggle, .parameter-item-trigger, .callback-item-trigger, .schema-card-title) &
70
+ );
71
+
72
+ /* The rail's hit target: an 11px strip straddling the 1px line (6px outside,
73
+ 5px inside). Pointer-only, so pair it with aria-hidden and data-rail-hit. */
74
+ @utility rail-hit {
75
+ position: absolute;
76
+ inset-block: 0;
77
+ inset-inline-start: calc(-1 * var(--scalar-border-width) - 5px);
78
+ inline-size: 11px;
79
+ cursor: pointer;
80
+ }
81
+
82
+ /* Rail hover variant: matches a railed panel while the pointer is over its own
83
+ hit strip. The strip writes data-rail-hovered on the panel from its pointer
84
+ events (SchemaRailPanel.vue), so every surface's strip triggers it
85
+ identically, and no `:has(> [data-rail-hit]:hover)` anchor is needed (see
86
+ the tree-control variant above for why). */
87
+ @custom-variant rail-hover {
88
+ &[data-rail-hovered] {
89
+ @slot;
90
+ }
91
+ }
@@ -10,3 +10,25 @@
10
10
 
11
11
  /* Search for Tailwind classes in Scalar Blocks */
12
12
  @source "../";
13
+
14
+ /* Shared schema tree controls and rails */
15
+ @import "./schema-tree.css";
16
+ /**
17
+ * Visually hides content while leaving it available to assistive technology.
18
+ * A shared utility rather than a style scoped to ScreenReader.vue, so the
19
+ * schema tree and the response headers can label a row's child count from
20
+ * plain markup. `clip-path` replaces the deprecated `clip`; `white-space:
21
+ * nowrap` matters because some engines announce a wrapped 1x1 box one word per
22
+ * line, breaking the sentence apart.
23
+ */
24
+ @utility screenreader-only {
25
+ position: absolute;
26
+ width: 1px;
27
+ height: 1px;
28
+ padding: 0;
29
+ margin: -1px;
30
+ overflow: hidden;
31
+ clip-path: inset(50%);
32
+ white-space: nowrap;
33
+ border: 0;
34
+ }
@@ -1,2 +1,2 @@
1
- .request-card[data-v-24e941aa]{color:var(--scalar-color-1);font-size:var(--scalar-font-size-3)}.request-method[data-v-24e941aa]{font-family:var(--scalar-font-code);margin-right:6px}.request-card-footer[data-v-24e941aa]{flex-shrink:0;justify-content:flex-end;padding:6px;display:flex;position:relative}.request-card-footer-addon[data-v-24e941aa]{flex:1;align-items:center;min-width:0;display:flex}.request-editor-section[data-v-24e941aa]{flex:1;display:flex}.request-card-simple[data-v-24e941aa]{font-size:var(--scalar-small);justify-content:space-between;align-items:center;padding:8px 8px 8px 12px;display:flex}.code-snippet[data-v-24e941aa]{flex-direction:column;width:100%;display:flex}
1
+ .request-card[data-v-24e941aa]{color:var(--scalar-color-1);font-size:var(--scalar-font-size-3)}.request-method[data-v-24e941aa]{font-family:var(--scalar-font-code);margin-right:6px}.request-card-footer[data-v-24e941aa]{flex-shrink:0;justify-content:flex-end;padding:6px;display:flex;position:relative}.request-card-footer-addon[data-v-24e941aa]{flex:1;align-items:center;min-width:0;display:flex}.request-editor-section[data-v-24e941aa]{flex:1;display:flex}.request-card-simple[data-v-24e941aa]{font-size:var(--scalar-small);justify-content:space-between;align-items:center;padding:8px 8px 8px 12px;display:flex}.code-snippet[data-v-24e941aa]{flex-direction:column;width:100%;display:flex}.error[data-v-8f822427]{background-color:var(--scalar-color-red)}.schema-card[data-v-8f822427]{font-size:var(--scalar-font-size-4);color:var(--scalar-color-1)}.schema-card-title[data-v-8f822427]{height:var(--schema-title-height);color:var(--scalar-color-2);font-weight:var(--scalar-semibold);font-size:var(--scalar-mini);border-bottom:var(--scalar-border-width) solid transparent;align-items:center;gap:4px;padding:6px 8px;display:flex}button.schema-card-title[data-v-8f822427]{cursor:pointer}button.schema-card-title[data-v-8f822427]:hover{color:var(--scalar-color-1)}.schema-properties-open>.schema-card-title[data-v-8f822427]{border-bottom:var(--scalar-border-width) solid var(--scalar-border-color);border-bottom-right-radius:0;border-bottom-left-radius:0}.schema-properties-open>.schema-properties[data-v-8f822427]{width:fit-content}.schema-card-description[data-v-8f822427]{color:var(--scalar-color-2)}.schema-card-description+.schema-properties[data-v-8f822427]{width:fit-content;margin-top:8px}.schema-card--level-0:first-of-type>.schema-card-description[data-v-8f822427]:has(+.schema-properties){border-bottom:var(--scalar-border-width) solid var(--scalar-border-color);margin-bottom:-8px;padding-bottom:8px}.schema-card--level-0~.schema-card--level-0>.schema-card-description[data-v-8f822427]:has(+.schema-properties){padding-top:8px}.schema-properties-open.schema-properties[data-v-8f822427],.schema-properties-open>.schema-card--open[data-v-8f822427]{width:100%}.schema-properties[data-v-8f822427]{border:var(--scalar-border-width) solid var(--scalar-border-color);border-radius:var(--scalar-radius-lg);flex-direction:column;width:fit-content;display:flex}.schema-properties-name[data-v-8f822427]{width:100%}.schema-properties .schema-properties[data-v-8f822427]{border-radius:13.5px}.schema-properties .schema-properties.schema-properties-open[data-v-8f822427]{border-radius:var(--scalar-radius-lg)}.schema-properties-open[data-v-8f822427]{width:100%}.schema-card--compact[data-v-8f822427]{align-self:flex-start}.schema-card--compact.schema-card--open[data-v-8f822427]{align-self:initial}.schema-card-title--compact[data-v-8f822427]{color:var(--scalar-color-2);border-bottom:none;height:auto;padding:6px 10px 6px 8px}.schema-properties-open>.schema-card-title--compact[data-v-8f822427]{position:static}.property--level-0>.schema-properties>.schema-card--level-0>.schema-properties[data-v-8f822427]{border:none}.property--level-0 .schema-card--level-0:not(.schema-card--compact) .property--level-1[data-v-8f822427]{padding:0 0 8px}:not(.composition-panel)>.schema-card--compact.schema-card--level-0>.schema-properties[data-v-8f822427]{border:none}[data-v-8f822427] .schema-card-description p{font-size:var(--scalar-small,var(--scalar-paragraph));color:var(--scalar-color-2);margin-bottom:6px;display:block}.children .schema-card-description[data-v-8f822427]:first-of-type{padding-top:0}.property-rule[data-v-c738e9ab] .composition-panel>.schema-card>.schema-properties>ul>li.property.property--tree-container{padding-top:0!important}.property-heading:empty+.property-description[data-v-1b21ab2e]:last-of-type,.property-description[data-v-1b21ab2e]:first-of-type:last-of-type{margin-top:0}.property-list[data-v-1b21ab2e]{border:var(--scalar-border-width) solid var(--scalar-border-color);border-radius:var(--scalar-radius);margin-top:10px}.property-list .property[data-v-1b21ab2e]:last-of-type{padding-bottom:10px}.enum-toggle-button[data-v-1b21ab2e]:hover{color:var(--scalar-color-1)}.badge-colored[data-v-2a7101e8]{background-color:var(--badge-color);color:color-mix(in srgb, var(--badge-color), black 40%)}@supports (color:lch(from red calc((50 - l) * infinity) 0 0)){.badge-colored[data-v-2a7101e8]{color:lch(from var(--badge-color) calc((50 - l) * infinity) 0 0 / 1)}}.badge.text-orange[data-v-2a7101e8]{background:color-mix(in srgb, var(--scalar-color-orange), transparent 90%);border:#0000}.badge.text-yellow[data-v-2a7101e8]{background:color-mix(in srgb, var(--scalar-color-yellow), transparent 90%);border:#0000}.badge.text-red[data-v-2a7101e8]{background:color-mix(in srgb, var(--scalar-color-red), transparent 90%);border:#0000}.badge.text-purple[data-v-2a7101e8]{background:color-mix(in srgb, var(--scalar-color-purple), transparent 90%);border:#0000}.badge.text-green[data-v-2a7101e8]{background:color-mix(in srgb, var(--scalar-color-green), transparent 90%);border:#0000}.property-default[data-v-46973243]{font-size:var(--scalar-mini);flex-direction:column;display:flex;position:relative}.property-default[data-v-46973243]:hover:before{content:"";border-radius:var(--scalar-radius);width:100%;height:20px;position:absolute;top:0;left:0}.property-default:hover .property-default-label span[data-v-46973243]{color:var(--scalar-color-1)}.property-default-label span[data-v-46973243]{color:var(--scalar-color-2);border-bottom:var(--scalar-border-width) dotted currentColor;position:relative}.property-default-value[data-v-46973243]{font-family:var(--scalar-font-code);align-items:center;gap:8px;width:100%;padding:6px;display:flex}.property-default-value span[data-v-46973243]{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.property-default-value[data-v-46973243] svg{color:var(--scalar-color-3)}.property-default-value[data-v-46973243]:hover svg{color:var(--scalar-color-1)}.property-default-value[data-v-46973243]{background:var(--scalar-background-2);border:var(--scalar-border-width) solid var(--scalar-border-color);border-radius:var(--scalar-radius)}.property-default-value-list[data-v-46973243]{background-color:var(--scalar-background-1);box-shadow:var(--scalar-shadow-1);border-radius:var(--scalar-radius-lg);border:var(--scalar-border-width) solid var(--scalar-border-color);z-index:2;flex-direction:column;gap:3px;min-width:200px;max-width:300px;padding:9px;display:none;position:absolute;top:18px;left:50%;overflow:auto;transform:translate(-50%)}.property-default:hover .property-default-value-list[data-v-46973243]{display:flex}.property-detail[data-v-8b57daa7]{display:inline-flex}.property-detail+.property-detail[data-v-8b57daa7]:before{content:"·";margin:0 .5ch;display:block}.property-detail-truncate[data-v-8b57daa7]{overflow:hidden}.property-detail-truncate>.property-detail-value[data-v-8b57daa7]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.property-detail-prefix[data-v-8b57daa7]{color:var(--scalar-color-2)}code.property-detail-value[data-v-8b57daa7]{font-family:var(--scalar-font-code);font-size:var(--scalar-font-size-3);color:var(--scalar-color-2);background:color-mix(in srgb, var(--scalar-background-2), var(--scalar-background-1));border:var(--scalar-border-width) solid var(--scalar-border-color);border-radius:var(--scalar-radius);padding:0 4px}.property-example[data-v-b3473aa1]{font-size:var(--scalar-mini);flex-direction:column;display:flex;position:relative}.property-example[data-v-b3473aa1]:hover:before{content:"";border-radius:var(--scalar-radius);width:100%;height:20px;position:absolute;top:0;left:0}.property-example-value[data-v-b3473aa1]{font-family:var(--scalar-font-code);align-items:center;gap:8px;width:100%;padding:6px;display:flex}.property-example-value span[data-v-b3473aa1]{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.property-example-value[data-v-b3473aa1] svg{color:var(--scalar-color-3)}.property-example-value[data-v-b3473aa1]:hover svg{color:var(--scalar-color-1)}.property-example-value[data-v-b3473aa1]{background:var(--scalar-background-2);border:var(--scalar-border-width) solid var(--scalar-border-color);border-radius:var(--scalar-radius)}.property-example-value-list[data-v-b3473aa1]{background-color:var(--scalar-background-1);box-shadow:var(--scalar-shadow-1);border-radius:var(--scalar-radius-lg);border:var(--scalar-border-width) solid var(--scalar-border-color);z-index:1000;flex-direction:column;gap:3px;min-width:200px;max-width:300px;padding:9px;display:none;position:absolute;top:18px;left:50%;overflow:auto;transform:translate(-50%)}.property-example:hover .property-example-value-list[data-v-b3473aa1]{display:flex}.property-pattern[data-v-db399b2d]{font-size:var(--scalar-mini);flex-direction:column;display:flex;position:relative}.property-pattern[data-v-db399b2d]:hover:before{content:"";border-radius:var(--scalar-radius);width:100%;height:20px;position:absolute;top:0;left:0}.property-pattern-popup[data-v-db399b2d]{background-color:var(--scalar-background-1);box-shadow:var(--scalar-shadow-1);border-radius:var(--scalar-radius-lg);border:var(--scalar-border-width) solid var(--scalar-border-color);z-index:1000;min-width:200px;max-width:min(500px,100vw - 32px);max-height:min(400px,100vh - 32px);padding:9px;display:none;position:absolute;top:18px;left:50%;overflow-y:auto;transform:translate(-50%)}.property-pattern:hover .property-pattern-popup[data-v-db399b2d],.property-pattern:focus-within .property-pattern-popup[data-v-db399b2d],.property-pattern.is-open .property-pattern-popup[data-v-db399b2d]{display:flex}.property-pattern-value[data-v-db399b2d]{font-family:var(--scalar-font-code);background:var(--scalar-background-2);border:var(--scalar-border-width) solid var(--scalar-border-color);border-radius:var(--scalar-radius);align-items:flex-start;gap:8px;width:100%;padding:6px;display:flex}.property-pattern-value code[data-v-db399b2d]{font-family:var(--scalar-font-code);font-size:var(--scalar-font-size-3);color:var(--scalar-color-2);white-space:pre-wrap;word-break:break-word;overflow-wrap:anywhere;text-align:left;flex:1}.property-heading[data-v-266fd7fb]{white-space:nowrap;flex-wrap:wrap;align-items:baseline;row-gap:9px;display:flex}:is(.property-heading[data-v-266fd7fb]:has(+.children),.property-heading[data-v-266fd7fb]:has(+.property-rule)){margin-bottom:9px}.property-heading[data-v-266fd7fb]>*{margin-right:9px}.property-heading[data-v-266fd7fb]:last-child{margin-right:0}.property-name[data-v-266fd7fb]{max-width:100%;font-family:var(--scalar-font-code);font-weight:var(--scalar-bold);font-size:var(--scalar-font-size-4);white-space:normal;overflow-wrap:break-word}.property-additional[data-v-266fd7fb]{font-family:var(--scalar-font-code)}.property-required[data-v-266fd7fb],.property-optional[data-v-266fd7fb]{color:var(--scalar-color-2)}.property-required[data-v-266fd7fb]{font-size:var(--scalar-mini);color:var(--scalar-color-orange)}.light-mode .property-required[data-v-266fd7fb]{color:color-mix(in srgb, var(--scalar-color-orange), var(--scalar-color-1) 32%)}.property-read-only[data-v-266fd7fb]{font-size:var(--scalar-mini);color:var(--scalar-color-blue)}.property-write-only[data-v-266fd7fb]{font-size:var(--scalar-mini);color:var(--scalar-color-green)}.property-discriminator[data-v-266fd7fb]{font-size:var(--scalar-mini);color:var(--scalar-color-purple)}.property-detail[data-v-266fd7fb]{font-size:var(--scalar-mini);color:var(--scalar-color-2);align-items:center;min-width:0;display:flex}.property-const[data-v-266fd7fb]{color:var(--scalar-color-1)}.deprecated[data-v-266fd7fb]{text-decoration:line-through}.property[data-v-071aaa62]{color:var(--scalar-color-1);font-size:var(--scalar-small);flex-direction:column;padding:10px;display:flex;position:relative}.property[data-v-071aaa62]:has(>.property-rule:first-of-type):not(.property--compact){padding-top:8px;padding-bottom:8px}.property--deprecated[data-v-071aaa62]{background:repeating-linear-gradient(-45deg, var(--scalar-background-2) 0, var(--scalar-background-2) 2px, transparent 2px, transparent 5px);background-size:100%}.property-description[data-v-071aaa62]{line-height:1.4;font-size:var(--scalar-small);margin-top:6px}.property-description[data-v-071aaa62]:has(+.property-rule){margin-bottom:9px}[data-v-071aaa62] .property-description *{color:var(--scalar-color-2)!important}.property[data-v-071aaa62]:not(:last-of-type){border-bottom:var(--scalar-border-width) solid var(--scalar-border-color)}.property-description+.children[data-v-071aaa62],.children+.property-rule[data-v-071aaa62]{margin-top:9px}.children[data-v-071aaa62]{flex-direction:column;display:flex}.children .property--compact.property--level-1[data-v-071aaa62]{padding:12px}.property-example-value[data-v-071aaa62]{all:unset;font-family:var(--scalar-font-code);border-top:var(--scalar-border-width) solid var(--scalar-border-color);padding:6px}.property-rule[data-v-071aaa62]{border-radius:var(--scalar-radius-lg);flex-direction:column;display:flex}.property-example[data-v-071aaa62]{background:0 0;border:none;flex-direction:row;gap:8px;display:flex}.property-example-label[data-v-071aaa62],.property-example-value[data-v-071aaa62]{padding:3px 0 0}.property-example-value[data-v-071aaa62]{background:var(--scalar-background-2);border-radius:var(--scalar-radius);border-top:0;padding:3px 4px}.property-name[data-v-071aaa62]{font-family:var(--scalar-font-code);font-weight:var(--scalar-semibold)}.property-name-additional-properties[data-v-071aaa62]:before,.property-name-pattern-properties[data-v-071aaa62]:before{text-transform:uppercase;font-size:var(--scalar-micro);border-radius:var(--scalar-radius);color:var(--scalar-color-1);border:var(--scalar-border-width) solid var(--scalar-border-color);background-color:var(--scalar-background-2);margin-right:4px;padding:2px 4px;display:inline-block}.property-name-pattern-properties[data-v-071aaa62]:before{content:"regex"}.property-name-additional-properties[data-v-071aaa62],.property-name-pattern-properties[data-v-071aaa62]{border:1px dashed var(--scalar-border-color);color:var(--scalar-color-accent);border-radius:var(--scalar-radius);padding:2px;display:inline-block}.schema-type-icon[data-v-39d4fd7f]{color:var(--scalar-color-1);display:none}.schema-type[data-v-39d4fd7f]{font-family:var(--scalar-font-code);color:var(--scalar-color-1)}
2
2
  /*$vite$:1*/
package/package.json CHANGED
@@ -17,7 +17,7 @@
17
17
  "blocks",
18
18
  "docs"
19
19
  ],
20
- "version": "0.4.3",
20
+ "version": "0.5.0",
21
21
  "engines": {
22
22
  "node": ">=22"
23
23
  },
@@ -30,6 +30,31 @@
30
30
  "import": "./dist/code-example/index.js",
31
31
  "types": "./dist/code-example/index.d.ts",
32
32
  "default": "./dist/code-example/index.js"
33
+ },
34
+ "./schema": {
35
+ "import": "./dist/schema/index.js",
36
+ "types": "./dist/schema/index.d.ts",
37
+ "default": "./dist/schema/index.js"
38
+ },
39
+ "./specification-extensions": {
40
+ "import": "./dist/specification-extensions/index.js",
41
+ "types": "./dist/specification-extensions/index.d.ts",
42
+ "default": "./dist/specification-extensions/index.js"
43
+ },
44
+ "./shared": {
45
+ "import": "./dist/shared/index.js",
46
+ "types": "./dist/shared/index.d.ts",
47
+ "default": "./dist/shared/index.js"
48
+ },
49
+ "./schema/helpers": {
50
+ "import": "./dist/schema/helpers/index.js",
51
+ "types": "./dist/schema/helpers/index.d.ts",
52
+ "default": "./dist/schema/helpers/index.js"
53
+ },
54
+ "./schema/expansion": {
55
+ "import": "./dist/schema/expansion/index.js",
56
+ "types": "./dist/schema/expansion/index.d.ts",
57
+ "default": "./dist/schema/expansion/index.js"
33
58
  }
34
59
  },
35
60
  "files": [
@@ -37,24 +62,31 @@
37
62
  "CHANGELOG.md"
38
63
  ],
39
64
  "dependencies": {
40
- "@scalar/components": "0.30.6",
41
- "@scalar/helpers": "0.16.0",
65
+ "@scalar/components": "0.30.7",
66
+ "@scalar/helpers": "0.16.1",
42
67
  "@scalar/icons": "0.7.6",
43
- "@scalar/snippetz": "0.10.5",
68
+ "@scalar/localization": "0.2.5",
69
+ "@scalar/snippetz": "0.10.6",
44
70
  "@scalar/themes": "0.18.1",
45
- "@scalar/types": "0.22.4",
46
- "@scalar/workspace-store": "0.68.0",
71
+ "@scalar/types": "0.23.0",
72
+ "@scalar/use-hooks": "0.4.18",
73
+ "@scalar/workspace-store": "0.68.1",
47
74
  "@types/har-format": "^1.2.16",
75
+ "@vueuse/core": "13.9.0",
48
76
  "js-base64": "^3.9.2",
49
77
  "vue": "^3.5.40"
50
78
  },
51
79
  "devDependencies": {
80
+ "@playwright/test": "1.62.1",
81
+ "@storybook/addon-docs": "10.5.10",
82
+ "@storybook/addon-links": "10.5.10",
83
+ "@storybook/vue3-vite": "10.5.10",
52
84
  "@tailwindcss/cli": "^4.3.3",
53
85
  "@tailwindcss/vite": "^4.3.3",
54
86
  "@vitejs/plugin-vue": "^6.0.8",
55
87
  "@vue/test-utils": "2.4.11",
56
- "@vueuse/core": "13.9.0",
57
88
  "jsdom": "27.4.0",
89
+ "storybook": "10.5.10",
58
90
  "tailwindcss": "^4.3.3",
59
91
  "vite": "8.1.5",
60
92
  "vitest": "4.1.10",
@@ -63,9 +95,15 @@
63
95
  },
64
96
  "scripts": {
65
97
  "build": "vite build && pnpm build:styles && vue-tsc -p tsconfig.build.json",
98
+ "build:storybook": "storybook build",
66
99
  "build:styles": "shx cp -r src/styles dist && tailwindcss --optimize -i src/style.css -o dist/style.css && cat dist/vue-styles.css >> dist/style.css",
67
100
  "dev": "vite --config playground/vite.config.ts",
101
+ "dev:storybook": "storybook dev -p 6006 --ci",
102
+ "preview:storybook": "vite preview --outDir storybook-static -c test/vite.config.ts 1>&2",
68
103
  "test": "vitest",
104
+ "test:e2e:storybook": "PW_TEST_CONNECT_WS_ENDPOINT=ws://127.0.0.1:5001/ playwright test -c playwright.config.ts",
105
+ "test:e2e:storybook:ci": "playwright test -c playwright.config.ts",
106
+ "test:e2e:storybook:update-snapshots": "pnpm test:e2e:storybook --update-snapshots",
69
107
  "types:check": "vue-tsc --noEmit"
70
108
  }
71
109
  }