@scalar/api-reference 1.41.1 → 1.42.0
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 +41 -0
- package/dist/blocks/index.d.ts +0 -1
- package/dist/blocks/index.d.ts.map +1 -1
- package/dist/blocks/index.js +4 -6
- package/dist/blocks/scalar-client-selector-block/components/ClientDropdown.vue.d.ts +4 -1
- package/dist/blocks/scalar-client-selector-block/components/ClientDropdown.vue.d.ts.map +1 -1
- package/dist/blocks/scalar-client-selector-block/components/ClientDropdown.vue.js +1 -1
- package/dist/blocks/scalar-client-selector-block/components/ClientDropdown.vue2.js +9 -13
- package/dist/blocks/scalar-client-selector-block/components/ClientSelector.vue.d.ts +4 -1
- package/dist/blocks/scalar-client-selector-block/components/ClientSelector.vue.d.ts.map +1 -1
- package/dist/blocks/scalar-client-selector-block/components/ClientSelector.vue.js +1 -1
- package/dist/blocks/scalar-client-selector-block/components/ClientSelector.vue2.js +10 -9
- package/dist/blocks/scalar-info-block/components/DownloadLink.vue.d.ts +4 -0
- package/dist/blocks/scalar-info-block/components/DownloadLink.vue.d.ts.map +1 -1
- package/dist/blocks/scalar-info-block/components/DownloadLink.vue.js +1 -1
- package/dist/blocks/scalar-info-block/components/DownloadLink.vue2.js +4 -7
- package/dist/blocks/scalar-info-block/components/InfoBlock.vue.d.ts +7 -9
- package/dist/blocks/scalar-info-block/components/InfoBlock.vue.d.ts.map +1 -1
- package/dist/blocks/scalar-info-block/components/InfoBlock.vue.js +9 -6
- package/dist/blocks/scalar-server-selector-block/components/Selector.vue.d.ts +2 -9
- package/dist/blocks/scalar-server-selector-block/components/Selector.vue.d.ts.map +1 -1
- package/dist/blocks/scalar-server-selector-block/components/Selector.vue.js +13 -25
- package/dist/blocks/scalar-server-selector-block/components/ServerSelector.vue.d.ts +8 -4
- package/dist/blocks/scalar-server-selector-block/components/ServerSelector.vue.d.ts.map +1 -1
- package/dist/blocks/scalar-server-selector-block/components/ServerSelector.vue.js +18 -41
- package/dist/browser/standalone.js +20335 -23246
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReference.vue.d.ts +2 -254
- package/dist/components/ApiReference.vue.d.ts.map +1 -1
- package/dist/components/ApiReference.vue.js +1 -1
- package/dist/components/ApiReference.vue2.js +71 -83
- package/dist/components/Content/Auth/Auth.vue.d.ts +17 -0
- package/dist/components/Content/Auth/Auth.vue.d.ts.map +1 -0
- package/dist/components/Content/Auth/Auth.vue.js +70 -0
- package/dist/components/Content/Auth/Auth.vue2.js +4 -0
- package/dist/components/Content/Auth/helpers/get-default-security.d.ts +18 -0
- package/dist/components/Content/Auth/helpers/get-default-security.d.ts.map +1 -0
- package/dist/components/Content/Auth/helpers/get-default-security.js +43 -0
- package/dist/components/Content/Auth/index.d.ts +2 -0
- package/dist/components/Content/Auth/index.d.ts.map +1 -0
- package/dist/components/Content/Content.vue.d.ts +9 -19
- package/dist/components/Content/Content.vue.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.js +46 -47
- package/dist/components/Content/Models/Model.vue.d.ts +3 -6
- package/dist/components/Content/Models/Model.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/Model.vue.js +2 -2
- package/dist/components/Content/Models/ModelTag.vue.d.ts +2 -7
- package/dist/components/Content/Models/ModelTag.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/ModelTag.vue.js +3 -3
- package/dist/components/Content/Models/components/ClassicLayout.vue.d.ts +3 -5
- package/dist/components/Content/Models/components/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/components/ClassicLayout.vue.js +1 -1
- package/dist/components/Content/Models/components/ClassicLayout.vue2.js +2 -8
- package/dist/components/Content/Models/components/ModernLayout.vue.d.ts +1 -1
- package/dist/components/Content/Models/components/ModernLayout.vue.d.ts.map +1 -1
- package/dist/components/Content/Operations/TraversedEntry.vue.d.ts +20 -25
- package/dist/components/Content/Operations/TraversedEntry.vue.d.ts.map +1 -1
- package/dist/components/Content/Operations/TraversedEntry.vue.js +38 -56
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
- package/dist/components/Content/index.d.ts +0 -1
- package/dist/components/Content/index.d.ts.map +1 -1
- package/dist/components/ShowMoreButton.vue.d.ts +1 -4
- package/dist/components/ShowMoreButton.vue.d.ts.map +1 -1
- package/dist/components/ShowMoreButton.vue.js +1 -1
- package/dist/components/ShowMoreButton.vue2.js +7 -17
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +12 -14
- package/dist/features/Operation/Operation.vue.d.ts +23 -25
- package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
- package/dist/features/Operation/Operation.vue.js +28 -19
- package/dist/features/Operation/components/OperationParameters.vue.d.ts +2 -4
- package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/OperationParameters.vue.js +17 -6
- package/dist/features/Operation/components/OperationResponses.vue.d.ts +3 -5
- package/dist/features/Operation/components/OperationResponses.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/OperationResponses.vue.js +3 -1
- package/dist/features/Operation/components/ParameterList.vue.d.ts +3 -6
- package/dist/features/Operation/components/ParameterList.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterList.vue.js +6 -8
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts +3 -6
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue.js +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue2.js +6 -8
- package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +2 -4
- package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/callbacks/Callback.vue.js +1 -1
- package/dist/features/Operation/components/callbacks/Callback.vue2.js +1 -5
- package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts +2 -8
- package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/callbacks/Callbacks.vue.js +35 -24
- package/dist/features/Operation/helpers/filter-selected-security.d.ts +9 -0
- package/dist/features/Operation/helpers/filter-selected-security.d.ts.map +1 -0
- package/dist/features/Operation/helpers/filter-selected-security.js +27 -0
- package/dist/features/Operation/helpers/get-first-server.d.ts +1 -1
- package/dist/features/Operation/helpers/get-first-server.d.ts.map +1 -1
- package/dist/features/Operation/helpers/get-first-server.js +3 -3
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +7 -23
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue.js +1 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue2.js +24 -23
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +7 -23
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue.js +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue2.js +25 -27
- package/dist/features/example-responses/ExampleResponse.vue.d.ts.map +1 -1
- package/dist/features/example-responses/ExampleResponse.vue.js +1 -1
- package/dist/features/example-responses/ExampleResponse.vue2.js +1 -2
- package/dist/features/example-responses/ExampleResponses.vue.d.ts.map +1 -1
- package/dist/features/example-responses/ExampleResponses.vue.js +1 -1
- package/dist/features/example-responses/ExampleResponses.vue2.js +1 -2
- package/dist/features/test-request-button/TestRequestButton.vue.d.ts +3 -0
- package/dist/features/test-request-button/TestRequestButton.vue.d.ts.map +1 -1
- package/dist/features/test-request-button/TestRequestButton.vue.js +1 -1
- package/dist/features/test-request-button/TestRequestButton.vue2.js +5 -9
- package/dist/helpers/index.d.ts +0 -4
- package/dist/helpers/index.d.ts.map +1 -1
- package/dist/helpers/index.js +1 -9
- package/dist/helpers/map-config-plugins.d.ts +5 -0
- package/dist/helpers/map-config-plugins.d.ts.map +1 -0
- package/dist/helpers/map-config-plugins.js +29 -0
- package/dist/helpers/map-config-to-workspace-store.d.ts.map +1 -1
- package/dist/helpers/map-config-to-workspace-store.js +5 -0
- package/dist/helpers/map-configuration.d.ts +2 -2
- package/dist/helpers/storage.d.ts +347 -0
- package/dist/helpers/storage.d.ts.map +1 -0
- package/dist/helpers/storage.js +61 -0
- package/dist/hooks/index.d.ts +0 -2
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +1 -5
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -3
- package/dist/plugins/persistance-plugin.d.ts +16 -0
- package/dist/plugins/persistance-plugin.d.ts.map +1 -0
- package/dist/plugins/persistance-plugin.js +54 -0
- package/dist/style.css +220 -542
- package/package.json +15 -15
- package/dist/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts +0 -11
- package/dist/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +0 -1
- package/dist/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +0 -7
- package/dist/blocks/scalar-auth-selector-block/components/AuthSelector.vue2.js +0 -259
- package/dist/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.d.ts +0 -21
- package/dist/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.d.ts.map +0 -1
- package/dist/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.js +0 -66
- package/dist/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue2.js +0 -4
- package/dist/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +0 -17
- package/dist/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts.map +0 -1
- package/dist/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +0 -273
- package/dist/blocks/scalar-auth-selector-block/components/OAuth2.vue2.js +0 -4
- package/dist/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.d.ts +0 -9
- package/dist/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.d.ts.map +0 -1
- package/dist/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +0 -150
- package/dist/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue2.js +0 -4
- package/dist/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts +0 -20
- package/dist/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts.map +0 -1
- package/dist/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +0 -7
- package/dist/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue2.js +0 -116
- package/dist/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts +0 -50
- package/dist/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts.map +0 -1
- package/dist/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.js +0 -55
- package/dist/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue2.js +0 -4
- package/dist/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +0 -17
- package/dist/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +0 -1
- package/dist/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +0 -288
- package/dist/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue2.js +0 -4
- package/dist/blocks/scalar-auth-selector-block/helpers/filter-security-requirements.d.ts +0 -6
- package/dist/blocks/scalar-auth-selector-block/helpers/filter-security-requirements.d.ts.map +0 -1
- package/dist/blocks/scalar-auth-selector-block/helpers/update-scheme.d.ts +0 -8
- package/dist/blocks/scalar-auth-selector-block/helpers/update-scheme.d.ts.map +0 -1
- package/dist/blocks/scalar-auth-selector-block/helpers/update-scheme.js +0 -26
- package/dist/blocks/scalar-auth-selector-block/index.d.ts +0 -2
- package/dist/blocks/scalar-auth-selector-block/index.d.ts.map +0 -1
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts +0 -16
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +0 -1
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +0 -7
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +0 -142
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts +0 -13
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts.map +0 -1
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.js +0 -7
- package/dist/components/Content/ClientLibraries/ClientSelector.vue2.js +0 -125
- package/dist/components/Content/ClientLibraries/featured-clients.d.ts +0 -11
- package/dist/components/Content/ClientLibraries/featured-clients.d.ts.map +0 -1
- package/dist/components/Content/ClientLibraries/featured-clients.js +0 -24
- package/dist/components/Content/ClientLibraries/index.d.ts +0 -2
- package/dist/components/Content/ClientLibraries/index.d.ts.map +0 -1
- package/dist/features/example-responses/helpers/get-resolved-ref-deep.d.ts +0 -26
- package/dist/features/example-responses/helpers/get-resolved-ref-deep.d.ts.map +0 -1
- package/dist/features/example-responses/helpers/get-resolved-ref-deep.js +0 -39
- package/dist/helpers/convert-security-scheme.d.ts +0 -9
- package/dist/helpers/convert-security-scheme.d.ts.map +0 -1
- package/dist/helpers/convert-security-scheme.js +0 -34
- package/dist/helpers/map-config-to-client-store.d.ts +0 -72
- package/dist/helpers/map-config-to-client-store.d.ts.map +0 -1
- package/dist/helpers/map-config-to-client-store.js +0 -146
- package/dist/hooks/use-legacy-store-events.d.ts +0 -14
- package/dist/hooks/use-legacy-store-events.d.ts.map +0 -1
- package/dist/hooks/use-legacy-store-events.js +0 -91
- package/dist/hooks/use-workspace-store-events.d.ts +0 -4
- package/dist/hooks/use-workspace-store-events.d.ts.map +0 -1
- package/dist/hooks/use-workspace-store-events.js +0 -68
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./ModernLayout.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const ModernLayout = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const ModernLayout = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-6e4b7777"]]);
|
|
5
5
|
export {
|
|
6
6
|
ModernLayout as default
|
|
7
7
|
};
|
|
@@ -32,14 +32,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
32
32
|
__name: "ModernLayout",
|
|
33
33
|
props: {
|
|
34
34
|
id: {},
|
|
35
|
-
path: {},
|
|
36
35
|
method: {},
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
36
|
+
options: {},
|
|
37
|
+
path: {},
|
|
38
|
+
clientOptions: {},
|
|
39
|
+
isWebhook: { type: Boolean },
|
|
40
|
+
selectedClient: {},
|
|
41
41
|
eventBus: {},
|
|
42
|
-
|
|
42
|
+
operation: {},
|
|
43
|
+
selectedServer: {},
|
|
44
|
+
selectedSecuritySchemes: {}
|
|
43
45
|
},
|
|
44
46
|
setup(__props) {
|
|
45
47
|
const operationTitle = computed(() => __props.operation.summary || __props.path || "");
|
|
@@ -73,7 +75,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
73
75
|
]),
|
|
74
76
|
_: 1
|
|
75
77
|
}, 8, ["class"])) : createCommentVNode("", true),
|
|
76
|
-
_ctx.
|
|
78
|
+
_ctx.isWebhook ? (openBlock(), createBlock(unref(Badge), {
|
|
77
79
|
key: 2,
|
|
78
80
|
class: "font-code text-green flex w-fit items-center justify-center gap-1"
|
|
79
81
|
}, {
|
|
@@ -138,10 +140,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
138
140
|
createVNode(_sfc_main$4, {
|
|
139
141
|
breadcrumb: [_ctx.id],
|
|
140
142
|
eventBus: _ctx.eventBus,
|
|
141
|
-
options:
|
|
142
|
-
orderRequiredPropertiesFirst: _ctx.options.orderRequiredPropertiesFirst,
|
|
143
|
-
orderSchemaPropertiesBy: _ctx.options.orderSchemaPropertiesBy
|
|
144
|
-
},
|
|
143
|
+
options: _ctx.options,
|
|
145
144
|
parameters: (
|
|
146
145
|
// These have been resolved in the Operation.vue component
|
|
147
146
|
_ctx.operation.parameters
|
|
@@ -150,14 +149,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
150
149
|
}, null, 8, ["breadcrumb", "eventBus", "options", "parameters", "requestBody"]),
|
|
151
150
|
createVNode(_sfc_main$5, {
|
|
152
151
|
breadcrumb: [_ctx.id],
|
|
152
|
+
collapsableItems: !_ctx.options.expandAllResponses,
|
|
153
153
|
eventBus: _ctx.eventBus,
|
|
154
|
-
options:
|
|
155
|
-
collapsableItems: !_ctx.options.expandAllResponses,
|
|
156
|
-
orderRequiredPropertiesFirst: _ctx.options.orderRequiredPropertiesFirst,
|
|
157
|
-
orderSchemaPropertiesBy: _ctx.options.orderSchemaPropertiesBy
|
|
158
|
-
},
|
|
154
|
+
options: _ctx.options,
|
|
159
155
|
responses: _ctx.operation.responses
|
|
160
|
-
}, null, 8, ["breadcrumb", "eventBus", "options", "responses"]),
|
|
156
|
+
}, null, 8, ["breadcrumb", "collapsableItems", "eventBus", "options", "responses"]),
|
|
161
157
|
createVNode(unref(ScalarErrorBoundary), null, {
|
|
162
158
|
default: withCtx(() => [
|
|
163
159
|
_ctx.operation.callbacks ? (openBlock(), createBlock(_sfc_main$6, {
|
|
@@ -165,10 +161,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
165
161
|
callbacks: _ctx.operation.callbacks,
|
|
166
162
|
class: "mt-6",
|
|
167
163
|
eventBus: _ctx.eventBus,
|
|
168
|
-
method: _ctx.method,
|
|
169
164
|
options: _ctx.options,
|
|
170
165
|
path: _ctx.path
|
|
171
|
-
}, null, 8, ["callbacks", "eventBus", "
|
|
166
|
+
}, null, 8, ["callbacks", "eventBus", "options", "path"])) : createCommentVNode("", true)
|
|
172
167
|
]),
|
|
173
168
|
_: 1
|
|
174
169
|
})
|
|
@@ -190,15 +185,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
190
185
|
createVNode(unref(ScalarErrorBoundary), null, {
|
|
191
186
|
default: withCtx(() => [
|
|
192
187
|
createVNode(unref(OperationCodeSample), {
|
|
193
|
-
clientOptions: _ctx.
|
|
188
|
+
clientOptions: _ctx.clientOptions,
|
|
189
|
+
eventBus: _ctx.eventBus,
|
|
194
190
|
fallback: "",
|
|
195
|
-
isWebhook: _ctx.
|
|
191
|
+
isWebhook: _ctx.isWebhook,
|
|
196
192
|
method: _ctx.method,
|
|
197
193
|
operation: _ctx.operation,
|
|
198
194
|
path: _ctx.path,
|
|
199
|
-
securitySchemes: _ctx.
|
|
200
|
-
selectedClient: _ctx.
|
|
201
|
-
selectedServer: _ctx.
|
|
195
|
+
securitySchemes: _ctx.selectedSecuritySchemes,
|
|
196
|
+
selectedClient: _ctx.selectedClient,
|
|
197
|
+
selectedServer: _ctx.selectedServer
|
|
202
198
|
}, createSlots({
|
|
203
199
|
header: withCtx(() => [
|
|
204
200
|
createVNode(OperationPath, {
|
|
@@ -209,18 +205,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
209
205
|
]),
|
|
210
206
|
_: 2
|
|
211
207
|
}, [
|
|
212
|
-
!_ctx.
|
|
208
|
+
!_ctx.isWebhook ? {
|
|
213
209
|
name: "footer",
|
|
214
210
|
fn: withCtx(() => [
|
|
215
211
|
!_ctx.options.hideTestRequestButton ? (openBlock(), createBlock(unref(TestRequestButton), {
|
|
216
212
|
key: 0,
|
|
213
|
+
id: _ctx.id,
|
|
214
|
+
eventBus: _ctx.eventBus,
|
|
217
215
|
method: _ctx.method,
|
|
218
216
|
path: _ctx.path
|
|
219
|
-
}, null, 8, ["method", "path"])) : createCommentVNode("", true)
|
|
217
|
+
}, null, 8, ["id", "eventBus", "method", "path"])) : createCommentVNode("", true)
|
|
220
218
|
]),
|
|
221
219
|
key: "0"
|
|
222
220
|
} : void 0
|
|
223
|
-
]), 1032, ["clientOptions", "isWebhook", "method", "operation", "path", "securitySchemes", "selectedClient", "selectedServer"])
|
|
221
|
+
]), 1032, ["clientOptions", "eventBus", "isWebhook", "method", "operation", "path", "securitySchemes", "selectedClient", "selectedServer"])
|
|
224
222
|
]),
|
|
225
223
|
_: 1
|
|
226
224
|
}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExampleResponse.vue.d.ts","sourceRoot":"","sources":["../../../src/features/example-responses/ExampleResponse.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ExampleResponse.vue.d.ts","sourceRoot":"","sources":["../../../src/features/example-responses/ExampleResponse.vue"],"names":[],"mappings":"AA+IA,OAAO,KAAK,EACV,aAAa,EACb,eAAe,EAChB,MAAM,8DAA8D,CAAA;AAGrE,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,eAAe,GAAG,SAAS,CAAA;IACrC,OAAO,EAAE,aAAa,GAAG,SAAS,CAAA;CACnC,CAAC;;AA+HF,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./ExampleResponse.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const ExampleResponse = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const ExampleResponse = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ab9ce344"]]);
|
|
5
5
|
export {
|
|
6
6
|
ExampleResponse as default
|
|
7
7
|
};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { defineComponent, computed, createBlock, createElementBlock, openBlock, unref } from "vue";
|
|
2
|
-
import { getExampleFromSchema } from "@scalar/api-client/v2/blocks/operation-code-sample";
|
|
2
|
+
import { getResolvedRefDeep, getExampleFromSchema } from "@scalar/api-client/v2/blocks/operation-code-sample";
|
|
3
3
|
import { ScalarCodeBlock, ScalarVirtualText } from "@scalar/components";
|
|
4
4
|
import { prettyPrintJson } from "@scalar/oas-utils/helpers";
|
|
5
5
|
import { getResolvedRef } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
6
|
-
import { getResolvedRefDeep } from "./helpers/get-resolved-ref-deep.js";
|
|
7
6
|
const _hoisted_1 = {
|
|
8
7
|
key: 3,
|
|
9
8
|
class: "empty-state"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExampleResponses.vue.d.ts","sourceRoot":"","sources":["../../../src/features/example-responses/ExampleResponses.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ExampleResponses.vue.d.ts","sourceRoot":"","sources":["../../../src/features/example-responses/ExampleResponses.vue"],"names":[],"mappings":"AAwWA,OAAO,KAAK,EAGV,eAAe,EAChB,MAAM,8DAA8D,CAAA;AASrE;;GAEG;AAEH,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,eAAe,CAAA;CAC3B,CAAC;;AAsWF,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./ExampleResponses.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const ExampleResponses = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const ExampleResponses = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b2851076"]]);
|
|
5
5
|
export {
|
|
6
6
|
ExampleResponses as default
|
|
7
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, useId, computed, ref, toValue, createBlock, createCommentVNode, openBlock, unref, withCtx, createVNode, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString, withDirectives, createElementVNode, vModelCheckbox } from "vue";
|
|
2
|
-
import { ExamplePicker } from "@scalar/api-client/v2/blocks/operation-code-sample";
|
|
2
|
+
import { getResolvedRefDeep, ExamplePicker } from "@scalar/api-client/v2/blocks/operation-code-sample";
|
|
3
3
|
import { ScalarCard, ScalarIcon, ScalarCardSection, ScalarCodeBlock, ScalarCardFooter, ScalarMarkdown } from "@scalar/components";
|
|
4
4
|
import { normalizeMimeTypeObject, getObjectKeys } from "@scalar/oas-utils/helpers";
|
|
5
5
|
import { useClipboard } from "@scalar/use-hooks/useClipboard";
|
|
@@ -8,7 +8,6 @@ import ScreenReader from "../../components/ScreenReader.vue.js";
|
|
|
8
8
|
import ExampleResponse from "./ExampleResponse.vue.js";
|
|
9
9
|
import ExampleResponseTab from "./ExampleResponseTab.vue.js";
|
|
10
10
|
import ExampleResponseTabList from "./ExampleResponseTabList.vue.js";
|
|
11
|
-
import { getResolvedRefDeep } from "./helpers/get-resolved-ref-deep.js";
|
|
12
11
|
const _hoisted_1 = {
|
|
13
12
|
key: 1,
|
|
14
13
|
class: "scalar-card-checkbox"
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import type { HttpMethod } from '@scalar/helpers/http/http-methods';
|
|
2
|
+
import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
2
3
|
type __VLS_Props = {
|
|
4
|
+
id: string;
|
|
3
5
|
method: HttpMethod;
|
|
4
6
|
path: string;
|
|
7
|
+
eventBus: WorkspaceEventBus;
|
|
5
8
|
};
|
|
6
9
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
10
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TestRequestButton.vue.d.ts","sourceRoot":"","sources":["../../../src/features/test-request-button/TestRequestButton.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TestRequestButton.vue.d.ts","sourceRoot":"","sources":["../../../src/features/test-request-button/TestRequestButton.vue"],"names":[],"mappings":"AAqEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAEnE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAIvE,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,EAAE,UAAU,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,iBAAiB,CAAA;CAC5B,CAAC;;AA0EF,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./TestRequestButton.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const TestRequestButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const TestRequestButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e851edeb"]]);
|
|
5
5
|
export {
|
|
6
6
|
TestRequestButton as default
|
|
7
7
|
};
|
|
@@ -1,23 +1,19 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, withModifiers, createVNode, createElementVNode, unref, withCtx, createTextVNode, toDisplayString } from "vue";
|
|
2
2
|
import { ScalarIconPlay } from "@scalar/icons";
|
|
3
|
-
import { emitCustomEvent } from "@scalar/workspace-store/events";
|
|
4
3
|
import ScreenReader from "../../components/ScreenReader.vue.js";
|
|
5
4
|
const _hoisted_1 = ["method"];
|
|
6
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
6
|
__name: "TestRequestButton",
|
|
8
7
|
props: {
|
|
8
|
+
id: {},
|
|
9
9
|
method: {},
|
|
10
|
-
path: {}
|
|
10
|
+
path: {},
|
|
11
|
+
eventBus: {}
|
|
11
12
|
},
|
|
12
13
|
setup(__props) {
|
|
13
|
-
const
|
|
14
|
-
const handleClick = () => {
|
|
15
|
-
emitCustomEvent(el.value, "scalar-open-client", { method: __props.method, path: __props.path });
|
|
16
|
-
};
|
|
14
|
+
const handleClick = () => __props.eventBus.emit("ui:open:client-modal", { id: __props.id });
|
|
17
15
|
return (_ctx, _cache) => {
|
|
18
16
|
return openBlock(), createElementBlock("button", {
|
|
19
|
-
ref_key: "el",
|
|
20
|
-
ref: el,
|
|
21
17
|
class: "show-api-client-button",
|
|
22
18
|
method: _ctx.method,
|
|
23
19
|
type: "button",
|
package/dist/helpers/index.d.ts
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
export { useLegacyStoreEvents } from '../hooks/use-legacy-store-events.js';
|
|
2
|
-
export { useWorkspaceStoreEvents } from '../hooks/use-workspace-store-events.js';
|
|
3
1
|
export { getSystemModePreference } from './color-mode.js';
|
|
4
|
-
export { convertSecurityScheme } from './convert-security-scheme.js';
|
|
5
2
|
export { downloadDocument } from './download.js';
|
|
6
3
|
export { getIdFromUrl, makeUrlFromId } from './id-routing.js';
|
|
7
4
|
export { blockIntersection, firstLazyLoadComplete, intersectionEnabled, scrollToLazy } from './lazy-bus.js';
|
|
8
|
-
export { type SecuritySchemeGetter, mapConfigToClientStore } from './map-config-to-client-store.js';
|
|
9
5
|
export { mapConfigToWorkspaceStore } from './map-config-to-workspace-store.js';
|
|
10
6
|
export { mapConfiguration } from './map-configuration.js';
|
|
11
7
|
export { type NormalizedConfiguration, normalizeConfigurations } from './normalize-configurations.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAA;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAC7C,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAC1D,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AACxG,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAA;AAC3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,EAAE,KAAK,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAA"}
|
package/dist/helpers/index.js
CHANGED
|
@@ -1,28 +1,20 @@
|
|
|
1
|
-
import { useLegacyStoreEvents } from "../hooks/use-legacy-store-events.js";
|
|
2
|
-
import { useWorkspaceStoreEvents } from "../hooks/use-workspace-store-events.js";
|
|
3
1
|
import { getSystemModePreference } from "./color-mode.js";
|
|
4
|
-
import { convertSecurityScheme } from "./convert-security-scheme.js";
|
|
5
2
|
import { downloadDocument } from "./download.js";
|
|
6
3
|
import { getIdFromUrl, makeUrlFromId } from "./id-routing.js";
|
|
7
4
|
import { blockIntersection, firstLazyLoadComplete, intersectionEnabled, scrollToLazy } from "./lazy-bus.js";
|
|
8
|
-
import { mapConfigToClientStore } from "./map-config-to-client-store.js";
|
|
9
5
|
import { mapConfigToWorkspaceStore } from "./map-config-to-workspace-store.js";
|
|
10
6
|
import { mapConfiguration } from "./map-configuration.js";
|
|
11
7
|
import { normalizeConfigurations } from "./normalize-configurations.js";
|
|
12
8
|
export {
|
|
13
9
|
blockIntersection,
|
|
14
|
-
convertSecurityScheme,
|
|
15
10
|
downloadDocument,
|
|
16
11
|
firstLazyLoadComplete,
|
|
17
12
|
getIdFromUrl,
|
|
18
13
|
getSystemModePreference,
|
|
19
14
|
intersectionEnabled,
|
|
20
15
|
makeUrlFromId,
|
|
21
|
-
mapConfigToClientStore,
|
|
22
16
|
mapConfigToWorkspaceStore,
|
|
23
17
|
mapConfiguration,
|
|
24
18
|
normalizeConfigurations,
|
|
25
|
-
scrollToLazy
|
|
26
|
-
useLegacyStoreEvents,
|
|
27
|
-
useWorkspaceStoreEvents
|
|
19
|
+
scrollToLazy
|
|
28
20
|
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ClientPlugin } from '@scalar/api-client/v2/helpers';
|
|
2
|
+
import type { ApiReferenceConfigurationRaw } from '@scalar/types/api-reference';
|
|
3
|
+
/** Map the config functions to plugins */
|
|
4
|
+
export declare const mapConfigPlugins: (config: ApiReferenceConfigurationRaw) => ClientPlugin[];
|
|
5
|
+
//# sourceMappingURL=map-config-plugins.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"map-config-plugins.d.ts","sourceRoot":"","sources":["../../src/helpers/map-config-plugins.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACjE,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAA;AAE/E,0CAA0C;AAC1C,eAAO,MAAM,gBAAgB,GAAI,QAAQ,4BAA4B,KAAG,YAAY,EAkCnF,CAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
const mapConfigPlugins = (config) => {
|
|
2
|
+
const plugins = [];
|
|
3
|
+
if (config.onBeforeRequest) {
|
|
4
|
+
plugins.push({
|
|
5
|
+
hooks: {
|
|
6
|
+
beforeRequest: async (payload) => {
|
|
7
|
+
const result = await config.onBeforeRequest?.(payload);
|
|
8
|
+
if (result) {
|
|
9
|
+
return result;
|
|
10
|
+
}
|
|
11
|
+
return payload;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
if (config.onRequestSent) {
|
|
17
|
+
plugins.push({
|
|
18
|
+
hooks: {
|
|
19
|
+
responseReceived: (payload) => {
|
|
20
|
+
config.onRequestSent?.(payload.request.url);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
return plugins;
|
|
26
|
+
};
|
|
27
|
+
export {
|
|
28
|
+
mapConfigPlugins
|
|
29
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"map-config-to-workspace-store.d.ts","sourceRoot":"","sources":["../../src/helpers/map-config-to-workspace-store.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAA;AAC/E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAGpE,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,GAAG,EAA2C,MAAM,KAAK,CAAA;AAE9F,eAAO,MAAM,yBAAyB,GAAI,gCAIvC;IACD,MAAM,EAAE,gBAAgB,CAAC,4BAA4B,CAAC,CAAA;IACtD,KAAK,EAAE,cAAc,CAAA;IACrB,UAAU,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;CACzB,
|
|
1
|
+
{"version":3,"file":"map-config-to-workspace-store.d.ts","sourceRoot":"","sources":["../../src/helpers/map-config-to-workspace-store.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAA;AAC/E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAGpE,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,GAAG,EAA2C,MAAM,KAAK,CAAA;AAE9F,eAAO,MAAM,yBAAyB,GAAI,gCAIvC;IACD,MAAM,EAAE,gBAAgB,CAAC,4BAA4B,CAAC,CAAA;IACtD,KAAK,EAAE,cAAc,CAAA;IACrB,UAAU,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;CACzB,SAmDA,CAAA"}
|
|
@@ -39,6 +39,11 @@ const mapConfigToWorkspaceStore = ({
|
|
|
39
39
|
if (toValue(config).metaData) {
|
|
40
40
|
useSeoMeta(toValue(config).metaData);
|
|
41
41
|
}
|
|
42
|
+
watch(
|
|
43
|
+
() => toValue(config).proxyUrl,
|
|
44
|
+
(newProxyUrl) => store.update("x-scalar-active-proxy", newProxyUrl),
|
|
45
|
+
{ immediate: true }
|
|
46
|
+
);
|
|
42
47
|
const favicon = computed(() => toValue(config).favicon);
|
|
43
48
|
useFavicon(favicon);
|
|
44
49
|
};
|
|
@@ -24,7 +24,7 @@ export declare const mapConfiguration: (config: Partial<ApiReferenceConfiguratio
|
|
|
24
24
|
appearance: {
|
|
25
25
|
css: string | undefined;
|
|
26
26
|
favicon: string | undefined;
|
|
27
|
-
forceColorMode: "
|
|
27
|
+
forceColorMode: "light" | "dark" | undefined;
|
|
28
28
|
initialColorMode: "dark" | undefined;
|
|
29
29
|
layout: "modern" | "classic" | undefined;
|
|
30
30
|
loadDefaultFonts: boolean | undefined;
|
|
@@ -36,7 +36,7 @@ export declare const mapConfiguration: (config: Partial<ApiReferenceConfiguratio
|
|
|
36
36
|
};
|
|
37
37
|
settings: {
|
|
38
38
|
proxyUrl: string | undefined;
|
|
39
|
-
searchKey: "a" | "b" | "i" | "p" | "q" | "s" | "u" | "g" | "c" | "
|
|
39
|
+
searchKey: "a" | "b" | "i" | "p" | "q" | "s" | "u" | "g" | "c" | "r" | "x" | "y" | "d" | "e" | "f" | "h" | "j" | "k" | "l" | "m" | "n" | "o" | "t" | "v" | "w" | "z" | undefined;
|
|
40
40
|
baseServerUrl: string | undefined;
|
|
41
41
|
servers: any[] | undefined;
|
|
42
42
|
};
|