@scalar/api-client 2.27.1 → 2.29.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 (77) hide show
  1. package/CHANGELOG.md +146 -0
  2. package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
  3. package/dist/components/ViewLayout/ViewLayoutSection.vue.js +1 -1
  4. package/dist/libs/local-storage.js +3 -3
  5. package/dist/style.css +1 -1
  6. package/dist/v2/blocks/request-block/RequestBlock.vue.js +1 -1
  7. package/dist/v2/blocks/request-block/RequestBlock.vue2.js +21 -21
  8. package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts.map +1 -1
  9. package/dist/v2/blocks/request-block/components/RequestBody.vue.js +2 -2
  10. package/dist/v2/blocks/request-block/components/RequestBody.vue2.js +67 -75
  11. package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts +2 -0
  12. package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts.map +1 -1
  13. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts +2 -0
  14. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -1
  15. package/dist/v2/blocks/request-block/helpers/get-default-headers.d.ts +1 -1
  16. package/dist/v2/blocks/request-block/helpers/get-default-headers.d.ts.map +1 -1
  17. package/dist/v2/blocks/request-block/helpers/get-default-headers.js +20 -19
  18. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts +2 -0
  19. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -1
  20. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +42 -40
  21. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts.map +1 -1
  22. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +5 -5
  23. package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts +3 -1
  24. package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts.map +1 -1
  25. package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.js +35 -35
  26. package/dist/v2/components/code-input/CodeInput.vue.d.ts.map +1 -1
  27. package/dist/v2/components/code-input/CodeInput.vue.js +2 -2
  28. package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
  29. package/dist/v2/components/sidebar/Sidebar.vue.js +1 -1
  30. package/dist/v2/features/app/App.vue.d.ts.map +1 -1
  31. package/dist/v2/features/app/App.vue.js +70 -70
  32. package/dist/v2/features/app/app-events.d.ts +2 -1
  33. package/dist/v2/features/app/app-events.d.ts.map +1 -1
  34. package/dist/v2/features/app/app-events.js +89 -64
  35. package/dist/v2/features/app/app-state.d.ts.map +1 -1
  36. package/dist/v2/features/app/app-state.js +172 -151
  37. package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
  38. package/dist/v2/features/app/components/AppSidebar.vue.js +1 -1
  39. package/dist/v2/features/app/components/AppSidebar.vue2.js +48 -47
  40. package/dist/v2/features/app/components/DesktopTabs.vue.d.ts.map +1 -1
  41. package/dist/v2/features/app/components/DesktopTabs.vue.js +4 -4
  42. package/dist/v2/features/app/components/DownloadAppButton.vue.d.ts.map +1 -1
  43. package/dist/v2/features/app/components/DownloadAppButton.vue.js +1 -1
  44. package/dist/v2/features/app/components/DownloadAppButton.vue2.js +9 -9
  45. package/dist/v2/features/app/components/SidebarItemMenu.vue.d.ts.map +1 -1
  46. package/dist/v2/features/app/components/SidebarItemMenu.vue.js +71 -43
  47. package/dist/v2/features/app/helpers/routes.js +11 -11
  48. package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts +1 -6
  49. package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts.map +1 -1
  50. package/dist/v2/features/collection/WorkspaceCollection.vue.js +38 -20
  51. package/dist/v2/features/collection/components/LabelInput.vue.d.ts +3 -0
  52. package/dist/v2/features/collection/components/LabelInput.vue.d.ts.map +1 -1
  53. package/dist/v2/features/collection/components/LabelInput.vue.js +2 -2
  54. package/dist/v2/features/collection/components/LabelInput.vue2.js +20 -16
  55. package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.d.ts +7 -2
  56. package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.d.ts.map +1 -1
  57. package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.js +70 -71
  58. package/dist/v2/features/command-palette/components/{CommandPaletteDocument.vue.d.ts → CommandPaletteOpenApiDocument.vue.d.ts} +3 -3
  59. package/dist/v2/features/command-palette/components/CommandPaletteOpenApiDocument.vue.d.ts.map +1 -0
  60. package/dist/v2/features/command-palette/components/{CommandPaletteDocument.vue.js → CommandPaletteOpenApiDocument.vue.js} +15 -15
  61. package/dist/v2/features/command-palette/components/CommandPaletteOpenApiDocument.vue2.js +4 -0
  62. package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.d.ts +2 -2
  63. package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.d.ts.map +1 -1
  64. package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.js +10 -10
  65. package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.d.ts +27 -5
  66. package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.d.ts.map +1 -1
  67. package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.js +80 -53
  68. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts +34 -9
  69. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts.map +1 -1
  70. package/dist/v2/features/command-palette/hooks/use-command-palette-state.js +50 -44
  71. package/dist/v2/features/operation/Operation.vue.js +1 -1
  72. package/dist/v2/workspace-events.d.ts.map +1 -1
  73. package/dist/v2/workspace-events.js +123 -113
  74. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  75. package/package.json +17 -17
  76. package/dist/v2/features/command-palette/components/CommandPaletteDocument.vue.d.ts.map +0 -1
  77. package/dist/v2/features/command-palette/components/CommandPaletteDocument.vue2.js +0 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,151 @@
