@scalar/api-client 2.27.1 → 2.29.2

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 (87) hide show
  1. package/CHANGELOG.md +166 -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 +4 -2
  36. package/dist/v2/features/app/app-state.d.ts.map +1 -1
  37. package/dist/v2/features/app/app-state.js +185 -156
  38. package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
  39. package/dist/v2/features/app/components/AppSidebar.vue.js +1 -1
  40. package/dist/v2/features/app/components/AppSidebar.vue2.js +48 -47
  41. package/dist/v2/features/app/components/DesktopTabs.vue.d.ts.map +1 -1
  42. package/dist/v2/features/app/components/DesktopTabs.vue.js +4 -4
  43. package/dist/v2/features/app/components/DownloadAppButton.vue.d.ts.map +1 -1
  44. package/dist/v2/features/app/components/DownloadAppButton.vue.js +1 -1
  45. package/dist/v2/features/app/components/DownloadAppButton.vue2.js +9 -9
  46. package/dist/v2/features/app/components/SidebarItemMenu.vue.d.ts.map +1 -1
  47. package/dist/v2/features/app/components/SidebarItemMenu.vue.js +71 -43
  48. package/dist/v2/features/app/helpers/routes.js +11 -11
  49. package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts +1 -6
  50. package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts.map +1 -1
  51. package/dist/v2/features/collection/WorkspaceCollection.vue.js +38 -20
  52. package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +1 -1
  53. package/dist/v2/features/collection/components/Authentication.vue.js +2 -2
  54. package/dist/v2/features/collection/components/Authentication.vue2.js +20 -16
  55. package/dist/v2/features/collection/components/LabelInput.vue.d.ts +3 -0
  56. package/dist/v2/features/collection/components/LabelInput.vue.d.ts.map +1 -1
  57. package/dist/v2/features/collection/components/LabelInput.vue.js +2 -2
  58. package/dist/v2/features/collection/components/LabelInput.vue2.js +20 -16
  59. package/dist/v2/features/collection/components/Settings.vue.d.ts.map +1 -1
  60. package/dist/v2/features/collection/components/Settings.vue.js +18 -14
  61. package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.d.ts +7 -2
  62. package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.d.ts.map +1 -1
  63. package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.js +70 -71
  64. package/dist/v2/features/command-palette/components/{CommandPaletteDocument.vue.d.ts → CommandPaletteOpenApiDocument.vue.d.ts} +3 -3
  65. package/dist/v2/features/command-palette/components/CommandPaletteOpenApiDocument.vue.d.ts.map +1 -0
  66. package/dist/v2/features/command-palette/components/{CommandPaletteDocument.vue.js → CommandPaletteOpenApiDocument.vue.js} +15 -15
  67. package/dist/v2/features/command-palette/components/CommandPaletteOpenApiDocument.vue2.js +4 -0
  68. package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.d.ts +2 -2
  69. package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.d.ts.map +1 -1
  70. package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.js +10 -10
  71. package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.d.ts +27 -5
  72. package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.d.ts.map +1 -1
  73. package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.js +80 -53
  74. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts +34 -9
  75. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts.map +1 -1
  76. package/dist/v2/features/command-palette/hooks/use-command-palette-state.js +50 -44
  77. package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
  78. package/dist/v2/features/operation/Operation.vue.js +19 -15
  79. package/dist/v2/helpers/get-active-proxy-url.d.ts +18 -0
  80. package/dist/v2/helpers/get-active-proxy-url.d.ts.map +1 -0
  81. package/dist/v2/helpers/get-active-proxy-url.js +5 -0
  82. package/dist/v2/workspace-events.d.ts.map +1 -1
  83. package/dist/v2/workspace-events.js +123 -113
  84. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  85. package/package.json +18 -18
  86. package/dist/v2/features/command-palette/components/CommandPaletteDocument.vue.d.ts.map +0 -1
  87. package/dist/v2/features/command-palette/components/CommandPaletteDocument.vue2.js +0 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,171 @@
1
1
  # @scalar/api-client
2
2
 
