@scalar/api-reference 1.25.76 → 1.25.78

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 (153) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/dist/browser/standalone.js +24389 -23740
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiReference.vue.d.ts.map +1 -1
  5. package/dist/components/ApiReference.vue.js +41 -56
  6. package/dist/components/ApiReferenceLayout.vue.d.ts +2 -2
  7. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  8. package/dist/components/ApiReferenceLayout.vue.js +3 -3
  9. package/dist/components/ApiReferenceLayout.vue2.js +140 -123
  10. package/dist/components/Content/Content.vue.d.ts +0 -1
  11. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  12. package/dist/components/Content/Content.vue.js +1 -1
  13. package/dist/components/Content/Content.vue2.js +67 -62
  14. package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
  15. package/dist/components/Content/Lazy/Loading.vue.js +74 -69
  16. package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
  17. package/dist/components/Content/Tag/TagList.vue.js +37 -33
  18. package/dist/embeds/ExampleRequest/ExampleRequest.vue.d.ts +1 -1
  19. package/dist/embeds/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
  20. package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts +60 -60
  21. package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts.map +1 -1
  22. package/dist/embeds/OpenApiDocument/types.d.ts +1 -1
  23. package/dist/embeds/OpenApiDocument/types.d.ts.map +1 -1
  24. package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -1
  25. package/dist/features/ApiClientModal/ApiClientModal.vue.js +20 -18
  26. package/dist/features/ApiClientModal/useApiClient.d.ts +149 -138
  27. package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
  28. package/dist/features/ApiClientModal/useApiClient.js +6 -6
  29. package/dist/features/BaseUrl/ServerUrlSelect.vue.d.ts.map +1 -1
  30. package/dist/features/BaseUrl/ServerUrlSelect.vue.js +2 -2
  31. package/dist/features/BaseUrl/ServerVariablesSelect.vue.d.ts.map +1 -1
  32. package/dist/features/BaseUrl/ServerVariablesSelect.vue.js +3 -3
  33. package/dist/features/BaseUrl/ServerVariablesSelect.vue2.js +3 -3
  34. package/dist/features/BaseUrl/ServerVariablesTextbox.vue.d.ts.map +1 -1
  35. package/dist/features/BaseUrl/ServerVariablesTextbox.vue.js +2 -2
  36. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts +3 -0
  37. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
  38. package/dist/features/ExampleRequest/ExampleRequest.vue.js +1 -1
  39. package/dist/features/ExampleRequest/ExampleRequest.vue2.js +121 -147
  40. package/dist/features/Operation/Operation.vue.d.ts +6 -4
  41. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  42. package/dist/features/Operation/Operation.vue.js +30 -13
  43. package/dist/features/Operation/hooks/useRequestExample.d.ts +17 -0
  44. package/dist/features/Operation/hooks/useRequestExample.d.ts.map +1 -0
  45. package/dist/features/Operation/hooks/useRequestExample.js +68 -0
  46. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +2 -0
  47. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  48. package/dist/features/Operation/layouts/ClassicLayout.vue.js +1 -1
  49. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +47 -41
  50. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +2 -0
  51. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  52. package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
  53. package/dist/features/Operation/layouts/ModernLayout.vue2.js +52 -48
  54. package/dist/helpers/convertRequestToHarRequest.d.ts +7 -0
  55. package/dist/helpers/convertRequestToHarRequest.d.ts.map +1 -0
  56. package/dist/helpers/convertRequestToHarRequest.js +64 -0
  57. package/dist/helpers/get-request.d.ts +40 -0
  58. package/dist/helpers/get-request.d.ts.map +1 -0
  59. package/dist/helpers/get-request.js +6 -0
  60. package/dist/helpers/getExampleCode.d.ts +2 -2
  61. package/dist/helpers/getExampleCode.d.ts.map +1 -1
  62. package/dist/helpers/getExampleCode.js +19 -16
  63. package/dist/helpers/index.d.ts +1 -3
  64. package/dist/helpers/index.d.ts.map +1 -1
  65. package/dist/helpers/provideSymbols.d.ts +0 -5
  66. package/dist/helpers/provideSymbols.d.ts.map +1 -1
  67. package/dist/helpers/provideSymbols.js +3 -4
  68. package/dist/hooks/useReactiveSpec.d.ts +1 -1
  69. package/dist/hooks/useSidebar.d.ts.map +1 -1
  70. package/dist/index.js +77 -85
  71. package/dist/legacy/helpers/getUrlFromServerState.js +8 -8
  72. package/dist/legacy/helpers/index.d.ts +0 -10
  73. package/dist/legacy/helpers/index.d.ts.map +1 -1
  74. package/dist/legacy/stores/index.d.ts +0 -3
  75. package/dist/legacy/stores/index.d.ts.map +1 -1
  76. package/dist/stores/index.d.ts +0 -1
  77. package/dist/stores/index.d.ts.map +1 -1
  78. package/dist/style.css +1 -1
  79. package/package.json +8 -8
  80. package/dist/components/Content/Authentication/Authentication.vue.d.ts +0 -8
  81. package/dist/components/Content/Authentication/Authentication.vue.d.ts.map +0 -1
  82. package/dist/components/Content/Authentication/Authentication.vue.js +0 -7
  83. package/dist/components/Content/Authentication/Authentication.vue2.js +0 -62
  84. package/dist/components/Content/Authentication/index.d.ts +0 -2
  85. package/dist/components/Content/Authentication/index.d.ts.map +0 -1
  86. package/dist/helpers/createRequest.d.ts +0 -6
  87. package/dist/helpers/createRequest.d.ts.map +0 -1
  88. package/dist/helpers/createRequest.js +0 -16
  89. package/dist/helpers/getApiClientRequest.d.ts +0 -13
  90. package/dist/helpers/getApiClientRequest.d.ts.map +0 -1
  91. package/dist/helpers/getApiClientRequest.js +0 -43
  92. package/dist/helpers/getHarRequest.d.ts +0 -4
  93. package/dist/helpers/getHarRequest.d.ts.map +0 -1
  94. package/dist/helpers/getHarRequest.js +0 -34
  95. package/dist/legacy/components/CardForm.vue.d.ts +0 -18
  96. package/dist/legacy/components/CardForm.vue.d.ts.map +0 -1
  97. package/dist/legacy/components/CardForm.vue.js +0 -13
  98. package/dist/legacy/components/CardFormButton.vue.d.ts +0 -22
  99. package/dist/legacy/components/CardFormButton.vue.d.ts.map +0 -1
  100. package/dist/legacy/components/CardFormButton.vue.js +0 -7
  101. package/dist/legacy/components/CardFormButton.vue2.js +0 -18
  102. package/dist/legacy/components/CardFormGroup.vue.d.ts +0 -18
  103. package/dist/legacy/components/CardFormGroup.vue.d.ts.map +0 -1
  104. package/dist/legacy/components/CardFormGroup.vue.js +0 -13
  105. package/dist/legacy/components/CardFormRows.vue.d.ts +0 -18
  106. package/dist/legacy/components/CardFormRows.vue.d.ts.map +0 -1
  107. package/dist/legacy/components/CardFormRows.vue.js +0 -13
  108. package/dist/legacy/components/CardFormTextInput.vue.d.ts +0 -23
  109. package/dist/legacy/components/CardFormTextInput.vue.d.ts.map +0 -1
  110. package/dist/legacy/components/CardFormTextInput.vue.js +0 -7
  111. package/dist/legacy/components/CardFormTextInput.vue2.js +0 -53
  112. package/dist/legacy/components/SecurityScheme.vue.d.ts +0 -8
  113. package/dist/legacy/components/SecurityScheme.vue.d.ts.map +0 -1
  114. package/dist/legacy/components/SecurityScheme.vue.js +0 -7
  115. package/dist/legacy/components/SecurityScheme.vue2.js +0 -393
  116. package/dist/legacy/components/SecuritySchemeScopes.vue.d.ts +0 -13
  117. package/dist/legacy/components/SecuritySchemeScopes.vue.d.ts.map +0 -1
  118. package/dist/legacy/components/SecuritySchemeScopes.vue.js +0 -7
  119. package/dist/legacy/components/SecuritySchemeScopes.vue2.js +0 -91
  120. package/dist/legacy/components/SecuritySchemeSelector.vue.d.ts +0 -11
  121. package/dist/legacy/components/SecuritySchemeSelector.vue.d.ts.map +0 -1
  122. package/dist/legacy/components/SecuritySchemeSelector.vue.js +0 -7
  123. package/dist/legacy/components/SecuritySchemeSelector.vue2.js +0 -96
  124. package/dist/legacy/helpers/createPlaceholderRequest.d.ts +0 -6
  125. package/dist/legacy/helpers/createPlaceholderRequest.d.ts.map +0 -1
  126. package/dist/legacy/helpers/encodeStringAsBase64.js +0 -6
  127. package/dist/legacy/helpers/getRequestFromAuthentication.d.ts +0 -10
  128. package/dist/legacy/helpers/getRequestFromAuthentication.d.ts.map +0 -1
  129. package/dist/legacy/helpers/getRequestFromAuthentication.js +0 -83
  130. package/dist/legacy/helpers/humanDiff.d.ts +0 -5
  131. package/dist/legacy/helpers/humanDiff.d.ts.map +0 -1
  132. package/dist/legacy/helpers/mapFromArray.d.ts +0 -5
  133. package/dist/legacy/helpers/mapFromArray.d.ts.map +0 -1
  134. package/dist/legacy/helpers/normalizeHeaderName.d.ts +0 -5
  135. package/dist/legacy/helpers/normalizeHeaderName.d.ts.map +0 -1
  136. package/dist/legacy/helpers/normalizeHeaderName.js +0 -6
  137. package/dist/legacy/helpers/normalizeHeaders.d.ts +0 -8
  138. package/dist/legacy/helpers/normalizeHeaders.d.ts.map +0 -1
  139. package/dist/legacy/helpers/normalizeHeaders.js +0 -22
  140. package/dist/legacy/helpers/normalizePath.d.ts +0 -5
  141. package/dist/legacy/helpers/normalizePath.d.ts.map +0 -1
  142. package/dist/legacy/helpers/normalizeUrl.d.ts +0 -5
  143. package/dist/legacy/helpers/normalizeUrl.d.ts.map +0 -1
  144. package/dist/legacy/helpers/prepareClientRequestConfig.d.ts +0 -24
  145. package/dist/legacy/helpers/prepareClientRequestConfig.d.ts.map +0 -1
  146. package/dist/legacy/stores/useAuthenticationStore.d.ts +0 -55
  147. package/dist/legacy/stores/useAuthenticationStore.d.ts.map +0 -1
  148. package/dist/legacy/stores/useAuthenticationStore.js +0 -36
  149. package/dist/legacy/stores/useOpenApiStore.d.ts +0 -125
  150. package/dist/legacy/stores/useOpenApiStore.d.ts.map +0 -1
  151. package/dist/legacy/stores/useOpenApiStore.js +0 -9
  152. package/dist/legacy/stores/useRequestStore.d.ts +0 -62
  153. package/dist/legacy/stores/useRequestStore.d.ts.map +0 -1
