@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
@@ -4,17 +4,17 @@ type __VLS_Props = {
4
4
  configuration?: AnyApiReferenceConfiguration;
5
5
  store: WorkspaceStore;
6
6
  };
7
- declare var __VLS_17: {}, __VLS_19: {}, __VLS_21: {}, __VLS_23: {}, __VLS_25: {};
7
+ declare var __VLS_20: {}, __VLS_22: {}, __VLS_24: {}, __VLS_26: {}, __VLS_28: {};
8
8
  type __VLS_Slots = {} & {
9
- 'content-start'?: (props: typeof __VLS_17) => any;
9
+ 'content-start'?: (props: typeof __VLS_20) => any;
10
10
  } & {
11
- 'content-end'?: (props: typeof __VLS_19) => any;
11
+ 'content-end'?: (props: typeof __VLS_22) => any;
12
12
  } & {
13
- 'sidebar-start'?: (props: typeof __VLS_21) => any;
13
+ 'sidebar-start'?: (props: typeof __VLS_24) => any;
14
14
  } & {
15
- 'sidebar-end'?: (props: typeof __VLS_23) => any;
15
+ 'sidebar-end'?: (props: typeof __VLS_26) => any;
16
16
  } & {
17
- footer?: (props: typeof __VLS_25) => any;
17
+ footer?: (props: typeof __VLS_28) => any;
18
18
  };
19
19
  declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
20
20
  updateContent: (content: any) => any;
@@ -1 +1 @@
1
- {"version":3,"file":"ApiReferenceWorkspace.vue.d.ts","sourceRoot":"","sources":["../../src/v2/ApiReferenceWorkspace.vue"],"names":[],"mappings":"AAqVA,OAAO,KAAK,EACV,4BAA4B,EAE7B,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAyBpE,KAAK,WAAW,GAAG;IACjB,aAAa,CAAC,EAAE,4BAA4B,CAAA;IAC5C,KAAK,EAAE,cAAc,CAAA;CACtB,CAAC;AA6TF,QAAA,IAAI,QAAQ,IAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AAC9G,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GACrD;IAAE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GACnD;IAAE,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GACrD;IAAE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GACnD;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AA4B/C,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"}
1
+ {"version":3,"file":"ApiReferenceWorkspace.vue.d.ts","sourceRoot":"","sources":["../../src/v2/ApiReferenceWorkspace.vue"],"names":[],"mappings":"AAiWA,OAAO,KAAK,EACV,4BAA4B,EAG7B,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,gCAAgC,CAAA;AA0BpE,KAAK,WAAW,GAAG;IACjB,aAAa,CAAC,EAAE,4BAA4B,CAAA;IAC5C,KAAK,EAAE,cAAc,CAAA;CACtB,CAAC;AA4UF,QAAA,IAAI,QAAQ,IAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AAC9G,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GACrD;IAAE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GACnD;IAAE,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GACrD;IAAE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GACnD;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AA8B/C,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"}
@@ -1,60 +1,62 @@
1
- import { defineComponent as R, ref as d, toRef as I, provide as N, useTemplateRef as w, onBeforeMount as L, watch as i, computed as V, createElementBlock as A, openBlock as C, createBlock as B, createCommentVNode as P, createVNode as k, unref as n, resolveDynamicComponent as U, withCtx as s, createTextVNode as _, toDisplayString as K, renderSlot as l, isRef as F } from "vue";
2
- import { safeLocalStorage as O, REFERENCE_LS_KEYS as W } from "@scalar/helpers/object/local-storage";
3
- import { makeUrlAbsolute as Y } from "@scalar/helpers/url/make-url-absolute";
4
- import { redirectToProxy as z } from "@scalar/oas-utils/helpers";
5
- import { useColorMode as H } from "@scalar/use-hooks/useColorMode";
6
- import { useSeoMeta as j } from "@unhead/vue";
7
- import { useFavicon as q } from "@vueuse/core";
8
- import G from "../components/ApiReferenceLayout.vue.js";
9
- import { NAV_STATE_SYMBOL as J } from "../hooks/useNavState.js";
1
+ import { defineComponent as R, ref as m, toRef as I, provide as N, useTemplateRef as L, onBeforeMount as U, watch as s, computed as V, createElementBlock as A, openBlock as g, createBlock as B, createCommentVNode as P, createVNode as f, unref as n, resolveDynamicComponent as _, withCtx as i, createTextVNode as K, toDisplayString as O, renderSlot as u, isRef as F } from "vue";
2
+ import { safeLocalStorage as W, REFERENCE_LS_KEYS as Y } from "@scalar/helpers/object/local-storage";
3
+ import { makeUrlAbsolute as z } from "@scalar/helpers/url/make-url-absolute";
4
+ import { redirectToProxy as H } from "@scalar/oas-utils/helpers";
5
+ import { useColorMode as j } from "@scalar/use-hooks/useColorMode";
6
+ import { useSeoMeta as q } from "@unhead/vue";
7
+ import { useFavicon as G } from "@vueuse/core";
8
+ import J from "../components/ApiReferenceLayout.vue.js";
9
+ import Q from "../features/toolbar/ApiReferenceToolbar.vue.js";
10
+ import { NAV_STATE_SYMBOL as X } from "../hooks/useNavState.js";
10
11
  import { isClient as D } from "./blocks/scalar-request-example-block/helpers/find-client.js";
