@scalar/api-client 3.21.4 → 3.21.5

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 (91) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/plugins/posthog/sanitize-event-payload.d.ts.map +1 -1
  3. package/dist/plugins/posthog/sanitize-event-payload.js +1 -0
  4. package/dist/plugins/posthog/sanitize-event-payload.js.map +1 -1
  5. package/dist/style.css +59 -49
  6. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
  7. package/dist/v2/blocks/operation-block/OperationBlock.vue.js.map +1 -1
  8. package/dist/v2/blocks/operation-block/OperationBlock.vue.script.js +1 -1
  9. package/dist/v2/blocks/operation-block/OperationBlock.vue.script.js.map +1 -1
  10. package/dist/v2/blocks/request-block/RequestBlock.vue.script.js.map +1 -1
  11. package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts.map +1 -1
  12. package/dist/v2/blocks/request-block/components/RequestBody.vue.js +1 -1
  13. package/dist/v2/blocks/request-block/components/RequestBody.vue.js.map +1 -1
  14. package/dist/v2/blocks/request-block/components/RequestBody.vue.script.js +1 -1
  15. package/dist/v2/blocks/request-block/components/RequestBody.vue.script.js.map +1 -1
  16. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue.d.ts.map +1 -1
  17. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue.js +1 -1
  18. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue.js.map +1 -1
  19. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue.script.js +1 -1
  20. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue.script.js.map +1 -1
  21. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.script.js.map +1 -1
  22. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts.map +1 -1
  23. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js.map +1 -1
  24. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.script.js +53 -22
  25. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.script.js.map +1 -1
  26. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts +4 -0
  27. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts.map +1 -1
  28. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.js.map +1 -1
  29. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.script.js +23 -12
  30. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.script.js.map +1 -1
  31. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +1 -1
  32. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js.map +1 -1
  33. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.script.js +30 -6
  34. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.script.js.map +1 -1
  35. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth-device-authorization.d.ts.map +1 -1
  36. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth-device-authorization.js +3 -1
  37. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth-device-authorization.js.map +1 -1
  38. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
  39. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js +9 -3
  40. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js.map +1 -1
  41. package/dist/v2/components/code-input/CodeInput.vue.d.ts.map +1 -1
  42. package/dist/v2/components/code-input/CodeInput.vue.js +1 -1
  43. package/dist/v2/components/code-input/CodeInput.vue.js.map +1 -1
  44. package/dist/v2/components/code-input/CodeInput.vue.script.js.map +1 -1
  45. package/dist/v2/components/data-table/DataTableInput.vue.d.ts.map +1 -1
  46. package/dist/v2/components/data-table/DataTableInput.vue.js +1 -1
  47. package/dist/v2/components/data-table/DataTableInput.vue.js.map +1 -1
  48. package/dist/v2/components/data-table/DataTableInput.vue.script.js +15 -11
  49. package/dist/v2/components/data-table/DataTableInput.vue.script.js.map +1 -1
  50. package/dist/v2/components/server/ServerDropdown.vue.d.ts.map +1 -1
  51. package/dist/v2/components/server/ServerDropdown.vue.js.map +1 -1
  52. package/dist/v2/components/server/ServerDropdown.vue.script.js +1 -1
  53. package/dist/v2/components/server/ServerDropdown.vue.script.js.map +1 -1
  54. package/dist/v2/constants.js +1 -1
  55. package/dist/v2/features/localization/locales/ar.d.ts +3 -0
  56. package/dist/v2/features/localization/locales/ar.d.ts.map +1 -1
  57. package/dist/v2/features/localization/locales/ar.js +4 -1
  58. package/dist/v2/features/localization/locales/ar.js.map +1 -1
  59. package/dist/v2/features/localization/locales/de.d.ts +3 -0
  60. package/dist/v2/features/localization/locales/de.d.ts.map +1 -1
  61. package/dist/v2/features/localization/locales/de.js +4 -1
  62. package/dist/v2/features/localization/locales/de.js.map +1 -1
  63. package/dist/v2/features/localization/locales/es.d.ts +3 -0
  64. package/dist/v2/features/localization/locales/es.d.ts.map +1 -1
  65. package/dist/v2/features/localization/locales/es.js +4 -1
  66. package/dist/v2/features/localization/locales/es.js.map +1 -1
  67. package/dist/v2/features/localization/locales/fr.d.ts +3 -0
  68. package/dist/v2/features/localization/locales/fr.d.ts.map +1 -1
  69. package/dist/v2/features/localization/locales/fr.js +4 -1
  70. package/dist/v2/features/localization/locales/fr.js.map +1 -1
  71. package/dist/v2/features/localization/locales/pt.d.ts +3 -0
  72. package/dist/v2/features/localization/locales/pt.d.ts.map +1 -1
  73. package/dist/v2/features/localization/locales/pt.js +4 -1
  74. package/dist/v2/features/localization/locales/pt.js.map +1 -1
  75. package/dist/v2/features/localization/locales/ru.d.ts +3 -0
  76. package/dist/v2/features/localization/locales/ru.d.ts.map +1 -1
  77. package/dist/v2/features/localization/locales/ru.js +4 -1
  78. package/dist/v2/features/localization/locales/ru.js.map +1 -1
  79. package/dist/v2/features/localization/locales/zh-cn.d.ts +3 -0
  80. package/dist/v2/features/localization/locales/zh-cn.d.ts.map +1 -1
  81. package/dist/v2/features/localization/locales/zh-cn.js +4 -1
  82. package/dist/v2/features/localization/locales/zh-cn.js.map +1 -1
  83. package/dist/v2/features/localization/translations.d.ts +3 -0
  84. package/dist/v2/features/localization/translations.d.ts.map +1 -1
  85. package/dist/v2/features/localization/translations.js +4 -1
  86. package/dist/v2/features/localization/translations.js.map +1 -1
  87. package/dist/v2/workspace-events.d.ts.map +1 -1
  88. package/dist/v2/workspace-events.js +1 -0
  89. package/dist/v2/workspace-events.js.map +1 -1
  90. package/dist/vue-styles.css +29 -31
  91. package/package.json +11 -11