3
+ ## 2.29.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#8219](https://github.com/scalar/scalar/pull/8219): chore: default to proxy for web layout
8
+ - [#8220](https://github.com/scalar/scalar/pull/8220): chore: add guards for team workspaces
9
+
10
+ #### Updated Dependencies
11
+
12
+ - **@scalar/workspace-store@0.34.2**
13
+ - [#8219](https://github.com/scalar/scalar/pull/8219): chore: default to proxy for web layout
14
+
15
+ - **@scalar/oas-utils@0.6.46**
16
+
17
+ - **@scalar/sidebar@0.7.39**
18
+
19
+ - **@scalar/components@0.19.8**
20
+
21
+ - **@scalar/use-codemirror@0.13.43**
22
+
23
+ ## 2.29.1
24
+
25
+ ### Patch Changes
26
+
27
+ - [#8212](https://github.com/scalar/scalar/pull/8212): chore: version bump
28
+
29
+ #### Updated Dependencies
30
+
31
+ - **@scalar/helpers@0.2.15**
32
+ - [#8212](https://github.com/scalar/scalar/pull/8212): chore: version bump
33
+
34
+ - **@scalar/json-magic@0.11.4**
35
+ - [#8212](https://github.com/scalar/scalar/pull/8212): chore: version bump
36
+
37
+ - **@scalar/oas-utils@0.6.45**
38
+ - [#8212](https://github.com/scalar/scalar/pull/8212): chore: version bump
39
+
40
+ - **@scalar/sidebar@0.7.38**
41
+ - [#8212](https://github.com/scalar/scalar/pull/8212): chore: version bump
42
+
43
+ - **@scalar/types@0.6.6**
44
+ - [#8212](https://github.com/scalar/scalar/pull/8212): chore: version bump
45
+
46
+ - **@scalar/workspace-store@0.34.1**
47
+ - [#8212](https://github.com/scalar/scalar/pull/8212): chore: version bump
48
+
49
+ - **@scalar/components@0.19.7**
50
+
51
+ - **@scalar/import@0.4.52**
52
+
53
+ - **@scalar/object-utils@1.2.29**
54
+
55
+ - **@scalar/openapi-parser@0.24.13**
56
+
57
+ - **@scalar/postman-to-openapi@0.4.7**
58
+
59
+ - **@scalar/snippetz@0.6.15**
60
+
61
+ - **@scalar/use-codemirror@0.13.42**
62
+
63
+ ## 2.29.0
64
+
65
+ ### Minor Changes
66
+
67
+ - [#8198](https://github.com/scalar/scalar/pull/8198): feat: handle workspace rename
68
+
69
+ ### Patch Changes
70
+
71
+ - [#8207](https://github.com/scalar/scalar/pull/8207): chore: version bump
72
+
73
+ #### Updated Dependencies
74
+
75
+ - **@scalar/workspace-store@0.34.0**
76
+ - [#8198](https://github.com/scalar/scalar/pull/8198): feat: handle workspace rename
77
+ - [#8208](https://github.com/scalar/scalar/pull/8208): fix: unpack proxy before assigning
78
+ - [#8207](https://github.com/scalar/scalar/pull/8207): chore: version bump
79
+
80
+ - **@scalar/helpers@0.2.14**
81
+ - [#8207](https://github.com/scalar/scalar/pull/8207): chore: version bump
82
+
83
+ - **@scalar/json-magic@0.11.3**
84
+ - [#8207](https://github.com/scalar/scalar/pull/8207): chore: version bump
85
+
86
+ - **@scalar/oas-utils@0.6.44**
87
+ - [#8207](https://github.com/scalar/scalar/pull/8207): chore: version bump
88
+
89
+ - **@scalar/sidebar@0.7.37**
90
+ - [#8207](https://github.com/scalar/scalar/pull/8207): chore: version bump
91
+
92
+ - **@scalar/types@0.6.5**
93
+ - [#8207](https://github.com/scalar/scalar/pull/8207): chore: version bump
94
+
95
+ - **@scalar/components@0.19.6**
96
+
97
+ - **@scalar/import@0.4.51**
98
+
99
+ - **@scalar/object-utils@1.2.28**
100
+
101
+ - **@scalar/openapi-parser@0.24.12**
102
+
103
+ - **@scalar/postman-to-openapi@0.4.6**
104
+
105
+ - **@scalar/snippetz@0.6.14**
106
+
107
+ - **@scalar/use-codemirror@0.13.41**
108
+
109
+ ## 2.28.0
110
+
111
+ ### Minor Changes
112
+
113
+ - [#8199](https://github.com/scalar/scalar/pull/8199): feat: create draft example
114
+
115
+ ### Patch Changes
116
+
117
+ - [#8162](https://github.com/scalar/scalar/pull/8162): feat: allow editing tags
118
+ - [#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 _/_
119
+ - [#8197](https://github.com/scalar/scalar/pull/8197): fix: include path in redirect uri
120
+ - [#8132](https://github.com/scalar/scalar/pull/8132): chore: unify the app and web layout
121
+ - [#8191](https://github.com/scalar/scalar/pull/8191): chore: rename create document command
122
+ - [#7826](https://github.com/scalar/scalar/pull/7826): feat: added migrator for v1 local storage to v2 indexdb
123
+ - [#8194](https://github.com/scalar/scalar/pull/8194): fix: correctly display the env pill on light mode
124
+ - [#8204](https://github.com/scalar/scalar/pull/8204): fix: remove DocumentRedirect component
125
+ - [#8160](https://github.com/scalar/scalar/pull/8160): fix: update sidebar entry when the operation summary changes
126
+ - [#8174](https://github.com/scalar/scalar/pull/8174): feat: add `createAnySecurityScheme` config option to control generic auth scheme creation
127
+
128
+ #### Updated Dependencies
129
+
130
+ - **@scalar/workspace-store@0.33.0**
131
+ - [#8162](https://github.com/scalar/scalar/pull/8162): feat: allow editing tags
132
+ - [#8151](https://github.com/scalar/scalar/pull/8151): fix: resolve external references on windows
133
+ - [#8191](https://github.com/scalar/scalar/pull/8191): chore: rename create document command
134
+ - [#8199](https://github.com/scalar/scalar/pull/8199): feat: create draft example
135
+ - [#7826](https://github.com/scalar/scalar/pull/7826): feat: added migrator for v1 local storage to v2 indexdb
136
+ - [#8160](https://github.com/scalar/scalar/pull/8160): fix: update sidebar entry when the operation summary changes
137
+ - [#8133](https://github.com/scalar/scalar/pull/8133): fix: allow editing content-type query parameters in the API client
138
+
139
+ - **@scalar/sidebar@0.7.36**
140
+ - [#8162](https://github.com/scalar/scalar/pull/8162): feat: allow editing tags
141
+ - [#8190](https://github.com/scalar/scalar/pull/8190): fix: align HttpMethod badge positioning for folders
142
+
143
+ - **@scalar/json-magic@0.11.2**
144
+ - [#8151](https://github.com/scalar/scalar/pull/8151): fix: resolve external references on windows
145
+
146
+ - **@scalar/oas-utils@0.6.43**
147
+ - [#7826](https://github.com/scalar/scalar/pull/7826): feat: added migrator for v1 local storage to v2 indexdb
148
+
149
+ - **@scalar/helpers@0.2.13**
150
+ - [#7826](https://github.com/scalar/scalar/pull/7826): feat: added migrator for v1 local storage to v2 indexdb
151
+
152
+ - **@scalar/types@0.6.4**
153
+ - [#8174](https://github.com/scalar/scalar/pull/8174): feat: add `createAnySecurityScheme` config option to control generic auth scheme creation
154
+
155
+ - **@scalar/openapi-parser@0.24.11**
156
+
157
+ - **@scalar/components@0.19.5**
158
+
159
+ - **@scalar/import@0.4.50**
160
+
161
+ - **@scalar/object-utils@1.2.27**
162
+
163
+ - **@scalar/postman-to-openapi@0.4.5**
164
+
165
+ - **@scalar/snippetz@0.6.13**
166
+
167
+ - **@scalar/use-codemirror@0.13.40**
168
+
3
169
  ## 2.27.1
4
170
 
5
171
  ### 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
  }