@scalar/api-reference 1.36.0 → 1.36.2

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.
Files changed (123) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/dist/browser/standalone.js +15482 -15086
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  5. package/dist/components/ApiReferenceLayout.vue.js +2 -2
  6. package/dist/components/Content/Models/ClassicLayout.vue.d.ts +2 -0
  7. package/dist/components/Content/Models/ClassicLayout.vue.d.ts.map +1 -1
  8. package/dist/components/Content/Models/ClassicLayout.vue.js +2 -2
  9. package/dist/components/Content/Models/ClassicLayout.vue2.js +52 -41
  10. package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
  11. package/dist/components/Content/Models/Models.vue.js +9 -8
  12. package/dist/components/Content/Models/ModernLayout.vue.d.ts.map +1 -1
  13. package/dist/components/Content/Models/ModernLayout.vue.js +2 -2
  14. package/dist/components/Content/Models/ModernLayout.vue2.js +46 -42
  15. package/dist/components/Content/Schema/Schema.vue.d.ts +3 -4
  16. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  17. package/dist/components/Content/Schema/Schema.vue.js +1 -1
  18. package/dist/components/Content/Schema/Schema.vue2.js +71 -74
  19. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts +4 -5
  20. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
  21. package/dist/components/Content/Schema/SchemaComposition.vue.js +46 -49
  22. package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts +2 -7
  23. package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts.map +1 -1
  24. package/dist/components/Content/Schema/SchemaObjectProperties.vue.js +29 -40
  25. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +3 -5
  26. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  27. package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
  28. package/dist/components/Content/Schema/SchemaProperty.vue2.js +72 -76
  29. package/dist/components/Content/Schema/types.d.ts +17 -0
  30. package/dist/components/Content/Schema/types.d.ts.map +1 -0
  31. package/dist/components/OperationsList/OperationsList.vue.js +2 -2
  32. package/dist/components/Section/Section.vue.js +1 -1
  33. package/dist/components/Section/SectionContainerAccordion.vue.js +2 -2
  34. package/dist/consts/urls.d.ts +17 -0
  35. package/dist/consts/urls.d.ts.map +1 -0
  36. package/dist/consts/urls.js +7 -0
  37. package/dist/features/Operation/components/Header.vue.d.ts +2 -0
  38. package/dist/features/Operation/components/Header.vue.d.ts.map +1 -1
  39. package/dist/features/Operation/components/Header.vue.js +15 -10
  40. package/dist/features/Operation/components/Headers.vue.d.ts +2 -0
  41. package/dist/features/Operation/components/Headers.vue.d.ts.map +1 -1
  42. package/dist/features/Operation/components/Headers.vue.js +2 -2
  43. package/dist/features/Operation/components/Headers.vue2.js +26 -24
  44. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
  45. package/dist/features/Operation/components/ParameterListItem.vue.js +2 -2
  46. package/dist/features/Operation/components/ParameterListItem.vue2.js +55 -48
  47. package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
  48. package/dist/features/Operation/components/RequestBody.vue.js +1 -1
  49. package/dist/features/Operation/components/RequestBody.vue2.js +74 -61
  50. package/dist/features/Operation/components/callbacks/Callback.vue.js +2 -2
  51. package/dist/features/Operation/layouts/ClassicLayout.vue.js +3 -3
  52. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  53. package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
  54. package/dist/features/api-client-modal/useApiClient.d.ts +20 -20
  55. package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
  56. package/dist/features/multiple-documents/useMultipleDocuments.d.ts +4 -2
  57. package/dist/features/multiple-documents/useMultipleDocuments.d.ts.map +1 -1
  58. package/dist/features/multiple-documents/useMultipleDocuments.js +49 -43
  59. package/dist/features/toolbar/ApiReferenceToolbar.vue.d.ts +16 -0
  60. package/dist/features/toolbar/ApiReferenceToolbar.vue.d.ts.map +1 -0
  61. package/dist/features/toolbar/ApiReferenceToolbar.vue.js +43 -0
  62. package/dist/features/toolbar/ApiReferenceToolbar.vue2.js +4 -0
  63. package/dist/features/toolbar/ApiReferenceToolbarBlurb.vue.d.ts +13 -0
  64. package/dist/features/toolbar/ApiReferenceToolbarBlurb.vue.d.ts.map +1 -0
  65. package/dist/features/toolbar/ApiReferenceToolbarBlurb.vue.js +12 -0
  66. package/dist/features/toolbar/ApiReferenceToolbarConfig.vue.d.ts +14 -0
  67. package/dist/features/toolbar/ApiReferenceToolbarConfig.vue.d.ts.map +1 -0
  68. package/dist/features/toolbar/ApiReferenceToolbarConfig.vue.js +95 -0
  69. package/dist/features/toolbar/ApiReferenceToolbarConfig.vue2.js +4 -0
  70. package/dist/features/toolbar/ApiReferenceToolbarConfigLayout.vue.d.ts +10 -0
  71. package/dist/features/toolbar/ApiReferenceToolbarConfigLayout.vue.d.ts.map +1 -0
  72. package/dist/features/toolbar/ApiReferenceToolbarConfigLayout.vue.js +27 -0
  73. package/dist/features/toolbar/ApiReferenceToolbarConfigLayout.vue2.js +4 -0
  74. package/dist/features/toolbar/ApiReferenceToolbarConfigLayoutOptions.vue.d.ts +25 -0
  75. package/dist/features/toolbar/ApiReferenceToolbarConfigLayoutOptions.vue.d.ts.map +1 -0
  76. package/dist/features/toolbar/ApiReferenceToolbarConfigLayoutOptions.vue.js +123 -0
  77. package/dist/features/toolbar/ApiReferenceToolbarConfigLayoutOptions.vue2.js +4 -0
  78. package/dist/features/toolbar/ApiReferenceToolbarConfigTheme.vue.d.ts +11 -0
  79. package/dist/features/toolbar/ApiReferenceToolbarConfigTheme.vue.d.ts.map +1 -0
  80. package/dist/features/toolbar/ApiReferenceToolbarConfigTheme.vue.js +41 -0
  81. package/dist/features/toolbar/ApiReferenceToolbarConfigTheme.vue2.js +4 -0
  82. package/dist/features/toolbar/ApiReferenceToolbarPopover.vue.d.ts +26 -0
  83. package/dist/features/toolbar/ApiReferenceToolbarPopover.vue.d.ts.map +1 -0
  84. package/dist/features/toolbar/ApiReferenceToolbarPopover.vue.js +46 -0
  85. package/dist/features/toolbar/ApiReferenceToolbarPopover.vue2.js +4 -0
  86. package/dist/features/toolbar/ApiReferenceToolbarRegisterButton.vue.d.ts +25 -0
  87. package/dist/features/toolbar/ApiReferenceToolbarRegisterButton.vue.d.ts.map +1 -0
  88. package/dist/features/toolbar/ApiReferenceToolbarRegisterButton.vue.js +58 -0
  89. package/dist/features/toolbar/ApiReferenceToolbarRegisterButton.vue2.js +4 -0
  90. package/dist/features/toolbar/ApiReferenceToolbarSdks.vue.d.ts +7 -0
  91. package/dist/features/toolbar/ApiReferenceToolbarSdks.vue.d.ts.map +1 -0
  92. package/dist/features/toolbar/ApiReferenceToolbarSdks.vue.js +84 -0
  93. package/dist/features/toolbar/ApiReferenceToolbarSdks.vue2.js +4 -0
  94. package/dist/features/toolbar/ApiReferenceToolbarShare.vue.d.ts +7 -0
  95. package/dist/features/toolbar/ApiReferenceToolbarShare.vue.d.ts.map +1 -0
  96. package/dist/features/toolbar/ApiReferenceToolbarShare.vue.js +42 -0
  97. package/dist/features/toolbar/ApiReferenceToolbarShare.vue2.js +4 -0
  98. package/dist/features/toolbar/ApiReferenceToolbarShareRegister.vue.d.ts +7 -0
  99. package/dist/features/toolbar/ApiReferenceToolbarShareRegister.vue.d.ts.map +1 -0
  100. package/dist/features/toolbar/ApiReferenceToolbarShareRegister.vue.js +50 -0
  101. package/dist/features/toolbar/ApiReferenceToolbarShareRegister.vue2.js +4 -0
  102. package/dist/features/toolbar/ApiReferenceToolbarShareTemporary.vue.d.ts +14 -0
  103. package/dist/features/toolbar/ApiReferenceToolbarShareTemporary.vue.d.ts.map +1 -0
  104. package/dist/features/toolbar/ApiReferenceToolbarShareTemporary.vue.js +83 -0
  105. package/dist/features/toolbar/ApiReferenceToolbarShareTemporary.vue2.js +4 -0
  106. package/dist/features/toolbar/ApiReferenceToolbarTitle.vue.d.ts +3 -0
  107. package/dist/features/toolbar/ApiReferenceToolbarTitle.vue.d.ts.map +1 -0
  108. package/dist/features/toolbar/ApiReferenceToolbarTitle.vue.js +51 -0
  109. package/dist/features/toolbar/ApiReferenceToolbarTitle.vue2.js +4 -0
  110. package/dist/features/toolbar/uploadTempDocument.d.ts +3 -0
  111. package/dist/features/toolbar/uploadTempDocument.d.ts.map +1 -0
  112. package/dist/features/toolbar/uploadTempDocument.js +21 -0
  113. package/dist/helpers/convert-security-scheme.d.ts +1 -1
  114. package/dist/index.js +1 -1
  115. package/dist/style.css +1 -1
  116. package/dist/v2/ApiReferenceWorkspace.vue.d.ts +6 -6
  117. package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
  118. package/dist/v2/ApiReferenceWorkspace.vue.js +90 -82
  119. package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue.js +2 -2
  120. package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.d.ts.map +1 -1
  121. package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.js +5 -6
  122. package/dist/v2/helpers/map-configuration.d.ts.map +1 -1
  123. package/package.json +12 -12
