@scalar/api-client 2.3.23 → 2.3.24
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.
- package/CHANGELOG.md +22 -0
- package/dist/layouts/App/create-api-client-app.d.ts +6 -6
- package/dist/layouts/Modal/create-api-client-modal.d.ts +14 -14
- package/dist/layouts/Web/ApiClientWeb.vue.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.d.ts +6 -6
- package/dist/libs/create-client.d.ts +6 -6
- package/dist/style.css +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/package.json +14 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @scalar/api-client
|
|
2
2
|
|
|
3
|
+
## 2.3.24
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 3cb857d: fix: updates import collection modal transition style
|
|
8
|
+
- 3cb857d: fix: updates web layout background style target
|
|
9
|
+
- Updated dependencies [17e7d02]
|
|
10
|
+
- Updated dependencies [2b61d8e]
|
|
11
|
+
- Updated dependencies [49f1297]
|
|
12
|
+
- Updated dependencies [ab4cf5a]
|
|
13
|
+
- @scalar/types@0.1.9
|
|
14
|
+
- @scalar/components@0.13.51
|
|
15
|
+
- @scalar/use-hooks@0.1.43
|
|
16
|
+
- @scalar/icons@0.3.0
|
|
17
|
+
- @scalar/oas-utils@0.2.134
|
|
18
|
+
- @scalar/openapi-parser@0.10.16
|
|
19
|
+
- @scalar/snippetz@0.2.19
|
|
20
|
+
- @scalar/themes@0.10.1
|
|
21
|
+
- @scalar/use-codemirror@0.11.96
|
|
22
|
+
- @scalar/import@0.3.17
|
|
23
|
+
- @scalar/postman-to-openapi@0.2.7
|
|
24
|
+
|
|
3
25
|
## 2.3.23
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
|
@@ -434,10 +434,10 @@ export declare const createApiClientApp: (el: HTMLElement | null, configuration?
|
|
|
434
434
|
integration?: string | null | undefined;
|
|
435
435
|
useCollectionSecurity?: boolean | undefined;
|
|
436
436
|
watchModeStatus?: "IDLE" | "WATCHING" | "ERROR" | undefined;
|
|
437
|
-
}, "watchMode" | "documentUrl"> & Pick<import("@scalar/types
|
|
437
|
+
}, "watchMode" | "documentUrl"> & Pick<import("@scalar/types").ApiReferenceConfiguration, "slug" | "authentication" | "baseServerURL" | "servers"> & {
|
|
438
438
|
useCollectionSecurity?: boolean;
|
|
439
439
|
shouldLoad?: boolean;
|
|
440
|
-
} & Pick<import("@scalar/types
|
|
440
|
+
} & Pick<import("@scalar/types").ApiReferenceConfiguration, "servers">) => Promise<{
|
|
441
441
|
error: false;
|
|
442
442
|
collection: import("@scalar/oas-utils/entities/spec").Collection;
|
|
443
443
|
requests: import("@scalar/oas-utils/entities/spec").Request[];
|
|
@@ -486,10 +486,10 @@ export declare const createApiClientApp: (el: HTMLElement | null, configuration?
|
|
|
486
486
|
integration?: string | null | undefined;
|
|
487
487
|
useCollectionSecurity?: boolean | undefined;
|
|
488
488
|
watchModeStatus?: "IDLE" | "WATCHING" | "ERROR" | undefined;
|
|
489
|
-
}, "watchMode" | "documentUrl"> & Pick<import("@scalar/types
|
|
489
|
+
}, "watchMode" | "documentUrl"> & Pick<import("@scalar/types").ApiReferenceConfiguration, "slug" | "authentication" | "baseServerURL" | "servers"> & {
|
|
490
490
|
useCollectionSecurity?: boolean;
|
|
491
491
|
shouldLoad?: boolean;
|
|
492
|
-
} & Pick<import("@scalar/types
|
|
492
|
+
} & Pick<import("@scalar/types").ApiReferenceConfiguration, "servers">, "documentUrl"> & Pick<import("@scalar/types").ApiReferenceConfiguration, "proxyUrl">) => Promise<import("../../libs").ErrorResponse<Awaited<ReturnType<(_spec: string | Record<string, any>, workspaceUid: string, options?: Pick<{
|
|
493
493
|
uid?: string | undefined;
|
|
494
494
|
type?: "collection" | undefined;
|
|
495
495
|
externalDocs?: {
|
|
@@ -528,10 +528,10 @@ export declare const createApiClientApp: (el: HTMLElement | null, configuration?
|
|
|
528
528
|
integration?: string | null | undefined;
|
|
529
529
|
useCollectionSecurity?: boolean | undefined;
|
|
530
530
|
watchModeStatus?: "IDLE" | "WATCHING" | "ERROR" | undefined;
|
|
531
|
-
}, "watchMode" | "documentUrl"> & Pick<import("@scalar/types
|
|
531
|
+
}, "watchMode" | "documentUrl"> & Pick<import("@scalar/types").ApiReferenceConfiguration, "slug" | "authentication" | "baseServerURL" | "servers"> & {
|
|
532
532
|
useCollectionSecurity?: boolean;
|
|
533
533
|
shouldLoad?: boolean;
|
|
534
|
-
} & Pick<import("@scalar/types
|
|
534
|
+
} & Pick<import("@scalar/types").ApiReferenceConfiguration, "servers">) => Promise<{
|
|
535
535
|
error: false;
|
|
536
536
|
collection: import("@scalar/oas-utils/entities/spec").Collection;
|
|
537
537
|
requests: import("@scalar/oas-utils/entities/spec").Request[];
|
|
@@ -6,7 +6,7 @@ import { type CreateApiClientParams } from '../../libs';
|
|
|
6
6
|
*/
|
|
7
7
|
export declare const createApiClientModal: ({ el, configuration, mountOnInitialize, store, }: Partial<Pick<CreateApiClientParams, "el" | "configuration" | "mountOnInitialize" | "store">>) => Promise<{
|
|
8
8
|
app: import("vue").App<Element>;
|
|
9
|
-
updateConfig: (_newConfig: Partial<import("@scalar/types
|
|
9
|
+
updateConfig: (_newConfig: Partial<import("@scalar/types").ApiClientConfiguration>) => Promise<void>;
|
|
10
10
|
updateServer: (serverUrl: string) => void;
|
|
11
11
|
onUpdateServer: (callback: (url: string) => void) => void;
|
|
12
12
|
updateAuth: <P extends import("@scalar/object-utils/nested").Path<import("@scalar/types/entities").SecurityScheme>>({ nameKey, propertyKey, value, }: {
|
|
@@ -436,10 +436,10 @@ export declare const createApiClientModal: ({ el, configuration, mountOnInitiali
|
|
|
436
436
|
integration?: string | null | undefined;
|
|
437
437
|
useCollectionSecurity?: boolean | undefined;
|
|
438
438
|
watchModeStatus?: "IDLE" | "WATCHING" | "ERROR" | undefined;
|
|
439
|
-
}, "watchMode" | "documentUrl"> & Pick<import("@scalar/types
|
|
439
|
+
}, "watchMode" | "documentUrl"> & Pick<import("@scalar/types").ApiReferenceConfiguration, "slug" | "authentication" | "baseServerURL" | "servers"> & {
|
|
440
440
|
useCollectionSecurity?: boolean;
|
|
441
441
|
shouldLoad?: boolean;
|
|
442
|
-
} & Pick<import("@scalar/types
|
|
442
|
+
} & Pick<import("@scalar/types").ApiReferenceConfiguration, "servers">) => Promise<{
|
|
443
443
|
error: false;
|
|
444
444
|
collection: import("@scalar/oas-utils/entities/spec").Collection;
|
|
445
445
|
requests: import("@scalar/oas-utils/entities/spec").Request[];
|
|
@@ -488,10 +488,10 @@ export declare const createApiClientModal: ({ el, configuration, mountOnInitiali
|
|
|
488
488
|
integration?: string | null | undefined;
|
|
489
489
|
useCollectionSecurity?: boolean | undefined;
|
|
490
490
|
watchModeStatus?: "IDLE" | "WATCHING" | "ERROR" | undefined;
|
|
491
|
-
}, "watchMode" | "documentUrl"> & Pick<import("@scalar/types
|
|
491
|
+
}, "watchMode" | "documentUrl"> & Pick<import("@scalar/types").ApiReferenceConfiguration, "slug" | "authentication" | "baseServerURL" | "servers"> & {
|
|
492
492
|
useCollectionSecurity?: boolean;
|
|
493
493
|
shouldLoad?: boolean;
|
|
494
|
-
} & Pick<import("@scalar/types
|
|
494
|
+
} & Pick<import("@scalar/types").ApiReferenceConfiguration, "servers">, "documentUrl"> & Pick<import("@scalar/types").ApiReferenceConfiguration, "proxyUrl">) => Promise<import("../../libs").ErrorResponse<Awaited<ReturnType<(_spec: string | Record<string, any>, workspaceUid: string, options?: Pick<{
|
|
495
495
|
uid?: string | undefined;
|
|
496
496
|
type?: "collection" | undefined;
|
|
497
497
|
externalDocs?: {
|
|
@@ -530,10 +530,10 @@ export declare const createApiClientModal: ({ el, configuration, mountOnInitiali
|
|
|
530
530
|
integration?: string | null | undefined;
|
|
531
531
|
useCollectionSecurity?: boolean | undefined;
|
|
532
532
|
watchModeStatus?: "IDLE" | "WATCHING" | "ERROR" | undefined;
|
|
533
|
-
}, "watchMode" | "documentUrl"> & Pick<import("@scalar/types
|
|
533
|
+
}, "watchMode" | "documentUrl"> & Pick<import("@scalar/types").ApiReferenceConfiguration, "slug" | "authentication" | "baseServerURL" | "servers"> & {
|
|
534
534
|
useCollectionSecurity?: boolean;
|
|
535
535
|
shouldLoad?: boolean;
|
|
536
|
-
} & Pick<import("@scalar/types
|
|
536
|
+
} & Pick<import("@scalar/types").ApiReferenceConfiguration, "servers">) => Promise<{
|
|
537
537
|
error: false;
|
|
538
538
|
collection: import("@scalar/oas-utils/entities/spec").Collection;
|
|
539
539
|
requests: import("@scalar/oas-utils/entities/spec").Request[];
|
|
@@ -3740,7 +3740,7 @@ export declare const createApiClientModal: ({ el, configuration, mountOnInitiali
|
|
|
3740
3740
|
*/
|
|
3741
3741
|
export declare const createApiClientModalSync: ({ el, configuration, mountOnInitialize, store, }: Partial<Pick<CreateApiClientParams, "el" | "configuration" | "mountOnInitialize" | "store">>) => {
|
|
3742
3742
|
app: import("vue").App<Element>;
|
|
3743
|
-
updateConfig: (_newConfig: Partial<import("@scalar/types
|
|
3743
|
+
updateConfig: (_newConfig: Partial<import("@scalar/types").ApiClientConfiguration>) => Promise<void>;
|
|
3744
3744
|
updateServer: (serverUrl: string) => void;
|
|
3745
3745
|
onUpdateServer: (callback: (url: string) => void) => void;
|
|
3746
3746
|
updateAuth: <P extends import("@scalar/object-utils/nested").Path<import("@scalar/types/entities").SecurityScheme>>({ nameKey, propertyKey, value, }: {
|
|
@@ -4170,10 +4170,10 @@ export declare const createApiClientModalSync: ({ el, configuration, mountOnInit
|
|
|
4170
4170
|
integration?: string | null | undefined;
|
|
4171
4171
|
useCollectionSecurity?: boolean | undefined;
|
|
4172
4172
|
watchModeStatus?: "IDLE" | "WATCHING" | "ERROR" | undefined;
|
|
4173
|
-
}, "watchMode" | "documentUrl"> & Pick<import("@scalar/types
|
|
4173
|
+
}, "watchMode" | "documentUrl"> & Pick<import("@scalar/types").ApiReferenceConfiguration, "slug" | "authentication" | "baseServerURL" | "servers"> & {
|
|
4174
4174
|
useCollectionSecurity?: boolean;
|
|
4175
4175
|
shouldLoad?: boolean;
|
|
4176
|
-
} & Pick<import("@scalar/types
|
|
4176
|
+
} & Pick<import("@scalar/types").ApiReferenceConfiguration, "servers">) => Promise<{
|
|
4177
4177
|
error: false;
|
|
4178
4178
|
collection: import("@scalar/oas-utils/entities/spec").Collection;
|
|
4179
4179
|
requests: import("@scalar/oas-utils/entities/spec").Request[];
|
|
@@ -4222,10 +4222,10 @@ export declare const createApiClientModalSync: ({ el, configuration, mountOnInit
|
|
|
4222
4222
|
integration?: string | null | undefined;
|
|
4223
4223
|
useCollectionSecurity?: boolean | undefined;
|
|
4224
4224
|
watchModeStatus?: "IDLE" | "WATCHING" | "ERROR" | undefined;
|
|
4225
|
-
}, "watchMode" | "documentUrl"> & Pick<import("@scalar/types
|
|
4225
|
+
}, "watchMode" | "documentUrl"> & Pick<import("@scalar/types").ApiReferenceConfiguration, "slug" | "authentication" | "baseServerURL" | "servers"> & {
|
|
4226
4226
|
useCollectionSecurity?: boolean;
|
|
4227
4227
|
shouldLoad?: boolean;
|
|
4228
|
-
} & Pick<import("@scalar/types
|
|
4228
|
+
} & Pick<import("@scalar/types").ApiReferenceConfiguration, "servers">, "documentUrl"> & Pick<import("@scalar/types").ApiReferenceConfiguration, "proxyUrl">) => Promise<import("../../libs").ErrorResponse<Awaited<ReturnType<(_spec: string | Record<string, any>, workspaceUid: string, options?: Pick<{
|
|
4229
4229
|
uid?: string | undefined;
|
|
4230
4230
|
type?: "collection" | undefined;
|
|
4231
4231
|
externalDocs?: {
|
|
@@ -4264,10 +4264,10 @@ export declare const createApiClientModalSync: ({ el, configuration, mountOnInit
|
|
|
4264
4264
|
integration?: string | null | undefined;
|
|
4265
4265
|
useCollectionSecurity?: boolean | undefined;
|
|
4266
4266
|
watchModeStatus?: "IDLE" | "WATCHING" | "ERROR" | undefined;
|
|
4267
|
-
}, "watchMode" | "documentUrl"> & Pick<import("@scalar/types
|
|
4267
|
+
}, "watchMode" | "documentUrl"> & Pick<import("@scalar/types").ApiReferenceConfiguration, "slug" | "authentication" | "baseServerURL" | "servers"> & {
|
|
4268
4268
|
useCollectionSecurity?: boolean;
|
|
4269
4269
|
shouldLoad?: boolean;
|
|
4270
|
-
} & Pick<import("@scalar/types
|
|
4270
|
+
} & Pick<import("@scalar/types").ApiReferenceConfiguration, "servers">) => Promise<{
|
|
4271
4271
|
error: false;
|
|
4272
4272
|
collection: import("@scalar/oas-utils/entities/spec").Collection;
|
|
4273
4273
|
requests: import("@scalar/oas-utils/entities/spec").Request[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiClientWeb.vue.d.ts","sourceRoot":"","sources":["../../../src/layouts/Web/ApiClientWeb.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ApiClientWeb.vue.d.ts","sourceRoot":"","sources":["../../../src/layouts/Web/ApiClientWeb.vue"],"names":[],"mappings":";AA6RA,wBAKG"}
|
|
@@ -434,10 +434,10 @@ export declare const createApiClientWeb: (el: HTMLElement | null, configuration?
|
|
|
434
434
|
integration?: string | null | undefined;
|
|
435
435
|
useCollectionSecurity?: boolean | undefined;
|
|
436
436
|
watchModeStatus?: "IDLE" | "WATCHING" | "ERROR" | undefined;
|
|
437
|
-
}, "watchMode" | "documentUrl"> & Pick<import("@scalar/types
|
|
437
|
+
}, "watchMode" | "documentUrl"> & Pick<import("@scalar/types").ApiReferenceConfiguration, "slug" | "authentication" | "baseServerURL" | "servers"> & {
|
|
438
438
|
useCollectionSecurity?: boolean;
|
|
439
439
|
shouldLoad?: boolean;
|
|
440
|
-
} & Pick<import("@scalar/types
|
|
440
|
+
} & Pick<import("@scalar/types").ApiReferenceConfiguration, "servers">) => Promise<{
|
|
441
441
|
error: false;
|
|
442
442
|
collection: import("@scalar/oas-utils/entities/spec").Collection;
|
|
443
443
|
requests: import("@scalar/oas-utils/entities/spec").Request[];
|
|
@@ -486,10 +486,10 @@ export declare const createApiClientWeb: (el: HTMLElement | null, configuration?
|
|
|
486
486
|
integration?: string | null | undefined;
|
|
487
487
|
useCollectionSecurity?: boolean | undefined;
|
|
488
488
|
watchModeStatus?: "IDLE" | "WATCHING" | "ERROR" | undefined;
|
|
489
|
-
}, "watchMode" | "documentUrl"> & Pick<import("@scalar/types
|
|
489
|
+
}, "watchMode" | "documentUrl"> & Pick<import("@scalar/types").ApiReferenceConfiguration, "slug" | "authentication" | "baseServerURL" | "servers"> & {
|
|
490
490
|
useCollectionSecurity?: boolean;
|
|
491
491
|
shouldLoad?: boolean;
|
|
492
|
-
} & Pick<import("@scalar/types
|
|
492
|
+
} & Pick<import("@scalar/types").ApiReferenceConfiguration, "servers">, "documentUrl"> & Pick<import("@scalar/types").ApiReferenceConfiguration, "proxyUrl">) => Promise<import("../../libs").ErrorResponse<Awaited<ReturnType<(_spec: string | Record<string, any>, workspaceUid: string, options?: Pick<{
|
|
493
493
|
uid?: string | undefined;
|
|
494
494
|
type?: "collection" | undefined;
|
|
495
495
|
externalDocs?: {
|
|
@@ -528,10 +528,10 @@ export declare const createApiClientWeb: (el: HTMLElement | null, configuration?
|
|
|
528
528
|
integration?: string | null | undefined;
|
|
529
529
|
useCollectionSecurity?: boolean | undefined;
|
|
530
530
|
watchModeStatus?: "IDLE" | "WATCHING" | "ERROR" | undefined;
|
|
531
|
-
}, "watchMode" | "documentUrl"> & Pick<import("@scalar/types
|
|
531
|
+
}, "watchMode" | "documentUrl"> & Pick<import("@scalar/types").ApiReferenceConfiguration, "slug" | "authentication" | "baseServerURL" | "servers"> & {
|
|
532
532
|
useCollectionSecurity?: boolean;
|
|
533
533
|
shouldLoad?: boolean;
|
|
534
|
-
} & Pick<import("@scalar/types
|
|
534
|
+
} & Pick<import("@scalar/types").ApiReferenceConfiguration, "servers">) => Promise<{
|
|
535
535
|
error: false;
|
|
536
536
|
collection: import("@scalar/oas-utils/entities/spec").Collection;
|
|
537
537
|
requests: import("@scalar/oas-utils/entities/spec").Request[];
|
|
@@ -513,10 +513,10 @@ export declare const createApiClient: ({ el, appComponent, configuration: _confi
|
|
|
513
513
|
integration?: string | null | undefined;
|
|
514
514
|
useCollectionSecurity?: boolean | undefined;
|
|
515
515
|
watchModeStatus?: "IDLE" | "WATCHING" | "ERROR" | undefined;
|
|
516
|
-
}, "watchMode" | "documentUrl"> & Pick<import("@scalar/types
|
|
516
|
+
}, "watchMode" | "documentUrl"> & Pick<import("@scalar/types").ApiReferenceConfiguration, "slug" | "authentication" | "baseServerURL" | "servers"> & {
|
|
517
517
|
useCollectionSecurity?: boolean;
|
|
518
518
|
shouldLoad?: boolean;
|
|
519
|
-
} & Pick<import("@scalar/types
|
|
519
|
+
} & Pick<import("@scalar/types").ApiReferenceConfiguration, "servers">) => Promise<{
|
|
520
520
|
error: false;
|
|
521
521
|
collection: import("@scalar/oas-utils/entities/spec").Collection;
|
|
522
522
|
requests: import("@scalar/oas-utils/entities/spec").Request[];
|
|
@@ -565,10 +565,10 @@ export declare const createApiClient: ({ el, appComponent, configuration: _confi
|
|
|
565
565
|
integration?: string | null | undefined;
|
|
566
566
|
useCollectionSecurity?: boolean | undefined;
|
|
567
567
|
watchModeStatus?: "IDLE" | "WATCHING" | "ERROR" | undefined;
|
|
568
|
-
}, "watchMode" | "documentUrl"> & Pick<import("@scalar/types
|
|
568
|
+
}, "watchMode" | "documentUrl"> & Pick<import("@scalar/types").ApiReferenceConfiguration, "slug" | "authentication" | "baseServerURL" | "servers"> & {
|
|
569
569
|
useCollectionSecurity?: boolean;
|
|
570
570
|
shouldLoad?: boolean;
|
|
571
|
-
} & Pick<import("@scalar/types
|
|
571
|
+
} & Pick<import("@scalar/types").ApiReferenceConfiguration, "servers">, "documentUrl"> & Pick<import("@scalar/types").ApiReferenceConfiguration, "proxyUrl">) => Promise<import("./errors").ErrorResponse<Awaited<ReturnType<(_spec: string | Record<string, any>, workspaceUid: string, options?: Pick<{
|
|
572
572
|
uid?: string | undefined;
|
|
573
573
|
type?: "collection" | undefined;
|
|
574
574
|
externalDocs?: {
|
|
@@ -607,10 +607,10 @@ export declare const createApiClient: ({ el, appComponent, configuration: _confi
|
|
|
607
607
|
integration?: string | null | undefined;
|
|
608
608
|
useCollectionSecurity?: boolean | undefined;
|
|
609
609
|
watchModeStatus?: "IDLE" | "WATCHING" | "ERROR" | undefined;
|
|
610
|
-
}, "watchMode" | "documentUrl"> & Pick<import("@scalar/types
|
|
610
|
+
}, "watchMode" | "documentUrl"> & Pick<import("@scalar/types").ApiReferenceConfiguration, "slug" | "authentication" | "baseServerURL" | "servers"> & {
|
|
611
611
|
useCollectionSecurity?: boolean;
|
|
612
612
|
shouldLoad?: boolean;
|
|
613
|
-
} & Pick<import("@scalar/types
|
|
613
|
+
} & Pick<import("@scalar/types").ApiReferenceConfiguration, "servers">) => Promise<{
|
|
614
614
|
error: false;
|
|
615
615
|
collection: import("@scalar/oas-utils/entities/spec").Collection;
|
|
616
616
|
requests: import("@scalar/oas-utils/entities/spec").Request[];
|