@scalar/api-reference 1.25.122 → 1.25.124
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 +72 -0
- package/dist/blocks/constants.d.ts.map +1 -1
- package/dist/blocks/helpers/getPointer.d.ts.map +1 -1
- package/dist/blocks/hooks/useBlockProps.d.ts.map +1 -1
- package/dist/browser/standalone.js +21533 -21032
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/Anchor/Anchor.vue.d.ts +0 -1
- package/dist/components/Anchor/Anchor.vue.d.ts.map +1 -1
- package/dist/components/Anchor/Anchor.vue.js +2 -2
- package/dist/components/Anchor/Anchor.vue2.js +27 -23
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +2 -2
- package/dist/components/ApiReferenceLayout.vue2.js +135 -128
- package/dist/components/Card/Card.vue.d.ts.map +1 -1
- package/dist/components/Card/Card.vue.js +7 -7
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.js +1 -1
- package/dist/components/Content/Content.vue.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.js +2 -2
- package/dist/components/Content/Content.vue2.js +33 -33
- package/dist/components/Content/Introduction/Description.vue.d.ts.map +1 -1
- package/dist/components/Content/Introduction/Description.vue.js +2 -2
- package/dist/components/Content/Introduction/Description.vue2.js +7 -7
- package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
- package/dist/components/Content/Introduction/Introduction.vue.js +1 -1
- package/dist/components/Content/Introduction/Introduction.vue2.js +44 -39
- package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
- package/dist/components/Content/Lazy/Loading.vue.js +65 -59
- package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/Models.vue.js +2 -2
- package/dist/components/Content/Models/Models.vue2.js +66 -52
- package/dist/components/Content/Models/ModelsAccordion.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/ModelsAccordion.vue.js +1 -1
- package/dist/components/Content/Models/ModelsAccordion.vue2.js +37 -31
- package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.d.ts.map +1 -1
- package/dist/components/Content/Tag/Endpoints.vue.d.ts +1 -0
- package/dist/components/Content/Tag/Endpoints.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/Endpoints.vue.js +2 -2
- package/dist/components/Content/Tag/Endpoints.vue2.js +79 -52
- package/dist/components/Content/Tag/Tag.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/Tag.vue.js +2 -2
- package/dist/components/Content/Tag/Tag.vue2.js +29 -26
- package/dist/components/Content/Tag/TagAccordion.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/TagAccordion.vue.js +2 -2
- package/dist/components/Content/Tag/TagAccordion.vue2.js +22 -19
- package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
- package/dist/components/GettingStarted.vue.d.ts.map +1 -1
- package/dist/components/GettingStarted.vue.js +2 -2
- package/dist/components/GettingStarted.vue2.js +25 -25
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
- package/dist/components/Layouts/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/components/Layouts/ClassicLayout.vue.js +6 -6
- package/dist/components/Section/SectionContainer.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionContainer.vue.js +1 -1
- package/dist/components/Section/SectionHeader.vue.d.ts +1 -6
- package/dist/components/Section/SectionHeader.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionHeader.vue.js +1 -1
- package/dist/components/Section/SectionHeader.vue2.js +12 -16
- package/dist/components/Section/SectionHeaderTag.vue.d.ts +21 -0
- package/dist/components/Section/SectionHeaderTag.vue.d.ts.map +1 -0
- package/dist/components/Section/SectionHeaderTag.vue.js +7 -0
- package/dist/components/Section/SectionHeaderTag.vue2.js +18 -0
- package/dist/components/Section/index.d.ts +1 -0
- package/dist/components/Section/index.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +1 -1
- package/dist/components/Sidebar/Sidebar.vue2.js +14 -14
- package/dist/components/Sidebar/SidebarElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarElement.vue.js +2 -2
- package/dist/esm.d.ts.map +1 -1
- package/dist/esm.js +1 -3
- package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/features/ApiClientModal/useApiClient.d.ts +414 -510
- package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
- package/dist/features/BaseUrl/BaseUrl.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/BaseUrl.vue.js +20 -21
- package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue.js +1 -1
- package/dist/features/ExampleResponses/ExampleResponses.vue.d.ts.map +1 -1
- package/dist/features/ExampleResponses/ExampleResponses.vue.js +2 -2
- package/dist/features/ExampleResponses/ExampleResponses.vue2.js +47 -47
- package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
- package/dist/features/Operation/Operation.vue.js +5 -5
- package/dist/features/Operation/Webhooks.vue.d.ts.map +1 -1
- package/dist/features/Operation/Webhooks.vue.js +3 -3
- package/dist/features/Operation/Webhooks.vue2.js +74 -60
- package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ContentTypeSelect.vue.js +2 -2
- package/dist/features/Operation/components/ParameterHeaders.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterHeaders.vue.js +3 -3
- package/dist/features/Operation/components/ParameterHeaders.vue2.js +8 -8
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue.js +3 -3
- package/dist/features/Operation/components/ParameterListItem.vue2.js +16 -16
- package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/RequestBody.vue.js +2 -2
- package/dist/features/Operation/components/RequestBody.vue2.js +26 -47
- package/dist/features/Operation/hooks/useResponses.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
- package/dist/features/Operation/layouts/ClassicLayout.vue2.js +11 -11
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
- package/dist/features/Operation/layouts/ModernLayout.vue2.js +80 -69
- package/dist/features/Search/SearchButton.vue.d.ts.map +1 -1
- package/dist/features/Search/SearchButton.vue.js +1 -1
- package/dist/features/Search/SearchButton.vue2.js +30 -18
- package/dist/features/Search/SearchModal.vue.d.ts.map +1 -1
- package/dist/features/Search/SearchModal.vue.js +1 -1
- package/dist/features/Search/SearchModal.vue2.js +104 -95
- package/dist/features/Search/useSearchIndex.d.ts.map +1 -1
- package/dist/features/Search/useSearchIndex.js +11 -17
- package/dist/features/TestRequestButton/TestRequestButton.vue.d.ts.map +1 -1
- package/dist/features/TestRequestButton/TestRequestButton.vue.js +2 -2
- package/dist/features/TestRequestButton/TestRequestButton.vue2.js +6 -6
- package/dist/helpers/createEmptySpecification.d.ts.map +1 -1
- package/dist/helpers/get-request.d.ts.map +1 -1
- package/dist/helpers/getModels.d.ts.map +1 -1
- package/dist/helpers/isMacOs.d.ts.map +1 -1
- package/dist/helpers/operation.d.ts.map +1 -1
- package/dist/helpers/parse.js +62 -62
- package/dist/helpers/specDownloads.d.ts.map +1 -1
- package/dist/helpers/specHelpers.d.ts.map +1 -1
- package/dist/helpers/waitFor.d.ts.map +1 -1
- package/dist/hooks/useConfig.d.ts.map +1 -1
- package/dist/hooks/useDeprecationWarnings.d.ts.map +1 -1
- package/dist/hooks/useDeprecationWarnings.js +1 -5
- package/dist/hooks/useNavState.d.ts +1 -2
- package/dist/hooks/useNavState.d.ts.map +1 -1
- package/dist/hooks/useNavState.js +3 -10
- package/dist/hooks/useReactiveSpec.d.ts +8 -8
- package/dist/hooks/useReactiveSpec.d.ts.map +1 -1
- package/dist/hooks/useReactiveSpec.js +12 -13
- package/dist/hooks/useSidebar.d.ts.map +1 -1
- package/dist/hooks/useSidebar.js +38 -48
- package/dist/index.js +1 -1
- package/dist/legacy/helpers/normalizeRequestMethod.d.ts.map +1 -1
- package/dist/legacy/helpers/normalizeRequestMethod.js +2 -6
- package/dist/legacy/types.d.ts.map +1 -1
- package/dist/standalone/lib/html-api.d.ts +11 -0
- package/dist/standalone/lib/html-api.d.ts.map +1 -0
- package/dist/standalone/lib/html-rendering.d.ts +51 -0
- package/dist/standalone/lib/html-rendering.d.ts.map +1 -0
- package/dist/standalone/lib/html-rendering.js +54 -0
- package/dist/stores/useHttpClientStore.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types.d.ts +0 -3
- package/dist/types.d.ts.map +1 -1
- package/package.json +16 -15
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalizeRequestMethod.d.ts","sourceRoot":"","sources":["../../../src/legacy/helpers/normalizeRequestMethod.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAA;AAMpE;;GAEG;AACH,eAAO,MAAM,sBAAsB,YAAa,MAAM,KAAG,
|
|
1
|
+
{"version":3,"file":"normalizeRequestMethod.d.ts","sourceRoot":"","sources":["../../../src/legacy/helpers/normalizeRequestMethod.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAA;AAMpE;;GAEG;AACH,eAAO,MAAM,sBAAsB,YAAa,MAAM,KAAG,aAkBxD,CAAA"}
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import { isRequestMethod as s } from "../fixtures/httpRequestMethods.js";
|
|
2
2
|
const e = "get", r = (t) => {
|
|
3
3
|
if (typeof t != "string")
|
|
4
|
-
return console.warn(
|
|
5
|
-
`Request method is not a string. Using ${e} as the default.`
|
|
6
|
-
), e;
|
|
4
|
+
return console.warn(`Request method is not a string. Using ${e} as the default.`), e;
|
|
7
5
|
const o = t.trim().toUpperCase();
|
|
8
|
-
return s(o) ? o : (console.warn(
|
|
9
|
-
`${t} is not a valid request method. Using ${e} as the default.`
|
|
10
|
-
), e);
|
|
6
|
+
return s(o) ? o : (console.warn(`${t} is not a valid request method. Using ${e} as the default.`), e);
|
|
11
7
|
};
|
|
12
8
|
export {
|
|
13
9
|
r as normalizeRequestMethod
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/legacy/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEzD,MAAM,MAAM,MAAM,GAAG,aAAa,CAAA;AAElC,MAAM,MAAM,KAAK,GAAG,aAAa,CAAA;AAEjC,MAAM,MAAM,MAAM,GAAG,aAAa,CAAA;AAElC,MAAM,MAAM,YAAY,GAAG,aAAa,CAAA;AAExC,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,kDAAkD;AAClD,MAAM,MAAM,mBAAmB,GAAG;IAChC,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,GAAG,EAAE,MAAM,CAAA;IACX,0BAA0B;IAC1B,IAAI,EAAE,MAAM,CAAA;IACZ,mBAAmB;IACnB,IAAI,EAAE,MAAM,CAAA;IACZ,gBAAgB;IAChB,SAAS,CAAC,EAAE,aAAa,EAAE,CAAA;IAC3B,uBAAuB;IACvB,KAAK,CAAC,EAAE,KAAK,EAAE,CAAA;IACf,cAAc;IACd,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;IAClB,sBAAsB;IACtB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;IAClB,gCAAgC;IAChC,IAAI,C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AA;CAClB,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG;IACrB,WAAW,EAAE,MAAM,CAAA;IACnB,OAAO,EAAE,GAAG,CAAA;CACb,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ReferenceConfiguration } from '@scalar/types/legacy';
|
|
2
|
+
/**
|
|
3
|
+
* Reading the configuration from the data-attributes.
|
|
4
|
+
*/
|
|
5
|
+
export declare function getConfigurationFromDataAttributes(doc: Document): ReferenceConfiguration;
|
|
6
|
+
/**
|
|
7
|
+
* Mount the Scalar API Reference on a given document.
|
|
8
|
+
* Read the HTML data-attributes for configuration.
|
|
9
|
+
*/
|
|
10
|
+
export declare function mountScalarApiReference(doc: Document, configuration: ReferenceConfiguration): void;
|
|
11
|
+
//# sourceMappingURL=html-api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"html-api.d.ts","sourceRoot":"","sources":["../../../src/standalone/lib/html-api.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAA;AAQlE;;GAEG;AACH,wBAAgB,kCAAkC,CAAC,GAAG,EAAE,QAAQ,GAAG,sBAAsB,CA8GxF;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,QAAQ,EAAE,aAAa,EAAE,sBAAsB,QAsF3F"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { ReferenceConfiguration } from '../../types';
|
|
2
|
+
/**
|
|
3
|
+
* The CDN configuration for the Scalar API Reference.
|
|
4
|
+
*/
|
|
5
|
+
export type CdnConfiguration = {
|
|
6
|
+
/**
|
|
7
|
+
* The URL to the Scalar API Reference JS CDN.
|
|
8
|
+
*
|
|
9
|
+
* Use this to pin a specific version of the Scalar API Reference.
|
|
10
|
+
*
|
|
11
|
+
* @default https://cdn.jsdelivr.net/npm/@scalar/api-reference
|
|
12
|
+
*
|
|
13
|
+
* @example https://cdn.jsdelivr.net/npm/@scalar/api-reference@1.25.122
|
|
14
|
+
*/
|
|
15
|
+
cdn?: string;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* The page title configuration for the Scalar API Reference.
|
|
19
|
+
*/
|
|
20
|
+
export type PageTitleConfiguration = {
|
|
21
|
+
/**
|
|
22
|
+
* The title of the page.
|
|
23
|
+
*/
|
|
24
|
+
pageTitle?: string;
|
|
25
|
+
};
|
|
26
|
+
export type HtmlRenderingConfiguration = ReferenceConfiguration & CdnConfiguration & PageTitleConfiguration;
|
|
27
|
+
/**
|
|
28
|
+
* The HTML document to render the Scalar API reference.
|
|
29
|
+
*/
|
|
30
|
+
export declare function getHtmlDocument(configuration: HtmlRenderingConfiguration, customTheme?: string): string;
|
|
31
|
+
/**
|
|
32
|
+
* The script tags to load the @scalar/api-reference package from the CDN.
|
|
33
|
+
*/
|
|
34
|
+
export declare function getScriptTags(configuration: HtmlRenderingConfiguration): string;
|
|
35
|
+
/**
|
|
36
|
+
* The configuration to pass to the @scalar/api-reference package.
|
|
37
|
+
*/
|
|
38
|
+
export declare function getConfiguration(givenConfiguration: HtmlRenderingConfiguration): string;
|
|
39
|
+
/**
|
|
40
|
+
* The content to pass to the @scalar/api-reference package as the <script> tag content.
|
|
41
|
+
*/
|
|
42
|
+
export declare function getScriptTagContent(configuration: HtmlRenderingConfiguration): string;
|
|
43
|
+
/**
|
|
44
|
+
* The CDN URL to load the @scalar/api-reference package from.
|
|
45
|
+
*/
|
|
46
|
+
export declare function getCdnUrl(configuration: HtmlRenderingConfiguration): string;
|
|
47
|
+
/**
|
|
48
|
+
* The page title for the Scalar API Reference.
|
|
49
|
+
*/
|
|
50
|
+
export declare function getPageTitle(configuration: HtmlRenderingConfiguration): string;
|
|
51
|
+
//# sourceMappingURL=html-rendering.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"html-rendering.d.ts","sourceRoot":"","sources":["../../../src/standalone/lib/html-rendering.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;AAErD;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;;;;;;;OAQG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;CACb,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,0BAA0B,GAAG,sBAAsB,GAAG,gBAAgB,GAAG,sBAAsB,CAAA;AAE3G;;GAEG;AACH,wBAAgB,eAAe,CAAC,aAAa,EAAE,0BAA0B,EAAE,WAAW,CAAC,EAAE,MAAM,UAmB9F;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,aAAa,EAAE,0BAA0B,UAQtE;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,kBAAkB,EAAE,0BAA0B,UAa9E;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,aAAa,EAAE,0BAA0B,UAM5E;AAED;;GAEG;AACH,wBAAgB,SAAS,CAAC,aAAa,EAAE,0BAA0B,UAElE;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,aAAa,EAAE,0BAA0B,UAErE"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
function o(t, e) {
|
|
2
|
+
return `
|
|
3
|
+
<!DOCTYPE html>
|
|
4
|
+
<html>
|
|
5
|
+
<head>
|
|
6
|
+
<title>${a(t)}</title>
|
|
7
|
+
<meta charset="utf-8" />
|
|
8
|
+
<meta
|
|
9
|
+
name="viewport"
|
|
10
|
+
content="width=device-width, initial-scale=1" />
|
|
11
|
+
<style>
|
|
12
|
+
${t.theme ? null : e ?? ""}
|
|
13
|
+
</style>
|
|
14
|
+
</head>
|
|
15
|
+
<body>
|
|
16
|
+
${r(t)}
|
|
17
|
+
</body>
|
|
18
|
+
</html>
|
|
19
|
+
`;
|
|
20
|
+
}
|
|
21
|
+
function r(t) {
|
|
22
|
+
return `
|
|
23
|
+
<script
|
|
24
|
+
id="api-reference"
|
|
25
|
+
type="application/json"
|
|
26
|
+
data-configuration="${s(t)}">${p(t)}<\/script>
|
|
27
|
+
<script src="${l(t)}"><\/script>
|
|
28
|
+
`;
|
|
29
|
+
}
|
|
30
|
+
function s(t) {
|
|
31
|
+
var n, c, i;
|
|
32
|
+
const e = {
|
|
33
|
+
...t
|
|
34
|
+
};
|
|
35
|
+
return (n = e.spec) != null && n.url ? (c = e.spec) != null && c.content && ((i = e.spec) == null || delete i.content) : delete e.spec, JSON.stringify(e).split('"').join(""");
|
|
36
|
+
}
|
|
37
|
+
function p(t) {
|
|
38
|
+
var e, n, c, i;
|
|
39
|
+
return (e = t.spec) != null && e.content ? typeof ((n = t.spec) == null ? void 0 : n.content) == "function" ? JSON.stringify((c = t.spec) == null ? void 0 : c.content()) : JSON.stringify((i = t.spec) == null ? void 0 : i.content) : "";
|
|
40
|
+
}
|
|
41
|
+
function l(t) {
|
|
42
|
+
return t.cdn || "https://cdn.jsdelivr.net/npm/@scalar/api-reference";
|
|
43
|
+
}
|
|
44
|
+
function a(t) {
|
|
45
|
+
return t.pageTitle || "Scalar API Reference";
|
|
46
|
+
}
|
|
47
|
+
export {
|
|
48
|
+
l as getCdnUrl,
|
|
49
|
+
s as getConfiguration,
|
|
50
|
+
o as getHtmlDocument,
|
|
51
|
+
a as getPageTitle,
|
|
52
|
+
p as getScriptTagContent,
|
|
53
|
+
r as getScriptTags
|
|
54
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useHttpClientStore.d.ts","sourceRoot":"","sources":["../../src/stores/useHttpClientStore.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,EAAE,KAAK,GAAG,EAAqC,MAAM,KAAK,CAAA;AASjE;;;GAGG;AACH,iBAAS,cAAc,CAAC,MAAM,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"useHttpClientStore.d.ts","sourceRoot":"","sources":["../../src/stores/useHttpClientStore.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,EAAE,KAAK,GAAG,EAAqC,MAAM,KAAK,CAAA;AASjE;;;GAGG;AACH,iBAAS,cAAc,CAAC,MAAM,EAAE,eAAe,UAE9C;AAED;;;GAGG;AACH,iBAAS,cAAc,CAAC,MAAM,EAAE,eAAe,UAM9C;AAYD;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,GAAG,CAAC,aAAa,CAAC,GAAG,MAAM,EAAE,CAkD5F;AASD,+BAA+B;AAC/B,MAAM,MAAM,eAAe,GAAG;IAAE,SAAS,EAAE,QAAQ,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAA;AAMxE,iBAAS,oBAAoB,CAAC,UAAU,CAAC,EAAE,eAAe,QAQzD;AAkCD,iBAAS,UAAU,SAElB;AAYD,kEAAkE;AAClE,eAAO,MAAM,kBAAkB;;4BA/DY,QAAQ;4BAAa,MAAM;;;8BAuDrC,OAAO,CAAC,eAAe,CAAC;;qBAcP,GAAG,CAAC,aAAa,CAAC;4BACxC,aAAa;;;;;;CAaxC,CAAA"}
|