@@ -0,0 +1,27 @@
1
+ import { defineComponent as r, useModel as m, computed as c, createBlock as i, openBlock as p, unref as f } from "vue";
2
+ import { ScalarCheckboxRadioGroup as v } from "@scalar/components";
3
+ const b = /* @__PURE__ */ r({
4
+ __name: "ApiReferenceToolbarConfigLayout",
5
+ props: {
6
+ modelValue: {},
7
+ modelModifiers: {}
8
+ },
9
+ emits: ["update:modelValue"],
10
+ setup(u) {
11
+ const e = { label: "Modern", value: "modern" }, o = { label: "Classic", value: "classic" }, s = [
12
+ e,
13
+ o
14
+ ], l = m(u, "modelValue"), a = c({
15
+ get: () => l.value === "modern" ? e : o,
16
+ set: (t) => l.value = t.value
17
+ });
18
+ return (t, n) => (p(), i(f(v), {
19
+ modelValue: a.value,
20
+ "onUpdate:modelValue": n[0] || (n[0] = (d) => a.value = d),
21
+ options: s
22
+ }, null, 8, ["modelValue"]));
23
+ }
24
+ });
25
+ export {
26
+ b as default
27
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./ApiReferenceToolbarConfigLayout.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,25 @@
1
+ import type { ApiReferenceConfiguration } from '@scalar/types';
2
+ type LayoutOptions = {
3
+ showSidebar?: boolean;
4
+ defaultOpenAllTags?: boolean;
5
+ expandAllModelSections?: boolean;
6
+ expandAllResponses?: boolean;
7
+ hideClientButton?: boolean;
8
+ hideDarkModeToggle?: boolean;
9
+ hideModels?: boolean;
10
+ hideSearch?: boolean;
11
+ hideTestRequestButton?: boolean;
12
+ };
13
+ type __VLS_Props = {
14
+ configuration?: Partial<ApiReferenceConfiguration>;
15
+ };
16
+ type __VLS_PublicProps = __VLS_Props & {
17
+ modelValue?: LayoutOptions;
18
+ };
19
+ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
20
+ "update:modelValue": (value: LayoutOptions) => any;
21
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
22
+ "onUpdate:modelValue"?: ((value: LayoutOptions) => any) | undefined;
23
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
+ export default _default;
25
+ //# sourceMappingURL=ApiReferenceToolbarConfigLayoutOptions.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApiReferenceToolbarConfigLayoutOptions.vue.d.ts","sourceRoot":"","sources":["../../../src/features/toolbar/ApiReferenceToolbarConfigLayoutOptions.vue"],"names":[],"mappings":"AA8FA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAE9D,KAAK,aAAa,GAAG;IACnB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,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;CAChC,CAAA;AAED,KAAK,WAAW,GAAG;IACjB,aAAa,CAAC,EAAE,OAAO,CAAC,yBAAyB,CAAC,CAAA;CACnD,CAAC;AA8BF,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,UAAU,CAAC,EAAE,aAAa,CAAC;CAC1B,CAAC;;;;;;AA8MF,wBAOG"}
@@ -0,0 +1,123 @@
1
+ import { defineComponent as p, mergeModels as f, useModel as g, createBlock as M, openBlock as S, unref as o, withCtx as d, createVNode as n, createTextVNode as a } from "vue";
2
+ import { ScalarFormInputGroup as T, ScalarToggleInput as i } from "@scalar/components";
3
+ const U = /* @__PURE__ */ p({
4
+ __name: "ApiReferenceToolbarConfigLayoutOptions",
5
+ props: /* @__PURE__ */ f({
6
+ configuration: {}
7
+ }, {
8
+ modelValue: {
9
+ default: {}
10
+ },
11
+ modelModifiers: {}
12
+ }),
13
+ emits: ["update:modelValue"],
14
+ setup(r) {
15
+ const s = g(r, "modelValue");
16
+ function t(m, e = !1) {
17
+ return s.value[m] ?? r.configuration?.[m] ?? e;
18
+ }
19
+ function u(m, e, l = !1) {
20
+ e !== l ? s.value = { ...s.value, [m]: e } : s.value = Object.fromEntries(
21
+ Object.entries(s.value).filter(([V]) => m !== V)
22
+ );
23
+ }
24
+ return (m, e) => (S(), M(o(T), null, {
25
+ default: d(() => [
26
+ n(o(i), {
27
+ modelValue: t("showSidebar", !0),
28
+ "onUpdate:modelValue": e[0] || (e[0] = (l) => u("showSidebar", !!l, !0))
29
+ }, {
30
+ default: d(() => e[9] || (e[9] = [
31
+ a(" Show Sidebar ")
32
+ ])),
33
+ _: 1,
34
+ __: [9]
35
+ }, 8, ["modelValue"]),
36
+ n(o(i), {
37
+ modelValue: t("defaultOpenAllTags"),
38
+ "onUpdate:modelValue": e[1] || (e[1] = (l) => u("defaultOpenAllTags", !!l))
39
+ }, {
40
+ default: d(() => e[10] || (e[10] = [
41
+ a(" Default Open All Tags ")
42
+ ])),
43
+ _: 1,
44
+ __: [10]
45
+ }, 8, ["modelValue"]),
46
+ n(o(i), {
47
+ modelValue: t("expandAllModelSections"),
48
+ "onUpdate:modelValue": e[2] || (e[2] = (l) => u("expandAllModelSections", !!l))
49
+ }, {
50
+ default: d(() => e[11] || (e[11] = [
51
+ a(" Expand All Model Sections ")
52
+ ])),
53
+ _: 1,
54
+ __: [11]
55
+ }, 8, ["modelValue"]),
56
+ n(o(i), {
57
+ modelValue: t("expandAllResponses"),
58
+ "onUpdate:modelValue": e[3] || (e[3] = (l) => u("expandAllResponses", !!l))
59
+ }, {
60
+ default: d(() => e[12] || (e[12] = [
61
+ a(" Expand All Responses ")
62
+ ])),
63
+ _: 1,
64
+ __: [12]
65
+ }, 8, ["modelValue"]),
66
+ n(o(i), {
67
+ modelValue: t("hideClientButton"),
68
+ "onUpdate:modelValue": e[4] || (e[4] = (l) => u("hideClientButton", !!l))
69
+ }, {
70
+ default: d(() => e[13] || (e[13] = [
71
+ a(" Hide Client Button ")
72
+ ])),
73
+ _: 1,
74
+ __: [13]
75
+ }, 8, ["modelValue"]),
76
+ n(o(i), {
77
+ modelValue: t("hideDarkModeToggle"),
78
+ "onUpdate:modelValue": e[5] || (e[5] = (l) => u("hideDarkModeToggle", !!l))
79
+ }, {
80
+ default: d(() => e[14] || (e[14] = [
81
+ a(" Hide Dark Mode Toggle ")
82
+ ])),
83
+ _: 1,
84
+ __: [14]
85
+ }, 8, ["modelValue"]),
86
+ n(o(i), {
87
+ modelValue: t("hideModels"),
88
+ "onUpdate:modelValue": e[6] || (e[6] = (l) => u("hideModels", !!l))
89
+ }, {
90
+ default: d(() => e[15] || (e[15] = [
91
+ a(" Hide Models ")
92
+ ])),
93
+ _: 1,
94
+ __: [15]
95
+ }, 8, ["modelValue"]),
96
+ n(o(i), {
97
+ modelValue: t("hideSearch"),
98
+ "onUpdate:modelValue": e[7] || (e[7] = (l) => u("hideSearch", !!l))
99
+ }, {
100
+ default: d(() => e[16] || (e[16] = [
101
+ a(" Hide Search ")
102
+ ])),
103
+ _: 1,
104
+ __: [16]
105
+ }, 8, ["modelValue"]),
106
+ n(o(i), {
107
+ modelValue: t("hideTestRequestButton"),
108
+ "onUpdate:modelValue": e[8] || (e[8] = (l) => u("hideTestRequestButton", !!l))
109
+ }, {
110
+ default: d(() => e[17] || (e[17] = [
111
+ a(" Hide Test Request Button ")
112
+ ])),
113
+ _: 1,
114
+ __: [17]
115
+ }, 8, ["modelValue"])
116
+ ]),
117
+ _: 1
118
+ }));
119
+ }
120
+ });
121
+ export {
122
+ U as default
123
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./ApiReferenceToolbarConfigLayoutOptions.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,11 @@
1
+ import { type ThemeId } from '@scalar/themes';
2
+ type __VLS_PublicProps = {
3
+ modelValue?: ThemeId;
4
+ };
5
+ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
+ "update:modelValue": (value: "alternate" | "default" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "laserwave" | "none" | undefined) => any;
7
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
8
+ "onUpdate:modelValue"?: ((value: "alternate" | "default" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "laserwave" | "none" | undefined) => any) | undefined;
9
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
+ export default _default;
11
+ //# sourceMappingURL=ApiReferenceToolbarConfigTheme.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApiReferenceToolbarConfigTheme.vue.d.ts","sourceRoot":"","sources":["../../../src/features/toolbar/ApiReferenceToolbarConfigTheme.vue"],"names":[],"mappings":"AAqCA,OAAO,EAAyB,KAAK,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAyBpE,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;;;;;;AAkEF,wBAOG"}
@@ -0,0 +1,41 @@
1
+ import { defineComponent as s, useModel as i, computed as m, createBlock as p, openBlock as c, unref as n, withCtx as r, createVNode as f, createTextVNode as v, toDisplayString as V } from "vue";
2
+ import { ScalarCombobox as b, ScalarListboxInput as x } from "@scalar/components";
3
+ import { themeIds as _, themeLabels as h } from "@scalar/themes";
4
+ const T = /* @__PURE__ */ s({
5
+ __name: "ApiReferenceToolbarConfigTheme",
6
+ props: {
7
+ modelValue: {},
8
+ modelModifiers: {}
9
+ },
10
+ emits: ["update:modelValue"],
11
+ setup(d) {
12
+ const u = i(d, "modelValue"), t = m(
13
+ () => _.map((e) => ({ id: e, label: h[e] }))
14
+ ), l = m({
15
+ get: () => {
16
+ const e = u.value ?? "default";
17
+ return t.value.find((o) => o.id === e) ?? t.value[0];
18
+ },
19
+ set: (e) => u.value = e.id
20
+ });
21
+ return (e, o) => (c(), p(n(b), {
22
+ modelValue: l.value,
23
+ "onUpdate:modelValue": o[0] || (o[0] = (a) => l.value = a),
24
+ resize: "",
25
+ options: t.value
26
+ }, {
27
+ default: r(({ open: a }) => [
28
+ f(n(x), { open: a }, {
29
+ default: r(() => [
30
+ v(V(l.value.label), 1)
31
+ ]),
32
+ _: 2
33
+ }, 1032, ["open"])
34
+ ]),
35
+ _: 1
36
+ }, 8, ["modelValue", "options"]));
37
+ }
38
+ });
39
+ export {
40
+ T as default
41
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./ApiReferenceToolbarConfigTheme.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,26 @@
1
+ declare var __VLS_6: {
2
+ open: boolean;
3
+ }, __VLS_8: {}, __VLS_14: {
4
+ open: boolean;
5
+ close: () => void;
6
+ }, __VLS_20: {}, __VLS_22: {};
7
+ type __VLS_Slots = {} & {
8
+ button?: (props: typeof __VLS_6) => any;
9
+ } & {
10
+ label?: (props: typeof __VLS_8) => any;
11
+ } & {
12
+ default?: (props: typeof __VLS_14) => any;
13
+ } & {
14
+ info?: (props: typeof __VLS_20) => any;
15
+ } & {
16
+ label?: (props: typeof __VLS_22) => any;
17
+ };
18
+ declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
19
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
20
+ export default _default;
21
+ type __VLS_WithSlots<T, S> = T & {
22
+ new (): {
23
+ $slots: S;
24
+ };
25
+ };
26
+ //# sourceMappingURL=ApiReferenceToolbarPopover.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApiReferenceToolbarPopover.vue.d.ts","sourceRoot":"","sources":["../../../src/features/toolbar/ApiReferenceToolbarPopover.vue"],"names":[],"mappings":"AAyKA,QAAA,IAAI,OAAO;;CAAU,EAAE,OAAO,IAAU,EAAE,QAAQ;;;CAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AAC1G,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,OAAO,KAAK,GAAG,CAAA;CAAE,GAC1C;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;AAsB9C,QAAA,MAAM,eAAe,+QAKnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAE1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,46 @@
1
+ import { defineComponent as c, createBlock as p, openBlock as d, unref as l, withCtx as a, createVNode as n, createElementVNode as s, renderSlot as o, normalizeProps as m, guardReactiveProps as f, createTextVNode as i, normalizeClass as u } from "vue";
2
+ import { ScalarPopover as b, ScalarFloatingBackdrop as g } from "@scalar/components";
3
+ import { ScalarIconInfo as x, ScalarIconCaretDown as h } from "@scalar/icons";
4
+ const v = { class: "text-c-2 hover:text-c-1 hover:bg-b-2 flex items-center gap-1 rounded px-2 py-2.25 text-base leading-none" }, _ = { class: "custom-scroll bg-b-1 flex flex-col gap-7 rounded-lg p-7 pb-6" }, k = { class: "text-c-2 flex items-center justify-center gap-1 p-2 text-sm" }, P = /* @__PURE__ */ c({
5
+ __name: "ApiReferenceToolbarPopover",
6
+ setup(w) {
7
+ return (e, t) => (d(), p(l(b), {
8
+ class: "max-h-[inherit] max-w-[inherit] p-0 text-base",
9
+ placement: "bottom-end",
10
+ teleport: ""
11
+ }, {
12
+ default: a(({ open: r }) => [
13
+ o(e.$slots, "button", { open: r }, () => [
14
+ s("button", v, [
15
+ o(e.$slots, "label"),
16
+ n(l(h), {
17
+ class: u(["transition-transform", { "rotate-180": r }])
18
+ }, null, 8, ["class"])
19
+ ])
20
+ ])
21
+ ]),
22
+ popover: a((r) => [
23
+ s("div", _, [
24
+ o(e.$slots, "default", m(f(r)))
25
+ ]),
26
+ s("div", k, [
27
+ n(l(x), { class: "size-3.5 shrink-0" }),
28
+ s("div", null, [
29
+ o(e.$slots, "info", {}, () => [
30
+ t[0] || (t[0] = i(' "')),
31
+ o(e.$slots, "label"),
32
+ t[1] || (t[1] = i('" will only appear when running on localhost '))
33
+ ])
34
+ ])
35
+ ])
36
+ ]),
37
+ backdrop: a(() => [
38
+ n(l(g), { class: "bg-b-2 rounded-lg" })
39
+ ]),
40
+ _: 3
41
+ }));
42
+ }
43
+ });
44
+ export {
45
+ P as default
46
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./ApiReferenceToolbarPopover.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,25 @@
1
+ import type { WorkspaceStore } from '@scalar/workspace-store/client';
2
+ type __VLS_Props = {
3
+ workspace: WorkspaceStore;
4
+ sdks?: string[];
5
+ };
6
+ type __VLS_PublicProps = __VLS_Props & {
7
+ 'url'?: string;
8
+ };
9
+ declare var __VLS_10: {};
10
+ type __VLS_Slots = {} & {
11
+ default?: (props: typeof __VLS_10) => any;
12
+ };
13
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
+ "update:url": (value: string | undefined) => any;
15
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
16
+ "onUpdate:url"?: ((value: string | undefined) => any) | undefined;
17
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
19
+ export default _default;
20
+ type __VLS_WithSlots<T, S> = T & {
21
+ new (): {
22
+ $slots: S;
23
+ };
24
+ };
25
+ //# sourceMappingURL=ApiReferenceToolbarRegisterButton.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApiReferenceToolbarRegisterButton.vue.d.ts","sourceRoot":"","sources":["../../../src/features/toolbar/ApiReferenceToolbarRegisterButton.vue"],"names":[],"mappings":"AA8EA,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;AA2DF,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAoCF,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;AAuBhD,QAAA,MAAM,eAAe;;;;kFAOnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,58 @@
1
+ import { defineComponent as l, mergeModels as d, useModel as m, createBlock as f, openBlock as p, unref as c, withCtx as g, renderSlot as k, createTextVNode as w, nextTick as v } from "vue";
2
+ import { useLoadingState as R, ScalarButton as L } from "@scalar/components";
3
+ import { useToasts as x } from "@scalar/use-toasts";
4
+ import { DASHBOARD_REGISTER_URL as S } from "../../consts/urls.js";
5
+ import { uploadTempDocument as T } from "./uploadTempDocument.js";
6
+ const U = /* @__PURE__ */ l({
7
+ __name: "ApiReferenceToolbarRegisterButton",
8
+ props: /* @__PURE__ */ d({
9
+ workspace: {},
10
+ sdks: { default: () => [] }
11
+ }, {
12
+ url: {},
13
+ urlModifiers: {}
14
+ }),
15
+ emits: ["update:url"],
16
+ setup(o) {
17
+ const a = m(o, "url"), { toast: s } = x(), t = R();
18
+ function i(r) {
19
+ const e = new URL(S);
20
+ e.searchParams.set("url", r), o.sdks.forEach((n) => e.searchParams.append("sdk", n)), window.open(e.toString(), "_blank");
21
+ }
22
+ async function u() {
23
+ if (t.isLoading || !o.workspace)
24
+ return;
25
+ if (a.value) {
26
+ i(a.value);
27
+ return;
28
+ }
29
+ t.startLoading();
30
+ const r = o.workspace.exportActiveDocument("json");
31
+ if (!r) {
32
+ s("Unable to export active document", "error"), t.invalidate();
33
+ return;
34
+ }
35
+ try {
36
+ a.value = await T(r), await t.validate(600), i(a.value), await v(), t.clear();
37
+ } catch (e) {
38
+ const n = e instanceof Error ? e.message : "An unknown error occurred";
39
+ s(n, "error"), t.invalidate();
40
+ }
41
+ }
42
+ return (r, e) => (p(), f(c(L), {
43
+ class: "h-auto p-2.5",
44
+ loading: c(t),
45
+ onClick: u
46
+ }, {
47
+ default: g(() => [
48
+ k(r.$slots, "default", {}, () => [
49
+ e[0] || (e[0] = w("Generate"))
50
+ ])
51
+ ]),
52
+ _: 3
53
+ }, 8, ["loading"]));
54
+ }
55
+ });
56
+ export {
57
+ U as default
58
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./ApiReferenceToolbarRegisterButton.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,7 @@
1
+ import type { WorkspaceStore } from '@scalar/workspace-store/client';
2
+ type __VLS_Props = {
3
+ workspace: WorkspaceStore;
4
+ };
5
+ 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>;
6
+ export default _default;
7
+ //# sourceMappingURL=ApiReferenceToolbarSdks.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApiReferenceToolbarSdks.vue.d.ts","sourceRoot":"","sources":["../../../src/features/toolbar/ApiReferenceToolbarSdks.vue"],"names":[],"mappings":"AA0FA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AA2BpE,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,cAAc,CAAA;CAC1B,CAAC;;AAoJF,wBAMG"}
@@ -0,0 +1,84 @@
1
+ import { defineComponent as f, ref as b, createBlock as k, openBlock as s, withCtx as e, createVNode as r, unref as t, createElementBlock as _, Fragment as y, renderList as S, createElementVNode as p, createTextVNode as n, toDisplayString as v } from "vue";
2
+ import { ScalarFormSection as V, ScalarFormInputGroup as h, ScalarToggleInput as w, ScalarIcon as G } from "@scalar/components";
3
+ import x from "./ApiReferenceToolbarBlurb.vue.js";
4
+ import T from "./ApiReferenceToolbarPopover.vue.js";
5
+ import A from "./ApiReferenceToolbarRegisterButton.vue.js";
6
+ const B = { class: "inline-flex items-center gap-2" }, I = /* @__PURE__ */ f({
7
+ __name: "ApiReferenceToolbarSdks",
8
+ props: {
9
+ workspace: {}
10
+ },
11
+ setup(L) {
12
+ const i = [
13
+ {
14
+ key: "typescript",
15
+ label: "Typescript",
16
+ icon: "programming-language-typescript"
17
+ },
18
+ { key: "python", label: "Python", icon: "programming-language-python" },
19
+ { key: "csharp", label: "C", icon: "programming-language-csharp" },
20
+ { key: "java", label: "Java", icon: "programming-language-java" },
21
+ { key: "ruby", label: "Ruby", icon: "programming-language-ruby" },
22
+ { key: "php", label: "PHP", icon: "programming-language-php" },
23
+ { key: "go", label: "Go", icon: "programming-language-go" }
24
+ ], a = b([]);
25
+ return (u, l) => (s(), k(T, { class: "w-110" }, {
26
+ label: e(() => l[0] || (l[0] = [
27
+ n("Generate SDKs")
28
+ ])),
29
+ default: e(() => [
30
+ r(t(V), null, {
31
+ label: e(() => l[1] || (l[1] = [
32
+ n("Select Languages")
33
+ ])),
34
+ default: e(() => [
35
+ r(t(h), null, {
36
+ default: e(() => [
37
+ (s(), _(y, null, S(i, ({ key: o, label: g, icon: c }) => r(t(w), {
38
+ key: o,
39
+ modelValue: a.value.includes(o),
40
+ "onUpdate:modelValue": (m) => m ? a.value = [...a.value, o] : a.value = a.value.filter(
41
+ (d) => d !== o
42
+ )
43
+ }, {
44
+ default: e(() => [
45
+ p("span", B, [
46
+ r(t(G), {
47
+ icon: c,
48
+ class: "text-c-2 size-3.5"
49
+ }, null, 8, ["icon"]),
50
+ n(" " + v(g), 1)
51
+ ])
52
+ ]),
53
+ _: 2
54
+ }, 1032, ["modelValue", "onUpdate:modelValue"])), 64))
55
+ ]),
56
+ _: 1
57
+ }),
58
+ r(A, {
59
+ sdks: a.value,
60
+ workspace: u.workspace
61
+ }, null, 8, ["sdks", "workspace"]),
62
+ r(x, null, {
63
+ default: e(() => l[2] || (l[2] = [
64
+ n(" Generating SDKs is a paid feature starting at $100/mo, learn more in our "),
65
+ p("a", {
66
+ href: "https://guides.scalar.com/scalar/scalar-sdks/getting-started",
67
+ target: "_blank"
68
+ }, " guides", -1),
69
+ n(". ")
70
+ ])),
71
+ _: 1,
72
+ __: [2]
73
+ })
74
+ ]),
75
+ _: 1
76
+ })
77
+ ]),
78
+ _: 1
79
+ }));
80
+ }
81
+ });
82
+ export {
83
+ I as default
84
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./ApiReferenceToolbarSdks.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,7 @@
1
+ import type { WorkspaceStore } from '@scalar/workspace-store/client';
2
+ type __VLS_Props = {
3
+ workspace: WorkspaceStore;
4
+ };
5
+ 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>;
6
+ export default _default;
7
+ //# sourceMappingURL=ApiReferenceToolbarShare.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApiReferenceToolbarShare.vue.d.ts","sourceRoot":"","sources":["../../../src/features/toolbar/ApiReferenceToolbarShare.vue"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAMpE,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,cAAc,CAAA;CAC1B,CAAC;;AAyFF,wBAMG"}
@@ -0,0 +1,42 @@
1
+ import { defineComponent as t, createBlock as m, openBlock as s, withCtx as r, createVNode as o, unref as n, createTextVNode as a } from "vue";
2
+ import { ScalarFormSection as p } from "@scalar/components";
3
+ import f from "./ApiReferenceToolbarPopover.vue.js";
4
+ import i from "./ApiReferenceToolbarShareRegister.vue.js";
5
+ import u from "./ApiReferenceToolbarShareTemporary.vue.js";
6
+ const S = /* @__PURE__ */ t({
7
+ __name: "ApiReferenceToolbarShare",
8
+ props: {
9
+ workspace: {}
10
+ },
11
+ setup(k) {
12
+ return (l, e) => (s(), m(f, { class: "w-120" }, {
13
+ label: r(() => e[0] || (e[0] = [
14
+ a("Share")
15
+ ])),
16
+ default: r(() => [
17
+ o(n(p), null, {
18
+ label: r(() => e[1] || (e[1] = [
19
+ a("Temporary Link")
20
+ ])),
21
+ default: r(() => [
22
+ o(u, { workspace: l.workspace }, null, 8, ["workspace"])
23
+ ]),
24
+ _: 1
25
+ }),
26
+ o(n(p), null, {
27
+ label: r(() => e[2] || (e[2] = [
28
+ a("Permanent Link")
29
+ ])),
30
+ default: r(() => [
31
+ o(i, { workspace: l.workspace }, null, 8, ["workspace"])
32
+ ]),
33
+ _: 1
34
+ })
35
+ ]),
36
+ _: 1
37
+ }));
38
+ }
39
+ });
40
+ export {
41
+ S as default
42
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./ApiReferenceToolbarShare.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,7 @@
1
+ import type { WorkspaceStore } from '@scalar/workspace-store/client';
2
+ type __VLS_Props = {
3
+ workspace: WorkspaceStore;
4
+ };
5
+ 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>;
6
+ export default _default;
7
+ //# sourceMappingURL=ApiReferenceToolbarShareRegister.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApiReferenceToolbarShareRegister.vue.d.ts","sourceRoot":"","sources":["../../../src/features/toolbar/ApiReferenceToolbarShareRegister.vue"],"names":[],"mappings":"AAkEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAiBpE,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,cAAc,CAAA;CAC1B,CAAC;;AAkFF,wBAMG"}