@scalar/api-reference 1.24.20 → 1.24.23
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 +48 -0
- package/dist/browser/standalone.js +22673 -23143
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/components/ApiClientModal.vue.js +19 -18
- package/dist/components/ApiClientModal.vue3.js +5 -0
- package/dist/components/ApiReference.vue.js +14 -14
- package/dist/components/ApiReferenceLayout.vue.d.ts +2 -2
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +2 -2
- package/dist/components/ApiReferenceLayout.vue2.js +123 -155
- package/dist/components/Content/Authentication/Authentication.vue.d.ts.map +1 -1
- package/dist/components/Content/Authentication/Authentication.vue.js +2 -2
- package/dist/components/Content/Authentication/Authentication.vue2.js +20 -18
- package/dist/components/Content/Content.vue.d.ts +3 -3
- 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 +72 -93
- package/dist/components/Content/Lazy/Loading.vue.js +1 -1
- package/dist/components/Content/Operation/CustomRequestExamples.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/CustomRequestExamples.vue.js +1 -1
- package/dist/components/Content/Operation/CustomRequestExamples.vue2.js +19 -19
- package/dist/components/Content/Operation/ExampleRequest.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/ExampleRequest.vue.js +2 -2
- package/dist/components/Content/Operation/ExampleRequest.vue2.js +63 -59
- package/dist/components/Content/Operation/OperationAccordion.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/OperationAccordion.vue.js +1 -1
- package/dist/components/Content/Operation/OperationAccordion.vue2.js +26 -26
- package/dist/components/Content/Operation/TestRequestButton.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/TestRequestButton.vue.js +2 -2
- package/dist/components/Content/Operation/TestRequestButton.vue2.js +18 -36
- package/dist/components/Content/Schema/Schema.vue.d.ts +2 -2
- package/dist/components/Content/Schema/SchemaHeading.vue.d.ts +2 -2
- 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 +23 -23
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +42 -0
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -0
- package/dist/components/HttpMethod/HttpMethod.vue.js +28 -0
- package/dist/components/HttpMethod/HttpMethod.vue2.js +4 -0
- package/dist/components/HttpMethod/constants.d.ts +9 -0
- package/dist/components/HttpMethod/constants.d.ts.map +1 -0
- package/dist/components/HttpMethod/constants.js +36 -0
- package/dist/components/HttpMethod/index.d.ts +2 -0
- package/dist/components/HttpMethod/index.d.ts.map +1 -0
- package/dist/components/HttpMethod/utils/isRequestMethod.d.ts +4 -0
- package/dist/components/HttpMethod/utils/isRequestMethod.d.ts.map +1 -0
- package/dist/components/HttpMethod/utils/isRequestMethod.js +7 -0
- package/dist/components/Sidebar/SidebarHttpBadge.vue.js +1 -1
- package/dist/components/Sidebar/SidebarHttpBadge.vue2.js +6 -6
- package/dist/components/api-client-bus.d.ts +1 -1
- package/dist/components/api-client-bus.d.ts.map +1 -1
- package/dist/features/BaseUrl/BaseUrl.vue.d.ts +40 -0
- package/dist/features/BaseUrl/BaseUrl.vue.d.ts.map +1 -0
- package/dist/features/BaseUrl/BaseUrl.vue.js +97 -0
- package/dist/features/BaseUrl/BaseUrl.vue2.js +4 -0
- package/dist/features/BaseUrl/ServerForm.vue.d.ts +41 -0
- package/dist/features/BaseUrl/ServerForm.vue.d.ts.map +1 -0
- package/dist/features/BaseUrl/ServerForm.vue.js +7 -0
- package/dist/features/BaseUrl/ServerForm.vue2.js +66 -0
- package/dist/{components/Content/BaseUrl/ServerItem.vue.d.ts → features/BaseUrl/ServerUrl.vue.d.ts} +6 -6
- package/dist/features/BaseUrl/ServerUrl.vue.d.ts.map +1 -0
- package/dist/features/BaseUrl/ServerUrl.vue.js +8 -0
- package/dist/features/BaseUrl/ServerUrl.vue2.js +29 -0
- package/dist/{components/ApiClientModalOld.vue.d.ts → features/BaseUrl/ServerUrlSelect.vue.d.ts} +9 -15
- package/dist/features/BaseUrl/ServerUrlSelect.vue.d.ts.map +1 -0
- package/dist/features/BaseUrl/ServerUrlSelect.vue.js +7 -0
- package/dist/features/BaseUrl/ServerUrlSelect.vue2.js +56 -0
- package/dist/features/BaseUrl/ServerVariablesForm.vue.d.ts +23 -0
- package/dist/features/BaseUrl/ServerVariablesForm.vue.d.ts.map +1 -0
- package/dist/features/BaseUrl/ServerVariablesForm.vue.js +7 -0
- package/dist/features/BaseUrl/ServerVariablesForm.vue2.js +53 -0
- package/dist/{components/Content/BaseUrl/ServerVariableSelect.vue.d.ts → features/BaseUrl/ServerVariablesSelect.vue.d.ts} +1 -1
- package/dist/features/BaseUrl/ServerVariablesSelect.vue.d.ts.map +1 -0
- package/dist/features/BaseUrl/ServerVariablesSelect.vue.js +7 -0
- package/dist/{components/Content/BaseUrl/ServerVariableSelect.vue2.js → features/BaseUrl/ServerVariablesSelect.vue2.js} +1 -1
- package/dist/{components/Content/BaseUrl/ServerVariableTextbox.vue.d.ts → features/BaseUrl/ServerVariablesTextbox.vue.d.ts} +1 -1
- package/dist/features/BaseUrl/ServerVariablesTextbox.vue.d.ts.map +1 -0
- package/dist/features/BaseUrl/ServerVariablesTextbox.vue.js +7 -0
- package/dist/{components/Content/BaseUrl/ServerVariableTextbox.vue2.js → features/BaseUrl/ServerVariablesTextbox.vue2.js} +6 -6
- package/dist/features/BaseUrl/index.d.ts +3 -0
- package/dist/features/BaseUrl/index.d.ts.map +1 -0
- package/dist/features/BaseUrl/types.d.ts +10 -0
- package/dist/features/BaseUrl/types.d.ts.map +1 -0
- package/dist/features/BaseUrl/utils/getServers.d.ts +15 -0
- package/dist/features/BaseUrl/utils/getServers.d.ts.map +1 -0
- package/dist/features/BaseUrl/utils/getServers.js +29 -0
- package/dist/features/BaseUrl/utils/index.d.ts +2 -0
- package/dist/features/BaseUrl/utils/index.d.ts.map +1 -0
- package/dist/helpers/createEmptySpecification.d.ts +1 -1
- package/dist/helpers/createEmptySpecification.d.ts.map +1 -1
- package/dist/helpers/createEmptySpecification.js +5 -4
- package/dist/helpers/getApiClientRequest.d.ts +1 -1
- package/dist/helpers/getApiClientRequest.d.ts.map +1 -1
- package/dist/helpers/getApiClientRequest.js +12 -11
- package/dist/helpers/getModels.d.ts +1 -1
- package/dist/helpers/index.d.ts +1 -1
- package/dist/helpers/index.d.ts.map +1 -1
- package/dist/helpers/openClientFor.js +10 -7
- package/dist/helpers/parse.d.ts.map +1 -1
- package/dist/helpers/parse.js +33 -31
- package/dist/hooks/useReactiveSpec.d.ts +9 -9
- package/dist/hooks/useSidebar.js +18 -17
- package/dist/index.d.ts +0 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +101 -102
- package/dist/legacy/components/CardForm.vue.d.ts +10 -0
- package/dist/legacy/components/CardForm.vue.d.ts.map +1 -0
- package/dist/legacy/components/CardForm.vue.js +13 -0
- package/dist/legacy/components/CardFormButton.vue.d.ts +12 -0
- package/dist/legacy/components/CardFormButton.vue.d.ts.map +1 -0
- package/dist/legacy/components/CardFormButton.vue.js +7 -0
- package/dist/legacy/components/CardFormButton.vue2.js +18 -0
- package/dist/legacy/components/CardFormGroup.vue.d.ts +10 -0
- package/dist/legacy/components/CardFormGroup.vue.d.ts.map +1 -0
- package/dist/legacy/components/CardFormGroup.vue.js +13 -0
- package/dist/legacy/components/CardFormRows.vue.d.ts +10 -0
- package/dist/legacy/components/CardFormRows.vue.d.ts.map +1 -0
- package/dist/legacy/components/CardFormRows.vue.js +13 -0
- package/dist/legacy/components/CardFormTextInput.vue.d.ts +25 -0
- package/dist/legacy/components/CardFormTextInput.vue.d.ts.map +1 -0
- package/dist/legacy/components/CardFormTextInput.vue.js +7 -0
- package/dist/legacy/components/CardFormTextInput.vue2.js +37 -0
- package/dist/{components/Content/BaseUrl/ServerVariables.vue.d.ts → legacy/components/SecurityScheme.vue.d.ts} +6 -4
- package/dist/legacy/components/SecurityScheme.vue.d.ts.map +1 -0
- package/dist/legacy/components/SecurityScheme.vue.js +7 -0
- package/dist/legacy/components/SecurityScheme.vue2.js +364 -0
- package/dist/legacy/components/SecuritySchemeScopes.vue.d.ts +26 -0
- package/dist/legacy/components/SecuritySchemeScopes.vue.d.ts.map +1 -0
- package/dist/legacy/components/SecuritySchemeScopes.vue.js +7 -0
- package/dist/legacy/components/SecuritySchemeScopes.vue2.js +91 -0
- package/dist/legacy/components/SecuritySchemeSelector.vue.d.ts +25 -0
- package/dist/legacy/components/SecuritySchemeSelector.vue.d.ts.map +1 -0
- package/dist/legacy/components/SecuritySchemeSelector.vue.js +7 -0
- package/dist/legacy/components/SecuritySchemeSelector.vue2.js +64 -0
- package/dist/legacy/fixtures/httpHeaders.d.ts +6 -0
- package/dist/legacy/fixtures/httpHeaders.d.ts.map +1 -0
- package/dist/legacy/fixtures/httpRequestMethods.d.ts +10 -0
- package/dist/legacy/fixtures/httpRequestMethods.d.ts.map +1 -0
- package/dist/legacy/fixtures/httpRequestMethods.js +18 -0
- package/dist/legacy/fixtures/index.d.ts +3 -0
- package/dist/legacy/fixtures/index.d.ts.map +1 -0
- package/dist/legacy/helpers/createPlaceholderRequest.d.ts +6 -0
- package/dist/legacy/helpers/createPlaceholderRequest.d.ts.map +1 -0
- package/dist/legacy/helpers/createPlaceholderRequest.js +14 -0
- package/dist/legacy/helpers/encodeStringAsBase64.d.ts +5 -0
- package/dist/legacy/helpers/encodeStringAsBase64.d.ts.map +1 -0
- package/dist/legacy/helpers/encodeStringAsBase64.js +6 -0
- package/dist/legacy/helpers/getRequestFromAuthentication.d.ts +10 -0
- package/dist/legacy/helpers/getRequestFromAuthentication.d.ts.map +1 -0
- package/dist/legacy/helpers/getRequestFromAuthentication.js +83 -0
- package/dist/legacy/helpers/getUrlFromServerState.d.ts +6 -0
- package/dist/legacy/helpers/getUrlFromServerState.d.ts.map +1 -0
- package/dist/legacy/helpers/getUrlFromServerState.js +9 -0
- package/dist/legacy/helpers/humanDiff.d.ts +5 -0
- package/dist/legacy/helpers/humanDiff.d.ts.map +1 -0
- package/dist/legacy/helpers/index.d.ts +12 -0
- package/dist/legacy/helpers/index.d.ts.map +1 -0
- package/dist/legacy/helpers/mapFromArray.d.ts +5 -0
- package/dist/legacy/helpers/mapFromArray.d.ts.map +1 -0
- package/dist/legacy/helpers/normalizeHeaders.d.ts +9 -0
- package/dist/legacy/helpers/normalizeHeaders.d.ts.map +1 -0
- package/dist/legacy/helpers/normalizePath.d.ts +5 -0
- package/dist/legacy/helpers/normalizePath.d.ts.map +1 -0
- package/dist/legacy/helpers/normalizeRequestMethod.d.ts +6 -0
- package/dist/legacy/helpers/normalizeRequestMethod.d.ts.map +1 -0
- package/dist/legacy/helpers/normalizeRequestMethod.js +14 -0
- package/dist/legacy/helpers/normalizeUrl.d.ts +5 -0
- package/dist/legacy/helpers/normalizeUrl.d.ts.map +1 -0
- package/dist/legacy/helpers/prepareClientRequestConfig.d.ts +24 -0
- package/dist/legacy/helpers/prepareClientRequestConfig.d.ts.map +1 -0
- package/dist/legacy/index.d.ts +5 -0
- package/dist/legacy/index.d.ts.map +1 -0
- package/dist/legacy/stores/index.d.ts +6 -0
- package/dist/legacy/stores/index.d.ts.map +1 -0
- package/dist/legacy/stores/useApiClientStore.d.ts +18 -0
- package/dist/legacy/stores/useApiClientStore.d.ts.map +1 -0
- package/dist/legacy/stores/useApiClientStore.js +32 -0
- package/dist/legacy/stores/useAuthenticationStore.d.ts +59 -0
- package/dist/legacy/stores/useAuthenticationStore.d.ts.map +1 -0
- package/dist/legacy/stores/useAuthenticationStore.js +36 -0
- package/dist/legacy/stores/useOpenApiStore.d.ts +95 -0
- package/dist/legacy/stores/useOpenApiStore.d.ts.map +1 -0
- package/dist/legacy/stores/useOpenApiStore.js +23 -0
- package/dist/legacy/stores/useRequestStore.d.ts +58 -0
- package/dist/legacy/stores/useRequestStore.d.ts.map +1 -0
- package/dist/legacy/stores/useRequestStore.js +33 -0
- package/dist/legacy/stores/useServerStore.d.ts +18 -0
- package/dist/legacy/stores/useServerStore.d.ts.map +1 -0
- package/dist/legacy/stores/useServerStore.js +18 -0
- package/dist/legacy/types.d.ts +117 -0
- package/dist/legacy/types.d.ts.map +1 -0
- package/dist/stores/index.d.ts +1 -0
- package/dist/stores/index.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types.d.ts +8 -11
- package/dist/types.d.ts.map +1 -1
- package/package.json +16 -15
- package/dist/components/ApiClientModal.vue2.js +0 -4
- package/dist/components/ApiClientModalOld.vue.d.ts.map +0 -1
- package/dist/components/ApiClientModalOld.vue.js +0 -7
- package/dist/components/ApiClientModalOld.vue2.js +0 -88
- package/dist/components/Content/BaseUrl/BaseUrl.vue.d.ts +0 -3
- package/dist/components/Content/BaseUrl/BaseUrl.vue.d.ts.map +0 -1
- package/dist/components/Content/BaseUrl/BaseUrl.vue.js +0 -7
- package/dist/components/Content/BaseUrl/BaseUrl.vue2.js +0 -90
- package/dist/components/Content/BaseUrl/ServerItem.vue.d.ts.map +0 -1
- package/dist/components/Content/BaseUrl/ServerItem.vue.js +0 -8
- package/dist/components/Content/BaseUrl/ServerItem.vue2.js +0 -35
- package/dist/components/Content/BaseUrl/ServerVariableSelect.vue.d.ts.map +0 -1
- package/dist/components/Content/BaseUrl/ServerVariableSelect.vue.js +0 -7
- package/dist/components/Content/BaseUrl/ServerVariableTextbox.vue.d.ts.map +0 -1
- package/dist/components/Content/BaseUrl/ServerVariableTextbox.vue.js +0 -7
- package/dist/components/Content/BaseUrl/ServerVariables.vue.d.ts.map +0 -1
- package/dist/components/Content/BaseUrl/ServerVariables.vue.js +0 -7
- package/dist/components/Content/BaseUrl/ServerVariables.vue2.js +0 -47
- package/dist/components/Content/BaseUrl/index.d.ts +0 -2
- package/dist/components/Content/BaseUrl/index.d.ts.map +0 -1
- package/dist/components/Content/Schema/SchemaProperty.spec.d.ts +0 -2
- package/dist/components/Content/Schema/SchemaProperty.spec.d.ts.map +0 -1
- package/dist/features.d.ts +0 -8
- package/dist/features.d.ts.map +0 -1
- package/dist/features.js +0 -5
- package/dist/standalone.spec.d.ts +0 -2
- package/dist/standalone.spec.d.ts.map +0 -1
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,WAAW,EACX,IAAI,EACJ,iBAAiB,EAClB,MAAM,mBAAmB,CAAA;AAC1B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AACrD,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAC5D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,WAAW,EACX,IAAI,EACJ,iBAAiB,EAClB,MAAM,mBAAmB,CAAA;AAC1B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AACrD,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAC5D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAE/B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAIhD,KAAK,UAAU,GAAG;IAChB,GAAG,EAAE,MAAM,CAAA;IACX,KA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|
|
26
26
|
},
|
|
27
27
|
"type": "module",
|
|
28
28
|
"main": "./dist/index.js",
|
|
29
|
-
"types": "dist/index.d.ts",
|
|
29
|
+
"types": "./dist/index.d.ts",
|
|
30
30
|
"exports": {
|
|
31
|
-
".":
|
|
32
|
-
"import": "./dist/index.js",
|
|
33
|
-
"require": "./dist/index.cjs"
|
|
34
|
-
},
|
|
31
|
+
".": "./dist/index.js",
|
|
35
32
|
"./style.css": "./dist/style.css",
|
|
36
33
|
"./browser/standalone.js": "./dist/browser/standalone.js"
|
|
37
34
|
},
|
|
@@ -40,9 +37,13 @@
|
|
|
40
37
|
"!dist/webpack-stats.json",
|
|
41
38
|
"CHANGELOG.md"
|
|
42
39
|
],
|
|
40
|
+
"imports": {
|
|
41
|
+
"#legacy": "./src/legacy/index.ts"
|
|
42
|
+
},
|
|
43
43
|
"browser": "./dist/browser/standalone.js",
|
|
44
44
|
"module": "./dist/index.js",
|
|
45
45
|
"dependencies": {
|
|
46
|
+
"@floating-ui/vue": "^1.0.2",
|
|
46
47
|
"@headlessui/vue": "^1.7.20",
|
|
47
48
|
"@scalar/openapi-parser": "^0.7.1",
|
|
48
49
|
"@scalar/snippetz": "^0.1.6",
|
|
@@ -53,17 +54,17 @@
|
|
|
53
54
|
"fuse.js": "^7.0.0",
|
|
54
55
|
"github-slugger": "^2.0.0",
|
|
55
56
|
"httpsnippet-lite": "^3.0.5",
|
|
57
|
+
"nanoid": "^5.0.7",
|
|
56
58
|
"postcss-nested": "^6.0.1",
|
|
57
59
|
"unhead": "^1.8.3",
|
|
58
60
|
"unified": "^11.0.4",
|
|
59
61
|
"vue": "^3.4.22",
|
|
60
|
-
"@scalar/api-client
|
|
61
|
-
"@scalar/
|
|
62
|
-
"@scalar/
|
|
63
|
-
"@scalar/
|
|
64
|
-
"@scalar/themes": "0.9.
|
|
65
|
-
"@scalar/use-tooltip": "1.0.
|
|
66
|
-
"@scalar/use-toasts": "0.7.4"
|
|
62
|
+
"@scalar/api-client": "2.0.0",
|
|
63
|
+
"@scalar/components": "0.12.6",
|
|
64
|
+
"@scalar/oas-utils": "0.2.7",
|
|
65
|
+
"@scalar/use-toasts": "0.7.4",
|
|
66
|
+
"@scalar/themes": "0.9.9",
|
|
67
|
+
"@scalar/use-tooltip": "1.0.2"
|
|
67
68
|
},
|
|
68
69
|
"devDependencies": {
|
|
69
70
|
"@etchteam/storybook-addon-css-variables-theme": "^1.5.1",
|
|
@@ -90,8 +91,8 @@
|
|
|
90
91
|
"vitest": "^1.6.0",
|
|
91
92
|
"vitest-matchmedia-mock": "^1.0.5",
|
|
92
93
|
"vue-tsc": "^2.0.13",
|
|
93
|
-
"@scalar/
|
|
94
|
-
"@scalar/
|
|
94
|
+
"@scalar/galaxy": "0.2.4",
|
|
95
|
+
"@scalar/build-tooling": "0.1.7"
|
|
95
96
|
},
|
|
96
97
|
"scripts": {
|
|
97
98
|
"analyze:default": "pnpm dlx vite-bundle-visualizer",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ApiClientModalOld.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiClientModalOld.vue"],"names":[],"mappings":"AA+SA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AAC7C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;;;;;;;;;;;;;;;;;;;AAkP7C,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { defineComponent as C, defineAsyncComponent as b, ref as f, openBlock as l, createElementBlock as d, Fragment as w, unref as e, createElementVNode as i, renderSlot as m, createVNode as n, withCtx as p, withDirectives as y, vShow as _, createCommentVNode as u } from "vue";
|
|
2
|
-
import { useApiClientStore as k } from "@scalar/api-client";
|
|
3
|
-
import { ScalarIcon as v } from "@scalar/components";
|
|
4
|
-
import { useMediaQuery as A } from "@vueuse/core";
|
|
5
|
-
import B from "./Sidebar/Sidebar.vue.js";
|
|
6
|
-
const g = {
|
|
7
|
-
key: 0,
|
|
8
|
-
class: "api-client-drawer"
|
|
9
|
-
}, x = { class: "api-client-container" }, E = { class: "scalar-api-client-height" }, M = { class: "scalar-api-client-states" }, U = { class: "t-doc__sidebar" }, K = /* @__PURE__ */ C({
|
|
10
|
-
__name: "ApiClientModalOld",
|
|
11
|
-
props: {
|
|
12
|
-
parsedSpec: {},
|
|
13
|
-
overloadShow: { type: Boolean },
|
|
14
|
-
proxyUrl: {},
|
|
15
|
-
theme: {}
|
|
16
|
-
},
|
|
17
|
-
emits: ["toggleDarkMode"],
|
|
18
|
-
setup($) {
|
|
19
|
-
const h = b(
|
|
20
|
-
() => import("@scalar/api-client").then((t) => t.ApiClient)
|
|
21
|
-
), { hideApiClient: r, state: c } = k(), S = A("(max-width: 1000px)"), s = f(!1);
|
|
22
|
-
return (t, o) => (l(), d(w, null, [
|
|
23
|
-
e(c).showApiClient || t.overloadShow ? (l(), d("div", g, [
|
|
24
|
-
i("div", x, [
|
|
25
|
-
m(t.$slots, "header", {}, void 0, !0),
|
|
26
|
-
i("div", E, [
|
|
27
|
-
n(e(h), {
|
|
28
|
-
proxyUrl: t.proxyUrl,
|
|
29
|
-
showSideBar: s.value,
|
|
30
|
-
theme: t.theme ?? "none",
|
|
31
|
-
withDefaultFonts: !1,
|
|
32
|
-
onEscapeKeyPress: e(r),
|
|
33
|
-
onToggleSidebar: o[2] || (o[2] = (a) => s.value = !s.value)
|
|
34
|
-
}, {
|
|
35
|
-
"address-bar-controls": p(() => [
|
|
36
|
-
i("div", M, [
|
|
37
|
-
i("button", {
|
|
38
|
-
class: "scalar-api-client-states-button scalar-api-client-states-button__endpoints",
|
|
39
|
-
type: "button",
|
|
40
|
-
onClick: o[0] || (o[0] = (a) => s.value = !s.value)
|
|
41
|
-
}, [
|
|
42
|
-
n(e(v), {
|
|
43
|
-
icon: s.value ? "SideBarClosed" : "SideBarOpen",
|
|
44
|
-
size: "sm"
|
|
45
|
-
}, null, 8, ["icon"])
|
|
46
|
-
]),
|
|
47
|
-
i("button", {
|
|
48
|
-
class: "scalar-api-client-states-button",
|
|
49
|
-
type: "button",
|
|
50
|
-
onClick: o[1] || (o[1] = //@ts-ignore
|
|
51
|
-
(...a) => e(r) && e(r)(...a))
|
|
52
|
-
}, [
|
|
53
|
-
n(e(v), {
|
|
54
|
-
icon: "Close",
|
|
55
|
-
size: "sm"
|
|
56
|
-
})
|
|
57
|
-
])
|
|
58
|
-
])
|
|
59
|
-
]),
|
|
60
|
-
sidebar: p(() => [
|
|
61
|
-
i("div", U, [
|
|
62
|
-
y(n(e(B), { parsedSpec: t.parsedSpec }, {
|
|
63
|
-
"sidebar-start": p(() => [
|
|
64
|
-
m(t.$slots, "sidebar-start", {}, void 0, !0)
|
|
65
|
-
]),
|
|
66
|
-
_: 3
|
|
67
|
-
}, 8, ["parsedSpec"]), [
|
|
68
|
-
[_, !e(S)]
|
|
69
|
-
])
|
|
70
|
-
])
|
|
71
|
-
]),
|
|
72
|
-
_: 3
|
|
73
|
-
}, 8, ["proxyUrl", "showSideBar", "theme", "onEscapeKeyPress"])
|
|
74
|
-
])
|
|
75
|
-
])
|
|
76
|
-
])) : u("", !0),
|
|
77
|
-
e(c).showApiClient ? (l(), d("div", {
|
|
78
|
-
key: 1,
|
|
79
|
-
class: "api-client-drawer-exit",
|
|
80
|
-
onClick: o[3] || (o[3] = //@ts-ignore
|
|
81
|
-
(...a) => e(r) && e(r)(...a))
|
|
82
|
-
})) : u("", !0)
|
|
83
|
-
], 64));
|
|
84
|
-
}
|
|
85
|
-
});
|
|
86
|
-
export {
|
|
87
|
-
K as default
|
|
88
|
-
};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
-
export default _default;
|
|
3
|
-
//# sourceMappingURL=BaseUrl.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BaseUrl.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/BaseUrl/BaseUrl.vue"],"names":[],"mappings":";AAiXA,wBAKG"}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { defineComponent as b, ref as S, watch as k, unref as r, openBlock as l, createElementBlock as v, createElementVNode as o, Fragment as g, renderList as I, toDisplayString as V, createCommentVNode as d, createVNode as p, createBlock as y, pushScopeId as B, popScopeId as w } from "vue";
|
|
2
|
-
import { useServerStore as C, findVariables as E } from "@scalar/api-client";
|
|
3
|
-
import { ScalarIcon as N, ScalarMarkdown as x } from "@scalar/components";
|
|
4
|
-
import D from "./ServerItem.vue.js";
|
|
5
|
-
import L from "./ServerVariables.vue.js";
|
|
6
|
-
const U = (c) => (B("data-v-e4183eb6"), c = c(), w(), c), j = { key: 0 }, F = /* @__PURE__ */ U(() => /* @__PURE__ */ o("span", { class: "scalar-card-serverlist-title" }, "Base URL", -1)), M = { class: "scalar-card-serverlist" }, O = { class: "scalar-card-serverlist-container" }, R = { class: "server-item" }, q = { class: "server-selector" }, z = ["value"], A = ["value"], G = {
|
|
7
|
-
key: 0,
|
|
8
|
-
muted: ""
|
|
9
|
-
}, H = { class: "description" }, W = /* @__PURE__ */ b({
|
|
10
|
-
__name: "BaseUrl",
|
|
11
|
-
setup(c) {
|
|
12
|
-
const { server: e, setServer: f } = C(), s = S(0);
|
|
13
|
-
return k(
|
|
14
|
-
[s, () => e.servers],
|
|
15
|
-
() => {
|
|
16
|
-
var n, _, m;
|
|
17
|
-
if (!e.servers.length) return;
|
|
18
|
-
const a = ((n = e.servers[s.value]) == null ? void 0 : n.variables) ?? {}, i = a ? Object.keys(a).map((t) => {
|
|
19
|
-
var h;
|
|
20
|
-
return {
|
|
21
|
-
name: t,
|
|
22
|
-
value: ((h = a[t].default) == null ? void 0 : h.toString()) ?? "",
|
|
23
|
-
enum: a[t].enum ?? []
|
|
24
|
-
};
|
|
25
|
-
}) : [];
|
|
26
|
-
E(
|
|
27
|
-
(_ = e.servers[s.value]) == null ? void 0 : _.url
|
|
28
|
-
).filter((t) => !a[t]).forEach((t) => {
|
|
29
|
-
i.push({
|
|
30
|
-
name: t,
|
|
31
|
-
value: "",
|
|
32
|
-
enum: []
|
|
33
|
-
});
|
|
34
|
-
}), f({
|
|
35
|
-
selectedServer: s.value,
|
|
36
|
-
description: (m = e.servers[s.value]) == null ? void 0 : m.description,
|
|
37
|
-
variables: i
|
|
38
|
-
});
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
immediate: !0,
|
|
42
|
-
deep: !0
|
|
43
|
-
}
|
|
44
|
-
), (a, i) => r(e).servers.length > 0 ? (l(), v("div", j, [
|
|
45
|
-
F,
|
|
46
|
-
o("div", M, [
|
|
47
|
-
o("div", O, [
|
|
48
|
-
o("div", R, [
|
|
49
|
-
o("div", q, [
|
|
50
|
-
r(e).servers.length > 1 ? (l(), v("select", {
|
|
51
|
-
key: 0,
|
|
52
|
-
value: s.value,
|
|
53
|
-
onInput: i[0] || (i[0] = (u) => s.value = parseInt(
|
|
54
|
-
u.target.value,
|
|
55
|
-
10
|
|
56
|
-
))
|
|
57
|
-
}, [
|
|
58
|
-
(l(!0), v(g, null, I(r(e).servers, (u, n) => (l(), v("option", {
|
|
59
|
-
key: n,
|
|
60
|
-
value: n
|
|
61
|
-
}, V(u.url), 9, A))), 128))
|
|
62
|
-
], 40, z)) : d("", !0),
|
|
63
|
-
p(D, {
|
|
64
|
-
value: r(e).servers[s.value],
|
|
65
|
-
variables: r(e).variables
|
|
66
|
-
}, null, 8, ["value", "variables"]),
|
|
67
|
-
r(e).servers.length > 1 ? (l(), y(r(N), {
|
|
68
|
-
key: 1,
|
|
69
|
-
icon: "ChevronDown"
|
|
70
|
-
})) : d("", !0)
|
|
71
|
-
])
|
|
72
|
-
]),
|
|
73
|
-
p(L, {
|
|
74
|
-
value: r(e).variables
|
|
75
|
-
}, null, 8, ["value"])
|
|
76
|
-
])
|
|
77
|
-
]),
|
|
78
|
-
r(e).description ? (l(), v("div", G, [
|
|
79
|
-
o("div", H, [
|
|
80
|
-
p(r(x), {
|
|
81
|
-
value: r(e).description
|
|
82
|
-
}, null, 8, ["value"])
|
|
83
|
-
])
|
|
84
|
-
])) : d("", !0)
|
|
85
|
-
])) : d("", !0);
|
|
86
|
-
}
|
|
87
|
-
});
|
|
88
|
-
export {
|
|
89
|
-
W as default
|
|
90
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ServerItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/BaseUrl/ServerItem.vue"],"names":[],"mappings":"AA+EA,OAAO,EACL,KAAK,MAAM,EACX,KAAK,QAAQ,EAEd,MAAM,oBAAoB,CAAA;;;;;;;;AA+F3B,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { defineComponent as v, computed as u, openBlock as d, createElementBlock as f, unref as b, createCommentVNode as C } from "vue";
|
|
2
|
-
import { replaceVariables as k } from "@scalar/api-client";
|
|
3
|
-
import { useClipboard as T } from "../../../hooks/useClipboard.js";
|
|
4
|
-
const _ = ["title", "innerHTML"], y = /* @__PURE__ */ v({
|
|
5
|
-
__name: "ServerItem",
|
|
6
|
-
props: {
|
|
7
|
-
value: {},
|
|
8
|
-
variables: {}
|
|
9
|
-
},
|
|
10
|
-
setup(p) {
|
|
11
|
-
const n = p, { copyToClipboard: i } = T(), o = u(() => {
|
|
12
|
-
var l;
|
|
13
|
-
const r = (((l = n.value) == null ? void 0 : l.url) ?? "").replace(/(<([^>]+)>)/gi, "");
|
|
14
|
-
return k(r, (a) => {
|
|
15
|
-
var s;
|
|
16
|
-
const e = (s = n.variables) == null ? void 0 : s.find(
|
|
17
|
-
(m) => m.name === a
|
|
18
|
-
);
|
|
19
|
-
return `<span class="base-url-variable">${((e == null ? void 0 : e.value) ?? "") !== "" ? e == null ? void 0 : e.value : `{${a}}`}</span>`;
|
|
20
|
-
});
|
|
21
|
-
}), c = u(
|
|
22
|
-
() => o.value.replace(/(<([^>]+)>)/gi, "")
|
|
23
|
-
);
|
|
24
|
-
return (t, r) => t.value ? (d(), f("a", {
|
|
25
|
-
key: 0,
|
|
26
|
-
class: "base-url",
|
|
27
|
-
title: t.value.description,
|
|
28
|
-
onClick: r[0] || (r[0] = (l) => b(i)(c.value)),
|
|
29
|
-
innerHTML: o.value
|
|
30
|
-
}, null, 8, _)) : C("", !0);
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
export {
|
|
34
|
-
y as default
|
|
35
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ServerVariableSelect.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/BaseUrl/ServerVariableSelect.vue"],"names":[],"mappings":";;;;;;;;;;;AA6LA,wBAOG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ServerVariableTextbox.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/BaseUrl/ServerVariableTextbox.vue"],"names":[],"mappings":";;;;;;;;;AAyGA,wBAOG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ServerVariables.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/BaseUrl/ServerVariables.vue"],"names":[],"mappings":"AA4EA,OAAO,EAAE,KAAK,QAAQ,EAAkB,MAAM,oBAAoB,CAAA;;;;;;AAgIlE,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { defineComponent as p, openBlock as r, createElementBlock as o, Fragment as v, renderList as d, createElementVNode as s, toDisplayString as f, createBlock as m, createCommentVNode as _ } from "vue";
|
|
2
|
-
import { useServerStore as h } from "@scalar/api-client";
|
|
3
|
-
import S from "./ServerVariableSelect.vue.js";
|
|
4
|
-
import g from "./ServerVariableTextbox.vue.js";
|
|
5
|
-
const k = {
|
|
6
|
-
key: 0,
|
|
7
|
-
class: "variable-container"
|
|
8
|
-
}, V = ["for"], E = /* @__PURE__ */ p({
|
|
9
|
-
__name: "ServerVariables",
|
|
10
|
-
props: {
|
|
11
|
-
value: {}
|
|
12
|
-
},
|
|
13
|
-
setup(C) {
|
|
14
|
-
const { server: u, setServer: c } = h(), t = (a, l) => {
|
|
15
|
-
const e = [...u.variables], n = e.findIndex((i) => i.name === a);
|
|
16
|
-
e[n].value = l, c({
|
|
17
|
-
variables: e
|
|
18
|
-
});
|
|
19
|
-
};
|
|
20
|
-
return (a, l) => a.value ? (r(), o("div", k, [
|
|
21
|
-
(r(!0), o(v, null, d(a.value, (e) => (r(), o("div", {
|
|
22
|
-
key: e.name,
|
|
23
|
-
class: "variable-container-item"
|
|
24
|
-
}, [
|
|
25
|
-
s("label", {
|
|
26
|
-
class: "variable-description",
|
|
27
|
-
for: `variable-${e.name}`
|
|
28
|
-
}, [
|
|
29
|
-
s("code", null, f(e.name), 1)
|
|
30
|
-
], 8, V),
|
|
31
|
-
e.enum && e.enum.length ? (r(), m(S, {
|
|
32
|
-
key: 0,
|
|
33
|
-
enum: e.enum.map((n) => `${n}`),
|
|
34
|
-
value: e.value,
|
|
35
|
-
onChange: (n) => t(e.name, n)
|
|
36
|
-
}, null, 8, ["enum", "value", "onChange"])) : (r(), m(g, {
|
|
37
|
-
key: 1,
|
|
38
|
-
value: e.value,
|
|
39
|
-
onChange: (n) => t(e.name, n)
|
|
40
|
-
}, null, 8, ["value", "onChange"]))
|
|
41
|
-
]))), 128))
|
|
42
|
-
])) : _("", !0);
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
export {
|
|
46
|
-
E as default
|
|
47
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/BaseUrl/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,eAAe,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaProperty.spec.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.spec.ts"],"names":[],"mappings":""}
|
package/dist/features.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* We’re slowly switching from `@scalar/api-client@1.x` to 2.0, currently living in `packages/client-app`.
|
|
3
|
-
*
|
|
4
|
-
* To enable the new API client, copy `packages/api-reference/.env.example` to `packages/api-reference/.env`
|
|
5
|
-
* and set `NEW_API_CLIENT=true`.
|
|
6
|
-
*/
|
|
7
|
-
export declare const NEW_API_MODAL: boolean;
|
|
8
|
-
//# sourceMappingURL=features.d.ts.map
|
package/dist/features.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"features.d.ts","sourceRoot":"","sources":["../src/features.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,aAAa,SAAiD,CAAA"}
|
package/dist/features.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"standalone.spec.d.ts","sourceRoot":"","sources":["../src/standalone.spec.ts"],"names":[],"mappings":""}
|