@scalar/api-reference 1.44.26 → 1.44.27
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 +29 -0
- package/dist/browser/standalone.js +13890 -13831
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/AgentScalar/AgentScalarChatInterface.vue.d.ts.map +1 -1
- package/dist/components/AgentScalar/AgentScalarChatInterface.vue2.js +2 -1
- package/dist/components/ApiReference.vue.d.ts.map +1 -1
- package/dist/components/ApiReference.vue.js +1 -1
- package/dist/components/ApiReference.vue2.js +2 -2
- package/dist/components/Content/Schema/SchemaPropertyDefault.vue.d.ts +7 -0
- package/dist/components/Content/Schema/SchemaPropertyDefault.vue.d.ts.map +1 -0
- package/dist/components/Content/Schema/SchemaPropertyDefault.vue.js +7 -0
- package/dist/components/Content/Schema/SchemaPropertyDefault.vue2.js +45 -0
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +8 -35
- package/dist/components/Content/Schema/helpers/format-value.d.ts +5 -0
- package/dist/components/Content/Schema/helpers/format-value.d.ts.map +1 -0
- package/dist/components/Content/Schema/helpers/format-value.js +35 -0
- package/dist/features/{toolbar/ApiReferenceToolbar.vue.d.ts → developer-tools/DeveloperTools.vue.d.ts} +1 -1
- package/dist/features/developer-tools/DeveloperTools.vue.d.ts.map +1 -0
- package/dist/features/{toolbar/ApiReferenceToolbar.vue.js → developer-tools/DeveloperTools.vue.js} +11 -11
- package/dist/features/developer-tools/DeveloperTools.vue2.js +4 -0
- package/dist/features/developer-tools/components/ApiReferenceToolbarBlurb.vue.d.ts.map +1 -0
- package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarBlurb.vue.js +1 -1
- package/dist/features/developer-tools/components/ApiReferenceToolbarConfigLayout.vue.d.ts.map +1 -0
- package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarConfigLayoutOptions.vue.d.ts +2 -0
- package/dist/features/developer-tools/components/ApiReferenceToolbarConfigLayoutOptions.vue.d.ts.map +1 -0
- package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarConfigLayoutOptions.vue.js +35 -17
- package/dist/features/developer-tools/components/ApiReferenceToolbarConfigTheme.vue.d.ts.map +1 -0
- package/dist/features/developer-tools/components/ApiReferenceToolbarPopover.vue.d.ts.map +1 -0
- package/dist/features/developer-tools/components/ApiReferenceToolbarRegisterButton.vue.d.ts.map +1 -0
- package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarRegisterButton.vue.js +2 -2
- package/dist/features/developer-tools/components/ApiReferenceToolbarShareRegister.vue.d.ts.map +1 -0
- package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarShareRegister.vue.js +12 -8
- package/dist/features/developer-tools/components/ApiReferenceToolbarShareTemporary.vue.d.ts.map +1 -0
- package/dist/features/developer-tools/components/ApiReferenceToolbarShareTemporary.vue.js +73 -0
- package/dist/features/developer-tools/components/ApiReferenceToolbarTitle.vue.d.ts.map +1 -0
- package/dist/features/{toolbar/ApiReferenceToolbarSdks.vue.d.ts → developer-tools/components/DeployApiReference.vue.d.ts} +1 -1
- package/dist/features/developer-tools/components/DeployApiReference.vue.d.ts.map +1 -0
- package/dist/features/developer-tools/components/DeployApiReference.vue.js +35 -0
- package/dist/features/developer-tools/components/DeployApiReference.vue2.js +4 -0
- package/dist/features/{toolbar/ApiReferenceToolbarConfig.vue.d.ts → developer-tools/components/ModifyConfiguration.vue.d.ts} +1 -1
- package/dist/features/developer-tools/components/ModifyConfiguration.vue.d.ts.map +1 -0
- package/dist/features/{toolbar/ApiReferenceToolbarConfig.vue.js → developer-tools/components/ModifyConfiguration.vue.js} +1 -1
- package/dist/features/developer-tools/components/ModifyConfiguration.vue2.js +4 -0
- package/dist/features/{toolbar/ApiReferenceToolbarShare.vue.d.ts → developer-tools/components/ShareApiReference.vue.d.ts} +1 -1
- package/dist/features/developer-tools/components/ShareApiReference.vue.d.ts.map +1 -0
- package/dist/features/{toolbar/ApiReferenceToolbarShare.vue.js → developer-tools/components/ShareApiReference.vue.js} +4 -13
- package/dist/features/developer-tools/components/ShareApiReference.vue2.js +4 -0
- package/dist/features/developer-tools/index.d.ts +2 -0
- package/dist/features/developer-tools/index.d.ts.map +1 -0
- package/dist/features/index.d.ts +0 -1
- package/dist/features/index.d.ts.map +1 -1
- package/dist/features/index.js +2 -4
- package/dist/style.css +103 -35
- package/package.json +13 -13
- package/dist/features/toolbar/ApiReferenceToolbar.vue.d.ts.map +0 -1
- package/dist/features/toolbar/ApiReferenceToolbar.vue2.js +0 -4
- package/dist/features/toolbar/ApiReferenceToolbarBlurb.vue.d.ts.map +0 -1
- package/dist/features/toolbar/ApiReferenceToolbarConfig.vue.d.ts.map +0 -1
- package/dist/features/toolbar/ApiReferenceToolbarConfig.vue2.js +0 -4
- package/dist/features/toolbar/ApiReferenceToolbarConfigLayout.vue.d.ts.map +0 -1
- package/dist/features/toolbar/ApiReferenceToolbarConfigLayoutOptions.vue.d.ts.map +0 -1
- package/dist/features/toolbar/ApiReferenceToolbarConfigTheme.vue.d.ts.map +0 -1
- package/dist/features/toolbar/ApiReferenceToolbarPopover.vue.d.ts.map +0 -1
- package/dist/features/toolbar/ApiReferenceToolbarRegisterButton.vue.d.ts.map +0 -1
- package/dist/features/toolbar/ApiReferenceToolbarSdks.vue.d.ts.map +0 -1
- package/dist/features/toolbar/ApiReferenceToolbarSdks.vue.js +0 -89
- package/dist/features/toolbar/ApiReferenceToolbarSdks.vue2.js +0 -4
- package/dist/features/toolbar/ApiReferenceToolbarShare.vue.d.ts.map +0 -1
- package/dist/features/toolbar/ApiReferenceToolbarShare.vue2.js +0 -4
- package/dist/features/toolbar/ApiReferenceToolbarShareRegister.vue.d.ts.map +0 -1
- package/dist/features/toolbar/ApiReferenceToolbarShareTemporary.vue.d.ts.map +0 -1
- package/dist/features/toolbar/ApiReferenceToolbarShareTemporary.vue.js +0 -90
- package/dist/features/toolbar/ApiReferenceToolbarTitle.vue.d.ts.map +0 -1
- /package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarBlurb.vue.d.ts +0 -0
- /package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarConfigLayout.vue.d.ts +0 -0
- /package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarConfigLayout.vue.js +0 -0
- /package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarConfigLayout.vue2.js +0 -0
- /package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarConfigLayoutOptions.vue2.js +0 -0
- /package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarConfigTheme.vue.d.ts +0 -0
- /package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarConfigTheme.vue.js +0 -0
- /package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarConfigTheme.vue2.js +0 -0
- /package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarPopover.vue.d.ts +0 -0
- /package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarPopover.vue.js +0 -0
- /package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarPopover.vue2.js +0 -0
- /package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarRegisterButton.vue.d.ts +0 -0
- /package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarRegisterButton.vue2.js +0 -0
- /package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarShareRegister.vue.d.ts +0 -0
- /package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarShareRegister.vue2.js +0 -0
- /package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarShareTemporary.vue.d.ts +0 -0
- /package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarShareTemporary.vue2.js +0 -0
- /package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarTitle.vue.d.ts +0 -0
- /package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarTitle.vue.js +0 -0
- /package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarTitle.vue2.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentScalarChatInterface.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AgentScalar/AgentScalarChatInterface.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AgentScalarChatInterface.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AgentScalar/AgentScalarChatInterface.vue"],"names":[],"mappings":"AAoCA,OAAO,EAAE,KAAK,mCAAmC,EAAE,MAAM,6BAA6B,CAAA;AACtF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAI9B,KAAK,WAAW,GAAG;IACf,wBAAwB,EAAE,mCAAmC,CAAC,OAAO,CAAC,CAAA;IACtE,cAAc,EAAE,cAAc,CAAA;IAC9B,gBAAgB,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;CAC/B,CAAC;AAiEJ,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -15,11 +15,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
15
15
|
dashboardUrl: unref(DASHBOARD_URL),
|
|
16
16
|
getActiveDocumentJson: () => __props.workspaceStore.exportActiveDocument("json"),
|
|
17
17
|
getAgentKey: __props.agentScalarConfiguration?.key ? () => __props.agentScalarConfiguration?.key ?? "" : void 0,
|
|
18
|
+
hideAddApi: __props.agentScalarConfiguration?.hideAddApi,
|
|
18
19
|
mode: __props.agentScalarConfiguration?.key ? "full" : "preview",
|
|
19
20
|
prefilledMessage: __props.prefilledMessage,
|
|
20
21
|
registryDocuments: [],
|
|
21
22
|
registryUrl: unref(REGISTRY_URL)
|
|
22
|
-
}, null, 8, ["baseUrl", "dashboardUrl", "getActiveDocumentJson", "getAgentKey", "mode", "prefilledMessage", "registryUrl"]);
|
|
23
|
+
}, null, 8, ["baseUrl", "dashboardUrl", "getActiveDocumentJson", "getAgentKey", "hideAddApi", "mode", "prefilledMessage", "registryUrl"]);
|
|
23
24
|
};
|
|
24
25
|
}
|
|
25
26
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiReference.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReference.vue"],"names":[],"mappings":"AA4vCA,OAAO,EAEL,KAAK,4BAA4B,EAGlC,MAAM,6BAA6B,CAAA;AAOpC,OAAO,KAAK,EACV,cAAc,EAEf,MAAM,4CAA4C,CAAA;AAkBnD,OAAO,8BAA8B,CAAA;AAiCrC,KAAK,WAAW,GAAG;IACjB;;;OAGG;IACH,aAAa,CAAC,EAAE,4BAA4B,CAAA;CAC7C,CAAC;AAGF,KAAK,WAAW,GAAG;IACjB,eAAe,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;IAC1C,aAAa,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;IACxC,eAAe,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;IAC1C,aAAa,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;IACxC,oBAAoB,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;IAC/C,MAAM,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;CAClC,CAAC;
|
|
1
|
+
{"version":3,"file":"ApiReference.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReference.vue"],"names":[],"mappings":"AA4vCA,OAAO,EAEL,KAAK,4BAA4B,EAGlC,MAAM,6BAA6B,CAAA;AAOpC,OAAO,KAAK,EACV,cAAc,EAEf,MAAM,4CAA4C,CAAA;AAkBnD,OAAO,8BAA8B,CAAA;AAiCrC,KAAK,WAAW,GAAG;IACjB;;;OAGG;IACH,aAAa,CAAC,EAAE,4BAA4B,CAAA;CAC7C,CAAC;AAGF,KAAK,WAAW,GAAG;IACjB,eAAe,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;IAC1C,aAAa,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;IACxC,eAAe,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;IAC1C,aAAa,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;IACxC,oBAAoB,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;IAC/C,MAAM,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;CAClC,CAAC;AA80CF,QAAA,MAAM,UAAU;;;;oPAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -4,7 +4,7 @@ import _sfc_main from "./ApiReference.vue2.js";
|
|
|
4
4
|
/* empty css */
|
|
5
5
|
/* empty css */
|
|
6
6
|
import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
|
|
7
|
-
const ApiReference = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
7
|
+
const ApiReference = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-94d6fca6"]]);
|
|
8
8
|
export {
|
|
9
9
|
ApiReference as default
|
|
10
10
|
};
|
|
@@ -25,7 +25,6 @@ import _sfc_main$5 from "./Content/Content.vue.js";
|
|
|
25
25
|
import _sfc_main$1 from "./MobileHeader.vue.js";
|
|
26
26
|
import _sfc_main$2 from "../features/multiple-documents/DocumentSelector.vue.js";
|
|
27
27
|
import _sfc_main$3 from "../features/Search/components/SearchButton.vue.js";
|
|
28
|
-
import _sfc_main$6 from "../features/toolbar/ApiReferenceToolbar.vue.js";
|
|
29
28
|
import { getSystemModePreference } from "../helpers/color-mode.js";
|
|
30
29
|
import { downloadDocument } from "../helpers/download.js";
|
|
31
30
|
import { getIdFromUrl, makeUrlFromId } from "../helpers/id-routing.js";
|
|
@@ -40,6 +39,7 @@ import { PLUGIN_MANAGER_SYMBOL } from "../plugins/hooks/usePluginManager.js";
|
|
|
40
39
|
import { createPluginManager } from "../plugins/plugin-manager.js";
|
|
41
40
|
import AgentScalarDrawer from "./AgentScalar/AgentScalarDrawer.vue.js";
|
|
42
41
|
import _sfc_main$4 from "./AgentScalar/AgentScalarButton.vue.js";
|
|
42
|
+
import _sfc_main$6 from "../features/developer-tools/DeveloperTools.vue.js";
|
|
43
43
|
const _hoisted_1 = {
|
|
44
44
|
key: 1,
|
|
45
45
|
class: "flex gap-1.5 px-3 pt-3"
|
|
@@ -653,7 +653,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
653
653
|
xScalarDefaultClient: unref(workspaceStore).workspace["x-scalar-default-client"]
|
|
654
654
|
}, createSlots({
|
|
655
655
|
start: withCtx(() => [
|
|
656
|
-
unref(workspaceStore).workspace.activeDocument && unref(mediaQueries).lg.value ? (openBlock(), createBlock(_sfc_main$6, {
|
|
656
|
+
unref(workspaceStore).workspace.activeDocument && unref(mediaQueries).lg.value ? (openBlock(), createBlock(unref(_sfc_main$6), {
|
|
657
657
|
key: 0,
|
|
658
658
|
overrides: configurationOverrides.value,
|
|
659
659
|
"onUpdate:overrides": _cache[4] || (_cache[4] = ($event) => configurationOverrides.value = $event),
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
value?: unknown;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_export: 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>;
|
|
5
|
+
declare const _default: typeof __VLS_export;
|
|
6
|
+
export default _default;
|
|
7
|
+
//# sourceMappingURL=SchemaPropertyDefault.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SchemaPropertyDefault.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaPropertyDefault.vue"],"names":[],"mappings":"AAwHA,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB,CAAC;AA+FF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import _sfc_main from "./SchemaPropertyDefault.vue2.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const SchemaPropertyDefault = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4da5c70a"]]);
|
|
5
|
+
export {
|
|
6
|
+
SchemaPropertyDefault as default
|
|
7
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { defineComponent, createElementBlock, createCommentVNode, openBlock, createElementVNode, unref, createVNode, toDisplayString } from "vue";
|
|
2
|
+
import { ScalarIcon } from "@scalar/components";
|
|
3
|
+
import { useClipboard } from "@scalar/use-hooks/useClipboard";
|
|
4
|
+
import { formatValue } from "./helpers/format-value.js";
|
|
5
|
+
const _hoisted_1 = {
|
|
6
|
+
key: 0,
|
|
7
|
+
class: "property-default"
|
|
8
|
+
};
|
|
9
|
+
const _hoisted_2 = { class: "property-default-value-list" };
|
|
10
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
11
|
+
__name: "SchemaPropertyDefault",
|
|
12
|
+
props: {
|
|
13
|
+
value: {}
|
|
14
|
+
},
|
|
15
|
+
setup(__props) {
|
|
16
|
+
const { copyToClipboard } = useClipboard();
|
|
17
|
+
return (_ctx, _cache) => {
|
|
18
|
+
return __props.value !== void 0 ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
19
|
+
_cache[1] || (_cache[1] = createElementVNode("button", {
|
|
20
|
+
class: "property-default-label",
|
|
21
|
+
type: "button"
|
|
22
|
+
}, [
|
|
23
|
+
createElementVNode("span", null, "Default")
|
|
24
|
+
], -1)),
|
|
25
|
+
createElementVNode("div", _hoisted_2, [
|
|
26
|
+
createElementVNode("button", {
|
|
27
|
+
class: "property-default-value group",
|
|
28
|
+
type: "button",
|
|
29
|
+
onClick: _cache[0] || (_cache[0] = ($event) => unref(copyToClipboard)(unref(formatValue)(__props.value)))
|
|
30
|
+
}, [
|
|
31
|
+
createElementVNode("span", null, toDisplayString(unref(formatValue)(__props.value)), 1),
|
|
32
|
+
createVNode(unref(ScalarIcon), {
|
|
33
|
+
class: "group-hover:text-c-1 text-c-3 ml-auto min-h-3 min-w-3",
|
|
34
|
+
icon: "Clipboard",
|
|
35
|
+
size: "xs"
|
|
36
|
+
})
|
|
37
|
+
])
|
|
38
|
+
])
|
|
39
|
+
])) : createCommentVNode("", true);
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
export {
|
|
44
|
+
_sfc_main as default
|
|
45
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaPropertyHeading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaPropertyHeading.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SchemaPropertyHeading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaPropertyHeading.vue"],"names":[],"mappings":"AAiaA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAkBhG,KAAK,WAAW,GAAG;IACf,KAAK,EAAE,YAAY,GAAG,SAAS,CAAA;IAC/B,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB,CAAC;AA6eJ,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAK5C,QAAA,MAAM,UAAU;cAxfD,OAAO;oBAGD,OAAO;qBAJN,OAAO;kBAGV,OAAO;6EAyfxB,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./SchemaPropertyHeading.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const SchemaPropertyHeading = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const SchemaPropertyHeading = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b69e3089"]]);
|
|
5
5
|
export {
|
|
6
6
|
SchemaPropertyHeading as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, toRef, computed, createElementBlock, openBlock, createCommentVNode, createBlock, normalizeClass, renderSlot, Fragment, withCtx,
|
|
1
|
+
import { defineComponent, toRef, computed, createElementBlock, openBlock, createCommentVNode, createVNode, createBlock, normalizeClass, renderSlot, Fragment, withCtx, createTextVNode, toDisplayString, renderList, createSlots, unref } from "vue";
|
|
2
2
|
import { isDefined } from "@scalar/helpers/array/is-defined";
|
|
3
3
|
import { resolve } from "@scalar/workspace-store/resolve";
|
|
4
4
|
import { isArraySchema, isStringSchema, isNumberSchema } from "@scalar/workspace-store/schemas/v3.1/strict/type-guards";
|
|
@@ -6,6 +6,7 @@ import ScreenReader from "../../ScreenReader.vue.js";
|
|
|
6
6
|
import { getSchemaType } from "./helpers/get-schema-type.js";
|
|
7
7
|
import { getModelNameFromSchema } from "./helpers/schema-name.js";
|
|
8
8
|
import _sfc_main$1 from "./RenderString.vue.js";
|
|
9
|
+
import SchemaPropertyDefault from "./SchemaPropertyDefault.vue.js";
|
|
9
10
|
import SchemaPropertyDetail from "./SchemaPropertyDetail.vue.js";
|
|
10
11
|
import SchemaPropertyExamples from "./SchemaPropertyExamples.vue.js";
|
|
11
12
|
import Badge from "../../Badge/Badge.vue.js";
|
|
@@ -198,25 +199,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
198
199
|
}
|
|
199
200
|
return getSchemaType(props.value);
|
|
200
201
|
});
|
|
201
|
-
const flattenedDefaultValue = computed(() => {
|
|
202
|
-
const value = props.value;
|
|
203
|
-
if (value?.default === null) {
|
|
204
|
-
return "null";
|
|
205
|
-
}
|
|
206
|
-
if (Array.isArray(value?.default) && value?.default.length === 1) {
|
|
207
|
-
return String(value?.default[0]);
|
|
208
|
-
}
|
|
209
|
-
if (typeof value?.default === "string") {
|
|
210
|
-
return JSON.stringify(value.default);
|
|
211
|
-
}
|
|
212
|
-
if (Array.isArray(value?.default)) {
|
|
213
|
-
return JSON.stringify(value?.default);
|
|
214
|
-
}
|
|
215
|
-
if (typeof value?.default === "object") {
|
|
216
|
-
return JSON.stringify(value?.default);
|
|
217
|
-
}
|
|
218
|
-
return value?.default;
|
|
219
|
-
});
|
|
220
202
|
return (_ctx, _cache) => {
|
|
221
203
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
222
204
|
_ctx.$slots.name ? (openBlock(), createElementBlock("div", {
|
|
@@ -278,18 +260,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
278
260
|
createTextVNode("enum", -1)
|
|
279
261
|
])]),
|
|
280
262
|
_: 1
|
|
281
|
-
})) : createCommentVNode("", true),
|
|
282
|
-
flattenedDefaultValue.value !== void 0 ? (openBlock(), createBlock(SchemaPropertyDetail, {
|
|
283
|
-
key: 2,
|
|
284
|
-
truncate: ""
|
|
285
|
-
}, {
|
|
286
|
-
prefix: withCtx(() => [..._cache[4] || (_cache[4] = [
|
|
287
|
-
createTextVNode("default:", -1)
|
|
288
|
-
])]),
|
|
289
|
-
default: withCtx(() => [
|
|
290
|
-
createTextVNode(toDisplayString(flattenedDefaultValue.value), 1)
|
|
291
|
-
]),
|
|
292
|
-
_: 1
|
|
293
263
|
})) : createCommentVNode("", true)
|
|
294
264
|
], 64)) : createCommentVNode("", true),
|
|
295
265
|
props.additional ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
@@ -301,7 +271,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
301
271
|
])) : createCommentVNode("", true),
|
|
302
272
|
props.value?.deprecated ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
303
273
|
createVNode(unref(Badge), null, {
|
|
304
|
-
default: withCtx(() => [..._cache[
|
|
274
|
+
default: withCtx(() => [..._cache[4] || (_cache[4] = [
|
|
305
275
|
createTextVNode("deprecated", -1)
|
|
306
276
|
])]),
|
|
307
277
|
_: 1
|
|
@@ -309,7 +279,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
309
279
|
])) : createCommentVNode("", true),
|
|
310
280
|
constValue.value !== void 0 ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
311
281
|
createVNode(SchemaPropertyDetail, { truncate: "" }, {
|
|
312
|
-
prefix: withCtx(() => [..._cache[
|
|
282
|
+
prefix: withCtx(() => [..._cache[5] || (_cache[5] = [
|
|
313
283
|
createTextVNode("const: ", -1)
|
|
314
284
|
])]),
|
|
315
285
|
default: withCtx(() => [
|
|
@@ -319,7 +289,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
319
289
|
})
|
|
320
290
|
])) : (openBlock(), createElementBlock(Fragment, { key: 6 }, [
|
|
321
291
|
props.value?.nullable === true ? (openBlock(), createBlock(SchemaPropertyDetail, { key: 0 }, {
|
|
322
|
-
default: withCtx(() => [..._cache[
|
|
292
|
+
default: withCtx(() => [..._cache[6] || (_cache[6] = [
|
|
323
293
|
createTextVNode(" nullable ", -1)
|
|
324
294
|
])]),
|
|
325
295
|
_: 1
|
|
@@ -327,6 +297,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
327
297
|
], 64)),
|
|
328
298
|
props.value?.writeOnly ? (openBlock(), createElementBlock("div", _hoisted_6, " write-only ")) : props.value?.readOnly ? (openBlock(), createElementBlock("div", _hoisted_7, " read-only ")) : createCommentVNode("", true),
|
|
329
299
|
props.required ? (openBlock(), createElementBlock("div", _hoisted_8, " required ")) : createCommentVNode("", true),
|
|
300
|
+
createVNode(SchemaPropertyDefault, {
|
|
301
|
+
value: props.value?.default
|
|
302
|
+
}, null, 8, ["value"]),
|
|
330
303
|
props.withExamples ? (openBlock(), createBlock(SchemaPropertyExamples, {
|
|
331
304
|
key: 10,
|
|
332
305
|
example: props.value?.example || props.value && unref(isArraySchema)(props.value) && unref(resolve).schema(props.value?.items)?.example,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-value.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/format-value.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,CA0C3D"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
function formatValue(value) {
|
|
2
|
+
if (Array.isArray(value)) {
|
|
3
|
+
return `[${value.map((item) => {
|
|
4
|
+
if (typeof item === "string") {
|
|
5
|
+
return `"${item.toString().trim()}"`;
|
|
6
|
+
}
|
|
7
|
+
if (typeof item === "object") {
|
|
8
|
+
return JSON.stringify(item);
|
|
9
|
+
}
|
|
10
|
+
if (item === void 0) {
|
|
11
|
+
return "undefined";
|
|
12
|
+
}
|
|
13
|
+
if (item === null) {
|
|
14
|
+
return "null";
|
|
15
|
+
}
|
|
16
|
+
return item;
|
|
17
|
+
}).join(", ")}]`;
|
|
18
|
+
}
|
|
19
|
+
if (value === null) {
|
|
20
|
+
return "null";
|
|
21
|
+
}
|
|
22
|
+
if (typeof value === "object") {
|
|
23
|
+
return JSON.stringify(value);
|
|
24
|
+
}
|
|
25
|
+
if (value === void 0) {
|
|
26
|
+
return "undefined";
|
|
27
|
+
}
|
|
28
|
+
if (typeof value === "string") {
|
|
29
|
+
return value.trim();
|
|
30
|
+
}
|
|
31
|
+
return value.toString().trim();
|
|
32
|
+
}
|
|
33
|
+
export {
|
|
34
|
+
formatValue
|
|
35
|
+
};
|
|
@@ -15,4 +15,4 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
15
15
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
16
|
declare const _default: typeof __VLS_export;
|
|
17
17
|
export default _default;
|
|
18
|
-
//# sourceMappingURL=
|
|
18
|
+
//# sourceMappingURL=DeveloperTools.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeveloperTools.vue.d.ts","sourceRoot":"","sources":["../../../src/features/developer-tools/DeveloperTools.vue"],"names":[],"mappings":"AA0DA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAC5E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAQpE,KAAK,WAAW,GAAG;IACjB,SAAS,CAAC,EAAE,cAAc,CAAA;IAC1B,aAAa,CAAC,EAAE,OAAO,CAAC,yBAAyB,CAAC,CAAA;CACnD,CAAC;AAuBF,KAAK,gBAAgB,GAAG;IACxB,WAAW,CAAC,EAAE,OAAO,CAAC,yBAAyB,CAAC,CAAC;CAChD,CAAC;AAKF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;AAsFxD,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
package/dist/features/{toolbar/ApiReferenceToolbar.vue.js → developer-tools/DeveloperTools.vue.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent, mergeModels, useModel, computed, createElementBlock, createCommentVNode, openBlock, createElementVNode, createVNode, Fragment } from "vue";
|
|
2
2
|
import { isLocalUrl } from "@scalar/helpers/url/is-local-url";
|
|
3
|
-
import _sfc_main$
|
|
4
|
-
import _sfc_main$
|
|
5
|
-
import _sfc_main$2 from "./
|
|
6
|
-
import _sfc_main$
|
|
3
|
+
import _sfc_main$1 from "./components/ApiReferenceToolbarTitle.vue.js";
|
|
4
|
+
import _sfc_main$4 from "./components/DeployApiReference.vue.js";
|
|
5
|
+
import _sfc_main$2 from "./components/ModifyConfiguration.vue.js";
|
|
6
|
+
import _sfc_main$3 from "./components/ShareApiReference.vue.js";
|
|
7
7
|
const _hoisted_1 = {
|
|
8
8
|
key: 0,
|
|
9
9
|
"aria-label": "Developer Tools",
|
|
@@ -12,7 +12,7 @@ const _hoisted_1 = {
|
|
|
12
12
|
const _hoisted_2 = { class: "-mx-2 flex max-w-(--refs-content-max-width) flex-1 items-center" };
|
|
13
13
|
const _hoisted_3 = { class: "flex flex-1 items-center" };
|
|
14
14
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
15
|
-
__name: "
|
|
15
|
+
__name: "DeveloperTools",
|
|
16
16
|
props: /* @__PURE__ */ mergeModels({
|
|
17
17
|
workspace: {},
|
|
18
18
|
configuration: {}
|
|
@@ -41,15 +41,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
41
41
|
createElementVNode("div", _hoisted_3, [
|
|
42
42
|
createVNode(_sfc_main$1)
|
|
43
43
|
]),
|
|
44
|
-
|
|
45
|
-
createVNode(_sfc_main$2, { workspace: __props.workspace }, null, 8, ["workspace"]),
|
|
46
|
-
createVNode(_sfc_main$3, { workspace: __props.workspace }, null, 8, ["workspace"])
|
|
47
|
-
], 64)) : createCommentVNode("", true),
|
|
48
|
-
createVNode(_sfc_main$4, {
|
|
44
|
+
createVNode(_sfc_main$2, {
|
|
49
45
|
overrides: overrides.value,
|
|
50
46
|
"onUpdate:overrides": _cache[0] || (_cache[0] = ($event) => overrides.value = $event),
|
|
51
47
|
configuration: __props.configuration
|
|
52
|
-
}, null, 8, ["overrides", "configuration"])
|
|
48
|
+
}, null, 8, ["overrides", "configuration"]),
|
|
49
|
+
__props.workspace ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
50
|
+
createVNode(_sfc_main$3, { workspace: __props.workspace }, null, 8, ["workspace"]),
|
|
51
|
+
createVNode(_sfc_main$4, { workspace: __props.workspace }, null, 8, ["workspace"])
|
|
52
|
+
], 64)) : createCommentVNode("", true)
|
|
53
53
|
])
|
|
54
54
|
])) : createCommentVNode("", true);
|
|
55
55
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApiReferenceToolbarBlurb.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/developer-tools/components/ApiReferenceToolbarBlurb.vue"],"names":[],"mappings":"AA8BA,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAG/C,QAAA,MAAM,UAAU,+QACd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarBlurb.vue.js
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createElementBlock, openBlock, renderSlot } from "vue";
|
|
2
|
-
import _export_sfc from "
|
|
2
|
+
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
3
|
const _sfc_main = {};
|
|
4
4
|
const _hoisted_1 = { class: "text-c-3 [&_code]:font-code [&_a:hover]:text-c-1 text-center leading-normal [&_a]:underline" };
|
|
5
5
|
function _sfc_render(_ctx, _cache) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApiReferenceToolbarConfigLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/developer-tools/components/ApiReferenceToolbarConfigLayout.vue"],"names":[],"mappings":"AAoDA,KAAK,gBAAgB,GAAG;IACxB,UAAU,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;CACjC,CAAC;AA2CF,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ApiReferenceConfiguration } from '@scalar/types/api-reference';
|
|
2
2
|
type LayoutOptions = {
|
|
3
3
|
showSidebar?: boolean;
|
|
4
|
+
defaultOpenFirstTag?: boolean;
|
|
4
5
|
defaultOpenAllTags?: boolean;
|
|
5
6
|
expandAllModelSections?: boolean;
|
|
6
7
|
expandAllResponses?: boolean;
|
|
@@ -9,6 +10,7 @@ type LayoutOptions = {
|
|
|
9
10
|
hideModels?: boolean;
|
|
10
11
|
hideSearch?: boolean;
|
|
11
12
|
hideTestRequestButton?: boolean;
|
|
13
|
+
showOperationId?: boolean;
|
|
12
14
|
};
|
|
13
15
|
type __VLS_Props = {
|
|
14
16
|
configuration?: Partial<ApiReferenceConfiguration>;
|
package/dist/features/developer-tools/components/ApiReferenceToolbarConfigLayoutOptions.vue.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApiReferenceToolbarConfigLayoutOptions.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/developer-tools/components/ApiReferenceToolbarConfigLayoutOptions.vue"],"names":[],"mappings":"AA2GA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAE5E,KAAK,aAAa,GAAG;IACnB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,sBAAsB,CAAC,EAAE,OAAO,CAAA;IAChC,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B,CAAA;AAED,KAAK,WAAW,GAAG;IACjB,aAAa,CAAC,EAAE,OAAO,CAAC,yBAAyB,CAAC,CAAA;CACnD,CAAC;AA8BF,KAAK,gBAAgB,GAAG;IACxB,UAAU,CAAC,EAAE,aAAa,CAAC;CAC1B,CAAC;AAKF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;AA6QxD,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -32,79 +32,97 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
32
32
|
modelValue: getValue("showSidebar", true),
|
|
33
33
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = (v) => setValue("showSidebar", !!v, true))
|
|
34
34
|
}, {
|
|
35
|
-
default: withCtx(() => [..._cache[
|
|
35
|
+
default: withCtx(() => [..._cache[11] || (_cache[11] = [
|
|
36
36
|
createTextVNode(" Show Sidebar ", -1)
|
|
37
37
|
])]),
|
|
38
38
|
_: 1
|
|
39
39
|
}, 8, ["modelValue"]),
|
|
40
|
+
createVNode(unref(ScalarToggleInput), {
|
|
41
|
+
modelValue: getValue("defaultOpenFirstTag", true),
|
|
42
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = (v) => setValue("defaultOpenFirstTag", !!v, true))
|
|
43
|
+
}, {
|
|
44
|
+
default: withCtx(() => [..._cache[12] || (_cache[12] = [
|
|
45
|
+
createTextVNode(" Default Open First Tag ", -1)
|
|
46
|
+
])]),
|
|
47
|
+
_: 1
|
|
48
|
+
}, 8, ["modelValue"]),
|
|
40
49
|
createVNode(unref(ScalarToggleInput), {
|
|
41
50
|
modelValue: getValue("defaultOpenAllTags"),
|
|
42
|
-
"onUpdate:modelValue": _cache[
|
|
51
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = (v) => setValue("defaultOpenAllTags", !!v))
|
|
43
52
|
}, {
|
|
44
|
-
default: withCtx(() => [..._cache[
|
|
53
|
+
default: withCtx(() => [..._cache[13] || (_cache[13] = [
|
|
45
54
|
createTextVNode(" Default Open All Tags ", -1)
|
|
46
55
|
])]),
|
|
47
56
|
_: 1
|
|
48
57
|
}, 8, ["modelValue"]),
|
|
49
58
|
createVNode(unref(ScalarToggleInput), {
|
|
50
59
|
modelValue: getValue("expandAllModelSections"),
|
|
51
|
-
"onUpdate:modelValue": _cache[
|
|
60
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = (v) => setValue("expandAllModelSections", !!v))
|
|
52
61
|
}, {
|
|
53
|
-
default: withCtx(() => [..._cache[
|
|
62
|
+
default: withCtx(() => [..._cache[14] || (_cache[14] = [
|
|
54
63
|
createTextVNode(" Expand All Model Sections ", -1)
|
|
55
64
|
])]),
|
|
56
65
|
_: 1
|
|
57
66
|
}, 8, ["modelValue"]),
|
|
58
67
|
createVNode(unref(ScalarToggleInput), {
|
|
59
68
|
modelValue: getValue("expandAllResponses"),
|
|
60
|
-
"onUpdate:modelValue": _cache[
|
|
69
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = (v) => setValue("expandAllResponses", !!v))
|
|
61
70
|
}, {
|
|
62
|
-
default: withCtx(() => [..._cache[
|
|
71
|
+
default: withCtx(() => [..._cache[15] || (_cache[15] = [
|
|
63
72
|
createTextVNode(" Expand All Responses ", -1)
|
|
64
73
|
])]),
|
|
65
74
|
_: 1
|
|
66
75
|
}, 8, ["modelValue"]),
|
|
67
76
|
createVNode(unref(ScalarToggleInput), {
|
|
68
77
|
modelValue: getValue("hideClientButton"),
|
|
69
|
-
"onUpdate:modelValue": _cache[
|
|
78
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = (v) => setValue("hideClientButton", !!v))
|
|
70
79
|
}, {
|
|
71
|
-
default: withCtx(() => [..._cache[
|
|
80
|
+
default: withCtx(() => [..._cache[16] || (_cache[16] = [
|
|
72
81
|
createTextVNode(" Hide Client Button ", -1)
|
|
73
82
|
])]),
|
|
74
83
|
_: 1
|
|
75
84
|
}, 8, ["modelValue"]),
|
|
76
85
|
createVNode(unref(ScalarToggleInput), {
|
|
77
86
|
modelValue: getValue("hideDarkModeToggle"),
|
|
78
|
-
"onUpdate:modelValue": _cache[
|
|
87
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = (v) => setValue("hideDarkModeToggle", !!v))
|
|
79
88
|
}, {
|
|
80
|
-
default: withCtx(() => [..._cache[
|
|
89
|
+
default: withCtx(() => [..._cache[17] || (_cache[17] = [
|
|
81
90
|
createTextVNode(" Hide Dark Mode Toggle ", -1)
|
|
82
91
|
])]),
|
|
83
92
|
_: 1
|
|
84
93
|
}, 8, ["modelValue"]),
|
|
85
94
|
createVNode(unref(ScalarToggleInput), {
|
|
86
95
|
modelValue: getValue("hideModels"),
|
|
87
|
-
"onUpdate:modelValue": _cache[
|
|
96
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = (v) => setValue("hideModels", !!v))
|
|
88
97
|
}, {
|
|
89
|
-
default: withCtx(() => [..._cache[
|
|
98
|
+
default: withCtx(() => [..._cache[18] || (_cache[18] = [
|
|
90
99
|
createTextVNode(" Hide Models ", -1)
|
|
91
100
|
])]),
|
|
92
101
|
_: 1
|
|
93
102
|
}, 8, ["modelValue"]),
|
|
94
103
|
createVNode(unref(ScalarToggleInput), {
|
|
95
104
|
modelValue: getValue("hideSearch"),
|
|
96
|
-
"onUpdate:modelValue": _cache[
|
|
105
|
+
"onUpdate:modelValue": _cache[8] || (_cache[8] = (v) => setValue("hideSearch", !!v))
|
|
97
106
|
}, {
|
|
98
|
-
default: withCtx(() => [..._cache[
|
|
107
|
+
default: withCtx(() => [..._cache[19] || (_cache[19] = [
|
|
99
108
|
createTextVNode(" Hide Search ", -1)
|
|
100
109
|
])]),
|
|
101
110
|
_: 1
|
|
102
111
|
}, 8, ["modelValue"]),
|
|
112
|
+
createVNode(unref(ScalarToggleInput), {
|
|
113
|
+
modelValue: getValue("showOperationId"),
|
|
114
|
+
"onUpdate:modelValue": _cache[9] || (_cache[9] = (v) => setValue("showOperationId", !!v))
|
|
115
|
+
}, {
|
|
116
|
+
default: withCtx(() => [..._cache[20] || (_cache[20] = [
|
|
117
|
+
createTextVNode(" Show Operation ID ", -1)
|
|
118
|
+
])]),
|
|
119
|
+
_: 1
|
|
120
|
+
}, 8, ["modelValue"]),
|
|
103
121
|
createVNode(unref(ScalarToggleInput), {
|
|
104
122
|
modelValue: getValue("hideTestRequestButton"),
|
|
105
|
-
"onUpdate:modelValue": _cache[
|
|
123
|
+
"onUpdate:modelValue": _cache[10] || (_cache[10] = (v) => setValue("hideTestRequestButton", !!v))
|
|
106
124
|
}, {
|
|
107
|
-
default: withCtx(() => [..._cache[
|
|
125
|
+
default: withCtx(() => [..._cache[21] || (_cache[21] = [
|
|
108
126
|
createTextVNode(" Hide Test Request Button ", -1)
|
|
109
127
|
])]),
|
|
110
128
|
_: 1
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApiReferenceToolbarConfigTheme.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/developer-tools/components/ApiReferenceToolbarConfigTheme.vue"],"names":[],"mappings":"AA4EA,OAAO,EAAkC,KAAK,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAgC7E,KAAK,gBAAgB,GAAG;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AA6IF,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApiReferenceToolbarPopover.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/developer-tools/components/ApiReferenceToolbarPopover.vue"],"names":[],"mappings":"AA0LA,QAAA,IAAI,OAAO;;CAAU,EAAE,QAAQ,IAAW,EAAE,QAAQ;;;CAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AAC5G,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC3C;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC3C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC1C;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAG9C,QAAA,MAAM,UAAU,+QACd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
package/dist/features/developer-tools/components/ApiReferenceToolbarRegisterButton.vue.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApiReferenceToolbarRegisterButton.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/developer-tools/components/ApiReferenceToolbarRegisterButton.vue"],"names":[],"mappings":"AA+EA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAMpE,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,cAAc,CAAA;IACzB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;CAChB,CAAC;AAyDF,KAAK,gBAAgB,GAAG;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAKF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;AAiDxD,QAAA,IAAI,QAAQ,IAAW,CAAE;AACzB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAKhD,QAAA,MAAM,UAAU;;;;kFAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent, mergeModels, useModel, createBlock, openBlock, unref, withCtx, renderSlot, createTextVNode, nextTick } from "vue";
|
|
2
2
|
import { useLoadingState, ScalarButton } from "@scalar/components";
|
|
3
3
|
import { useToasts } from "@scalar/use-toasts";
|
|
4
|
-
import { DASHBOARD_REGISTER_URL } from "
|
|
5
|
-
import { uploadTempDocument } from "
|
|
4
|
+
import { DASHBOARD_REGISTER_URL } from "../../../consts/urls.js";
|
|
5
|
+
import { uploadTempDocument } from "../../../helpers/upload-temp-document.js";
|
|
6
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
7
|
__name: "ApiReferenceToolbarRegisterButton",
|
|
8
8
|
props: /* @__PURE__ */ mergeModels({
|
package/dist/features/developer-tools/components/ApiReferenceToolbarShareRegister.vue.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApiReferenceToolbarShareRegister.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/developer-tools/components/ApiReferenceToolbarShareRegister.vue"],"names":[],"mappings":"AA2EA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAKpE,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,cAAc,CAAA;CAC1B,CAAC;AAkGF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarShareRegister.vue.js
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent, createElementBlock, openBlock, Fragment, createElementVNode, createVNode, renderList, createBlock, createTextVNode, resolveDynamicComponent, toDisplayString, withCtx } from "vue";
|
|
2
|
-
import { ScalarIconGlobeSimple, ScalarIconGitBranch, ScalarIconFileMd,
|
|
2
|
+
import { ScalarIconLockSimple, ScalarIconGlobeSimple, ScalarIconBookOpen, ScalarIconCloud, ScalarIconGitBranch, ScalarIconFileMd, ScalarIconWarningOctagon, ScalarIconBracketsCurly } from "@scalar/icons";
|
|
3
3
|
import ApiReferenceToolbarBlurb from "./ApiReferenceToolbarBlurb.vue.js";
|
|
4
4
|
import _sfc_main$1 from "./ApiReferenceToolbarRegisterButton.vue.js";
|
|
5
|
-
const _hoisted_1 = { class: "text-c-2 grid grid-cols-2 gap-2.5 font-medium" };
|
|
5
|
+
const _hoisted_1 = { class: "text-c-2 mb-2 grid grid-cols-2 gap-2.5 font-medium" };
|
|
6
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
7
|
__name: "ApiReferenceToolbarShareRegister",
|
|
8
8
|
props: {
|
|
@@ -10,12 +10,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
10
10
|
},
|
|
11
11
|
setup(__props) {
|
|
12
12
|
const FEATURES = [
|
|
13
|
+
{ icon: ScalarIconLockSimple, label: "Password Protection" },
|
|
13
14
|
{ icon: ScalarIconGlobeSimple, label: "Custom Domains" },
|
|
14
|
-
{ icon:
|
|
15
|
+
{ icon: ScalarIconBookOpen, label: "Free-form content" },
|
|
16
|
+
{ icon: ScalarIconCloud, label: "CDN Infrastructure" },
|
|
17
|
+
{ icon: ScalarIconGitBranch, label: "Pull from GitHub" },
|
|
15
18
|
{ icon: ScalarIconFileMd, label: "Markdown/MDX" },
|
|
16
|
-
{ icon: ScalarIconLockSimple, label: "Password Protection" },
|
|
17
19
|
{ icon: ScalarIconWarningOctagon, label: "Spectral Linting" },
|
|
18
|
-
{ icon: ScalarIconBracketsCurly, label: "JSON Schema
|
|
20
|
+
{ icon: ScalarIconBracketsCurly, label: "JSON Schema Hosting" }
|
|
19
21
|
];
|
|
20
22
|
return (_ctx, _cache) => {
|
|
21
23
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
@@ -41,11 +43,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
41
43
|
}, 8, ["workspace"]),
|
|
42
44
|
createVNode(ApiReferenceToolbarBlurb, null, {
|
|
43
45
|
default: withCtx(() => [..._cache[1] || (_cache[1] = [
|
|
44
|
-
createTextVNode("
|
|
46
|
+
createTextVNode(" Deploy your documentation for free. ", -1),
|
|
47
|
+
createElementVNode("br", null, null, -1),
|
|
48
|
+
createTextVNode(" Additional features might require ", -1),
|
|
45
49
|
createElementVNode("a", {
|
|
46
|
-
href: "https://scalar.com/",
|
|
50
|
+
href: "https://scalar.com/products/docs/getting-started",
|
|
47
51
|
target: "_blank"
|
|
48
|
-
}, "
|
|
52
|
+
}, "Scalar Pro", -1),
|
|
49
53
|
createTextVNode(". ", -1)
|
|
50
54
|
])]),
|
|
51
55
|
_: 1
|
package/dist/features/developer-tools/components/ApiReferenceToolbarShareTemporary.vue.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApiReferenceToolbarShareTemporary.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/developer-tools/components/ApiReferenceToolbarShareTemporary.vue"],"names":[],"mappings":"AAiFA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAOpE,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,cAAc,CAAA;CAC1B,CAAC;AAqCF,KAAK,gBAAgB,GAAG;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAKF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;AAqFxD,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|