1
1
  # @scalar/api-client
2
2
 
3
+ ## 2.29.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#8212](https://github.com/scalar/scalar/pull/8212): chore: version bump
8
+
9
+ #### Updated Dependencies
10
+
11
+ - **@scalar/helpers@0.2.15**
12
+ - [#8212](https://github.com/scalar/scalar/pull/8212): chore: version bump
13
+
14
+ - **@scalar/json-magic@0.11.4**
15
+ - [#8212](https://github.com/scalar/scalar/pull/8212): chore: version bump
16
+
17
+ - **@scalar/oas-utils@0.6.45**
18
+ - [#8212](https://github.com/scalar/scalar/pull/8212): chore: version bump
19
+
20
+ - **@scalar/sidebar@0.7.38**
21
+ - [#8212](https://github.com/scalar/scalar/pull/8212): chore: version bump
22
+
23
+ - **@scalar/types@0.6.6**
24
+ - [#8212](https://github.com/scalar/scalar/pull/8212): chore: version bump
25
+
26
+ - **@scalar/workspace-store@0.34.1**
27
+ - [#8212](https://github.com/scalar/scalar/pull/8212): chore: version bump
28
+
29
+ - **@scalar/components@0.19.7**
30
+
31
+ - **@scalar/import@0.4.52**
32
+
33
+ - **@scalar/object-utils@1.2.29**
34
+
35
+ - **@scalar/openapi-parser@0.24.13**
36
+
37
+ - **@scalar/postman-to-openapi@0.4.7**
38
+
39
+ - **@scalar/snippetz@0.6.15**
40
+
41
+ - **@scalar/use-codemirror@0.13.42**
42
+
43
+ ## 2.29.0
44
+
45
+ ### Minor Changes
46
+
47
+ - [#8198](https://github.com/scalar/scalar/pull/8198): feat: handle workspace rename
48
+
49
+ ### Patch Changes
50
+
51
+ - [#8207](https://github.com/scalar/scalar/pull/8207): chore: version bump
52
+
53
+ #### Updated Dependencies
54
+
55
+ - **@scalar/workspace-store@0.34.0**
56
+ - [#8198](https://github.com/scalar/scalar/pull/8198): feat: handle workspace rename
57
+ - [#8208](https://github.com/scalar/scalar/pull/8208): fix: unpack proxy before assigning
58
+ - [#8207](https://github.com/scalar/scalar/pull/8207): chore: version bump
59
+
60
+ - **@scalar/helpers@0.2.14**
61
+ - [#8207](https://github.com/scalar/scalar/pull/8207): chore: version bump
62
+
63
+ - **@scalar/json-magic@0.11.3**
64
+ - [#8207](https://github.com/scalar/scalar/pull/8207): chore: version bump
65
+
66
+ - **@scalar/oas-utils@0.6.44**
67
+ - [#8207](https://github.com/scalar/scalar/pull/8207): chore: version bump
68
+
69
+ - **@scalar/sidebar@0.7.37**
70
+ - [#8207](https://github.com/scalar/scalar/pull/8207): chore: version bump
71
+
72
+ - **@scalar/types@0.6.5**
73
+ - [#8207](https://github.com/scalar/scalar/pull/8207): chore: version bump
74
+
75
+ - **@scalar/components@0.19.6**
76
+
77
+ - **@scalar/import@0.4.51**
78
+
79
+ - **@scalar/object-utils@1.2.28**
80
+
81
+ - **@scalar/openapi-parser@0.24.12**
82
+
83
+ - **@scalar/postman-to-openapi@0.4.6**
84
+
85
+ - **@scalar/snippetz@0.6.14**
86
+
87
+ - **@scalar/use-codemirror@0.13.41**
88
+
89
+ ## 2.28.0
90
+
91
+ ### Minor Changes
92
+
93
+ - [#8199](https://github.com/scalar/scalar/pull/8199): feat: create draft example
94
+
95
+ ### Patch Changes
96
+
97
+ - [#8162](https://github.com/scalar/scalar/pull/8162): feat: allow editing tags
98
+ - [#8167](https://github.com/scalar/scalar/pull/8167): Accept header now defaults to the response content types defined in the OpenAPI spec instead of always using _/_
99
+ - [#8197](https://github.com/scalar/scalar/pull/8197): fix: include path in redirect uri
100
+ - [#8132](https://github.com/scalar/scalar/pull/8132): chore: unify the app and web layout
101
+ - [#8191](https://github.com/scalar/scalar/pull/8191): chore: rename create document command
102
+ - [#7826](https://github.com/scalar/scalar/pull/7826): feat: added migrator for v1 local storage to v2 indexdb
103
+ - [#8194](https://github.com/scalar/scalar/pull/8194): fix: correctly display the env pill on light mode
104
+ - [#8204](https://github.com/scalar/scalar/pull/8204): fix: remove DocumentRedirect component
105
+ - [#8160](https://github.com/scalar/scalar/pull/8160): fix: update sidebar entry when the operation summary changes
106
+ - [#8174](https://github.com/scalar/scalar/pull/8174): feat: add `createAnySecurityScheme` config option to control generic auth scheme creation
107
+
108
+ #### Updated Dependencies
109
+
110
+ - **@scalar/workspace-store@0.33.0**
111
+ - [#8162](https://github.com/scalar/scalar/pull/8162): feat: allow editing tags
112
+ - [#8151](https://github.com/scalar/scalar/pull/8151): fix: resolve external references on windows
113
+ - [#8191](https://github.com/scalar/scalar/pull/8191): chore: rename create document command
114
+ - [#8199](https://github.com/scalar/scalar/pull/8199): feat: create draft example
115
+ - [#7826](https://github.com/scalar/scalar/pull/7826): feat: added migrator for v1 local storage to v2 indexdb
116
+ - [#8160](https://github.com/scalar/scalar/pull/8160): fix: update sidebar entry when the operation summary changes
117
+ - [#8133](https://github.com/scalar/scalar/pull/8133): fix: allow editing content-type query parameters in the API client
118
+
119
+ - **@scalar/sidebar@0.7.36**
120
+ - [#8162](https://github.com/scalar/scalar/pull/8162): feat: allow editing tags
121
+ - [#8190](https://github.com/scalar/scalar/pull/8190): fix: align HttpMethod badge positioning for folders
122
+
123
+ - **@scalar/json-magic@0.11.2**
124
+ - [#8151](https://github.com/scalar/scalar/pull/8151): fix: resolve external references on windows
125
+
126
+ - **@scalar/oas-utils@0.6.43**
127
+ - [#7826](https://github.com/scalar/scalar/pull/7826): feat: added migrator for v1 local storage to v2 indexdb
128
+
129
+ - **@scalar/helpers@0.2.13**
130
+ - [#7826](https://github.com/scalar/scalar/pull/7826): feat: added migrator for v1 local storage to v2 indexdb
131
+
132
+ - **@scalar/types@0.6.4**
133
+ - [#8174](https://github.com/scalar/scalar/pull/8174): feat: add `createAnySecurityScheme` config option to control generic auth scheme creation
134
+
135
+ - **@scalar/openapi-parser@0.24.11**
136
+
137
+ - **@scalar/components@0.19.5**
138
+
139
+ - **@scalar/import@0.4.50**
140
+
141
+ - **@scalar/object-utils@1.2.27**
142
+
143
+ - **@scalar/postman-to-openapi@0.4.5**
144
+
145
+ - **@scalar/snippetz@0.6.13**
146
+
147
+ - **@scalar/use-codemirror@0.13.40**
148
+
3
149
  ## 2.27.1
4
150
 
5
151
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"ViewLayoutSection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutSection.vue"],"names":[],"mappings":"AAyEA,QAAA,IAAI,OAAO,IAAU,EAAE,OAAO,IAAW,CAAE;AAC3C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC1C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAK/C,QAAA,MAAM,UAAU,+QACd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"ViewLayoutSection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutSection.vue"],"names":[],"mappings":"AAwEA,QAAA,IAAI,OAAO,IAAU,EAAE,OAAO,IAAW,CAAE;AAC3C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC1C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAK/C,QAAA,MAAM,UAAU,+QACd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -2,7 +2,7 @@ import { defineComponent as n, createElementBlock as t, openBlock as o, normaliz
2
2
  import { useBindCx as a } from "@scalar/components";
3
3
  const u = {
4
4
  key: 0,
5
- class: "request-response-header bg-b-1 -mb-1/2 sticky top-0 z-1 flex min-h-11 items-center border-b px-2.5 text-base font-medium xl:rounded-none"
5
+ class: "request-response-header bg-b-1 -mb-1/2 sticky top-0 flex min-h-11 items-center border-b px-2.5 text-base font-medium xl:rounded-none"
6
6
  }, b = /* @__PURE__ */ n({
7
7
  inheritAttrs: !1,
8
8
  __name: "ViewLayoutSection",
@@ -1,6 +1,6 @@
1
1
  import { cookieSchema as E } from "@scalar/oas-utils/entities/cookie";
2
2
  import { environmentSchema as k } from "@scalar/oas-utils/entities/environment";
3
- import { collectionSchema as q, requestExampleSchema as v, requestSchema as g, serverSchema as x, securitySchemeSchema as y, tagSchema as R } from "@scalar/oas-utils/entities/spec";
3
+ import { collectionSchema as q, requestExampleSchema as v, requestSchema as g, serverSchema as y, securitySchemeSchema as x, tagSchema as R } from "@scalar/oas-utils/entities/spec";
4
4
  import { workspaceSchema as _ } from "@scalar/oas-utils/entities/workspace";
5
5
  import { schemaModel as I } from "@scalar/oas-utils/helpers";
6
6
  import { migrator as D, DATA_VERSION_LS_LEY as L, DATA_VERSION as N } from "@scalar/oas-utils/migrations";
@@ -30,8 +30,8 @@ const e = (o, t, s) => o.forEach((a) => {
30
30
  securitySchemes: w,
31
31
  tags: M,
32
32
  workspaces: f
33
- } = D();
34
- e(c, q, t.rawAdd), e(n, E, s.add), e(S, k, a.add), e(h, v, m.rawAdd), e(p, g, d.rawAdd), e(A, x, u.rawAdd), e(w, y, i.rawAdd), e(M, R, r.rawAdd), e(f, _, l.rawAdd), localStorage.setItem(L, N);
33
+ } = D().arrays;
34
+ e(c, q, t.rawAdd), e(n, E, s.add), e(S, k, a.add), e(h, v, m.rawAdd), e(p, g, d.rawAdd), e(A, y, u.rawAdd), e(w, x, i.rawAdd), e(M, R, r.rawAdd), e(f, _, l.rawAdd), localStorage.setItem(L, N);
35
35
  } catch (c) {
36
36
  console.error(c);
37
37
  }