@@ -5,6 +5,53 @@ type __VLS_Props = {
5
5
  configuration?: OpenApiDocumentConfiguration;
6
6
  };
7
7
  declare const dereferenced: import("vue").Ref<{
8
+ [x: `x-${string}`]: any;
9
+ [x: string]: any;
10
+ swagger?: "2.0" | undefined;
11
+ openapi?: never | undefined;
12
+ basePath?: string | undefined;
13
+ consumes?: string[] | undefined;
14
+ definitions?: import("@scalar/openapi-types").OpenAPIV2.DefinitionsObject | undefined;
15
+ externalDocs?: {
16
+ [x: string]: any;
17
+ description?: string | undefined;
18
+ url?: string | undefined;
19
+ } | undefined;
20
+ host?: string | undefined;
21
+ info?: {
22
+ title?: string | undefined;
23
+ description?: string | undefined;
24
+ termsOfService?: string | undefined;
25
+ contact?: {
26
+ name?: string | undefined;
27
+ url?: string | undefined;
28
+ email?: string | undefined;
29
+ } | undefined;
30
+ license?: {
31
+ name?: string | undefined;
32
+ url?: string | undefined;
33
+ } | undefined;
34
+ version?: string | undefined;
35
+ } | undefined;
36
+ parameters?: import("@scalar/openapi-types").OpenAPIV2.ParametersDefinitionsObject | undefined;
37
+ paths?: import("@scalar/openapi-types").OpenAPIV2.PathsObject<{}> | undefined;
38
+ produces?: string[] | undefined;
39
+ responses?: import("@scalar/openapi-types").OpenAPIV2.ResponsesDefinitionsObject | undefined;
40
+ schemes?: string[] | undefined;
41
+ security?: import("@scalar/openapi-types").OpenAPIV2.SecurityRequirementObject[] | undefined;
42
+ securityDefinitions?: import("@scalar/openapi-types").OpenAPIV2.SecurityDefinitionsObject | undefined;
43
+ tags?: {
44
+ [x: `x-${string}`]: any;
45
+ [x: string]: any;
46
+ name?: string | undefined;
47
+ description?: string | undefined;
48
+ externalDocs?: {
49
+ [x: string]: any;
50
+ description?: string | undefined;
51
+ url?: string | undefined;
52
+ } | undefined;
53
+ }[] | undefined;
54
+ } | {
8
55
  [x: `x-${string}`]: any;
9
56
  [x: string]: any;
10
57
  openapi?: ("3.0.0" | "3.0.1" | "3.0.2" | "3.0.3" | "3.0.4") | undefined;
@@ -82,8 +129,8 @@ declare const dereferenced: import("vue").Ref<{
82
129
  openapi?: ("3.1.0" | "3.1.1") | undefined;
83
130
  swagger?: undefined;
84
131
  info?: {
85
- description?: string | undefined;
86
132
  title?: string | undefined;
133
+ description?: string | undefined;
87
134
  termsOfService?: string | undefined;
88
135
  contact?: {
89
136
  name?: string | undefined;
@@ -105,6 +152,7 @@ declare const dereferenced: import("vue").Ref<{
105
152
  variables?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.ServerVariableObject> | undefined;
106
153
  }[] | undefined;
107
154
  paths?: import("@scalar/openapi-types").OpenAPIV3_1.PathsObject<{}, {}> | undefined;
155
+ webhooks?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.PathItemObject | import("@scalar/openapi-types").OpenAPIV3_1.ReferenceObject> | undefined;
108
156
  components?: {
109
157
  schemas?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.SchemaObject> | undefined;
110
158
  responses?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3_1.ResponseObject> | undefined;
@@ -117,15 +165,14 @@ declare const dereferenced: import("vue").Ref<{
117
165
  callbacks?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3_1.CallbackObject> | undefined;
118
166
  pathItems?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3_1.PathItemObject> | undefined;
119
167
  } | undefined;
120
- webhooks?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.PathItemObject | import("@scalar/openapi-types").OpenAPIV3_1.ReferenceObject> | undefined;
121
168
  } | {
122
169
  [x: `x-${string}`]: any;
123
170
  [x: string]: any;
124
171
  openapi?: ("3.1.0" | "3.1.1") | undefined;
125
172
  swagger?: undefined;
126
173
  info?: {
127
- description?: string | undefined;
128
174
  title?: string | undefined;
175
+ description?: string | undefined;
129
176
  termsOfService?: string | undefined;
130
177
  contact?: {
131
178
  name?: string | undefined;
@@ -166,8 +213,8 @@ declare const dereferenced: import("vue").Ref<{
166
213
  openapi?: ("3.1.0" | "3.1.1") | undefined;
167
214
  swagger?: undefined;
168
215
  info?: {
169
- description?: string | undefined;
170
216
  title?: string | undefined;
217
+ description?: string | undefined;
171
218
  termsOfService?: string | undefined;
172
219
  contact?: {
173
220
  name?: string | undefined;
@@ -200,9 +247,9 @@ declare const dereferenced: import("vue").Ref<{
200
247
  callbacks?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3_1.CallbackObject> | undefined;
201
248
  pathItems?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3_1.PathItemObject> | undefined;
202
249
  } | undefined;
203
- paths?: import("@scalar/openapi-types").OpenAPIV3_1.PathsObject<{}, {}> | undefined;
204
250
  webhooks?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.PathItemObject | import("@scalar/openapi-types").OpenAPIV3_1.ReferenceObject> | undefined;
205
- } | {
251
+ paths?: import("@scalar/openapi-types").OpenAPIV3_1.PathsObject<{}, {}> | undefined;
252
+ } | undefined, OpenAPI.Document<{}> | {
206
253
  [x: `x-${string}`]: any;
207
254
  [x: string]: any;
208
255
  swagger?: "2.0" | undefined;
@@ -249,7 +296,7 @@ declare const dereferenced: import("vue").Ref<{
249
296
  url?: string | undefined;
250
297
  } | undefined;
251
298
  }[] | undefined;
252
- } | undefined, OpenAPI.Document<{}> | {
299
+ } | {
253
300
  [x: `x-${string}`]: any;
254
301
  [x: string]: any;
255
302
  openapi?: ("3.0.0" | "3.0.1" | "3.0.2" | "3.0.3" | "3.0.4") | undefined;
@@ -327,8 +374,8 @@ declare const dereferenced: import("vue").Ref<{
327
374
  openapi?: ("3.1.0" | "3.1.1") | undefined;
328
375
  swagger?: undefined;
329
376
  info?: {
330
- description?: string | undefined;
331
377
  title?: string | undefined;
378
+ description?: string | undefined;
332
379
  termsOfService?: string | undefined;
333
380
  contact?: {
334
381
  name?: string | undefined;
@@ -350,6 +397,7 @@ declare const dereferenced: import("vue").Ref<{
350
397
  variables?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.ServerVariableObject> | undefined;
351
398
  }[] | undefined;
352
399
  paths?: import("@scalar/openapi-types").OpenAPIV3_1.PathsObject<{}, {}> | undefined;
400
+ webhooks?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.PathItemObject | import("@scalar/openapi-types").OpenAPIV3_1.ReferenceObject> | undefined;
353
401
  components?: {
354
402
  schemas?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.SchemaObject> | undefined;
355
403
  responses?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3_1.ResponseObject> | undefined;
@@ -362,15 +410,14 @@ declare const dereferenced: import("vue").Ref<{
362
410
  callbacks?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3_1.CallbackObject> | undefined;
363
411
  pathItems?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3_1.PathItemObject> | undefined;
364
412
  } | undefined;
365
- webhooks?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.PathItemObject | import("@scalar/openapi-types").OpenAPIV3_1.ReferenceObject> | undefined;
366
413
  } | {
367
414
  [x: `x-${string}`]: any;
368
415
  [x: string]: any;
369
416
  openapi?: ("3.1.0" | "3.1.1") | undefined;
370
417
  swagger?: undefined;
371
418
  info?: {
372
- description?: string | undefined;
373
419
  title?: string | undefined;
420
+ description?: string | undefined;
374
421
  termsOfService?: string | undefined;
375
422
  contact?: {
376
423
  name?: string | undefined;
@@ -411,8 +458,8 @@ declare const dereferenced: import("vue").Ref<{
411
458
  openapi?: ("3.1.0" | "3.1.1") | undefined;
412
459
  swagger?: undefined;
413
460
  info?: {
414
- description?: string | undefined;
415
461
  title?: string | undefined;
462
+ description?: string | undefined;
416
463
  termsOfService?: string | undefined;
417
464
  contact?: {
418
465
  name?: string | undefined;
@@ -445,55 +492,8 @@ declare const dereferenced: import("vue").Ref<{
445
492
  callbacks?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3_1.CallbackObject> | undefined;
446
493
  pathItems?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3_1.PathItemObject> | undefined;
447
494
  } | undefined;
448
- paths?: import("@scalar/openapi-types").OpenAPIV3_1.PathsObject<{}, {}> | undefined;
449
495
  webhooks?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.PathItemObject | import("@scalar/openapi-types").OpenAPIV3_1.ReferenceObject> | undefined;
450
- } | {
451
- [x: `x-${string}`]: any;
452
- [x: string]: any;
453
- swagger?: "2.0" | undefined;
454
- openapi?: never | undefined;
455
- basePath?: string | undefined;
456
- consumes?: string[] | undefined;
457
- definitions?: import("@scalar/openapi-types").OpenAPIV2.DefinitionsObject | undefined;
458
- externalDocs?: {
459
- [x: string]: any;
460
- description?: string | undefined;
461
- url?: string | undefined;
462
- } | undefined;
463
- host?: string | undefined;
464
- info?: {
465
- title?: string | undefined;
466
- description?: string | undefined;
467
- termsOfService?: string | undefined;
468
- contact?: {
469
- name?: string | undefined;
470
- url?: string | undefined;
471
- email?: string | undefined;
472
- } | undefined;
473
- license?: {
474
- name?: string | undefined;
475
- url?: string | undefined;
476
- } | undefined;
477
- version?: string | undefined;
478
- } | undefined;
479
- parameters?: import("@scalar/openapi-types").OpenAPIV2.ParametersDefinitionsObject | undefined;
480
- paths?: import("@scalar/openapi-types").OpenAPIV2.PathsObject<{}> | undefined;
481
- produces?: string[] | undefined;
482
- responses?: import("@scalar/openapi-types").OpenAPIV2.ResponsesDefinitionsObject | undefined;
483
- schemes?: string[] | undefined;
484
- security?: import("@scalar/openapi-types").OpenAPIV2.SecurityRequirementObject[] | undefined;
485
- securityDefinitions?: import("@scalar/openapi-types").OpenAPIV2.SecurityDefinitionsObject | undefined;
486
- tags?: {
487
- [x: `x-${string}`]: any;
488
- [x: string]: any;
489
- name?: string | undefined;
490
- description?: string | undefined;
491
- externalDocs?: {
492
- [x: string]: any;
493
- description?: string | undefined;
494
- url?: string | undefined;
495
- } | undefined;
496
- }[] | undefined;
496
+ paths?: import("@scalar/openapi-types").OpenAPIV3_1.PathsObject<{}, {}> | undefined;
497
497
  } | undefined>;
498
498
  declare const version: import("vue").Ref<string | undefined, string | undefined>;
499
499
  declare const errors: import("vue").Ref<{
@@ -648,8 +648,8 @@ declare const parsedSpec: {
648
648
  } | undefined;
649
649
  version?: string | undefined;
650
650
  } | {
651
- description?: string | undefined;
652
651
  title?: string | undefined;
652
+ description?: string | undefined;
653
653
  termsOfService?: string | undefined;
654
654
  contact?: {
655
655
  name?: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"OpenApiDocument.vue.d.ts","sourceRoot":"","sources":["../../../src/embeds/OpenApiDocument/OpenApiDocument.vue"],"names":[],"mappings":"AAiIA,OAAO,EAAE,KAAK,WAAW,EAAqB,MAAM,wBAAwB,CAAA;AAE5E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAUpD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,SAAS,CAAA;AAI3D,KAAK,WAAW,GAAG;IACjB,aAAa,CAAC,EAAE,4BAA4B,CAAA;CAC7C,CAAC;AAGF,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AC9B,GAAG,GAAG;;uBAdQ;YACb,8BAA8B;YAC9B,aAAa,CAAC,EAAE,4BAA4B,CAAA;YAC5C,8CAA8C;YAC9C,MAAM,EAAE,OAAO,MAAM,CAAC,KAAK,CAAA;YAC3B,4CAA4C;YAC5C,OAAO,EAAE,OAAO,OAAO,CAAC,KAAK,CAAA;YAC7B,wCAAwC;YACxC,YAAY,EAAE,OAAO,YAAY,CAAC,KAAK,CAAA;YACvC;;;eAGG;YACH,UAAU,EAAE,OAAO,UAAU,CAAA;SAC9B,GAAG,GAAG;;;;EAgHR;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import type { ReferenceConfiguration } from '../../types';
2
- export type OpenApiDocumentConfiguration = Partial<Pick<ReferenceConfiguration, 'proxy' | 'proxyUrl' | 'baseServerURL' | 'servers' | 'spec' | 'authentication' | 'defaultHttpClient' | 'hiddenClients'>>;
2
+ export type OpenApiDocumentConfiguration = Partial<Pick<ReferenceConfiguration, 'proxy' | 'proxyUrl' | 'baseServerURL' | 'servers' | 'spec' | 'authentication' | 'defaultHttpClient' | 'hideClientButton' | 'hiddenClients' | 'theme'>>;
3
3
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/embeds/OpenApiDocument/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;AAErD,MAAM,MAAM,4BAA4B,GAAG,OAAO,CAChD,IAAI,CACF,sBAAsB,EACpB,OAAO,GACP,UAAU,GACV,eAAe,GACf,SAAS,GACT,MAAM,GACN,gBAAgB,GAChB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/embeds/OpenApiDocument/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;AAErD,MAAM,MAAM,4BAA4B,GAAG,OAAO,CAChD,IAAI,CACF,sBAAsB,EACpB,OAAO,GACP,UAAU,GACV,eAAe,GACf,SAAS,GACT,MAAM,GACN,gBAAgB,GAChB,mBAAmB,GACnB,kBAAkB,GAClB,eAAe,GACf,OAAO,CACV,CACF,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"ApiClientModal.vue.d.ts","sourceRoot":"","sources":["../../../src/features/ApiClientModal/ApiClientModal.vue"],"names":[],"mappings":"AA8DA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAOlE,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,mBAAmB,CAAA;CACnC,CAAC;;AAsGF,wBAOG"}
1
+ {"version":3,"file":"ApiClientModal.vue.d.ts","sourceRoot":"","sources":["../../../src/features/ApiClientModal/ApiClientModal.vue"],"names":[],"mappings":"AAiEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAQlE,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,mBAAmB,CAAA;CACnC,CAAC;;AAwGF,wBAOG"}
@@ -1,26 +1,28 @@
1
- import { defineComponent as m, ref as v, onMounted as d, watch as a, onBeforeUnmount as S, openBlock as x, createElementBlock as g } from "vue";
2
- import { useApiClient as _ } from "./useApiClient.js";
3
- import { useServerStore as C } from "../../legacy/stores/useServerStore.js";
4
- import { useExampleStore as E } from "../../legacy/stores/useExampleStore.js";
1
+ import { defineComponent as v, ref as d, onMounted as S, watch as a, onBeforeUnmount as x, openBlock as g, createElementBlock as _ } from "vue";
2
+ import { useWorkspace as k } from "@scalar/api-client/store";
3
+ import { useApiClient as C } from "./useApiClient.js";
4
+ import { useServerStore as E } from "../../legacy/stores/useServerStore.js";
5
5
  import { getUrlFromServerState as U } from "../../legacy/helpers/getUrlFromServerState.js";
6
- const I = /* @__PURE__ */ m({
6
+ import { useExampleStore as B } from "../../legacy/stores/useExampleStore.js";
7
+ const F = /* @__PURE__ */ v({
7
8
  __name: "ApiClientModal",
8
9
  props: {
9
10
  configuration: {}
10
11
  },
11
12
  setup(i) {
12
- const n = v(null), { server: o, setServer: c } = C(), { client: t, init: s } = _(), { selectedExampleKey: f, operationId: l } = E();
13
- return d(async () => {
14
- if (!n.value) return;
13
+ const o = d(null), { server: n, setServer: c } = E(), { client: t, init: s } = C(), { selectedExampleKey: p, operationId: l } = B(), f = k();
14
+ return S(async () => {
15
+ if (!o.value) return;
15
16
  (await s({
16
- el: n.value,
17
- configuration: i.configuration
17
+ el: o.value,
18
+ configuration: i.configuration,
19
+ store: f
18
20
  })).onUpdateServer((r) => {
19
- if (!o.servers) return;
20
- const u = o.servers.findIndex((p) => p.url === r);
21
+ if (!n.servers) return;
22
+ const u = n.servers.findIndex((m) => m.url === r);
21
23
  u >= 0 && c({ selectedServer: u });
22
24
  });
23
- }), a(o, (e) => {
25
+ }), a(n, (e) => {
24
26
  const { originalUrl: r } = U(e);
25
27
  r && t.value && t.value.updateServer(r);
26
28
  }), a(
@@ -30,17 +32,17 @@ const I = /* @__PURE__ */ m({
30
32
  return e && ((r = t.value) == null ? void 0 : r.updateConfig(e));
31
33
  },
32
34
  { deep: !0 }
33
- ), a(f, (e) => {
35
+ ), a(p, (e) => {
34
36
  t.value && e && l.value && t.value.updateExample(e, l.value);
35
- }), S(() => {
37
+ }), x(() => {
36
38
  var e;
37
39
  return (e = t.value) == null ? void 0 : e.app.unmount();
38
- }), (e, r) => (x(), g("div", {
40
+ }), (e, r) => (g(), _("div", {
39
41
  ref_key: "el",
40
- ref: n
42
+ ref: o
41
43
  }, null, 512));
42
44
  }
43
45
  });
44
46
  export {
45
- I as default
47
+ F as default
46
48
  };