@scalar/api-reference 1.26.1 → 1.28.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/CHANGELOG.md +59 -0
  2. package/README.md +2 -6
  3. package/dist/browser/standalone.js +3306 -3283
  4. package/dist/browser/webpack-stats.json +1 -1
  5. package/dist/components/Layouts/ModernLayout.vue.js +2 -2
  6. package/dist/components/Layouts/ModernLayout.vue2.js +9 -12
  7. package/dist/components/SingleApiReference.vue.d.ts.map +1 -1
  8. package/dist/components/SingleApiReference.vue.js +6 -6
  9. package/dist/esm.d.ts +5 -1
  10. package/dist/esm.d.ts.map +1 -1
  11. package/dist/esm.js +12 -9
  12. package/dist/features/DownloadLink/DownloadLink.vue.js +1 -1
  13. package/dist/features/DownloadLink/DownloadLink.vue2.js +16 -16
  14. package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts +1 -1
  15. package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts.map +1 -1
  16. package/dist/features/Operation/components/ContentTypeSelect.vue.js +80 -5
  17. package/dist/features/Operation/components/ContentTypeSelect.vue2.js +2 -43
  18. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
  19. package/dist/features/Operation/components/ParameterListItem.vue.js +2 -2
  20. package/dist/features/Operation/components/ParameterListItem.vue2.js +33 -33
  21. package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
  22. package/dist/features/Operation/components/RequestBody.vue.js +2 -2
  23. package/dist/features/Operation/components/RequestBody.vue2.js +15 -15
  24. package/dist/hooks/useMultipleDocuments.d.ts +9 -5
  25. package/dist/hooks/useMultipleDocuments.d.ts.map +1 -1
  26. package/dist/hooks/useMultipleDocuments.js +38 -38
  27. package/dist/index.d.ts +6 -5
  28. package/dist/index.d.ts.map +1 -1
  29. package/dist/index.js +74 -72
  30. package/dist/standalone/lib/html-api.d.ts +30 -1
  31. package/dist/standalone/lib/html-api.d.ts.map +1 -1
  32. package/dist/standalone/lib/html-api.js +54 -0
  33. package/dist/standalone/lib/register-globals.d.ts +11 -0
  34. package/dist/standalone/lib/register-globals.d.ts.map +1 -0
  35. package/dist/style.css +1 -1
  36. package/package.json +8 -8
package/CHANGELOG.md CHANGED
@@ -1,5 +1,64 @@
1
1
  # @scalar/api-reference
2
2
 
3
+ ## 1.28.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [7bc87ef]
8
+ - @scalar/api-client@2.3.1
9
+
10
+ ## 1.28.0
11
+
12
+ ### Minor Changes
13
+
14
+ - 5f9a8a2: feat!: remove the spec prefix, make content and url top-level attributes
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies [5be9418]
19
+ - Updated dependencies [5f9a8a2]
20
+ - @scalar/api-client@2.3.0
21
+ - @scalar/types@0.1.0
22
+ - @scalar/oas-utils@0.2.118
23
+ - @scalar/openapi-parser@0.10.10
24
+ - @scalar/snippetz@0.2.16
25
+ - @scalar/themes@0.9.77
26
+ - @scalar/code-highlight@0.0.24
27
+ - @scalar/components@0.13.35
28
+ - @scalar/use-hooks@0.1.31
29
+
30
+ ## 1.27.0
31
+
32
+ ### Minor Changes
33
+
34
+ - e373a21: feat: new JS-based API window.Scalar.createApiReference
35
+
36
+ ### Patch Changes
37
+
38
+ - eb70f8b: fix: one more attempt at fixing ci
39
+ - 8b343f6: feat: favors scalar dropdown as content type selector
40
+ - Updated dependencies [00a429f]
41
+ - Updated dependencies [fc6a45e]
42
+ - Updated dependencies [a0da28e]
43
+ - @scalar/api-client@2.2.63
44
+ - @scalar/types@0.0.41
45
+ - @scalar/oas-utils@0.2.117
46
+ - @scalar/openapi-parser@0.10.10
47
+ - @scalar/snippetz@0.2.16
48
+ - @scalar/themes@0.9.76
49
+ - @scalar/code-highlight@0.0.24
50
+ - @scalar/components@0.13.34
51
+ - @scalar/use-hooks@0.1.30
52
+
53
+ ## 1.26.2
54
+
55
+ ### Patch Changes
56
+
57
+ - Updated dependencies [ab98841]
58
+ - Updated dependencies [db9ebbc]
59
+ - @scalar/oas-utils@0.2.116
60
+ - @scalar/api-client@2.2.62
61
+
3
62
  ## 1.26.1
4
63
 
5
64
  ### Patch Changes
package/README.md CHANGED
@@ -109,9 +109,7 @@ import { type ReferenceProps } from './types'
109
109
  const ev = new CustomEvent('scalar:update-references-config', {
110
110
  detail: {
111
111
  configuration: {
112
- spec: {
113
- url: 'https://cdn.jsdelivr.net/npm/@scalar/galaxy/dist/latest.yaml',
114
- },
112
+ url: 'https://cdn.jsdelivr.net/npm/@scalar/galaxy/dist/latest.yaml',
115
113
  },
116
114
  } satisfies ReferenceProps,
117
115
  })
@@ -138,9 +136,7 @@ import '@scalar/api-reference/style.css'
138
136
  <template>
139
137
  <ApiReference
140
138
  :configuration="{
141
- spec: {
142
- url: 'https://cdn.jsdelivr.net/npm/@scalar/galaxy/dist/latest.yaml',
143
- },
139
+ url: 'https://cdn.jsdelivr.net/npm/@scalar/galaxy/dist/latest.yaml',
144
140
  }" />
145
141
  </template>
146
142
  ```