@@ -159,23 +159,22 @@ to {
159
159
  /*
160
160
  Deep styling for customizing Codemirror
161
161
  */
162
- [data-v-2334e03b] .cm-editor {
162
+ [data-v-5ce9d77a] .cm-editor {
163
163
  height: 100%;
164
164
  outline: none;
165
165
  padding: 0;
166
166
  background: transparent;
167
167
  }
168
- [data-v-2334e03b] .cm-placeholder {
168
+ [data-v-5ce9d77a] .cm-placeholder {
169
169
  color: var(--scalar-color-3);
170
170
  }
171
- [data-v-2334e03b] .cm-content {
171
+ [data-v-5ce9d77a] .cm-content {
172
172
  font-family: var(--scalar-font-code);
173
173
  font-size: var(--scalar-small);
174
- max-height: 20px;
175
174
  padding: 8px 0;
176
175
  }
177
176
  /* Tooltip helper */
178
- [data-v-2334e03b] .cm-tooltip {
177
+ [data-v-5ce9d77a] .cm-tooltip {
179
178
  background: transparent !important;
180
179
  filter: brightness(var(--scalar-lifted-brightness));
181
180
  border-radius: var(--scalar-radius);
@@ -184,43 +183,43 @@ to {
184
183
  outline: none !important;
185
184
  overflow: hidden !important;
186
185
  }
187
- [data-v-2334e03b] .cm-tooltip-autocomplete ul li {
186
+ [data-v-5ce9d77a] .cm-tooltip-autocomplete ul li {
188
187
  padding: 3px 6px !important;
189
188
  }
190
- [data-v-2334e03b] .cm-completionIcon-type:after {
189
+ [data-v-5ce9d77a] .cm-completionIcon-type:after {
191
190
  color: var(--scalar-color-3) !important;
192
191
  }
193
- [data-v-2334e03b] .cm-tooltip-autocomplete ul li[aria-selected] {
192
+ [data-v-5ce9d77a] .cm-tooltip-autocomplete ul li[aria-selected] {
194
193
  background: var(--scalar-background-2) !important;
195
194
  color: var(--scalar-color-1) !important;
196
195
  }
197
- [data-v-2334e03b] .cm-tooltip-autocomplete ul {
196
+ [data-v-5ce9d77a] .cm-tooltip-autocomplete ul {
198
197
  padding: 6px !important;
199
198
  position: relative;
200
199
  }
201
- [data-v-2334e03b] .cm-tooltip-autocomplete ul li:hover {
200
+ [data-v-5ce9d77a] .cm-tooltip-autocomplete ul li:hover {
202
201
  border-radius: 3px;
203
202
  color: var(--scalar-color-1) !important;
204
203
  background: var(--scalar-background-3) !important;
205
204
  }
206
205
  /* Disable active line highlighting */
207
- [data-v-2334e03b] .cm-activeLine,[data-v-2334e03b] .cm-activeLineGutter {
206
+ [data-v-5ce9d77a] .cm-activeLine,[data-v-5ce9d77a] .cm-activeLineGutter {
208
207
  background-color: transparent;
209
208
  }
210
209
  /* Color selection matching */
211
- [data-v-2334e03b] .cm-selectionMatch,[data-v-2334e03b] .cm-matchingBracket {
210
+ [data-v-5ce9d77a] .cm-selectionMatch,[data-v-5ce9d77a] .cm-matchingBracket {
212
211
  border-radius: var(--scalar-radius);
213
212
  background: var(--scalar-background-4) !important;
214
213
  }
215
214
  /* Color Picker Swatches */
216
- [data-v-2334e03b] .cm-css-color-picker-wrapper {
215
+ [data-v-5ce9d77a] .cm-css-color-picker-wrapper {
217
216
  display: inline-flex;
218
217
  outline: 1px solid var(--scalar-background-3);
219
218
  border-radius: 3px;
220
219
  overflow: hidden;
221
220
  }
222
221
  /* Number gutter */
223
- [data-v-2334e03b] .cm-gutters {
222
+ [data-v-5ce9d77a] .cm-gutters {
224
223
  background-color: transparent;
225
224
  border-right: none;
226
225
  color: var(--scalar-color-3);
@@ -228,7 +227,7 @@ to {
228
227
  line-height: 22px;
229
228
  border-radius: 0 0 0 3px;
230
229
  }
231
- [data-v-2334e03b] .cm-gutters:before {
230
+ [data-v-5ce9d77a] .cm-gutters:before {
232
231
  content: '';
233
232
  position: absolute;
234
233
  top: 2px;
@@ -238,7 +237,7 @@ to {
238
237
  border-radius: var(--scalar-radius) 0 0 var(--scalar-radius);
239
238
  background-color: var(--scalar-background-1);
240
239
  }
241
- [data-v-2334e03b] .cm-gutterElement {
240
+ [data-v-5ce9d77a] .cm-gutterElement {
242
241
  font-family: var(--scalar-font-code) !important;
243
242
  padding-left: 0px !important;
244
243
  padding-right: 6px !important;
@@ -247,23 +246,22 @@ to {
247
246
  justify-content: flex-end;
248
247
  position: relative;
249
248
  }
250
- [data-v-2334e03b] .cm-lineNumbers .cm-gutterElement {
249
+ [data-v-5ce9d77a] .cm-lineNumbers .cm-gutterElement {
251
250
  min-width: fit-content;
252
251
  }
253
- [data-v-2334e03b] .cm-gutter + .cm-gutter :not(.cm-foldGutter) .cm-gutterElement {
252
+ [data-v-5ce9d77a] .cm-gutter + .cm-gutter :not(.cm-foldGutter) .cm-gutterElement {
254
253
  padding-left: 0 !important;
255
254
  }
256
- [data-v-2334e03b] .cm-scroller {
255
+ [data-v-5ce9d77a] .cm-scroller {
257
256
  overflow: auto;
258
257
  }
259
- [data-v-2334e03b] .cm-lineWrapping .cm-line {
258
+ [data-v-5ce9d77a] .cm-lineWrapping .cm-line {
260
259
  word-break: break-all;
261
260
  }
262
- [data-v-2334e03b] .cm-lineWrapping .cm-content {
261
+ [data-v-5ce9d77a] .cm-content.cm-lineWrapping {
263
262
  white-space: pre-wrap;
264
- max-height: none;
265
263
  }
266
- .line-wrapping[data-v-2334e03b]:focus-within .cm-content {
264
+ .line-wrapping[data-v-5ce9d77a]:focus-within .cm-content {
267
265
  display: inline-table;
268
266
  min-height: fit-content;
269
267
  padding: 3px 6px;
@@ -432,28 +430,28 @@ to {
432
430
  margin-left: 0.5px;
433
431
  }
434
432
 
435
- [data-v-42eb1913] .cm-content {
433
+ [data-v-bf90c7e1] .cm-content {
436
434
  font-size: var(--scalar-small);
437
435
  }
438
436
 
439
- [data-v-8e7de9be] .code-input-lite__editor {
437
+ [data-v-ce270af2] .code-input-lite__editor {
440
438
  background-color: transparent;
441
439
  font-family: var(--scalar-font);
442
440
  font-size: var(--scalar-small);
443
441
  padding: 5px 8px;
444
442
  }
445
- [data-v-8e7de9be] .scalar-pill:not(:last-of-type) {
443
+ [data-v-ce270af2] .scalar-pill:not(:last-of-type) {
446
444
  margin-right: 0.15em;
447
445
  }
448
- [data-v-8e7de9be] .scalar-pill:not(:first-of-type) {
446
+ [data-v-ce270af2] .scalar-pill:not(:first-of-type) {
449
447
  margin-left: 0.5px;
450
448
  }
451
449
  /* Tailwind placeholder is busted */
452
- input[data-v-8e7de9be]::placeholder {
450
+ input[data-v-ce270af2]::placeholder {
453
451
  color: var(--scalar-color-3);
454
452
  }
455
453
  /* we want our inputs to look like a password input but not be one */
456
- .scalar-password-input[data-v-8e7de9be] {
454
+ .scalar-password-input[data-v-ce270af2] {
457
455
  text-security: disc;
458
456
  -webkit-text-security: disc;
459
457
  -moz-text-security: disc;
@@ -621,10 +619,10 @@ to {
621
619
  margin-top: 0;
622
620
  }
623
621
 
624
- .address-bar-history-button[data-v-a54819b1]:hover {
622
+ .address-bar-history-button[data-v-8704eaef]:hover {
625
623
  background: var(--scalar-background-3);
626
624
  }
627
- .address-bar-history-button[data-v-a54819b1]:focus-within {
625
+ .address-bar-history-button[data-v-8704eaef]:focus-within {
628
626
  background: var(--scalar-background-2);
629
627
  }
630
628
 
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "rest",
19
19
  "testing"
20
20
  ],
21
- "version": "3.21.4",
21
+ "version": "3.21.5",
22
22
  "engines": {
23
23
  "node": ">=22"
24
24
  },
@@ -305,22 +305,22 @@
305
305
  "dependencies": {
306
306
  "@headlessui/tailwindcss": "^0.2.2",
307
307
  "@headlessui/vue": "1.7.23",
308
- "@scalar/blocks": "0.4.3",
309
- "@scalar/components": "0.30.6",
310
- "@scalar/helpers": "0.16.0",
308
+ "@scalar/blocks": "0.5.0",
309
+ "@scalar/components": "0.30.7",
310
+ "@scalar/helpers": "0.16.1",
311
311
  "@scalar/icons": "0.7.6",
312
- "@scalar/localization": "0.2.4",
313
- "@scalar/oas-utils": "0.20.9",
312
+ "@scalar/localization": "0.2.5",
313
+ "@scalar/oas-utils": "0.20.10",
314
314
  "@scalar/openapi-types": "0.9.7",
315
- "@scalar/sidebar": "0.11.11",
316
- "@scalar/snippetz": "0.10.5",
315
+ "@scalar/sidebar": "0.11.12",
316
+ "@scalar/snippetz": "0.10.6",
317
317
  "@scalar/themes": "0.18.1",
318
318
  "@scalar/typebox": "^0.1.3",
319
- "@scalar/types": "0.22.4",
319
+ "@scalar/types": "0.23.0",
320
320
  "@scalar/use-codemirror": "0.14.15",
321
- "@scalar/use-hooks": "0.4.17",
321
+ "@scalar/use-hooks": "0.4.18",
322
322
  "@scalar/use-toasts": "0.10.5",
323
- "@scalar/workspace-store": "0.68.0",
323
+ "@scalar/workspace-store": "0.68.1",
324
324
  "@vueuse/core": "13.9.0",
325
325
  "@vueuse/integrations": "13.9.0",
326
326
  "focus-trap": "^7.8.0",