11
- import { getDocumentName as Q } from "./helpers/get-document-name.js";
12
- import { mapConfiguration as g } from "./helpers/map-configuration.js";
13
- import { normalizeContent as X } from "./helpers/normalize-content.js";
14
- import { useWorkspaceStoreEvents as Z } from "./hooks/use-workspace-store-events.js";
15
- import { useMultipleDocuments as ee } from "../features/multiple-documents/useMultipleDocuments.js";
16
- import te from "../features/multiple-documents/DocumentSelector.vue.js";
17
- const De = /* @__PURE__ */ R({
12
+ import { getDocumentName as Z } from "./helpers/get-document-name.js";
13
+ import { mapConfiguration as E } from "./helpers/map-configuration.js";
14
+ import { normalizeContent as ee } from "./helpers/normalize-content.js";
15
+ import { useWorkspaceStoreEvents as te } from "./hooks/use-workspace-store-events.js";
16
+ import { useMultipleDocuments as oe } from "../features/multiple-documents/useMultipleDocuments.js";
17
+ import re from "../features/multiple-documents/DocumentSelector.vue.js";
18
+ const Me = /* @__PURE__ */ R({
18
19
  __name: "ApiReferenceWorkspace",
19
20
  props: {
20
21
  configuration: {},
21
22
  store: {}
22
23
  },
23
24
  emits: ["updateContent"],
24
- setup(E) {
25
- const c = E, {
26
- availableDocuments: f,
25
+ setup(M) {
26
+ const p = M, d = m({}), {
27
+ availableDocuments: v,
27
28
  selectedConfiguration: o,
28
- selectedDocumentIndex: u,
29
- isIntersectionEnabled: m,
30
- hash: M,
31
- hashPrefix: h
32
- } = ee({
33
- configuration: I(c, "configuration"),
34
- isIntersectionEnabled: d(!1),
35
- hash: d(""),
36
- hashPrefix: d("")
37
- }), x = (e, t) => fetch(
38
- z(o.value.proxyUrl, e.toString()),
29
+ selectedDocumentIndex: l,
30
+ isIntersectionEnabled: c,
31
+ hash: x,
32
+ hashPrefix: y
33
+ } = oe({
34
+ configuration: I(p, "configuration"),
35
+ configurationOverrides: d,
36
+ isIntersectionEnabled: m(!1),
37
+ hash: m(""),
38
+ hashPrefix: m("")
39
+ }), S = (e, t) => fetch(
40
+ H(o.value.proxyUrl, e.toString()),
39
41
  t
40
42
  );
41
- N(J, { isIntersectionEnabled: m, hash: M, hashPrefix: h });
42
- const p = w("root"), r = c.store;
43
- L(() => {
44
- const e = O().getItem(
45
- W.SELECTED_CLIENT
43
+ N(X, { isIntersectionEnabled: c, hash: x, hashPrefix: y });
44
+ const k = L("root"), r = p.store;
45
+ U(() => {
46
+ const e = W().getItem(
47
+ Y.SELECTED_CLIENT
46
48
  );
47
49
  D(e) && !r.workspace["x-scalar-default-client"] && r.update("x-scalar-default-client", e);
48
50
  });
49
- const y = async (e) => {
50
- const t = X(e.content), a = Q({
51
+ const b = async (e) => {
52
+ const t = ee(e.content), a = Z({
51
53
  name: e.slug || e.title,
52
54
  url: e.url,
53
55
  document: t
54
56
  });
55
57
  if (r.workspace.documents[a]) {
56
- t && (m.value = !1, r.replaceDocument(a, t), r.update("x-scalar-active-document", a), setTimeout(() => {
57
- m.value = !0;
58
+ t && (c.value = !1, r.replaceDocument(a, t), r.update("x-scalar-active-document", a), setTimeout(() => {
59
+ c.value = !0;
58
60
  }, 300));
59
61
  return;
60
62
  }
@@ -62,102 +64,108 @@ const De = /* @__PURE__ */ R({
62
64
  return await r.addDocument({
63
65
  name: a,
64
66
  document: t,
65
- config: g(e)
67
+ config: E(e)
66
68
  });
67
69
  if (e.url)
68
70
  return await r.addDocument({
69
71
  name: e.slug ?? "default",
70
- url: Y(e.url, {
72
+ url: z(e.url, {
71
73
  basePath: o.value.pathRouting?.basePath
72
74
  }),
73
- fetch: e.fetch ?? x,
74
- config: g(e)
75
+ fetch: e.fetch ?? S,
76
+ config: E(e)
75
77
  });
76
78
  };
77
- i(
79
+ s(
78
80
  [
79
81
  () => o.value.slug,
80
82
  () => o.value.url,
81
83
  () => o.value.content
82
84
  ],
83
85
  ([e, t, a]) => {
84
- (e || t || a) && y(o.value);
86
+ (e || t || a) && b(o.value);
85
87
  },
86
88
  { immediate: !0 }
87
- ), Z(r, p), i(
89
+ ), te(r, k), s(
88
90
  () => o.value.defaultHttpClient,
89
91
  (e) => {
90
92
  if (e) {
91
- const { targetKey: t, clientKey: a } = e, v = `${t}/${a}`;
92
- D(v) && r.update("x-scalar-default-client", v);
93
+ const { targetKey: t, clientKey: a } = e, C = `${t}/${a}`;
94
+ D(C) && r.update("x-scalar-default-client", C);
93
95
  }
94
96
  },
95
97
  { immediate: !0 }
96
98
  );
97
- function S(e) {
99
+ function h(e) {
98
100
  if (e === !0)
99
101
  return "dark";
100
102
  if (e === !1)
101
103
  return "light";
102
104
  }
103
- const { toggleColorMode: b, isDarkMode: T } = H({
104
- initialColorMode: S(o.value.darkMode),
105
+ const { toggleColorMode: $, isDarkMode: T } = j({
106
+ initialColorMode: h(o.value.darkMode),
105
107
  overrideColorMode: o.value.forceDarkModeState
106
108
  });
107
- i(
109
+ s(
108
110
  () => o.value.darkMode,
109
111
  (e) => r.update("x-scalar-dark-mode", !!e)
110
- ), i(
112
+ ), s(
111
113
  () => T.value,
112
114
  (e) => r.update("x-scalar-dark-mode", e),
113
115
  { immediate: !0 }
114
- ), i(
115
- () => u.value,
116
+ ), s(
117
+ () => l.value,
116
118
  (e) => r.update(
117
119
  "x-scalar-active-document",
118
- f.value[e]?.slug
120
+ v.value[e]?.slug
119
121
  ),
120
122
  { immediate: !0 }
121
- ), o.value.metaData && j(o.value.metaData);
122
- const $ = V(() => o.value.favicon);
123
- return q($), (e, t) => (C(), A("div", {
123
+ ), o.value.metaData && q(o.value.metaData);
124
+ const w = V(() => o.value.favicon);
125
+ return G(w), (e, t) => (g(), A("div", {
124
126
  ref_key: "root",
125
- ref: p
127
+ ref: k
126
128
  }, [
127
- n(o)?.customCss ? (C(), B(U("style"), { key: 0 }, {
128
- default: s(() => [
129
- _(K(n(o).customCss), 1)
129
+ n(o)?.customCss ? (g(), B(_("style"), { key: 0 }, {
130
+ default: i(() => [
131
+ K(O(n(o).customCss), 1)
130
132
  ]),
131
133
  _: 1
132
134
  })) : P("", !0),
133
- k(G, {
135
+ f(J, {
134
136
  configuration: n(o),
135
137
  isDark: !!n(r).workspace["x-scalar-dark-mode"],
136
138
  store: n(r),
137
- onToggleDarkMode: t[1] || (t[1] = () => n(b)()),
138
- onUpdateContent: t[2] || (t[2] = (a) => e.$emit("updateContent", a))
139
+ onToggleDarkMode: t[2] || (t[2] = () => n($)()),
140
+ onUpdateContent: t[3] || (t[3] = (a) => e.$emit("updateContent", a))
139
141
  }, {
140
- "document-selector": s(() => [
141
- k(n(te), {
142
- modelValue: n(u),
143
- "onUpdate:modelValue": t[0] || (t[0] = (a) => F(u) ? u.value = a : null),
144
- options: n(f)
142
+ "document-selector": i(() => [
143
+ f(n(re), {
144
+ modelValue: n(l),
145
+ "onUpdate:modelValue": t[0] || (t[0] = (a) => F(l) ? l.value = a : null),
146
+ options: n(v)
145
147
  }, null, 8, ["modelValue", "options"])
146
148
  ]),
147
- "content-start": s(() => [
148
- l(e.$slots, "content-start")
149
+ "content-start": i(() => [
150
+ f(Q, {
151
+ workspace: n(r),
152
+ configuration: n(o),
153
+ overrides: d.value,
154
+ "onUpdate:overrides": t[1] || (t[1] = (a) => d.value = a)
155
+ }, null, 8, ["workspace", "configuration", "overrides"]),
156
+ u(e.$slots, "content-start")
149
157
  ]),
150
- "content-end": s(() => [
151
- l(e.$slots, "content-end")
158
+ "content-end": i(() => [
159
+ u(e.$slots, "content-end")
152
160
  ]),
153
- "sidebar-start": s(() => [
154
- l(e.$slots, "sidebar-start")
161
+ "sidebar-start": i(() => [
162
+ u(e.$slots, "sidebar-start")
155
163
  ]),
156
- "sidebar-end": s(() => [
157
- l(e.$slots, "sidebar-end")
164
+ "sidebar-end": i(() => [
165
+ u(e.$slots, "sidebar-end")
158
166
  ]),
159
- footer: s(() => [
160
- l(e.$slots, "footer")
167
+ footer: i(() => [
168
+ u(e.$slots, "footer")
161
169
  ]),
162
170
  _: 3
163
171
  }, 8, ["configuration", "isDark", "store"])
@@ -165,5 +173,5 @@ const De = /* @__PURE__ */ R({
165
173
  }
166
174
  });
167
175
  export {
168
- De as default
176
+ Me as default
169
177
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./IntroductionLayout.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1405b00e"]]);
4
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-2f5c2779"]]);
5
5
  export {
6
- p as default
6
+ f as default
7
7
  };
@@ -1 +1 @@
1
- {"version":3,"file":"get-secrets.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-request-example-block/helpers/get-secrets.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8DAA8D,CAAA;AAGxG,4CAA4C;AAC5C,eAAO,MAAM,UAAU,GAAI,iBAAiB,oBAAoB,EAAE,KAAG,MAAM,EAqBrD,CAAA"}
1
+ {"version":3,"file":"get-secrets.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-request-example-block/helpers/get-secrets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8DAA8D,CAAA;AAGxG,4CAA4C;AAC5C,eAAO,MAAM,UAAU,GAAI,iBAAiB,oBAAoB,EAAE,KAAG,MAAM,EAqBvD,CAAA"}
@@ -1,11 +1,10 @@
1
- import { isDefined as e } from "@scalar/helpers/array/is-defined";
2
- import { encode as s } from "js-base64";
3
- const p = (t) => t.flatMap((r) => r.type === "apiKey" ? r["x-scalar-secret-token"] : r?.type === "http" ? [
1
+ import { encode as e } from "js-base64";
2
+ const l = (t) => t.flatMap((r) => r.type === "apiKey" ? r["x-scalar-secret-token"] : r?.type === "http" ? [
4
3
  r["x-scalar-secret-token"],
5
4
  r["x-scalar-secret-username"],
6
5
  r["x-scalar-secret-password"],
7
- s(`${r["x-scalar-secret-username"]}:${r["x-scalar-secret-password"]}`)
8
- ] : r.type === "oauth2" ? Object.values(r.flows).map((a) => a["x-scalar-secret-token"]) : []).filter(e);
6
+ e(`${r["x-scalar-secret-username"]}:${r["x-scalar-secret-password"]}`)
7
+ ] : r.type === "oauth2" ? Object.values(r.flows).map((a) => a["x-scalar-secret-token"]) : []).filter(Boolean);
9
8
  export {
10
- p as getSecrets
9
+ l as getSecrets
11
10
  };
@@ -1 +1 @@
1
- {"version":3,"file":"map-configuration.d.ts","sourceRoot":"","sources":["../../../src/v2/helpers/map-configuration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAG9D;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,GAAI,QAAQ,OAAO,CAAC,yBAAyB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAiD0g3C,CAAC;;;gBAAyH,CAAC;;;;;mBAAsS,CAAC;uBAAyC,CAAC;;;gBAA1N,CAAC;;;;kBAA4W,CAAC;;;CADpr4C,CAAA"}
1
+ {"version":3,"file":"map-configuration.d.ts","sourceRoot":"","sources":["../../../src/v2/helpers/map-configuration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAG9D;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,GAAI,QAAQ,OAAO,CAAC,yBAAyB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAiD+o4C,CAAC;;;gBAAyH,CAAC;;;;;mBAAsS,CAAC;uBAAyC,CAAC;;;gBAA1N,CAAC;;;;kBAA4W,CAAC;;;CADzz5C,CAAA"}
package/package.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "vue",
21
21
  "vue3"
22
22
  ],
23
- "version": "1.36.0",
23
+ "version": "1.36.2",
24
24
  "engines": {
25
25
  "node": ">=20"
26
26
  },
@@ -56,23 +56,23 @@
56
56
  "type-fest": "^4.41.0",
57
57
  "vue": "^3.5.17",
58
58
  "zod": "3.24.1",
59
- "@scalar/api-client": "2.5.35",
60
- "@scalar/components": "0.14.36",
61
- "@scalar/helpers": "0.0.11",
59
+ "@scalar/api-client": "2.6.1",
62
60
  "@scalar/code-highlight": "0.2.0",
61
+ "@scalar/components": "0.14.38",
62
+ "@scalar/helpers": "0.0.11",
63
63
  "@scalar/icons": "0.4.7",
64
- "@scalar/json-magic": "0.5.1",
64
+ "@scalar/json-magic": "0.5.2",
65
65
  "@scalar/object-utils": "1.2.7",
66
- "@scalar/oas-utils": "0.4.31",
67
- "@scalar/openapi-parser": "0.21.1",
68
66
  "@scalar/openapi-types": "0.3.7",
67
+ "@scalar/oas-utils": "0.4.33",
69
68
  "@scalar/openapi-upgrader": "0.1.0",
70
- "@scalar/snippetz": "0.4.10",
71
- "@scalar/themes": "0.13.18",
69
+ "@scalar/themes": "0.13.19",
70
+ "@scalar/openapi-parser": "0.21.2",
72
71
  "@scalar/types": "0.2.16",
73
72
  "@scalar/use-hooks": "0.2.5",
73
+ "@scalar/snippetz": "0.4.10",
74
74
  "@scalar/use-toasts": "0.8.0",
75
- "@scalar/workspace-store": "0.15.8"
75
+ "@scalar/workspace-store": "0.16.0"
76
76
  },
77
77
  "devDependencies": {
78
78
  "@hono/node-server": "^1.11.0",
@@ -92,10 +92,10 @@
92
92
  "vite-plugin-banner": "^0.7.1",
93
93
  "vite-plugin-css-injected-by-js": "^3.4.0",
94
94
  "vitest": "3.2.4",
95
- "@scalar/core": "0.3.17",
96
95
  "@scalar/build-tooling": "0.2.7",
97
96
  "@scalar/galaxy": "0.5.8",
98
- "@scalar/react-renderer": "0.2.1"
97
+ "@scalar/react-renderer": "0.2.1",
98
+ "@scalar/core": "0.3.17"
99
99
  },
100
100
  "scripts": {
101
101
  "build": "pnpm build:default && pnpm build:standalone && pnpm types:build && tsc-alias -p tsconfig.build.json",